cancel
Showing results for 
Search instead for 
Did you mean: 

Problem using select-options?

Former Member
0 Kudos

Hi all,

I am using select-options, in this 3 are selectoptions and 1 is normal.

i am getting select-option value using..

*cust code

rt_KUNNR = wd_this->m_sel_opt->get_range_table_of_sel_field(

i_id = 'KUNNR' ).

but which method i ahve to use to get normal which is not of select-options.

i am doing like this...

*cust code

rt_YEAR = wd_this->m_sel_opt->get_range_table_of_sel_field(

i_id = 'GJAHR'

). // I think this method is wrong place i used.

assign rt_YEAR->* to <fs_GJAHR>.

move <fs_GJAHR> to F_YEAR.

*cust code

rt_KUNNR = wd_this->m_sel_opt->get_range_table_of_sel_field(

i_id = 'KUNNR' ).

assign rt_KUNNR->* to <fs_kunnr>.

clear S_KUNNR.

loop at <fs_kunnr> into S_KUNNR.

wa_kunnr-sign = S_KUNNR-sign.

wa_kunnr-option = S_KUNNR-option.

wa_kunnr-low = S_KUNNR-low.

wa_kunnr-high = S_KUNNR-high.

append wa_kunnr to it_kunnr.

endloop.

But it is giving dump.. Field symbol has not yet been assigned. at kunnr. but kunnar is select-option.

Any helps...

Thanks

venkat.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Have you checked in debugging, where rt_kunnr table is filled or not...

I guess the range table is NULL..please check this out

in the ADD_SELECTION_FIELD what is the ID that you have given.

Former Member
0 Kudos

Hi Lekha

thanks for your reply,

i tried this...

data : rt_YEAR TYPE REF TO data,

<fs_gjahr> TYPE table,

fs_year TYPE TABLE OF FYAC. // Fiscal year only year(4).

call method wd_this->m_sel_opt->GET_SELECTION_FIELD(

EXPORTING

i_id = 'GJAHR'

IMPORTING

ET_RESULT = rt_YEAR ).

assign rt_YEAR->* to <fs_gjahr>.

move <fs_gjahr> to fs_year.

rt_year is still initial, and getting dum field symbol is not assigned. any helps???

Thanks,

Venkat.

former_member184578
Active Contributor
0 Kudos

Hi,

check this article., [Working with select options in WDA|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c09fec07-0dab-2a10-dbbe-c9a26bdff03e?quicklink=index&overridelayout=true]

refer the step by step process., then u can solve the issue by urself.,

hope this helps,

Thanks & Regards

Kiran

Former Member
0 Kudos

Hi Kiran ,

Thanks for your reply,

I am using FM, so i need to pass these selection values to FM. all select option fields are working fine, Fiscal year that is not select option, that value is not getting? any idea??

Thanks,

Venkat.

Former Member
0 Kudos
Fiscal year that is not select option, that value is not getting? any idea??

As the fiscal is not a select option, you will not get a range table right..........

Is it an Input field or what?