Skip to Content

Creating a PO using 'Create PO BAPI' inside ME_PROCESS_PO_CUST~POST method : Best approach

Hello Gurus,

We have a requirement in which we have to create Third Party PO ( say of type ZTRD ) during the creation of Inter Company STO PO ( say of type ZSTO ). ZSTO type PO number should be maintained in the Reference field of ZTRD PO.

So for the above requirement I am thinking of creating a Z-Function Module inside which I will call the BAPI along with Commit FM for creating the ZTRD PO and I will call this Z-Function Module with UPDATE TASK Extension in BADI ME_PROCESS_PO_CUST~POST , so that it would be called during ZSTO PO creation and also ZSTO PO would be generated by the time this Method is called.

Can you all suggest this would be the correct approach for achieving the same or there should be another approach for achieving this?

I want to make it sure that it doesn't hinder the standard functioning of PO creation process in any manner.

Helpful comments much appreciated.

Thanks,

Sijin

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Aug 14, 2018 at 02:03 PM

    Hi Sijin,

    Just wondering if you can have any custom output type from first PO of kind 'special function' and then u can call the BAPI to create new PO.
    Just like we have SPED output for outbound delivery that creates inbound delivery.

    -Amit K

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Amit,

      This definitely looks like an apt solution.

      Will check with functional.

      Just a quick confirmation on this approach, if we set 'Special Function' output type , then as per my understanding we can assign a Custom Program which would be immediately triggered once PO is generated ( saved ) and output is triggered , and our ZPROGRAM will come into action, no other output medium ( I mean FORMs ) required for this. Please correct me if I am wrong.

      Have you got any document for this?

      Thanks for your valuable time and suggestion.

      Thanks,

      Sijin

  • Posted on Aug 22, 2018 at 09:28 PM

    Hi Sijin,

    Your understanding is very correct.
    It will process the custom FM that you will attach.
    I worked on std output SPED (you can search very easily) and follow the same methodology.

    PS: sorry no documentation available.
    Thanks,
    Amit K

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.