GLs should be different in PO to SO/PR conversion!
I have a issue. Our client wants to implement double procurement scenario, where A PLM WO is created in a plant(A) to procure material & services from plant (B) of different company code. This plant(B) in turn procures materials & services from external vendor on the behalf of plant (A).
Intercompany PO is created by plant(A) to procure from plant (B), which inturn creates a SO using Idoc & PR in plant(B) using BAPI.
The problem is, the intercompany GL account maintained in PO of plant A gets copied into PR of plant B which is supposed to be used to create a PO for external vendor. Hence the PO to vendor is getting created with intercompany GL instead of the GLs the company wants to use to procure material & services from external vendor.
Is there any way, where the GLs maintained in intercompany PO can be different from the GLs with which the PR using BAPI is created.
The business wants to maintain the GLs used in PR for external vendor to be maintained in the "sort' field of PLM WO. Is there any way to copy these GLs into the PR of plant B instead of just copying the GLs maintained in the PO of plant A?
If yes, then how? If ABAP work is required, then what exactly is supposed to be done?
Any help would be appreciated.
Kishore Kumar Chiluka replied
The G/L's are getting determined based on the material group or valuation class being used in the Services or material master.
If you need to determine these differently then you need to maintain different valuation grouping codes and confuigure the account determination accordingly in transaction OBYC.
If the G/L account is being manually maintained and you want to copy this into the subsequent documents, you can perform this using the user exists available in the IDoc creation or PO creation.