Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

why the multiple selection can't work in sub screen

Former Member
0 Kudos

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 .

4 REPLIES 4

Former Member
0 Kudos

Hiii

In main program you have dclared subscreen area.

now First of all you have to declare a selection screen in your main program

selection-screen begin of screen 1005 as subscreen.

SELECT-OPTIONS s_bukrs1 for v_bukrs. "whatever you want in selection screen

.

selection-screen end of screen 1005.

IN PBO of your main screen (not in 1005) write

call subscreen SUB1 including sy-repid '1005'.

  • where SUB1 is your subscreen area name. And remember don't touch PBO or PAI of your 1005 screen, otherwise it will give you error. Yuo can just put text in layout of 1005 screen. but don't disturb other things.

0 Kudos

Hi Arti Singh.

thanks for the answer,actually,i have created a tabstrip in the subscreen,this report will pop up a sub screen and the user can switch the tabstrip between 1095 & 1096 which i have declare the selection screen in each other,my question is when i click the tabstrip,for example 1095,i click the push botton(multiple selection) on this tab,it can't pop up a new windows to let me key in the multiple selections.hope you can understand my puzzle

Former Member
0 Kudos

does anybody can do me a favour?

0 Kudos

no answer so to close the ticket