2008 May 09 8:03 AM
Hello Experts,
I am encountering a problem when using the MODIFY and DELETE statement in my
program because it seems that it does not work when I run the program. But if I check it in
debugging mode, it works. Below is my code:
LOOP AT lcl_data_def=>gt_zsalesorder ASSIGNING <fs_zsalesorder>.
CALL FUNCTION 'ZSD_UPDATE_SO_PRICINGTYPE' DESTINATION lcl_data_def=>gv_destination
EXPORTING
im_vbeln = <fs_zsalesorder>-object_id
IMPORTING
ex_icon = lcl_data_def=>wa_status-icon
ex_status = lcl_data_def=>wa_status-status
ex_message = lcl_data_def=>wa_status-message.
APPEND lcl_data_def=>wa_status TO lcl_data_def=>gt_status.
IF lcl_data_def=>wa_status-status = lc_s.
<fs_zsalesorder>-flag = 'X'.
MODIFY zsalesorder FROM <fs_zsalesorder>.
COMMIT WORK AND WAIT.
ENDIF.
CLEAR lcl_data_def=>wa_status.
ENDLOOP.
DELETE zsalesorder FROM TABLE lcl_data_def=>gt_zsalesorder.
COMMIT WORK AND WAIT.
Hope you can help me guys. Thank you and take care!
2008 May 09 8:09 AM
try removing and wait addition from comit work statement abnd see if it works
please close your execution screen after execution and check in se11 (or)
goto to the pgmscreen from execution screen and then check in se11
2008 May 09 8:09 AM
try removing and wait addition from comit work statement abnd see if it works
2008 May 09 8:17 AM
Hi,
I removed the AND WAIT addition and it still does not work.
2008 May 09 8:23 AM
wat is the return code after modify statement in debugging and also after commit?
2008 May 09 8:28 AM
2008 May 09 8:31 AM
this means dis is working...wat is actually happening? wen u check ur table zsalesorder in se11 does entry still exits after delete statement...
2008 May 09 8:37 AM
2008 May 09 9:14 AM
please close your execution screen after execution and check in se11 (or)
goto to the pgmscreen from execution screen and then check in se11
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |