SAP for Consumer Products Discussions
Share ideas and solve challenges on branding, personalization, and supply chain optimization with fellow SAP users in consumer products. Join a discussion.
cancel
Showing results for 
Search instead for 
Did you mean: 

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

ayodhya_ram
Explorer
0 Kudos

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.

1.RSPO_RETURN_SPOOLJOB

2.RSPO_SR_OPEN

3.RSPO_SR_TABLE_WRITE

4.RSPO_SR_CLOSE



0 REPLIES 0