cancel
Showing results for 
Search instead for 
Did you mean: 

Want to do a PO and GR in single inteface

Former Member
0 Kudos

Hi all,

I want to do a Purchase Order Creation and Goods Receipt in a single interface. how to do that?

Shanmugam

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Use BAPI_PO_CREATE to create the PO

Use BAPI_GOODS_MVT_CREATE to create the Goods Receipt

You will need to call BAPI_TRANSACTION_COMMIT after each BAPI call in they are successful.

You will need to call BAPI_TRANSACTION_ROLLBACK if either fail and exit the proxy if required.

Kind regards

Colin.

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

you can create one abap proxy that will call

BAPI for PO create and then BAPI for GR

one after the other

Regards,

michal

Former Member
0 Kudos

Hi Michal,

Thank u for yor suggestion, But

I need to use two IDOCs in this case it is possible ?

Shanmugam

MichalKrawczyk
Active Contributor
0 Kudos

hi,

not very easy to implement via idocs

as you need to know the PO number and lines

to do a GR and IDOCs work in asyn mode

(so no response)

that's why I suggested proxy and bapis in one call

Regards,

michal

Former Member
0 Kudos

Hi Michal,

i understand and thank u very much for your explanation in working with Proxy rather than IDOC.

But my requirement is that i have all the data in my file like PO Number and Line items. so i need to do directly the PO creation and Subsequent GR. Pls let me know any way to use Two IDOC's PO and GR.

Shanmugam