on 07-29-2016 11:34 AM
Hi ,
In Webdynpro am using Multiple selct option , so while user enters the multiple inputs it is to be captured by the
below code:
data: lt_fields type if_wd_select_options=>tt_selection_screen_item.
loop at lt_fields ASSIGNING <ls_fields>.
case <ls_fields>-m_id.
when 'zz'.
ASSIGN <ls_fields>-mt_range_table->* to <rt_zfs>.
ENDCASE.
ENDLOOP.
All the user entered values are under the Fs <rt_zfs> (multiple select options)
now i want to move the <rt_zfs>-low field to other work area...
from that work area to z-atble i want to update...
so kindly help to move the field symbol values to other internal/ work area,
Kindly help the issue please...
Hello Swathi,
Field symbol <rt_zfs> should be type table . Then run loop for that table to a work area field symbol <rs_zfs>. try with the below code.
-----------------------------------------------------------------------
field symbols : <rv_value> type any.
loop at <rt_zfs> assign to <rs_zfs>
assign component 'LOW' of structure <rs_zfs> to <rv_value>.
if <rv_value> is assigned.
--------"write your code"--------------
endif.
endloop.
----------------------------------------------------------------------------------------------
Regards,
Vikram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nithya,
make <rt_zfs> type table.
FIELD-SYMBOLS: <rt_zfs> TYPE table.
then
ASSIGN <ls_fields>-mt_range_table->* to <rt_zfs>.
Now you can pass that value to internal table
TYPES : begin of ty_r,
i type char1,
s type char2,
low type string,
high TYPE string,
end of ty_r.
DATA ist_r type STANDARD TABLE OF ty_r.
ist_r = <rt_zfs>.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
One thing is that select options are obsolete and there is a version 2.0 simply called IF_WD_SELECT_OPTIONS_20.
But just to get the field in the type I want I do it this way:
TYPES: ty_r_project TYPE RANGE OF ps_pspid .
DATA: lr_table TYPE REF TO data.
FIELD-SYMBOLS: <fs_proj> TYPE ypcf_cl_budget_type=>ty_r_project.
" Get selection table for PROJECTS
lr_table = mr_selopts->get_range_table_of_sel_field( i_id = ypcf_cl_budget_selection=>c_sel_prj_code ).
ASSIGN lr_table->* TO <fs_proj>.
So now <fs_proj>-low and high are available. Not sure what you want to do next..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.