‎2008 Feb 07 4:45 PM
how do i transfer the data from field string into an internal table.
when does an field string end.
for example:
we do the loop with the field string as:
loop.
item-bukrs = fieldstring-bukrs.
endloop.
can some one help me with this.
thanks.
‎2008 Feb 07 5:22 PM
hi Sanjana
I used to do like this: If its a tab space in between the field..
DATA : BEGIN OF in_file OCCURS 0,
data(1000),
END OF in_file.
-----
LOOP AT in_file.
SPLIT in_file AT c_tab INTO
wa_citm_b-type
wa_citm_b-vbeln
wa_citm_b-posnr
wa_citm_b-uepos
APPEND wa_citm_b TO lt_citm_b.
ENDLOOP.
‎2008 Feb 07 5:46 PM
hi sadaram,
thank you for the reply, it gets me to know about split.
but i have a fields symbol, which means, it might have variable number of columns for each row, then i cannot use split right?
do u know of anyother way round.
‎2008 Feb 07 6:46 PM
Hi,
Try this
Assign component 'BUKRS' of structure <Fs> to <FS1>
itab-bukrs = <FS1>
this is for field symbols , but i am not sure for field strings