Skip to Content
avatar image
Former Member

Problem using select-options?

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Apr 19, 2011 at 01:35 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member
      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?