Application Development 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: 

How to set the text (wrap text) in two or three lines in column for excel using OLE SAP ABAP ?

former_member396057
Participant
0 Kudos

Hi All,

I am downloading the data into excel using OLE SAP ABAP report program.

I have 5 columns.There is one column which has long name.I want to wrap the text(in two or three lines text ) in this particular column for excel using OLE SAP ABAP.

Attached screenshots for reference.current-format.pngrequired-format.png

Regards,

Shabbir

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

To insert line feed in the cell, wrap the field value between double quotes to prevent multiple cells splitting and insert some cl_abap_char_utilities=>cr_lf between lines.

2 REPLIES 2

raymond_giuseppi
Active Contributor
0 Kudos

To insert line feed in the cell, wrap the field value between double quotes to prevent multiple cells splitting and insert some cl_abap_char_utilities=>cr_lf between lines.

0 Kudos

Hi Shabbir,

Could you meet the requirement? How could you solve it. I have similar requirement in my project too but unable to find solution.