07-04-2006 10:26 AM
Hi,
I need to display PLANT on the selection screen of a report as SELECT-OPTIONS.
When launching the transaction for the report, the program must fill the PLANT by default with the user's own parameter id (WRK) .
How can it be done?
Regards
Nishant
07-04-2006 10:28 AM
07-04-2006 10:28 AM
In the INITILIZATION, use the GET PARAMETER statement and fill the parameter.
Regards,
Ravi
07-04-2006 10:28 AM
07-04-2006 10:30 AM
Hello,
u can use this code.
select-options: s_plant for marc-werks MEMORY ID 'WRK'
If u want to fill both the low and high value.
in the at selection-screen output event
fill the s_PALNT range table.
Don't forget to award points.
Regards,
Vasanth
07-04-2006 10:30 AM
07-04-2006 10:33 AM
HI nishant,
in INITIALIZATION EVENT.
1. first get the parameter id value
in some variable of type plant.
(eg p1)
2. then (suppose the select option name is myplant)
MYPLANT-SIGN = 'I'.
MYPLANT-OPTION = 'EQ'.
MYPLANT-LOW = p1 . "<---- from above variable in point 1
APPEND MYPLANT.
regards,
amit m.
07-04-2006 10:34 AM
Hi Nishant,
SELECT-OPTIONS S_WERKS FOR MARC-WERKS.
Write the code in the INITIALIZATION event.
<b>INITIALIZATION.
GET PARAMETER ID 'WRK' FIELD S_MATNR.</b>
This will gets you the WERKS into S_MATNR.
Thanks,
Vinay