‎2008 Mar 11 9:28 AM
Hi all,
In my report program i have 1 parameter at selection screen as
PARAMETERS: p_bu type ztrf_bu OBLIGATORY. "Business Unit
where ztrf_bu is a data element type CHAR(2) and have some values.
Now requirement get change and they want select-option instead of parameter.
Now how should i declare the select-option for this business unit because i do not have any table here.I have only data element with me.
Kindly help me out.
‎2008 Mar 11 9:38 AM
Declare the data object.
with that reference write select option.
Thanks
‎2008 Mar 11 9:30 AM
data : v_ztrf_bu type ztrf_bu. <-- declare this ..
select-options : s_bu for v_ztrf_bu OBLIGATORY.
‎2008 Mar 11 9:31 AM
Hello,
Make the change like this:
DATA: SV_bu TYPE ztrf_bu .
SELECT-OPTIONS: SO_BU FOR SV_BU.
Cheers,
Vasanth
‎2008 Mar 11 9:32 AM
declare a variable of type ztrf_bu use that while declaring the select option
select-options : s_bu for ztrf_bu .
‎2008 Mar 11 9:38 AM
Declare the data object.
with that reference write select option.
Thanks
‎2008 Mar 11 9:43 AM
‎2008 Mar 11 9:43 AM
hi , do this mam
DATA: SV_bu TYPE ztrf_bu .
SELECT-OPTIONS: SO_BU FOR SV_BU.
‎2008 Mar 11 9:44 AM
hi , do this mam
DATA: SV_bu TYPE ztrf_bu .
SELECT-OPTIONS: SO_BU FOR SV_BU.
‎2008 Mar 11 10:15 AM
hi.
take the idea.
data : article1 type matnr.
select-options : article for article1.
bye.