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 can I get the function code of a dynpro push button

Former Member
0 Likes
4,406

Hi Developers,

i'm searching now since many hours a function which provides me the maintained function code of a push button within a dynpro.

Has someone a hint or knows how to get this Information?

The FM RS_SCREEN_IMPORT does provide a lot of information about the elements, but not this function code.

Cheers

Eugen

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
3,205

You have to map field F_G[]-RES1 to structure D021S_RES1 to find this information.

(Subfield D021S_RES1-FUNCCODE)

Regards,

Raymond

You have to map field F_G[]-RES1 to structure D021S_RES1 to find this information.

(Subfield D021S_RES1-FUNCCODE)

Regards,

Raymond

11 REPLIES 11
Read only

Former Member
0 Likes
3,205

Hi,

I assume you are asking about SY-UCOMM, which stores FCODE values at runtime.

Also Check SYST structure for more information.

Regards,

Venu

Read only

former_member196331
Active Contributor
0 Likes
3,205

I hope the answer is SY-UCOMM, I would like to give the answer first, But Getting confusing What you asked. Because very basic.

Read only

former_member185116
Active Participant
0 Likes
3,205

select the dynpro push button and press F1 ,

in the pop window the field FUNCTION is u r function code....

Read only

0 Likes
3,205

This will not help, i need to determine the function code during the runtime of my code!

Read only

0 Likes
3,205

then look for SY-UCOMM.

Read only

Former Member
0 Likes
3,205

Hi,

no this is not what i'm looking for. I need this information before the pai and independent of it.

So I need this info, before calling the dynpro itself.



Read only

Former Member
0 Likes
3,205

Are you referring to menu painter text?table RSMPTEXTS?

Read only

0 Likes
3,205

No. This is for the functions of GUI Status, what i'm searching for, is the function code of dynpro elements, means which are palced within a dynpro.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
3,206

You have to map field F_G[]-RES1 to structure D021S_RES1 to find this information.

(Subfield D021S_RES1-FUNCCODE)

Regards,

Raymond

Read only

0 Likes
3,205


Hi Raymond,

you are my mate. Thanks a lot, this is excactly what i was searching for.

Many many thanks.

So here the solution:

1. CALL FM RS_SCREEN_IMPORT

2. Process over the result table F_G

3. Map F_G[]-RES1 to a local variable of type D021S_RES1

( e.g.


DATA(ls_d021S_RES1) = conv D021S_RES1( <line of F_G>-RES1)

)

4. Access Field FUNCCODE

Cheers

Eugen

Read only

0 Likes
3,205

If you want to decode any D02* information, use function module RPY_DYNPRO_CVT_INTO_EXTFORMAT