07-01-2016 10:34 AM
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.
07-01-2016 3:03 PM
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
07-01-2016 3:03 PM
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
07-01-2016 3:35 PM
Hi, Raymond.
Thanks for answer, apparently I have to develop in the function BAPI.
Regards.