8

How to create batch PO by BO interface after excel upload immediately?

 1 year ago
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.
neoserver,ios ssh client
11 minutes ago

How to create batch PO by BO interface after excel upload immediately?

10 Views Last edit 5 minutes ago 2 rev

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

image.png
image.png

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.

image.png

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.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK