We are using PI 7.1 and i have an attachment that I can access in my ABAP mapping. I am able to get the content of my attachment using the IF_MAPPING_ATTACHMENTS-get_attachment method.
Unfortunately the content retrieved is 'XSTRING' type and i have tried all possible options (like below) but I cannot convert the xstring to string? Any ideas? My attachment content is just single line 'XXX'
* DATA: conv TYPE REF TO CL_ABAP_CONV_IN_CE.
* conv = CL_ABAP_CONV_IN_CE=>CREATE( input = string ).
* conv->READ( importing data = lv_content).