Get Example source ABAP code based on a different SAP table
List Processing in Release 3.0
1 WRITE and ULINE with variable position and length specifications
2 Variable format specifications with FORMAT, WRITE and MODIFY LINE
3 List backup 4 Leave list with return to the selection screen 5 SET CURSOR and GET CURSOR with addition LINE... (without FIELD)
6 Handling of EXIT in list events 7 SET PF-STATUS SPACE activates standard list status 8 Fixed list columns during list display 9 New effect of SKIP at end of page 10 New additions with WRITE [TO] for alignment 11 Help (F1) and Possible entries (F4) now also in ' LIKE' fields
12 GET CURSOR on field symbols and literals 13 System tables %_LIST ... protected against access 14 Symbols in lists 15 Hotspots in lists 16 Display of QUAN fields (WRITE addition UNIT)
ABAP_MODIFICATION_1 WRITE and ULINE with variable position and length specifications
With WRITE and ULINE, you can now use the addition 'AT' which allows dynamic position and/or length specifications.
Example ABAP Coding DATA: POS TYPE I VALUE 5, LEN TYPE I VALUE 10, F(20) VALUE 'Test output'.
WRITE AT /POS(LEN) F. ULINE AT /POS(LEN).
ABAP_MODIFICATION_2 Variable format specifications with FORMAT , WRITE and MODIFY LINE
With FORMAT, WRITE and MODIFY LINE, you can now use variables to parametrize all format specifications ( INPUT, INTENSIFIED, INVERSE, COLOR). In any of these additions, a '=' is followed by the variable.
Example ABAP Coding DATA: COL TYPE I, INT TYPE I, F(20) VALUE 'Test output'.
IF condition. INT = 1. COL = 5. ENDIF.
WRITE F COLOR = COL INTENSIFIED = INT INPUT ON. FORMAT COLOR = COL INTENSIFIED = INT.
ABAP_MODIFICATION_3 List backup
You can now save ABAP/4 lists as list objects. To save the basic list or the details list of the current application, you use the function module 'SAVE_LIST'. This function module returns the desired list as a list object to an internal table of the structure ABAPLIST. Alternatively, SUBMIT ... EXPORTING LIST TO MEMORY allows you to place the basic list of any report, rather than the display, in SAP memory and, after return from the called report, to retrieve it with the function module 'LIST_FROM_MEMORY' as a list object. You can then save the list object like any other internal table (in a database, file system, ...). For further processing, use the function modules 'WRITE_LIST' (output a list object as a list), 'DISPLAY_LIST' (output a list object in a pop-up) and any existing or planned converters (' LIST_TO_ASCI', 'LIST_TO_RTF', ...). In SAPoffice, you can save any displayed list in the private folders of the currently logged on user by choosing System >ListSave (SAPoffice). More functions are planned.
ABAP_MODIFICATION_4 Leave list with return to theselection screen