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

To fill selection screen parameter with user's parameter id

Former Member
0 Likes
5,588

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
Read only

Former Member
0 Likes
2,829

Hi

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

Max

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

6 REPLIES 6
Read only

Former Member
0 Likes
2,829

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

Regards,

Ravi

Read only

Former Member
0 Likes
2,830

Hi

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

Max

Read only

Former Member
0 Likes
2,829

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

Read only

Former Member
0 Likes
2,829

Hey

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

-Kiran

Read only

Former Member
0 Likes
2,829

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.

Read only

Former Member
0 Likes
2,829

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