‎2010 Nov 11 7:11 AM
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
‎2010 Nov 11 7:19 AM
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
‎2010 Nov 11 7:19 AM
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
‎2010 Nov 11 7:38 AM
I think this idea is briliant Venkat.
Thanks a lot... I have put some points for your
Regards
Hadi