Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Select option

Former Member
0 Likes
811

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
796

Declare the data object.

with that reference write select option.

Thanks

8 REPLIES 8
Read only

Former Member
0 Likes
796

data : v_ztrf_bu type ztrf_bu. <-- declare this ..

select-options : s_bu for v_ztrf_bu OBLIGATORY.

Read only

Former Member
0 Likes
796

Hello,

Make the change like this:


DATA: SV_bu TYPE ztrf_bu .
SELECT-OPTIONS: SO_BU  FOR SV_BU.

Cheers,

Vasanth

Read only

Former Member
0 Likes
796

declare a variable of type ztrf_bu use that while declaring the select option

select-options : s_bu for ztrf_bu .

Read only

Former Member
0 Likes
797

Declare the data object.

with that reference write select option.

Thanks

Read only

0 Likes
796

SELECT-OPTIONS: S_TEST FOR ztrf_bu.

Regards,

Raghav

Read only

Former Member
0 Likes
796

hi , do this mam

DATA: SV_bu TYPE ztrf_bu .

SELECT-OPTIONS: SO_BU FOR SV_BU.

Read only

Former Member
0 Likes
796

hi , do this mam

DATA: SV_bu TYPE ztrf_bu .

SELECT-OPTIONS: SO_BU FOR SV_BU.

Read only

Former Member
0 Likes
796

hi.

take the idea.

data : article1 type matnr.

select-options : article for article1.

bye.