Skip to content →

SAP: ABAP System Fields – Part 5: Batch and Batch Input Processing Information

The following are important SAP ABAP system fields of the SYST structure of the ABAP Dictionary.

Part 5: Information on Batch and Batch Input Processing

System Field Meaning
sy-batch Set to ‘X’ in a background running program, otherwise empty.
sy-cprog In externally called procedures, the name of the calling program, otherwise the name of the current program. If an externally called procedure calls another external procedure, cprog retains the name of the first framework program and is not set to the name of the further called framework program.
sy-dbname For executable programs, the linked logical database.
sy-dyngr Screen group of the current Dynpro. Multiple Dynpros can be assigned to a common screen group in the Screen Painter, which can be used, for example, for a uniform modification of all screen images of this group.
sy-dynnr Number of the current Dynpro. During selection screen processing, the current selection screen. During list processing, the number of the carrier Dynpro. During the processing of a Subscreen Dynpro (also with TabStrips), its number.
sy-ldbpg For executable programs, the database program of the linked logical database.
sy-repid Name of the current program. In externally called procedures, the name of the framework program of the procedure. If sy-repid is passed as an actual parameter to an external procedure, the formal parameter is not set to the name of the caller but to the name of the framework program of the procedure.
sy-tcode Name of the current transaction code.
Click to rate this post!
[Total: 0 Average: 0]

Published in Computers and IT SAP

Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.