Application Development 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: 

To fill selection screen parameter with user's parameter id

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

SELECT-OPTIONS: SO_WERKS FOR T001-WERKS MEMORY ID WRK.

Max

6 REPLIES 6

Former Member
0 Kudos

In the INITILIZATION, use the GET PARAMETER statement and fill the parameter.

Regards,

Ravi

Former Member
0 Kudos

Hi

SELECT-OPTIONS: SO_WERKS FOR T001-WERKS MEMORY ID WRK.

Max

Former Member
0 Kudos

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

Former Member
0 Kudos

Hey

SELECT-OPTIONS: WERKS FOR T001-WERKS MEMORY ID WRK

-Kiran

Former Member
0 Kudos

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.

Former Member
0 Kudos

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