‎2007 Dec 06 11:45 AM
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
‎2007 Dec 06 11:51 AM
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.
‎2007 Dec 06 12:00 PM
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.
‎2007 Dec 06 12:00 PM
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
‎2007 Dec 06 12:07 PM
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.
‎2011 Dec 30 5:42 AM