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: 

Enhancement-section IDOC_INPUT_PORDCR1

Former Member
0 Kudos

Hi, gurus.


I ask for a help, I need to set up a idoc, but the client does not accept create a Z, he wants to do some validations before the BAPI PO creation, seeking to find a solution.


Create an enhancement-section in the function, it will be possible?


Can anyone help with this?



Regards.

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

You can add an enhacement at start of FM, as (in my versions) no explicit point exist between the loop for mapping IDOC data and the call of BAPI. So you would be required to loop yourself at the data received in IDOC.

Another solution could be some check during BAPI execution with now classic BAdI ME_PROCESS_PO_CUST. You could read the Abap stack (FM SYSTEM_CALLSTACK) during check to insure the inbound FM is currently in the stack, so only performing those checksfor the inbound IDOC.

Regards,

Raymond

2 REPLIES 2

raymond_giuseppi
Active Contributor
0 Kudos

You can add an enhacement at start of FM, as (in my versions) no explicit point exist between the loop for mapping IDOC data and the call of BAPI. So you would be required to loop yourself at the data received in IDOC.

Another solution could be some check during BAPI execution with now classic BAdI ME_PROCESS_PO_CUST. You could read the Abap stack (FM SYSTEM_CALLSTACK) during check to insure the inbound FM is currently in the stack, so only performing those checksfor the inbound IDOC.

Regards,

Raymond

0 Kudos

Hi, Raymond.

Thanks for answer, apparently I have to develop in the function BAPI.

Regards.