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

How to know the currently triggered function code's function type?

Former Member
0 Likes
432

Dear All,

As we all know, when we create a function code in a GUI status, we can define its function type. When I trigger a function code (e.g. I clicked an icon in application toolbar), is there any way to know its function type?

What I need is to know whether the currenctly triggered function code's function type is type ' ' or 'E' in a module that is defined without the AT EXIT-COMMAND addition.

Thanks in advance,

Haris

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
391

HI Hari,

Use function module RS_CUA_INTERNAL_FETCH in your program

pass program name,language and state = A and execute it.

You will get the table parameter FUN , where you can read the function codes using the system field sy-ucomm.

The third field in the table holds the function type.

1 REPLY 1
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
392

HI Hari,

Use function module RS_CUA_INTERNAL_FETCH in your program

pass program name,language and state = A and execute it.

You will get the table parameter FUN , where you can read the function codes using the system field sy-ucomm.

The third field in the table holds the function type.