Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

remove separators

Former Member
0 Likes
535

hi all,

in my internal table i am getting the fields like

| 1000 IDES ( Sap - AG).. | 1,567.000 | 78667

but i want to remove the separators '|' between the fields.

any ideas how too remove the separators???.

3 REPLIES 3
Read only

Former Member
0 Likes
507

loop at itab.

split itab-data at '|' into v_field1 v_field2 v_field3.

write:/ v_field1, v_fiel2, V_field3.

endloop.

Read only

Former Member
0 Likes
507

loop at itab into wa_itab.

Translate wa_itab-field using '| '.

modify itab from wa_itab.

endloop.

Read only

Former Member
0 Likes
507

Hi,

Please use the following code.

Loop at <internal table>

SPLIT <field> at '|' into <field>

MODIFY <field>

ENDLOOP.

Regards,

Sowmya.