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: 

problem trying to ftp a pdf from abap - SCMS_TEXT_TO_XSTRING problem

Former Member
0 Kudos

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 ?

Cheers

Allan

1 REPLY 1

Former Member
0 Kudos

Nevermind, I just made a copy of SCMS_TEXT_TO_XSTRING and modified it to suit, works fine now.