2016 Jun 03 8:10 AM
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
2016 Jun 03 9:10 AM
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
2016 Jun 03 8:27 AM
Hi,
I assume you are asking about SY-UCOMM, which stores FCODE values at runtime.
Also Check SYST structure for more information.
Regards,
Venu
2016 Jun 03 8:30 AM
I hope the answer is SY-UCOMM, I would like to give the answer first, But Getting confusing What you asked. Because very basic.
2016 Jun 03 8:33 AM
select the dynpro push button and press F1 ,
in the pop window the field FUNCTION is u r function code....
2016 Jun 03 8:37 AM
This will not help, i need to determine the function code during the runtime of my code!
2016 Jun 03 8:50 AM
2016 Jun 03 8:35 AM
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.
2016 Jun 03 8:54 AM
2016 Jun 03 8:59 AM
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.
2016 Jun 03 9:10 AM
2016 Jun 03 9:38 AM
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
2016 Jun 03 12:56 PM
If you want to decode any D02* information, use function module RPY_DYNPRO_CVT_INTO_EXTFORMAT
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |