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

help on the selection screen.....Select-options default values

Former Member
0 Likes
886

Dear Friends,

We have one requirement,i.e. In Report program i am using select-option once will execute the program ALV report will be generated.In ALV Report we have one button like 'WM DATA'.Once click the WMDATA one pop-up is displaying...In that pop-up also same select-options are there upto here it's working fine...Now my problem is on pop-up select-options i have to display by default..... which i am using on report select-options values.

Please help on the same

Thank You.

1 ACCEPTED SOLUTION
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
836

Hi Siri

Can you please provide us the detail of how you are calling the POP up..? Before calling the pop up why dont you fill the pop up fields

Nabheet

5 REPLIES 5
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
837

Hi Siri

Can you please provide us the detail of how you are calling the POP up..? Before calling the pop up why dont you fill the pop up fields

Nabheet

Read only

0 Likes
836

Hello Nabheet,

Please find the below code...

SELECT-OPTIONS:

  s_lgnum FOR lqua-lgnum MODIF ID sc1 OBLIGATORY,

  s_lgtyp FOR lqua-lgtyp MODIF ID sc1.

This data i wrote in Report...

Reg: Pop-up i created one screen.....In that screen i given subscreen area.

In program i wrote below code as below

SELECTION-SCREEN BEGIN OF SCREEN 300 AS SUBSCREEN.

SELECT-OPTIONS : s_lgnum1 FOR lqua-lgnum OBLIGATORY,

                 s_lgtyp1 FOR lqua-lgtyp OBLIGATORY.

SELECTION-SCREEN BEGIN OF BLOCK blck1 WITH FRAME TITLE text-009.

SELECT-OPTIONS:  s_kzinv for lagp-kzinv.

PARAMETERS:      pmitb LIKE rlist-pmitb.

SELECT-OPTIONS:  s_bestq FOR lqua-bestq.

PARAMETERS:      sobkz type lqua-sobkz.

Parameters:      lsonr type rl01s-lsonr.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(31) text-008 for field dauvo.

PARAMETERS:   dauvo LIKE rlist-dauvo.

SELECTION-SCREEN POSITION 58.

PARAMETERS:   daubi LIKE rlist-daubi  DEFAULT '999999'.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN END OF BLOCK blck1.

SELECTION-SCREEN END OF SCREEN 300.

Read only

0 Likes
836

Do like this. Before calling your next screen assign the select option value or just assign the value in start of selection only.

 

tables

:lqua.
SELECT-OPTIONS:

s_lgnum
FOR lqua-lgnum MODIF ID sc1 OBLIGATORY,

s_lgtyp
FOR lqua-lgtyp MODIF ID sc1.

SELECTION-
SCREEN BEGIN OF SCREEN 300 .



SELECT-OPTIONS : s_lgnum1 FOR lqua-lgnum OBLIGATORY,

s_lgtyp1
FOR lqua-lgtyp OBLIGATORY.

SELECTION-
SCREEN END OF SCREEN 300.


START-
OF-SELECTION.
s_lgnum1[] = s_lgnum[].
s_lgtyp1[] = s_lgtyp[].
call SELECTION-SCREEN 300.

Read only

0 Likes
836

Hi,

      You can fill ur popup selection screen values with the Old selection screen values before calling

  Popup.

  when the user command triggers fill New Selection values with Report selection screen values.

  then call screen..

  s_lgnum1[] = s_lgnum[].

  s_lgtyp1[]   = s_lgtyp[].

  call ur screen...

Otherwise u can declare 300 selection-screen as shown below.

select-screen INCLUDE SELECT-OPTIONS :   s_lgnum, s_lgtyp.

  If u not refresh them before calling sub screen, value carries...

Read only

Former Member
0 Likes
836

Thank You Nabheet & Raghu it's working fine.....