Filling the Internal Sort Fields
Use
To fill the ten internal sort fields in the sort record, use the SAPscript statement PERFORM. Make sure to place the statement into the default text element of the main window before outputting any text. Only very few statements such as DEFINE may precede the PERFORM statement.
Pass the up to ten sort fields as USING parameters to the subroutine RDI_FILL_INTERNAL_SORTFIELDS in program RSTXSORT. Example:
/: DEFINE &SORT01& = 'SAP'
/: DEFINE &SORT02& = 'FI'
/: PERFORM RDI_FILL_INTERNAL_SORTFIELDS IN PROGRAM RSTXSORT
/: USING &SORT01&
/: USING &SORT02&
/: ENDPERFORM
This program fragment enters the values 'SAP' and 'FI' into the sort fields. Each sort field can be up to 32 characters long.