Skip to Content

How to merge multiple Xstrings into one and send it to spool system for Printing

Nov 21, 2017 at 01:17 PM


avatar image

The requirement was to print the Archive Link Billing Document. This was achieved in sandbox by using function modules ARCHIVOBJECT_GET_TABLE and SCMS_BINARY_TO_XSTRING. First one is to get the data in binary mode and the later one is to convert the data into Xstrings. we have used the new SAP class cl_rspo_pdf_merge methods for merginf the Xstrings. methods add_document and merge_documents are used to merge the Xstrings and finally the function module ADS_CREATE_PDF_SPOOLJOB was called to print the documents in PDF. we are converting this to pdf because of the burden it causes to printer.

Now the problem raised in dev server. We don't have class cl_rspo_pdf in the dev because of up gradation issue. I have tried the below approach to merge the multiple PDF's and create a new spool for printing. But the First FM itself terminated saying the Spool doc type is ''ADS''. Please suggest any class to merge the xstrings or any new approach to reach our requirement.





10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers