cancel
Showing results for 
Search instead for 
Did you mean: 

What is the FM used in CRM in replace of SAP_CONVERT_TO_TEX_FORMAT

former_member462348
Participant
0 Kudos

Hi Experts,

I need to use the FM SAP_CONVERT_TO_TEX_FORMAT in CRM to add delimiters to my internal table, but i could not find this FM in CRM.

Is there any other FM which is avaialbe in CRM in replace of the above.

Kindly share if you have faced the same issues.

Thanks

Rufus

Accepted Solutions (0)

Answers (1)

Answers (1)

sunnyk
Explorer
0 Kudos

Hi,

You can create custom function module for above requirement.

There is coding example you can use.

Data: lv_text(4096) type c .

Select * from ABC into table lt_abc.

loop at lt_abc into ls_abc.

concatenate lv_text lv_abc into lv_text seprated by '|'.

if sy-tabix eq 1.

concatenate ls_abc  into lv_text.

else

Concatenate lv_text '|' ls_abc  into lv_text.

endif.

endloop.

Thanks

sunny

former_member462348
Participant
0 Kudos

Hi Sunny,

The main issue here is, my internal table contains more than 50lakh records and its not adviceable to use loop here.

Kindly let me know if you have any other replacement in this case.

Thanks

Rufus

sunnyk
Explorer
0 Kudos

Hi Samuel,

Yes you are right loop is not advice able on such a records but if you are asking about replacement of above function module (SAP_CONVERT_TO_TEX_FORMAT) which is in ECC. If you look at the source code of above said function module there they also used loop for putting delimiters in internal table records.

I have searched in crm but get nothing related to this issue then only I advised you for custom function module.

Regards,

Sunny