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

SELECTION SCREEN

Former Member
0 Likes
744

HOW TO DISPLAY THE SELECTION SCREEN FIELDS

9 REPLIES 9
Read only

Former Member
0 Likes
708

Go to Menu bar.

GOTO - > Text element - > selection text.Enter the selction screen field name here.

Read only

Former Member
0 Likes
708

Hi Srinivas,

This is how you display your selection fields...

SELECT-OPTIONS: S_WERKS FOR MARC-WERKS,

S_MATNR FOR MARA-MATNR.

Read only

Former Member
0 Likes
708

Means

Tell ur exact requirement

Read only

Former Member
0 Likes
708

When you use the SELECT-OPTIONS and the PARAMETERS key words the fields will be displayed on the selection screen.

If you want to toggle between the visible / invisible optio then you have loop at screen ..

LOOP AT SCREEN.

IF SCREEN-GROUP1 = 'XXX'.

SCREEN-INVISBLE = 1.

ELSE

SCREEN-INVISIBLE = 0.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

Regards,

Ravi

Note : Please mark all the helpful answers

Read only

Former Member
0 Likes
708

Use Write statements.

for eg if you have the following paramters/select options

parameters : p_matnr like mara-matnr,

p_matkl like mara-matkl.

select-options : s_werks like t001-werks.

end-of-selection.

write : p_matnr, p_matkl, s_werks-low, s_werks-high.

Read only

Former Member
0 Likes
708

Hi Srinivas,

<b>

Are you looking for F4 help for selection params,if so..

copy the code and chk.

</b>

tables: t001.

data: begin of it001 occurs 0,

bukrs type t001-bukrs,

butxt type t001-butxt,

ort01 type t001-ort01,

land1 type t001-land1,

end of it001.

select-options s_bukrs for t001-bukrs.

initialization.

select bukrs butxt ort01 land1 into table it001 from t001

where land1 = 'US'.

sort it001 ascending by bukrs.

delete adjacent duplicates from it001 comparing bukrs.

at selection-screen on value-request for s_bukrs-low.

call function 'F4IF_INT_TABLE_VALUE_REQUEST'

exporting

retfield = 'BUKRS'

dynprofield = 'S_BUKRS'

dynpprog = sy-cprog

dynpnr = sy-dynnr

value_org = 'S'

tables

value_tab = it001.

start-of-selection.

Rgds,

Jothi.

Mark useful ANSWERS.

Read only

Former Member
0 Likes
708

Hi srinivsa,

try this:

...

*

DATA: BEGIN OF SC OCCURS 0.

INCLUDE STRUCTURE SCREEN.

DATA: END OF SC.

*

AT SELECTION-SCREEN OUTPUT.

*

LOOP AT SCREEN.

SC = SCREEN. APPEND SC.

ENDLOOP.

*

START-OF-SELECTION.

*

LOOP AT SC. WRITE: / SC. ENDLOOP.

...

Regards, Dieter

Read only

Former Member
0 Likes
708

Hai Srinivasa

check the bellow Code

LOOP AT SCREEN.

IF SCREEN-GROUP1 = 'ABC'.

SCREEN-INVISBLE = 1.

ELSE

SCREEN-INVISIBLE = 0.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

Thanks & regards

Sreeni

Read only

Former Member
0 Likes
708

Hi,

Please refer to the following piece of code :-

*******************************************************

  • SELECTION SCREEN CREATION *

*******************************************************

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

SELECT-OPTIONS: s_num FOR t_ebeln."Purchase order number.

PARAMTERS : p_date type sy-datum."Sytem Date.

SELECTION-SCREEN END OF BLOCK blck1.

The above code will create a selection-screen with two input fileds.One will be a selecti option and the other will be a parameter.Bothe the fields will appear in a separate block,which will appear as a white patch in the screen.In the text-001 assign a siutable title.

In order to assign a TEXT-ELEMENT ,use the following navigation(In the menu-bar)

Goto->Text Element->Text symbol.

Cheers,

Anirban.