Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

why the multiple selection can't work in sub screen

hi experts:

when i try to use the sub-screen in the report,why the multiple selection function(SO_BCTXT) can't work normally in screen 1095:

the coding as below.will reward points if solve this issue

the main program in Subscreen:

PROCESS BEFORE OUTPUT.

  • module status_1005.

CALL SUBSCREEN area INCLUDING sy-repid lv_tab_number.

PROCESS AFTER INPUT.

MODULE cancel AT EXIT-COMMAND.

CALL SUBSCREEN area.

MODULE user_command_1005.

module user_command_1005 input.

my_ok = ok_code.

clear ok_code.

case my_ok.

when 'TAB1'.

mytabstrip-activetab = my_ok .

lv_tab_number = 1095.

when 'TAB2'.

mytabstrip-activetab = my_ok .

lv_tab_number = 1096.

when 'CRET' or 'ONLI'.

perform get_bc_set

using

so_chanb[]

changing

<fs_bcsetfield> .

leave to screen 0.

endcase.

endmodule.

in the screen 1095:

PROCESS BEFORE OUTPUT.

MODULE %_INIT_PBO_J.

MODULE %_PBO_REPORT.

MODULE %_PF_STATUS.

MODULE %_SO_BCTXT.

MODULE %_END_OF_PBO.

PROCESS AFTER INPUT.

MODULE %_INIT_PAI_J.

CHAIN.

FIELD SO_BCTXT-LOW.

FIELD SO_BCTXT-HIGH.

MODULE %_SO_BCTXT.

ENDCHAIN.

FIELD !INCBCTY1 MODULE %_INCBCTY1 .

FIELD !INCBCTY2 MODULE %_INCBCTY2 .

FIELD !INCBCTY3 MODULE %_INCBCTY3 .

FIELD !INCBACT MODULE %_INCBACT .

FIELD !INCBINAC MODULE %_INCBINAC .

FIELD !INCLMAND MODULE %_INCLMAND .

FIELD !INCLOPTI MODULE %_INCLOPTI .

CHAIN.

FIELD SO_BCTXT-LOW.

FIELD SO_BCTXT-HIGH.

FIELD INCBCTY1 .

FIELD INCBCTY2 .

FIELD INCBCTY3 .

FIELD INCBACT .

FIELD INCBINAC .

FIELD INCLMAND .

FIELD INCLOPTI .

MODULE %_BLOCK_1095001.

ENDCHAIN.

CHAIN.

FIELD SO_BCTXT-LOW.

FIELD SO_BCTXT-HIGH.

FIELD INCBCTY1 .

FIELD INCBCTY2 .

FIELD INCBCTY3 .

FIELD INCBACT .

FIELD INCBINAC .

FIELD INCLMAND .

FIELD INCLOPTI .

MODULE %_END_OF_SCREEN.

MODULE %_OK_CODE_1000.

ENDCHAIN.

in the main report

selection-screen begin of screen 1095 as subscreen.

  • enquire Data

data l_text type as4text.

selection-screen begin of block b1 with frame title text-024.

select-options :

so_bctxt for l_text .

selection-screen skip 1 .

parameters:

incbcty1 type c as checkbox default abap_true ,

incbcty2 type c as checkbox default abap_true ,

incbcty3 type c as checkbox default abap_true .

selection-screen skip 1 .

parameters:

incbact type c as checkbox default abap_true ,

incbinac type c as checkbox default abap_true .

selection-screen skip 1 .

parameters:

inclmand type c as checkbox default abap_true ,

inclopti type c as checkbox default abap_true .

selection-screen end of block b1.

selection-screen end of screen 1095 .

Former Member
Not what you were looking for? View more on this topic or Ask a question