on 2020 Mar 18 7:53 AM
i have executable program.
mycode.
START-OF-SELECTION.
PERFORM f_check USING lv_flag.
IF lv_flag IS NOT INITIAL.
MESSAGE 'Can''t Print' TYPE 'E'.
CALL SCREEN 1000.
ELSE.
PERFORM f_process_data.
PERFORM f_show_smartforms.
ENDIF.
after i run. screen stuck in blank like below.
I want back to first screen.but it's not work.
i hv tried CALL SCREEN 1000, CALL SCREEN 0, SUBMIT, but still stuck in blank.
Request clarification before answering.
Hi saddam.id
You can use the following code:
START-OF-SELECTION.
PERFORM f_check USING lv_flag.
IF lv_flag IS NOT INITIAL.
MESSAGE 'Can''t Print' TYPE 'S' DISPLAY LIKE 'E'.
RETURN.
ELSE.
PERFORM f_process_data.
PERFORM f_show_smartforms.
ENDIF.
Best regards
Dominik Tylczynski
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
🙂 thnks sir. done.
1. MESSAGE TYPE 'E' will exit your report. CALL SCREEN is not even reached!
Use option 'DISPLAY LIKE' with statement MESSAGE to have different behavior but display it with same severity but not exiting your program logic:
MESSAGE 'Can''t Print' TYPE 'I' DISPLAY LIKE 'E'.
2. Depending on your defined screens and report coding, you might not even have to use the 'CALL SCREEN 1000' statement (In general Screen 1000 is the default screen when using an executable report, so imho, you shouldnt have to call screen 1000 because you are in screen 1000 (but it depends on your entire coding and report definitions).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
The error message shows : cannot print
Please debug in your f_show_smartforms.
Also, did you handle - BACK - usercommand in your GUI_STATUS ?
Regards,
Venkat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
did you try LEAVE TO SCREEN 0 ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
30 | |
10 | |
8 | |
8 | |
7 | |
7 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.