12-20-2013 5:07 AM
Hi,
I am creating Stock Transfer Order for Goods Movement within Plant. Here i need to include fields for Supplying Plant as well as receiving plant.
The Component type for Supplying Plant is easily found in BAPIMEPOHEADER but i am unable to find the same for Receiving Plant. There is a field for plant in BAPIMEPOITEM but that will more or less mean the same as Supplying plant... can somebody help me on the Receiving Plant ?
Any help is highly appreciated.
- Vaibhav
12-20-2013 5:25 AM
Hello Vaibhav.
Why do you require RECEIVING PLANT when you are transferring stock within plant?
Regards.
12-20-2013 5:25 AM
Hello Vaibhav.
Why do you require RECEIVING PLANT when you are transferring stock within plant?
Regards.
12-20-2013 6:04 AM
Hi Vaibhav,
This is the good question, normally the developers will confuse. Please find my comments below.
In STO process, vendor is nothing but your supplying plant ( providing the goods). Even you can see it in header level.
Supplying plant is vendor and receiving plant is a customer. STO PO will be created at receiving plant.
Technical information
EKKO-RESWK = supplying plant
Kunnr = receiving plant ( check the entries of this table)
select single werks
from t001w
into l_receiving_plant
where kunnr = EKPO-kunnr.
In BAPI:
receiving plant
bapi_poitemsc-plant = EKPO-KUNNR ( RECEIVING PLANT)
bapi_poitemscx-plant = 'X'.
supplying plant
bapi_poheaderc-suppl_plnt = 'XXXX'.
bapi_poheaderx-suppl_plnt = 'X'.
Functional help:
01-10-2014 9:29 AM