cancel
Showing results for 
Search instead for 
Did you mean: 

Program running fine in Debug mode but failing in direct execution

Former Member
0 Kudos

Hi All,

I am facing a peculiar problem, I have created a report that create STO then Delivery and then Shipment one after one. I have used BAPI to do so. If STO creation is successful then Create Delivery and if delivery creation is also successfull then create Shipment.

When I run this program by pressing execute button it is only creating STO and coming out ,but if I run it in Debug mode I get all the three( STO, Delivey,Shipment). Since it run fine in debug so I can't found where the problem is.

Can any one help???

Regards

Hemant

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

KIndly ensure that COMMIT Work is there after creating of each documents

Former Member
0 Kudos

Hi guys,

A learning for me .... how important WAIt parmeter is in commit work .. Initially i have not set WAIT paramater in commit BAPI to X due to this further processing.. Delivery and Shipment creation was failing in direct execution ... as after STO creation I was reding EKPO and that was failing in direct execution , but in backgroung everything was ok.

Thanks for your time.

Cheers

Hemant