Application Development 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: 

Previous value of sy-ucomm

0 Kudos
296

Hi everyone,

Suppose I have 2 buttons in  a screen and i have pressed both buttons one after another.

Now, SY-UCOMM will store the current value as the fcode of second button which i pressed in the last.

My question is,

is there any way to retrieve the previous value of sy-ucomm i.e the fcode of first button here.

Thanks in advance.

Regards,

Roshan.

2 REPLIES 2

raymond_giuseppi
Active Contributor
0 Kudos
133

No, but the first button has already triggered a PAI/PBO cycle before second button is pressed so you get it (as ok_code) in the previous execution, so you had to handle yourself the save of this value?

Regards,

Raymond

0 Kudos
133

Hi Raymond,

thanks for the reply.

Actually,the requirement was if the first button is pressed(which was reject button in ME29N) and then second button is pressed(which is save button in ME29N),then only my enhancement should trigger.

Regards,

Roshan .