‎2006 Jun 26 5:09 PM
Hi,
is it possible to assign fields of an internal table like below
ftpost-fval = t_alv[1]-netwr
without doing a read in working area?
Thanks
‎2006 Jun 26 5:09 PM
‎2006 Jun 26 5:09 PM
‎2006 Jun 26 5:11 PM
‎2006 Jun 26 5:12 PM
‎2006 Jun 26 5:21 PM
Hi Sims,
you have to read the table into a workarea of the same structure like.
types: begin of ty_tab,
vbeln like vbak-vbeln,
vgbel like vbak-vgbel,
end of ty_tab.
data: i_tab type standard table of ty_tab.
..
..
Data: wa_tab type ty_tab
read table i_tab index 1 into wa_tab.
now wa_tab-vbeln and wa_tab-vgbel will have the values of the 1st row of the internal table i_tab.
Hope this sovles ur issue.
Regards,
Tushar
‎2006 Jun 26 5:32 PM
‎2006 Jun 26 5:10 PM
hi,
this is not possible
this is not correct syntax in abap
Regards,
Naveen
‎2006 Jun 26 5:10 PM
Hi Sims,
Its not possible by specifying indexes with work areas. You should need to write READ statement with specifying index to get value.
READ ITAB INDEX 1 TRANSPORTING FIELDS ITAB-NETWR.
Thanks,
Vinay
‎2006 Jun 26 5:45 PM
‎2006 Jun 26 5:53 PM
hi,
you should first read your table using READ/LOOP statement before performing any validation to the internal table contents.
i would advice you to read the corresponding document in the knowledge pool http://help.sap.com
Cheers,
Abdul Hakim