Application Development 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: 

which table has (dynpro) screen fields attributes?

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

former_member265047
Active Participant

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

7 REPLIES 7

Former Member
0 Kudos

Check in SE12

put D02* an press F4,

U obtain this tables. I hope is helpfull

D020LINF

D020S

D020SINF

D020T

D021L

D021T

Former Member
0 Kudos

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 ?

Former Member
0 Kudos

Hi,

Which table stores the function code of the push buttons belonging to a Screen , not 'Menu'?

0 Kudos

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.

0 Kudos

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

Former Member
0 Kudos

Hi you can check the table

  • D020S (*d020t

d020s

d021t

dd30l

former_member265047
Active Participant

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