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

Set Parameter ID

Former Member
0 Likes
1,083

Hi

Please can anyone guid me how to pass the values to a subscreen using Set Parameter.

Actual requirement is we need to dispaly a report from the output of the report

if user clicks then it takes to the transaction KSB1.For the transaction KSB1 am able set the paremeters for the initial screen but there is another subscreen in Further selections tab where we need to pass the company code.

We will be giving the company code in the selection screen.

How can i pass the value of company code from selection screen to the subscreen of KSB1 trasaction.

Please help me ..........This is an urgent Issue.

Regards

Pavan

5 REPLIES 5
Read only

Former Member
0 Likes
792

Hi,

get the parameter id of the field from the attributes screen of that field.

SET PARAMETER ID '<parameter id of that field>' FIELD <selection screen field>.

or to get the parameter id of the field go to the screen by executing the transaction and goto the F1 help of that field and in the F1 help press the technical information button.one window will appear to you.in that u can see the parameter id of that field.

rgds,

bharat.

Read only

Former Member
0 Likes
792

Hi,

set parameter id 'BUK' field 'Selection screen company code field'. which will carries the company code to ur subscreen.

Reward if needful.

Thanks,

Sreeram.

Read only

Former Member
0 Likes
792

hi ,

try this

SET PARAMETER ID 'CAC' FIELD t_comp.

SET PARAMETER ID 'KOS' FIELD '9500'.

CALL TRANSACTION 'KSB1' AND SKIP FIRST SCREEN.

SET PARAMETER ID 'CAC' FIELD space.

SET PARAMETER ID 'KOS' FIELD space.

Message was edited by:

Dhwani shah

Read only

Former Member
0 Likes
792

Hi Sir,

Plz go through code below.

Plz do reward if useful.

Thankx.

*

  • DATA: CUS(10) TYPE N,

  • SALNO(10) TYPE N,

  • MAT(10) TYPE C.

*

    • CASE USER_COMMAND.

  • IF SEL-FIELDNAME = 'MATNR'.

*

  • MAT = SEL-VALUE.

*

  • SET PARAMETER ID 'MAT' FIELD MAT.

*

  • CALL TRANSACTION 'MM04' AND SKIP FIRST SCREEN.

*

*

*

  • ENDIF.

Read only

Former Member
0 Likes
792

Solved