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

screen fields - structure D021S - import_dynpro

Former Member
0 Likes
1,135

Hi,

Function Module 'Import_dynpro' returns a table of screen fields.

I want to know when a screen field, is a input field, a output, a check box ...

Which table elements are important?


CALL FUNCTION 'IMPORT_DYNPRO'
      EXPORTING
        dylang = sy-langu
        dyname = l_repid
        dynumb = l_nr
      IMPORTING
        header = ls_d020s
      TABLES
        ftab   = lt_dy.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
908

IMPORT DYNPRO - Import a screen

Note

This statement is for internal use only.

Incompatible changes or further developments may occur at any time without warning or notice.

Basic form

IMPORT DYNPRO h f e m ID id.

Effect

Imports the screen specified in the field id. Loads the screen information into the structure h (screen header, structure D020S) and into the internal tables f (field list, structure D021S), e (flow logic, structure D022S) and m (matchcode information, structure D023S).

The Return code is set as follows:

SY-SUBRC = 0:

The screen was successfully imported.

SY-SUBRC = 4:

The screen does not exist.

/thread/1154428 [original link is broken]

Check this link

2 REPLIES 2
Read only

Former Member
0 Likes
909

IMPORT DYNPRO - Import a screen

Note

This statement is for internal use only.

Incompatible changes or further developments may occur at any time without warning or notice.

Basic form

IMPORT DYNPRO h f e m ID id.

Effect

Imports the screen specified in the field id. Loads the screen information into the structure h (screen header, structure D020S) and into the internal tables f (field list, structure D021S), e (flow logic, structure D022S) and m (matchcode information, structure D023S).

The Return code is set as follows:

SY-SUBRC = 0:

The screen was successfully imported.

SY-SUBRC = 4:

The screen does not exist.

/thread/1154428 [original link is broken]

Check this link

Read only

0 Likes
908

But my problem is an other:

I want to know which elements of structure D021S shows, if a field is a input, a output, a checkbox ... ?

I want to find out which fields of a dynpro are input fields and which are only descriptions.