cancel
Showing results for 
Search instead for 
Did you mean: 

Generate STO at the time of GR

Former Member
0 Kudos

Hi All,

We have scenario like this,

Plant - A and Plant B under same company code

Always procure stock at Plant-A and send it to Plant- B.(Meaning procurement happens only at Plant- A).

  1. PR, PO is created at plant- A.
  2. GR is done at Plant- A.(Auto STO has to be created, receiving plant details can be fetched from Z field available in PR)
  3. STO has to be created for Plant - B to transfer stock from Plant - A to B.

Can anybody tell me how to create STO at the time of GR?

I have heard that it could be done through output determination with special function.

Please share the procedure to do the same.

Former Member
0 Kudos

Hi All,

Please help me in step by step procedure to configure for GR output determination with special function to create auto STO . and how to to link to BAPI_PO_CREATE1 to create auto STO.

Thank you.

Accepted Solutions (0)

Answers (2)

Answers (2)

JL23
Active Contributor

Am I right that you expect a standard SAP functionality to look into your Z-field without doing any own further coding?

And you did not even get the situation right.

If the goods a send from plant A to plant B, then it is plant B who orders the material and plant B who receives the material, plant A has just a delivery.

Former Member
0 Kudos

Hello Jurgen,

Yes you are correct.

Plant A just delivers material to Plant B.

harshesh_patel3
Participant
0 Kudos

I have seen such requirements typically in Pharma/Medical Device business especially when things are getting imported into US plants to support companies tax strategy.

There is no Standard Automatic way of performing STO creation based on GR posting. However, through custom development this is typically achieved. The suggested approach of using Output determination and use of Special Function only helps in enabling automatic triggering of a custom solution you may build.

So in short, I am not aware of any standard SAP solution and you will need to develop a custom solution.

Thanks

Harshesh

Former Member
0 Kudos

Hi Harshesh,

Thank you for the response.

Am looking for step by step procedure to link GR output determination with special function to BAPI_PO_CREATE1 to create auto STO.

harshesh_patel3
Participant
0 Kudos

You won't be able to use BAPI_PO_CREATE1 directly as it cannot be linked to Output Type directly. You will need to develop a program from within which you can call this BAPI. Pls take help of an ABAPer to model this new program like any "Print Program" except that instead of printing the "Form Routine" entered in configuration is calling BAPI_PO_CREATE1.