cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to Hide sub screen elements (select-options) in module pool based on the value in a list box

ABAPDEV
Explorer
0 Likes
1,247

I've created three subscreens for select-options input. I want to hide these subscreen options if I select a value in the main screen field. I debugged the program, and it goes to the PBO block of the main screen. The screen does not loop to the subscreen; it only calls the subscreen area in the PAI block. Can I hide these fields using SSCRFIELDS in dialog programming?

Code snippet.
SELECTION-SCREEN BEGIN OF SCREEN 9004 as SUBSCREEN.
SELECT-OPTIONSs_po for lv_po.
SELECTION-SCREEN END OF SCREEN 9004.
*
SELECTION-SCREEN BEGIN OF SCREEN 9005 as SUBSCREEN.
SELECT-OPTIONSs_dc for lv_dec.
SELECTION-SCREEN END OF SCREEN 9005.
*
SELECTION-SCREEN BEGIN OF SCREEN 9006 as SUBSCREEN.
SELECT-OPTIONSs_inv for lv_inv.
SELECTION-SCREEN END OF SCREEN 9006.

Accepted Solutions (1)

Accepted Solutions (1)

shais
Participant

AT SELECTION-SCREEN OUTPUT.

ABAPDEV
Explorer
0 Likes
Thank you It worked

Answers (1)

Answers (1)

EhsanGhasemi
Participant

in your function group create an include define your sub screen in top.

  INCLUDE lzxxxxtop.               " Global Declarations
  INCLUDE lzxxxxuxx.               " Function Modules
  INCLUDE zinclude.

 then in zinclude you can use 

AT SELECTION-SCREEN OUTPUT.
  PERFORM loop_screen.

FORM loop_screen.
.
.
.
.
ENDFORM.
ABAPDEV
Explorer
0 Likes
Yes It Worked