‎2008 May 06 5:43 AM
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..
‎2008 May 06 5:47 AM
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.
‎2008 May 06 5:50 AM
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
‎2008 May 06 5:57 AM
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
‎2008 May 06 6:14 AM
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