Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Receiving Plant for Stock Transfer Order

0 Kudos

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

1 ACCEPTED SOLUTION

karun_prabhu
Active Contributor
0 Kudos

Hello Vaibhav.

     Why do you require RECEIVING PLANT when you are transferring stock within plant?

Regards.

3 REPLIES 3

karun_prabhu
Active Contributor
0 Kudos

Hello Vaibhav.

     Why do you require RECEIVING PLANT when you are transferring stock within plant?

Regards.

0 Kudos

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:


SAP Online Help

0 Kudos

Thanks guys.... was really helpful !!! 🙂