on 04-19-2011 2:16 PM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.