SAP LOAD ABAP Statements

Get Example source ABAP code based on a different SAP table
  


Standard SAP Help for LOAD

LOAD REPORT
ABAP Code Snippet
• LOAD REPORT ABAP_STATEMENT_INT
• PART LOAD REPORT (internal)
• INTO LOAD REPORT (internal)


ABAP Syntax LOAD REPORT prog PART part INTO itab.


What does it do? The part (specified in part) of the generated form (load) of the program prog, given in prog is loaded to the internal table itab for analysis. itab must be a standard table. Secondary keys are permitted.

The following table displays the possible content of part, its relevance, and the requested row type of itab. partMeaningRow Type 'BASE'Segment TableRBASE 'CLAS'Defined classesRCLAS 'CLFR'Load table CLFRRCLFR 'CONS'Table of constantsx 'CREF'Static addressing of classesRCREF 'COMP'Description of the components of the internal structures that are used in the programRDATA 'CONT'Processing control blocksRCONT 'DATA'Static data descriptions (see below)RDATA 'DATL'Load table DATLRDATA 'DATP'Data descriptions of the parameters and local field symbolsRDATA 'DATV'Variable data descriptions (see below)RDATA 'DDNM'Used types from ABAP DictionaryRDDNM 'EVNT'Event descriptors defined by triggering classREVNT 'EXCP'Load table EXCPREXCP 'GCIX'Load table GCIXRGCIX 'HEAD'Program headerRHEAD 'INCL'Load table INCLc, Length 40 'INIT'Initial values of the local datax 'INTC'Load table INTCRINTC 'INTD'Used interfacesRINTD 'INTI'Implemented interfacesRINTI 'INTR'Load table INTRRINTR 'IREF'Additional information for addressing using interface reference variables RIREF 'LITL'Literal tablex 'LITX'Index table of literalsRLITX 'LREF'Row referenceRLREF 'OREF'Additional information for addressing using object referencesROREF 'PBAG'Additional descriptions of the data types used in the programRPBAG 'SELC'Description of the selection screen variablesRSELC 'SREF'Load table SREFRSREF 'SSCR'Description of the selection screenRSSCR 'STCO'Load table STCOx 'STOR'Initial values of the global datax 'STIX'Load table SREFRSTIX 'SYMB'Symbol tableRSYMB 'SYMBDATA'Load table SYMBDATARSYMBDATA 'SYMBEVNT'Load table SYMBEVNTRSYEV 'SYMBINTFEVNT'Load table SYMBINTFEVNTRSYIEV 'SYMBINTFMETH'Load table SYMBINTFMETHRSYIME 'SYMBMETH'Load table SYMBMETHRSYME 'SYMBMETHEXCP'Load table SYMBMETHEXCPRSYME 'SYMBMETHPARM'Load table SYMBMETHPARMRSYME 'TPLR'Load table TPLRRTPLR 'TRIG'Event or time control blocksRTRIG 'TXID'Index of text elements (assignment of text keys to data control blocks)RTXID 'TYPE'Description of the data typesRTYPE 'VTAB'Offsets for all methods (classes, event handlers, instances, interfaces) RVTAB

Comment on DATA and DATV: To find the data description that belongs to a data index i, proceed as follows:
0 <(><<)>= i <(><<)> 2^14 ==> i+1 index in data_itab
2^14 <(><<)>= i <(><<)> 2^15 ==> i+1 - 2^14 index in datv_itab
2^15 <(><<)>= i <(><<)> 2^16 ==> i+1 - 2^15 parameter index


(2^14 = 16384, 2^15 = 32768)

Comment on row type x: If the row type x is specified for the internal table, then the width of the internal table determines the line break.

System Fields sy-subrcMeaning
0The load of the program prog exists and is up-to-date. The internal table itab was filled.
4The load of the program prog does not exist.
8The load of the program prog exists, but is not up-to-date. In special cases, this sy-subrc can also mean that the program load has been destroyed. This can be fixed by generating again. In PART 'LREF', sy-subrc = 8 means that the row reference table does not fit the program. In PART 'CONT', the reference part of the internal table is not filled.
ABAP Code Snippet



Runtime Exceptions
Non-catchable Exceptions
Reason for error:
An invalid description has been specified in PART .
Runtime error:
LOAD_REPORT_PART_NOT_FOUND
Reason for error:
The specified internal table is too short.
Runtime error:
LOAD_REPORT_TABLE_TOO_SHORT
ABAP Code Snippet

Return to menu