FUNCTION zf4if_exit_zh_zemplist.
*"--------------------------------------------------------------------
*"*"Local Interface:
*" TABLES
*" SHLP_TAB TYPE SHLP_DESCT
*" RECORD_TAB STRUCTURE SEAHLPRES
*" CHANGING
*" VALUE(SHLP) TYPE SHLP_DESCR
*" VALUE(CALLCONTROL) LIKE DDSHF4CTRL STRUCTURE DDSHF4CTRL
*"--------------------------------------------------------------------
* EXIT immediately, if you do not want to handle this step
IF callcontrol-step <> 'SELONE' AND
callcontrol-step <> 'SELECT' AND
" AND SO ON
callcontrol-step <> 'DISP'.
EXIT.
ENDIF.
*"----------------------------------------------------------------------
* STEP SELONE (Select one of the elementary searchhelps)
*"----------------------------------------------------------------------
* This step is only called for collective searchhelps. It may be used
* to reduce the amount of elementary searchhelps given in SHLP_TAB.
* The compound searchhelp is given in SHLP.
* If you do not change CALLCONTROL-STEP, the next step is the
* dialog, to select one of the elementary searchhelps.
* If you want to skip this dialog, you have to return the selected
* elementary searchhelp in SHLP and to change CALLCONTROL-STEP to
* either to 'PRESEL' or to 'SELECT'.
IF callcontrol-step = 'SELONE'.
* PERFORM SELONE .........
EXIT.
ENDIF.
*"----------------------------------------------------------------------
* STEP PRESEL (Enter selection conditions)
*"----------------------------------------------------------------------
* This step allows you, to influence the selection conditions either
* before they are displayed or in order to skip the dialog completely.
* If you want to skip the dialog, you should change CALLCONTROL-STEP
* to 'SELECT'.
* Normaly only SHLP-SELOPT should be changed in this step.
IF callcontrol-step = 'PRESEL'.
* PERFORM PRESEL ..........
EXIT.
ENDIF.
*"----------------------------------------------------------------------
* STEP SELECT (Select values)
*"----------------------------------------------------------------------
IF callcontrol-step = 'SELECT'.
SELECT *
FROM zemplist
WHERE depcd EQ 'D002'
INTO TABLE @DATA(lt_zemplist).
CALL FUNCTION 'F4UT_RESULTS_MAP'
EXPORTING
source_structure = 'ZEMPLIST'
apply_restrictions = ' '
TABLES
shlp_tab = shlp_tab
record_tab = record_tab
source_tab = lt_zemplist
CHANGING
shlp = shlp
callcontrol = callcontrol
EXCEPTIONS
illegal_structure = 1
OTHERS = 2.
IF record_tab[] IS NOT INITIAL.
callcontrol-step = 'DISP'.
ENDIF.
ENDIF.
*"----------------------------------------------------------------------
* STEP DISP (Display values)
*"----------------------------------------------------------------------
* This step is called, before the selected data is displayed.
* You can e.g. modify or reduce the data in RECORD_TAB
* according to the users authority.
* If you want to get the standard display dialog afterwards, you
* should not change CALLCONTROL-STEP.
* If you want to overtake the dialog on you own, you must return
* the following values in CALLCONTROL-STEP:
* - "RETURN" if one line was selected. The selected line must be
* the only record left in RECORD_TAB. The corresponding fields of
* this line are entered into the screen.
* - "EXIT" if the values request should be aborted
* - "PRESEL" if you want to return to the selection dialog
* Standard function modules F4UT_PARAMETER_VALUE_GET and
* F4UT_PARAMETER_RESULTS_PUT may be very helpfull in this step.
IF callcontrol-step = 'DISP'.
EXIT.
ENDIF.
ENDFUNCTION.
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
143 | REPORT Z12_17. | 전통주막 | 2024.10.30 | 1 |
142 | REPORT Z12_16. | 전통주막 | 2024.10.30 | 0 |
141 | REPORT Z12_15. | 전통주막 | 2024.10.30 | 0 |
140 | REPORT Z12_14. | 전통주막 | 2024.10.30 | 0 |
139 | REPORT Z12_13 . | 전통주막 | 2024.10.30 | 0 |
138 | REPORT Z12_12. | 전통주막 | 2024.10.30 | 1 |
137 | REPORT z12_11. | 전통주막 | 2024.10.30 | 0 |
136 | REPORT z12_10. | 전통주막 | 2024.10.30 | 0 |
135 | REPORT z12_09. | 전통주막 | 2024.10.30 | 0 |
134 | REPORT z12_08. | 전통주막 | 2024.10.30 | 1 |
133 | REPORT z12_07. | 전통주막 | 2024.10.30 | 1 |
132 | REPORT z12_06. | 전통주막 | 2024.10.30 | 1 |
131 | REPORT z12_05. | 전통주막 | 2024.10.30 | 2 |
130 | REPORT z12_04. | 전통주막 | 2024.10.30 | 1 |
129 | REPORT z12_03. | 전통주막 | 2024.10.30 | 1 |
128 | REPORT z12_02. | 전통주막 | 2024.10.30 | 1 |
127 | REPORT z12_01. | 전통주막 | 2024.10.30 | 1 |
126 | REPORT z09_02. | 전통주막 | 2024.10.29 | 0 |
125 |
PROGRAM z09_01.
![]() | 전통주막 | 2024.10.29 | 2 |
» | ZF4IF_EXIT_ZH_ZEMPLIST [09장 Search Help Exit 예제 2] | 전통주막 | 2024.10.29 | 0 |