Skip to Content
0
Former Member
Sep 07, 2007 at 05:30 AM

TRANSLTE command

26 Views

Dear All,

In the following, i'm trying to change and update the value of the field by replacing with some string or atleast from upper to Lower Case, but none of them are working. I'm in the 4.7 version. Pl. give me your inputs.

DATA: ITAB LIKE MARC OCCURS 0 WITH HEADER LINE.

SELECT * INTO CORRESPONDING FIELDS OF TABLE ITAB

UP TO 2 ROWS FROM MARC.

*TRANSLATE ITAB-PSTAT FROM CODE PAGE O_VAL TO CODE PAGE C_VAL.

*TRANSLATE ITAB-PSTAT USING C_VAL.

TRANSLATE ITAB-PSTAT TO LOWER CASE.

APPEND ITAB.

UPDATE MARC FROM TABLE ITAB.

LOOP AT ITAB.

WRITE:/ ITAB-PSTAT.

ENDLOOP.

with regards

Mahesh