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

Function Module SAP_CONVERT_TO_TEX_FORMAT

former_member647955
Participant
0 Likes
2,699

Dear ABAPers,

I find function SAP_CONVERT_TO_TEX_FORMAT module really useful to concatenate fields in internal table into one text delimited with character. But somehow I found that this function module delete space in the data. For example if I have text 'Convert to text', automatically the result is 'Convert to text' (only single space between 2 character). Does anybody know the solution for this issue?

This function module has importing parameters:

I_FIELD_SEPERATOR

I_LINE_HEADER

I_FILENAME

I_APPL_KEEP

I only use importing parameter I_FIELD_SEPERATOR to set delimited character. I don't know the function of other parameters and I can't find any documentation for it. Probably one of this parameter can prevent space deletion. Are there anybody can confirm about it? Or should I find another function module?

Kindly need any help on this issue.

Thanks

Regards

Hadi

1 ACCEPTED SOLUTION
Read only

venkat_o
Active Contributor
0 Likes
1,510

Hi Hadi,

<li>I have gone through the function module mentioned. They are condensing extra spaces. You can check with below code.

CONDENSE <F_SOURCE>.

<li>If you dont want the way function module works, You can copy to ZSAP_CONVERT_TO_TEX_FORMAT, Remove CONDENSE statement in the code.

Regards,

Venkat.O

2 REPLIES 2
Read only

venkat_o
Active Contributor
0 Likes
1,511

Hi Hadi,

<li>I have gone through the function module mentioned. They are condensing extra spaces. You can check with below code.

CONDENSE <F_SOURCE>.

<li>If you dont want the way function module works, You can copy to ZSAP_CONVERT_TO_TEX_FORMAT, Remove CONDENSE statement in the code.

Regards,

Venkat.O

Read only

0 Likes
1,510

I think this idea is briliant Venkat.

Thanks a lot... I have put some points for your

Regards

Hadi