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

Simple code to retrieve the value of the function code

Former Member
0 Likes
479

Hi,

I think I have found the function code and would want to know some simple code to detect the status of this function code and process some simple ABAP statements according to the value of the function code.

Thanks,

RT

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
448

hi,

Use the foll code in your form..

module USER_COMMAND_0100 input.

CASE <b>SY-UCOMM.</b>

WHEN 'SAVE'.

***

***

WHEN 'EXIT' .

LEAVE SCREEN 0.

ENDCASE.

endmodule.

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
448

You can try check sy-ucomm.

Regards,

Rich Heilman

Read only

venkat_o
Active Contributor
0 Likes
448

Hi Rob,

<b>1</b>.

Use system variable SY-UCOMM.

<b>Thanks,

Venkat.O</b>

Read only

Former Member
0 Likes
449

hi,

Use the foll code in your form..

module USER_COMMAND_0100 input.

CASE <b>SY-UCOMM.</b>

WHEN 'SAVE'.

***

***

WHEN 'EXIT' .

LEAVE SCREEN 0.

ENDCASE.

endmodule.