cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with STWB_WORK

Former Member
0 Kudos

Hi all,

I have created some test scripts which I want to execute with clicking just one button.

Therefore I created 19 Testscripts which in the end call another script which should write some results in a specified table.

This all works fine but when I try this with the transaction STWB_WORK (all scripts are processed, all scripts work fine) only the values of the first script are entered in the table.

With this code the values are entered into the table.

ABAP.

data: wa_draw type ypdm4t001.

read table V_LT_DRAW into wa_draw index 1.

INSERT INTO ypdm4t001 VALUES wa_DRAW.

commit work.

ENDABAP.

Does anyone has any idea why this works fine when the scripts are executed one by one but not when are executed by the transaction?

regards

Manuel

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Manuel,

inspect the eCATT log you get after execution.

Are all the scripts processed ?

Is your Inline ABAP processed ?

If this does not bring further hints to explain the reason, have a look at abap variable SY-SUBRC directly after your INSERT statement. You can move SY-SUBRC to a local variable of your testscript and write it to eCATT Log by using LOG statement of eCATT. That SY-SUBRC should be 0.

Look at ABAP docu about other values ...

If it does not bring further hints come back here

Best regards

Jens