Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI's in the same LUW

Former Member
0 Likes
729

Hi experts,

I'm developing a FM, that will do the folowing SD process:

- create Sales Order

- outbound delivery

- Goods Issue

- Create the Billing document.

I'm using BAPI's for all.

My question is:

I want to make the commit work, only in the last of the process, after create the billing doc.

But, if I don't make the commit work after each bapi calling, the next bapi does not work.

There is some way to do this without make a commit ?

Alexandre Nogueira

4 REPLIES 4
Read only

suresh_datti
Active Contributor
0 Likes
640

Hi Alexandre,

You probably answered your question..

>><i>But, if I don't make the commit work after each bapi calling, the next bapi does not work.</i>

I don't think it is posiible to have the entire SD process in SIMULATE MODE. hope I am not wrong..

Regards,

Suresh Datti

Read only

0 Likes
640

Yeap,

But I wonder if there is some way to access the doc, that I had just created, before the commit.

Remember that it's all in the same program.

Alexandre Nogueira

Read only

0 Likes
640

I wonder if it is possible.

I had similar problem in earlier project. We sued BAPIs for this and here we had to use COMMIt in order to execute next BAPI.

If in the flow, any BAPI fails, you can revert back earlier documents by deleting from db.

Instead of going with this option, we created a custom program which will show status for each Entry. If it is failed at any stage, it will display as red entry and user can view the log for error message. They can correct these entries and repost. So it will continue the process and once it is completed then the entry will have green status.

Read only

0 Likes
640

Ok, after these answers I realy think it's not possible.

thanks!!

Alexandre Nogueira