How to create batch PO by BO interface after excel upload immediately?
source link: https://answers.sap.com/questions/13912902/how-to-convert-the-pid-after-eml-create-by-bo-inte.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
How to create batch PO by BO interface after excel upload immediately?
Dear Experts,
My business scenario:
Step 1. Upload batch data with Excel upload function
Step 2. EML create Purchase Orders by BO Interface: i_purchaseordertp_2
Step 3. There are batch PO created after I click "Upload" button
Example: I upload 5 row data, and expected to create 2 Purchase Orders,
maybe 2 Items in PO_1 and 3 Items in PO_2
The screenshot will like below
The issue I have is only 4500000186 been created, but there are no Error in Failed/Reported data.
I also check that the below EML create code executed 2 times.
I suppose the reason of this issue is "commit work" statement only execute 1 times.
Because it get work if I use Method if_oo_adt_classrun~main by run as console
there are 2 PO be created success.
Is it possible to create batch PO after I upload Excel data immediately ?
The command "COMMIT-ENTITIES" is not allowed in a BEHAVIOR class.
=> or can I redefine the commit statement logic ?
What options do we have here?
Kindly help.
Regards,
ABAPer.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK