Skip to Content
Former Member
Aug 26, 2009 at 08:21 AM

problem trying to ftp a pdf from abap - SCMS_TEXT_TO_XSTRING problem


Hi All,

I am trying to ftp a pdf from sap with Abap but I have hit a problem with FM SCMS_TEXT_TO_XSTRING.

I am converting a spool file with function CONVERT_OTFSPOOLJOB_2_PDF then trying to use SCMS_TEXT_TO_XSTRING to prepare the pdf for FTP_R3_TO_SERVER.

The problem is when I try and convert the pdf with SCMS_TEXT_TO_XSTRING it will miss any space characters at the end of a table line. Internally it is using STRLEN to determine the line size which causes it to miss a space char at the end of any line.

So my question is, is there a better way of converting the pdf ready for ftp or any known work arounds for this problem ?