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

What will happen during Debugging

Former Member
0 Likes
421

Hi All,

I think I have an interesting questions afterall. I am trying to implement a BADI "WORKORDER_UPDATE". The code I am writing is

if wa_afvgb-txchg = 'X'.

                SUBMIT zl_error
                    AND RETURN.

When I restart my debugging window at the IF statement, the long text is not being updated, but if I let it go to the error statement, it is giving me an error and still updating the long text.

So my question is what exactly happens when one chooses to "Restart Debugging". Are there any roll back or commit statements that I should be looking at to incorporate in my code?

Kumar.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
397

Hi,

I dont think i understand your question correctly but try COMMIT WORK. after your Submit command.

As you are calling BAPI inside and if you are expecting the results, add commit work next to your submit statement.

hope this helps.

thnx,

ags.

2 REPLIES 2
Read only

Former Member
0 Likes
398

Hi,

I dont think i understand your question correctly but try COMMIT WORK. after your Submit command.

As you are calling BAPI inside and if you are expecting the results, add commit work next to your submit statement.

hope this helps.

thnx,

ags.

Read only

0 Likes
397

Agasti,

I am not using a BAPI, but using a BADI. I wanted to know what is the difference when we press "Restart Debug" that makes SAP not to retain long text.

Kumar.