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

converting the comma seperator value format

Former Member
0 Likes
617

i am getting the content of a table in a internal table with comma separator value format, dynamically by using dfies table i am getting the header of the table, and displaying it in the output, now my query is that the content of the data which i am getting in a itab having only one field of type string

data : begin of itab occurs 0,

data1 type string,

end of itab.

some where they were concatenating the content of the data and storing it inthe itab, now i want the content of the itab should be displayed corresponding to there header in the output

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
572

Hi Santosh

Try using TAB as separator for data to display accordingly.

Eg: tab(1) type c value cl_abap_char_utilities=>horizontal_tab.

Kind Regards

Eswar

Hi Santosh

Try using TAB as separator for data to display accordingly.

Eg: tab(1) type c value cl_abap_char_utilities=>horizontal_tab.

Kind Regards

Eswar

3 REPLIES 3
Read only

Former Member
0 Likes
573

Hi Santosh

Try using TAB as separator for data to display accordingly.

Eg: tab(1) type c value cl_abap_char_utilities=>horizontal_tab.

Kind Regards

Eswar

Read only

Former Member
0 Likes
572

Hi Santosh ,

You can use the command SPLIT to split the string into smaller sections.

Do revert back in case you have further queries.

Regards

Arun

Read only

Former Member
0 Likes
572

Hi Santosh,

You can remove the commas from the record by using the REPLACE command as below -

LOOP AT itab.

DO.

REPLACE ',' WITH '' INTO itab-data1.

IF sy-subrc NE 0.

EXIT.

ENDIF.

ENDDO.

ENDLOOP.

Reward points if found useful...!

Cheers

Abhishek