Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to bring out the factory data used by SAP

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains "how to bring out the factory data used by SAP". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to bring out the factory data used by SAP.

If you use this code on my github to create a production order for S/4HANA, you will find that I do not hard-code the ID of the production order in the code, but the runtime will find that the 2800 I configured in the system is used automatically. How do you do this?

By reading SAP S/4HANA 's standard code for production orders, it is found that the plant factory data used for production orders comes from the field WERKS in the table VBAP.

FV45EFMA_

The VBAP is the line item table for the sales order.

The problem translates into the relationship between the 2800 and the sales order line project.

This 2800 comes from the field DWERK Delivering Plant:Ship-to Party's View of the Customer Master Record of the structure KUWEV

FV45PF0K_KOMKG_KOMPG_FUELLEN, line 45.

Line 32 important function RV_CUSTOMER_MATERIAL_READ

DA_KUNNR: this field stores the customer ID hard-coded in my code:

VBAK-VKORG:VBAK-VKORG

VTWEG: distribution channel

SPART: division

Then determine the plant through the function LOCATION_ISS_PLANT_DETERMINE:

You can see here that the plant comes from the ship to view of the customer master data:

Kuwev KUWEV-DWERK

Where does the value of kuwev come from?

From the field VWERK of KNVV:

Knvv is the Sales data storage table for customer master data:

How to view the Sales-related data of the customer master data in S/4HANA?

Transaction code BP:

After searching according to the customer ID, declare FLCU01 Customer in the drop-down menu of Display in BP role on the details page:

Click the Sales and distribution button:

2800 is maintained here:

At this point, I believe you have a deeper understanding of "how to bring out the factory data used by SAP". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report