Application Development 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: 

convert SOLI_TAB to TLINETAB

richard_pietsch
Active Contributor
0 Kudos
351

Hi,

I am using IF_INBOUND_EXIT_BCS to process emails in our solman system.

Based on structured mail templates tickets should eb created.

Now I have troubles to get the text from the mail body into a processable format:

ls_content = lo_document->get_body_part_content( ls_idx ).

lt_doc_text = ls_content-cont_text.

This one gives me a SOLI_TAB with lines containing ## characters.. e.g.

##Urgency:#2##Priority:#2##Processing Group:#_2ndLevel_IT-Application##

I need to convert this into a readable text like:

Urgency: 2

Priority: 2

Processing Group: _2ndLevel_IT-Application

...

Is there any easy way of doing this?

Regards, Richard

1 REPLY 1

jrg_wulf
Active Contributor
0 Kudos
130

Hi Richard,

the hash-sign '#' usually represents nonprintable characters. So th first thng to do, would be to identify, which characters exactly are meant by # / ##.

This could e.g. be a one of:

CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB           X'0900'

                                                   VERTICAL_TAB                 X'0B00'

                                                   NEWLINE                           X'0A00'

                                                   CR_LF                                X'0D0A'

                                                   FORM_FEED                     X'0C00'

                                                   BACKSPACE                     X'0800'

You can find it out by checking the hex-value.

Once identified, you can either replace it, or split at - into a more convenient structure.

Best regards.

Jörg