2007 Jul 09 5:19 AM
hi,
Can anybody expalian what is the meaning for the following code.please expalain me.
i_tab-werks+0(3) = 'TML'
2007 Jul 09 7:10 PM
hi,
tml(3 characters) is assignd to itab_werks.
if u wanna clearly,just change tha values.
like 0(3)
1(3)
2(3)
so u can understand clearly
2007 Jul 09 5:23 AM
hi,
if i_tab-werks+0(3) = 'TML'.
endif.
It means that if the first three characters of werks is TML of i_tab
Regards,
Santosh
2007 Jul 09 5:25 AM
hi,
i_tab-werks+0(3) = 'TML'
it means you are assigning the first threecharachters of itab-werks the value tml
2007 Jul 09 5:26 AM
2007 Jul 09 5:28 AM
Hi,
First three characters of WERKS field in I_TAB Header is being replaced with 'TML'.
Which means if I_TAB-WERKS has 'ABCD' before the statement is executed. It will be replaced with 'TMLD'.
Reward if helpful.
Regards,
Ram
2007 Jul 09 7:10 PM
hi,
tml(3 characters) is assignd to itab_werks.
if u wanna clearly,just change tha values.
like 0(3)
1(3)
2(3)
so u can understand clearly
2007 Jul 10 10:50 AM
Hi, just try to understand this program
data: begin of itab occurs 0,
t(10) value 'aman',
end of itab.
itab-t+0(3) = 'TML'.append itab.
write itab-t.
HERE THE OUTPUT WILL BE <b>TMLN........</b>
i
2007 Jul 10 3:09 PM
hi
i_tab-werks+0(3) = 'tml'.
it just indicates the position.
0 indicates the 0th char in a string of 3 char.
0th char -t
1st char -m
2nd char -l
reward if useful.