‎2008 Oct 21 1:15 PM
hi,
why we cant use data type in place of field in select-options.if we use what will happen?
shweta
Edited by: shweta gupta on Oct 21, 2008 2:15 PM
‎2008 Oct 21 1:16 PM
hi,
why you cant use data type in place of field in select-options.and see what will happen?
amit
Edited by: Amit Gujargoud on Oct 21, 2008 2:15 PM
‎2008 Oct 21 1:18 PM
Hi Amit,
Why cant we declare the Select-options as:
select-options:
s_arbpl for arbpl.Thanks & Regards,
Navneeth K.
‎2008 Oct 21 1:26 PM
>
> Hi Amit,
>
> Why cant we declare the Select-options as:
>
>
select-options: > s_arbpl for arbpl.>
> Thanks & Regards,
> Navneeth K.
We can use:
data:arbpl type arbpl."should be there since you are using Data element.
select-options:
s_arbpl for arbpl.
‎2008 Oct 21 1:17 PM
Hi,
It should be a flat strcuture, type is not that kind.
Better to test.
Thanks,
Sriram POnna.
‎2008 Oct 21 1:20 PM
Hello,
We cannot use the datatype directly to the select-option.
But indirectly we can use it.
Example
DATA: y_v_message TYPE char1024.
SELECT-OPTIONS: s_matnr FOR y_v_message.
SELECT-OPTIONS: s_matnr FOR char1024. Error.
‎2008 Oct 21 1:23 PM
‎2008 Oct 21 1:24 PM
Mukesh, can i get some inputs why cant it be declared in this way, when the parameters can be declared using a data element.
‎2008 Oct 21 1:32 PM
‎2008 Oct 21 1:28 PM
Hi,
We can declare data types in SELECT-OPTIONS
DATA name(80) TYPE c.
SELECT-OPTIONS s_name FOR (name).
Just Refer SAP Help on SELECTION-OPTIONS
Regards
Bala Krishna