Skip to Content
avatar image
Former Member

Generate STO at the time of GR

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.

Add comment
10|10000 characters needed characters exceeded

  • Former Member

    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.

  • Get RSS Feed

2 Answers

  • May 31, 2017 at 03:55 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 02, 2017 at 06:39 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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.