ABAP CONVERT SPOOL TO PDF

Hi all, I have a process that creates a spool, converts it to a pdf and then attaches it to an email. My problem is that sometimes, the same attachment is duplicated. The process seems to work fine in debug mode the attachment changes for each loop but when I run it in the background, every few emails, it will duplicate an attachment. I have noticed that the size of the pdf seems to change properly but that the content of the pdf does not match. So, it is like it gets the correct size of the pdf but not the body. I have changed some of the code because it was trying to handle an endless loop I figured it should not have to handle be in an endless loop.

Author:Nikoll Fenrilabar
Country:Croatia
Language:English (Spanish)
Genre:Marketing
Published (Last):13 May 2017
Pages:244
PDF File Size:13.28 Mb
ePub File Size:13.39 Mb
ISBN:130-1-68924-400-5
Downloads:48287
Price:Free* [*Free Regsitration Required]
Uploader:Aragis



Hi all, I have a process that creates a spool, converts it to a pdf and then attaches it to an email. My problem is that sometimes, the same attachment is duplicated. The process seems to work fine in debug mode the attachment changes for each loop but when I run it in the background, every few emails, it will duplicate an attachment.

I have noticed that the size of the pdf seems to change properly but that the content of the pdf does not match. So, it is like it gets the correct size of the pdf but not the body.

I have changed some of the code because it was trying to handle an endless loop I figured it should not have to handle be in an endless loop. I changed that code and it is working but this previous issue still exists. Thanks for your help.

If this is not done the PDF module abends. I am not sure how to edit my post but I have found that the problem is when I create my spool using:. If I add a wait after this submit then the process works fine. If so, can you suggest a better way? If not, is there a way to make sure that the called program has completed execution before returning to the calling program.

Is your submitted program creating any locks? Does the submitted program submit any further processes? What I suspect is happening is that you have an asynchronous DB commit. When the DB is overloaded, the commit is not complete before your initial process needs the record. Locks are the standard way to monitor this Hi, I've used export to memory id for more than 10 yrs.

It works fine in ecc 6 so it did in 30f, 46b and 46c. I've used wait for quite a while too. In fact we use wait in the custom FM that sends an email via SOST and starts the report that sends that mail out of sap. Now, in your first post you said that attachment changes with each loop. So, would you post a snippet of that code, please? I am also making the assumption that leaving a wait in the program is bad practice?

Some name 8. Tech Sign In Page. Forgot Password? Don't have an account? Sign up. Katie Doody. Follow Tech Sign In Page. February 24, AM. Something went wrong on our end. Please try again later. February 24, PM. Horacio Zapettini. Sign In to Post a Comment. Sign In. Hide Comments View Comments. Looking for more? Search the archive of solutions and how-to's.

Ask a new question to a community of peers. Mass Activation of Assets in Company Code. Bill to Address Modification.

6ES7 241 1CH31 0XB0 PDF

Converting spool to pdf

Our process is to run a job, then grabs the spool. Convert it to. We do something similar but instead of peforming the generation of the spool and doing the convert to PDF in one step we break it up. The users can then run a custom ABAP to read the spool lists and convert the spool at their leisure.

ACTION AND NONACTION VERBS EXERCISES PDF

Subscribe to RSS

Here we have a simple program. Execute it. We have the below output. Go to Tx- SM36 and create and schedule a background job for the above report. Background Job program name. In Tx- SM37 run the job.

LA HERENCIA LANDOWER DESCARGAR PDF

Convert Spool Request(Generated Background Job ) Into PDF

Goto the print preview of the document which needs to be converted in to pdf format. This will convert print preview of output in to PDF which can be saved. Converting Spool output into a PDF format. This section can be further divided in to two. When spool output contains less than 99 pages:. We can also have a Z t-code made for the program made for the same. When spool output contains more than 99 pages: The above steps are only useful if number of pages is less than

MERI SAHELI MAGAZINE PDF

FM to convert ABAP list spool to PDF

By using our site, you acknowledge that you have read and understand our Cookie Policy , Privacy Policy , and our Terms of Service. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. The issue is to get the spool in a TXT format, without technical stuff, just the characters in the form. Learn more. Convert a spool into text format Ask Question. Asked 1 year, 2 months ago. Active 1 year, 2 months ago.

Related Articles