sapdev logo background
sapdev logo sapdev logo
Comments

ABAP IMPORT DYNPRO Statement syntax, information and example SAP source code



Return to Statement index



IMPORT DYNPRO


ABAP Syntax IMPORT DYNPRO h f e m ID id.

What does it do? 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.
Latest notes: 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
0The dynpro was imported.
4The dynpro does not exist.
Example ABAP Coding 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.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




IMPORT_DIRECTORY
IMPORT_INTERNAL




comments powered by Disqus