‎2006 Aug 04 4:42 PM
hi experts
my code is as follows
if I_KNA1-NAME1 CA ','.
replace ',' with ' ' into I_OUTPUT-NAME1.
else.
I_OUTPUT-NAME1 = I_KNA1-NAME1.
endif.
here i_output is internal table.
I_OUTPUT-NAME1 is not filled up. could you please tell me here the replace declaration is correct?
regards
priya
‎2006 Aug 04 4:44 PM
Hi,
replace ',' with ' ' in I_kna1-NAME1.
I_OUTPUT-NAME1 = I_kna1-NAME1.
regards,
keerthi.
‎2006 Aug 04 4:44 PM
Hi,
replace ',' with ' ' in I_kna1-NAME1.
I_OUTPUT-NAME1 = I_kna1-NAME1.
regards,
keerthi.
‎2006 Aug 04 4:48 PM
‎2006 Aug 04 4:51 PM
HI,
<b>REPLACE <str1> WITH <str2> INTO <c> [LENGTH <l>].</b>
DATA: STR1(1) VALUE ','.
if I_KNA1-NAME1 CA STR1.
replace STR1 with SPACE into I_OUTPUT-NAME1.
else.
I_OUTPUT-NAME1 = I_KNA1-NAME1.
endif.
YOu can use the Translate command insted of this REPALCE command, just write like TRANSLATE I_OUTPUT-NAME1 USING ','.
Hope this helps
Thanks
Sudheer