07-11-2017 1:54 PM
Hi All,
BAPI_PO_CREATE1 not creating PO in LOOP, creating PO succefully for the first loop iteration but not creating after that. Along with PO, SES and Invoice also generating .
07-11-2017 2:06 PM
BAPI_PO_CREATE1 not creating PO in LOOP creating PO succefully for the first loop iteration but not creating after that - Since you are calling function module and passing the data to that, don't you think you need to check your program logic to read the data in loop
Along with PO, SES and Invoice also generating - What is your business expectation, how is the system configured, Talk to your Functional consultant
07-11-2017 2:35 PM
in first iteration and debug mode or with enough wait statements its working , not working in direct execution, no issue with config.
07-12-2017 1:02 PM
Try introducing a wait statement then 🙂
07-11-2017 2:40 PM
Bapis require commit works - BAPI_TRANSACTION_COMMIT
07-11-2017 3:46 PM
Commit there, issue during 2nd PO creation in loop, cleared all variables.
07-11-2017 3:58 PM
Can you confirm parameter WAIT is filled with 'X' when you call FUNCTION BAPI_TRANSACTION_COMMIT?
07-12-2017 7:13 AM
yes, Wait = 'X' already there.
Error: SE026, this happening in 2nd PO creation onwards in loop.
07-12-2017 9:19 AM
And the text for SE026? Have you check for any long text?
07-11-2017 4:13 PM
This BAPI is full of BADI, enhancement points and user-exits. You should check that there is no specific codes making trouble.
For example in SE38 check for ZXMEWU10 and ZXMEWU11 existence
In SE18, for enhancement point ES_SAPL2012, look in "implementations" tab for Z* and Y* implementations.
07-12-2017 9:22 AM
search using coogle: you are not populating your transfer structure properly. Further info is available if you google Sap se026
07-12-2017 9:22 AM
search using google: you are not populating your transfer structure properly. Further info is available if you google Sap se026
07-12-2017 9:49 AM
Can you post your piece of code which is written inside the loop. We may try to give you a better solution.
thanks,
Priyanka.