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 design

Former Member
0 Likes
490

dear all,

i need to design a selection screen with two parameter fields,

sales oredr and nitification

if i give a input to any one of the entries,the report has to display the output,it should be as parameters option but not the radiobuttons.

let me know the code for this..

4 REPLIES 4
Read only

Former Member
0 Likes
451

Hi,,

User action should be there after giving the input to the parameter. with out that it will work? i don't think so....

Regards,

madan.

Read only

saranwin
Contributor
0 Likes
451

Hi,

U try this code,

SELECTION-SCREEN: BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.

PARAMETERS: P_BUKRS LIKE YFIIN_TRSY_GAIN-BUKRS OBLIGATORY,

P_ANNEE LIKE YFIIN_TRSY_GAIN-ANNEE OBLIGATORY,

SELECTION-SCREEN: END OF BLOCK B2.

IF P_BUKRS IS NOT INITIAL.

SELECT * FROM EKKO INTO TABLE I_TAB WHERE BUKRS EQ P_BUKRS.

ELSEIF.

SELECT * FROM EKKO INTO TABLE I_TAB WHERE BUKRS EQ P_ANNEE.

ENDIF.

Regards,

Saran

Read only

Former Member
0 Likes
451

Hi Naresh,

Parameters : P_VBELN like vbak-vbeln,

P_qmnum like vbak-qmnum.

Declre like that and use in u r select statement in where clause.

Regards,

Narasimha

Read only

Former Member
0 Likes
451

hi,

1.define the parameters. let us say P1, P2;

2. No need to write any code under the event "At selection screen output" as we are not changing any screen attributes.

3. Under the event Start of selection

if P1 is not initial

select query

endif.

if P2 is not initial.

select query

endif.

Reward if helpful

Rgds

Umakanth