2013 May 30 1:57 PM
Hi all,
can we assign multiple default values for RFC's to import parameter.
Regards,
Hemanth Reddy.
2013 May 30 3:29 PM
2013 May 30 2:29 PM
You can only set one default value to one parameter.
The default value is what will be put in the parameter if a value is not supplied in the call.
For your purposes, what is your intent in having multiple values? Maybe there is another way.
Neal
2013 May 30 2:55 PM
please elaborate your query.
otherwise for Import parameters we can have only 1 default value.
Thanks
2013 May 30 3:29 PM
2013 May 31 6:25 AM
HI Giuseppi,
Is thai any way to assign,for example by using 'OR' or 'AND' conditions.
Regards,
Hemanth.
2013 May 31 12:36 PM
An RFC can take a table parameter. The table can be a range. Ranges can be used in an "IN".
Would that help?
Neal
2013 Jun 03 10:52 AM
You cannot put multiple values in an IMPORT/EXPORT parameter, so default value can only have one value, even if it is internally an internal table. We don't manage FM like transactions SELECTION-SCREEN.
Else you could define your import parameter as an internal table (ddic internal table type) and in the code use something like
IF it_inttab IS INITIAL.
APPEND value1 to lt_inttab.
APPEND value2 to lt_inttab.
ELSE.
lt_inttab = it_inttab.
ENDIF.
And use lt_inttab in the fllowing code so your FM would perfrom like it had a default value for an internal table ?
Regards,
Raymond
2013 Jun 03 11:19 AM
Hi ,
No it is not possible, default can be set as single value and not multiple.
Regards,
Vinodkumar.
2013 May 31 11:25 AM
There can be only one default value for each importing parameters. If you want the default value to be set based on different conditions you can program the same.
Please elaborate if you need more help
2013 Jun 03 1:23 PM
Hi Hemant,
It is not possible to set assign multiple default values for RFC's to import parameter. There can be only one default value for import parameter.
Regards
Pankaj
2013 Jun 03 1:32 PM
Hemanth,
You can have default values for every single input parameter in your RFC.
But for one parameter, you can have only one default value.
2013 Jun 03 2:34 PM
Hi,
Multiple default Values... bit confusing as default values can be only one that's why its default value its the value when no other is used. But looking at it are you looking at limiting the values to definite multiple values?
Cheers,
Arindam