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

Value only change in DEBUG mode

Former Member
0 Likes
1,208

Hi all,

I create user exit in ZGGBS001 (copy from standard RGGBS001 ) for modifying Depreciation (T-code: AFAB) posting value which is BSEG-HKONT       (GL Account).
However, the value only change in debugging mode.
Please, help.

6 REPLIES 6
Read only

Former Member
0 Likes
1,068

Hi,

Check further after changing the value in debug mode where exactly it's changing again.It must have getting overwrite. Give watchpoint so that you can check where exactly value is changing.

Regards,

Pravin

Read only

0 Likes
1,068

Hi Pravin s.
I put the watchpoint and yes at the end of the code it modified my value, but the value stay the same after debugging.

Read only

Former Member
0 Likes
1,068

Hi Sopanith,

Ensure you are doing a commit work before leaving the transaction.

Regards,

Kannan

Read only

0 Likes
1,068

Hi Kannan,
You mean COMMIT WORK statement?
if so i tried, but it doesn't work.

Read only

0 Likes
1,068

Hi Sophanith,

Never use a commit work directly in the user exit.It will create inconsistencies.Try to call it via a New Task.

Regards,

Kannan

Read only

0 Likes
1,068

Actually,
I deleted the commit statement.
The value change back at program RGUGBR00 in debug mode.