‎2009 Sep 08 2:38 PM
Hi,
I have the following problem :
I have program A calling program B and need to pass a parameter. I have the following code currently :
programA :
...
data lv_dataset TYPE string
...
SUBMIT programB WITH s_con IN lt_p_con
WITH dataset = lv_dataset
.....
programB
PARAMETERS: dataset TYPE string.
....
However, i need to know what type to declare lv_dataset to as i get the error
"Wrong type passing parameters to "DATASET""
at runtime when i execute programA.
Please help as i cant see whats wrong!
‎2009 Sep 08 3:27 PM
‎2009 Sep 08 3:35 PM
Hi Samir Vora ,
Try this:
data lv_dataset TYPE SY-DSNAM
...
SUBMIT programB WITH s_con IN lt_p_con
WITH dataset = lv_dataset
.....
programB
PARAMETERS: dataset TYPE SY-DSNAM.
And i recommend changing the name of the parameter "dataset" because it is a reserved word.
Hope this information is help to you.
Regards,
José
‎2009 Sep 08 4:02 PM
Hi ,
You need to keep the datatype of parameters of report A and B same.
Also , parameters should be passed by EQ OR = and select option by using IN.
That's the basic rule.