cancel
Showing results for 
Search instead for 
Did you mean: 

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

Sijin_Chandran
Active Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

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

0 Kudos

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

Sijin_Chandran
Active Contributor
0 Kudos

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