Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Coding to extract last characters

Hi experts

There is a transformation from DSO_1 to DSO_2.

DSO_1 has an InfoObject CO_ITEMTX which contains text information for CO items, e.g.:

*DBD_G004 7026592.00 ABC-DE

DSO_2 needs the last char after the last space of this text information, in our example: ABC-DE.

The length of the last char can vary, e.g.:

*ABD_G004 7026552.00 ABCX-DDE

What is the correct coding?


Former Member

Hi Thomas,

you can split the text at space character using the SPLIT statement.

SPLIT <result_fields>-CO_ITEMTX AT SPACE INTO dummy1 dummy2 var_field.

The var_field contains the value you're looking for. This works if you know the text has three section and the information you need is in the last section.



0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question