Skip to Content
author's profile photo Former Member
Former Member

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 ?

Cheers

Allan

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Aug 26, 2009 at 09:40 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.