Hi Sandra,
Please Create a Test data for BAPI_PO_CREATE1 and check BAPI Return has any error .
below are steps to create test data
Step by step
1º) ECC side
- set the Parameter FBGENDAT 'X' in the backend system for the SRM RFC user (Transaction code SU01). In order to get this RFC user in SRM side perform SM59
- execute the report FBGENDAT in the mode 'B'. (SE38 -> FBGENDAT). Enter BAPI_PO_CREATE1, Mode = B.
2º) Go to SRM Side
- Start the PO transfer from the SRM system, and check whether a test
- You can do this creating a new PO, if you have used BAPI_PO_CREATE1, if not, so retransfer a PO already created in the ECC using FM BBP_PD_PO_TRANSFER_EXEC.
- Perform report CLEAN_REQREQ_UP if necessary.
3º) Back to ECC
- Deactivate the generation of test data records by deleting the entries in report FBGENDAT (SU01 -> RFC User)
- Perform SE37 -> BAPI_PO_CREATE1 or BAPI_PO_CHANGE
- Then please check in SE37 for involved BAPI if there is an entry in test directory correctly generated.
IF there is no error coming in BAPI return , the you need to write a logic `BBP_PO_INBOUND_BADI` and `BBP_ECS_PO_OUT_BADI`for limts .
regards,
Krishna.