Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Failing Idoc Based on Posts Goods Issue

Former Member
0 Kudos

Hi experts,

I have a requirement where I need to check whether a STO exists for the idoc PORDCR102. Another requirement is to check Post Goods Issue is present. If STO exists and PGI exists, I need to fail the idoc. How to do this(both failing idoc and checking how PGI exists). I am using the user exit EXIT_SAPL2012_001 for this purpose.

Regards,

Sajith

3 REPLIES 3

anup_deshmukh4
Active Contributor
0 Kudos

Below are the inbound function module which in turn are calling the bapis to post the document

IDOC_INPUT_PORDCR1 calls BAPI_PO_CREATE1

IDOC_INPUT_PORDCR calls BAPI_PO_CREATE

Search for a exit in BAPI ...which will serve you requirement ....ie. in turn throw a error message if the bapi throws a message the idoc will fail...!

Former Member
0 Kudos

Hi ,

I am using the FM IDOC_IPUT_PORDCR1 and in that EXIT_SAPL2012_001 fo this. How can I check for Post Goods Issue before calling BAPI_PO_CREATE1.

Regards,

Sajith

0 Kudos

Hi,

What is the reference document type for creating the PO ?

Regards

Vinod