06-04-2008 10:34 PM
Hi Experts,
Is there any FM to find out the screen elements (dynpro not webdynpro) and their attributes ?
Which table has the information about screen elements and their attributes?
My requirement is to find out all the elements in a screen when i provide the program name and the screen number. I also need to know the element type like 'Text Label' or 'Push Button'.
Thanks in advance.
06-27-2008 12:20 AM
Hi Hari haran,
My earlier reply to ur another question for the same issue solved your problem, That is use RS_IMPORT_DYNPRO to get complete screen information.
Hence you can close this thread also.
Regards,
Naveen Veshala
06-04-2008 10:47 PM
Check in SE12
put D02* an press F4,
U obtain this tables. I hope is helpfull
D020LINF
D020S
D020SINF
D020T
D021L
D021T
06-04-2008 11:27 PM
Hallo Hari,
I had the same problem. Actually there is no table that contains these data. The DDs are all structures. but the following code works ok with me, so you can try it:
DATA: H LIKE D020S OCCURS 0 WITH HEADER LINE.
DATA: F LIKE D021S OCCURS 0 WITH HEADER LINE.
DATA: E LIKE D022S OCCURS 0 WITH HEADER LINE.
DATA: M LIKE D023S OCCURS 0 WITH HEADER LINE.
DATA: f_wa like line of f.
DATA: e_wa like line of e.
DATA: m_wa like line of m.
DATA: begin of screenid,
progid like programid,
screenid like screennumber,
end of screenid.
IMPORT DYNPRO H F E M ID screenid.
the function gets the graphic type of the field feld-gtyp. you also have to declare the structure FELD.
LOOP AT F INTO f_wa.
CALL FUNCTION 'RS_SCRP_GET_FIELD_TYPE_TEXT'
EXPORTING
field = f_wa
text_kind = 'SHORT'
IMPORTING
field_type_without_modif = feld-gtyp
EXCEPTIONS
OTHERS = 1.
WRITE:/ 'feld-gtyp: ', feld-gtyp.
f_wa-type = feld-gtyp.
WRITE:/ 'f_wa-type: ', f_wa-type.
INSERT f_wa INTO table screenfields.
ENDLOOP.
screenfields you declare as a table type D021S and you also have to give programid and screennumber as import parameters.
do you know how I can get the source code of dynpro modules of a screen.
or where I can find the messages in a program ?
06-05-2008 4:36 PM
Hi,
Which table stores the function code of the push buttons belonging to a Screen , not 'Menu'?
06-06-2008 3:39 AM
Actually it is in the field RES1 of table SCREENFIELDS.
It seems this data is not stored in DB tables but you can get it through calls to the kernel. rather complicated. I have worked it out through following backwards the source code logic.
06-06-2008 4:08 AM
Hi Hari,
Please check these Tables
TSE02 ---> ABAP/4 Editor user commands
TSE05 ---> ABAP/4 Editor insert commands
In each PAI event, the function code, as long as it is not empty, is placed in the system field SYST-UCOMM (SY-UCOMM) and assigned to the OK_CODE field. Empty function codes are placed in neither the SY-UCOMM field nor the OK_CODE field. The function code of a pushbutton is empty if you have not entered it in the corresponding attribute in the Screen Painter. Before you can work with the OK_CODE field, you must assign a name to it in the Screen Painter
Best regards,
raam
06-06-2008 3:57 AM
06-27-2008 12:20 AM
Hi Hari haran,
My earlier reply to ur another question for the same issue solved your problem, That is use RS_IMPORT_DYNPRO to get complete screen information.
Hence you can close this thread also.
Regards,
Naveen Veshala