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

SAP_CONVERT_TO_TEX_FORMAT question

Former Member
0 Likes
635

hello all, when using FM SAP_CONVERT_TO_TEX_FORMAT to convert a table that has integer, decimal or any non-unicode type definitions, you get an error when executing. Is there a new function module to replace this that will work for all type definitions?

Thx

hello all, when using FM SAP_CONVERT_TO_TEX_FORMAT to convert a table that has integer, decimal or any non-unicode type definitions, you get an error when executing. Is there a new function module to replace this that will work for all type definitions?

Thx

1 REPLY 1
Read only

Former Member
0 Likes
486

instead you can create your own internal table like this


begin of itab occurs 0,
line(255) type c,
end of itab.

LOOP AT xtab.
    CLEAR ixls.
    str1 = xtab-klimk. "place non-char fields in the string variable
    str2 = xtab-skfor.
    str3 = xtab-skfor1.

    CONCATENATE xtab-kunnr
                xtab-name1
                xtab-text1
                str1
                str2
                str3
                 INTO itab-line  SEPARATED BY coma.
    APPEND itab.
  ENDLOOP.