Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  program editing →  Dynamic Program Editing →  Screen →  Internal Statements for Editing Dynpros 

IMPORT DYNPRO

Other versions: 7.31 | 7.40 | 7.54

This statement is for internal use only. It must not be used in application programs.

Syntax


IMPORT DYNPRO h f e m ID id. 

Effect

The dynpro specified in the structure id is imported. To enable this, the structure id must contain two components for the name of the program and the ID of the dynpro in the following order:

  • A component of type PROGNAME
  • A component of type SYDYNR

The dynpro information is loaded into the structure h (dynpro header, structure D020S) and into the internal tables f (field list, structure D021S), e (flow logic, structure D022S), and m (matchcode information, structure D023S). f, e, and m, can be specified as standard tables without secondary keys.


Note

As an alternative to a structure, a character-like field (including string) can be specified for id, where the field contains the chained contents of the structure components (including trailing blanks).

System Fields

sy-subrc Meaning
0 The dynpro was imported.
4 The dynpro does not exist.


Example

Reads the attributes of dynpro "0100" of the program DEMO_DYNPRO.

DATA h TYPE d020s. 
DATA f TYPE TABLE OF d021s. 
DATA e TYPE TABLE OF d022s. 
DATA m TYPE TABLE OF d023s. 

DATA: BEGIN OF id, 
         p TYPE progname VALUE 'DEMO_DYNPRO', 
         d TYPE sydynnr  VALUE '0100', 
       END OF id. 

IMPORT DYNPRO h f e m ID id.