Application Development and Automation 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: 
Read only

Exctension button missing in Subscreen select-option

Former Member
0 Likes
1,255

Hi Friends ,

I have a subscreen with one select-option variable in it.But when this subscreen is loaded in main screen the extension button of select-option disappears automatically.What could be the reason ? I have not used 'NO-EXTENSION' option in the code.

Thanks& Regards ,

Joby

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,173

hi,

what is sub screen area width?

9 REPLIES 9
Read only

Former Member
0 Likes
1,173

Check this thread and correct the code accordingly.

Read only

Former Member
0 Likes
1,173

Hi,

there is no space to display extension button. increase size for sub screen area in main screen.

Read only

0 Likes
1,173

I can see enough space after high value input box.

Regards ,

Joby

Read only

0 Likes
1,173

then post your code once.

Read only

0 Likes
1,173

Hi ,

Here is the code ,

SELECTION-SCREEN BEGIN OF SCREEN 1501 AS SUBSCREEN.

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.

SELECT-OPTIONS: o_cocode FOR t001-bukrs .

SELECTION-SCREEN END OF BLOCK b2.

SELECTION-SCREEN END OF SCREEN 1501.

Regards ,

Joby

Read only

0 Likes
1,173
TABLES: t001.


SELECTION-SCREEN BEGIN OF SCREEN 1501 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.

SELECT-OPTIONS: o_cocode FOR t001-bukrs .

SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN END OF SCREEN 1501.


START-OF-SELECTION.

  CALL SCREEN 100.

*----------------------------------------------------------------------*
*  MODULE status_0100 OUTPUT
*----------------------------------------------------------------------*
MODULE status_0100 OUTPUT.
*  SET PF-STATUS 'xxxxxxxx'.
*  SET TITLEBAR 'xxx'.

ENDMODULE.                    "status_0100 OUTPUT

*----------------------------------------------------------------------*
*  MODULE user_command_0100 INPUT
*----------------------------------------------------------------------*
MODULE user_command_0100 INPUT.

ENDMODULE.                    "user_command_0100 INPUT

and flow logic code

PROCESS BEFORE OUTPUT.

  MODULE status_0100.
  CALL SUBSCREEN sub INCLUDING sy-repid '1501'.

PROCESS AFTER INPUT.
  CALL SUBSCREEN sub .
  MODULE user_command_0100.

in the screen i placed a subscreen area , and named it SUB

it is working fine for me. some thing wrong with your approach. try from the scratch and see.

Read only

0 Likes
1,173

TRY THIS

SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.

PARAMETERS: p1 TYPE c LENGTH 10,

p2 TYPE c LENGTH 10,

p3 TYPE c LENGTH 10.

SELECTION-SCREEN END OF SCREEN 100.

SELECTION-SCREEN BEGIN OF SCREEN 200 AS SUBSCREEN.

PARAMETERS: q1 TYPE c LENGTH 10,

q2 TYPE c LENGTH 10.

SELECT-OPTIONS: q3 FOR MARA-MATNR .

SELECTION-SCREEN END OF SCREEN 200.

SELECTION-SCREEN: BEGIN OF TABBED BLOCK mytab FOR 10 LINES,

TAB (20) button1 USER-COMMAND push1

DEFAULT SCREEN 100,

TAB (20) button2 USER-COMMAND push2

DEFAULT SCREEN 200,

END OF BLOCK mytab.

INITIALIZATION.

button1 = 'Selection Screen 1'.

button2 = 'Selection Screen 2'.

Read only

Former Member
0 Likes
1,174

hi,

what is sub screen area width?

Read only

Former Member
0 Likes
1,173

It was because substition area space problem