Problem
How to retrieve information of GBU in WP1
Solution
Using sales order data:
You need to have under hands :
- The company code
- The sales area
- The division of the material
With these informations, you can access to the GBU information which are stored in SAP with a classification link (transaction CL20N)
You need to have access to table zwfat111 which contains the reference with the GBU link. And in the table t25b0 to get the texts
An exemple of code exists to retrieve GBU information (the selection of division is not copiable). FORM get_gbu of program ZWEBI02110.
Another way from Order information (Thanks Jorge) *** GBU calculation *** |
|---|
Using only the material and plant:
- From the material master data, get the profit center from the table MARC.
- From the plant, get the company code from the table T001K.
- From the company code, get the controlling area from the table TKA02.
- From the profit center and the controlling area, get the latest valid row from the table ZWFAT186. The first two letters of gives the GBU.