‎2008 Dec 09 5:56 AM
My internal table has 4 columns as A,B,C and D. Out of that in Column C i want to replace all the Zeros as '1'.
‎2008 Dec 09 6:16 AM
DATA itab TYPE TABLE OF string.
APPEND 'Beer - 3 DM' TO itab.
APPEND 'Pizza - 8 DM' TO itab.
REPLACE ALL OCCURRENCES OF REGEX '\b(DM)\b'
IN TABLE itab WITH 'EUR'
RESPECTING CASE.
‎2008 Dec 09 6:16 AM
hi,
use the same logic
[https://forums.sdn.sap.com/click.jspa?searchID=19679062&messageID=6276382]
‎2008 Dec 09 8:40 AM
hi,
try this
wa-c = 1.
modify itab from wa transport c where c = 0.
Command will update colunm c for where c value is zero.
‎2008 Dec 09 9:13 AM
HI try this,
loop at itab into wa.
REPLACE ALL OCCURRENCES OF '0' IN wa-c WITH '1'.
endloop.
regards,
Mr.A