Ansicht
Dokumentation
WAUF_POPUP_TO_DECIDE_LIST - NOTRANSL: Dialogfenster zur Auswahl aus einer Liste
Addresses (Business Address Services) ROGBILLS - Synchronize billing plansThis documentation is copyright by SAP AG.
1. Functionality
Creation of a pop-up for selection from as many options as required (up to 15). The selection list can appear in the pop-up with checkboxes or radio buttons. In the first case, several lines can be selected, the maximum number of selections allowed can be determined.
2. Examples of calls
A pop-up which displays three response options (supplier, material, account assignment) is to be generated. Selection should be possible. The third response is to be preset using selection. A maximum of two responses are to be selected. The pop-up is to appear in the centre of the screen.
DATA: BEGIN OF SPOPLIST OCCURS 15.
INCLUDE STRUCTURE SPOPLI.
DATA: END OF SPOPLIST.
DATA: ANTWORT TYPE C.
SPOPLIST-VAROPTION = 'Vendor'.
APPEND SPOPLIST.
SPOPLIST-VAROPTION = 'Material'.
APPEND SPOPLIST.
SPOPLIST-VAROPTION = 'Account assignment'.
SPOPLIST-SELFLAG = 'X'.
CALL FUNCTION 'POPUP_TO_DECIDE_LIST'
EXPORTING TITEL = 'Input help: purchase order'
TEXTLINE1 = 'Acc.to which criteria'
TEXTLINE2 = 'should orders'
TEXTLINE3 = 'be selected?'
MARK_MAX = 2
MARK_FLAG = 'X'
IMPORTING ANSWER = ANSWER
TABLES T_SPOPLI = SPOPLIST
EXCEPTIONS TOO_MUCH_ANSWERS = 1
TOO_MUCH_MARKS = 2.
IF SY-SUBRC = 2.
WRITE: 'Too many answers selected.'.
ENDIF.
IF ANSWER = 'A'.
WRITE: 'The popup was cancelled.'.
ELSE.
WRITE: 'The following possibilities were selected:'.
LOOP AT SPOPLI WHERE SELFLAG = 'X'.
WRITE /SPOPLI-VAROPTION.
ENDLOOP.
ENDIF.
Parameters
ANSWERCURSORLINE
IM_EX_LISTE
MARK_FLAG
START_COL
START_ROW
TEXTLINE1
TEXTLINE2
TEXTLINE3
TITEL
Exceptions
TABELLE_IST_LEERFunction Group
WAUFABAP Short Reference rdisp/max_wprun_time - Maximum work process run time
This documentation is copyright by SAP AG.
Length: 3263 Date: 20240523 Time: 124801 sap01-206 ( 38 ms )