cancel
Showing results for 
Search instead for 
Did you mean: 

[FP_JOB_OPEN] How to get both pdf XSTRING and spool request

Former Member
0 Kudos

Hi experts,
i'm using following FMs (subsequently)

- FP_JOB_OPEN by setting the structure:

outputparams-reqnew = 'X'.
outputparams-getpdf = 'X' (or 'M', it makes no difference for me)

- FP_FUNCTION_MODULE_NAME (name of adobeform function in fm_name)

- fm_name (called n times) where I can get pdf XSTRING from structure field

fpformoutput-pdf

- FP_JOB_CLOSE

With such a setting of the mentioned above structure, i expected that a new spool request should be generated and fpformoutput-pdf should be filled.

But I get only the pdf Xstring, and no spool request is created.
Instead, if i set outputparams-getpdf = space, spool request is generated.

My require is:
Is it possible to set above structure for FP_JOB_OPEN (or do other operations) to both get pdf XSTRING and generate subsequently a spool request?

Or should I call other furter FMs to achieve my goal?

Accepted Solutions (0)

Answers (3)

Answers (3)

Florian
Active Contributor

No, this is not possible, but you can send the xtring afterwards to spool with a function

CALL FUNCTION 'ADS_CREATE_PDF_SPOOLJOB'
Former Member
0 Kudos

I tried that approach as well 🙂 but the result is not good...
Anyway, the business changed his requirement, so I solved the issue.

Thanks again for your help, Florian.

Giuseppe

Florian
Active Contributor
0 Kudos

Great to hear. Come back when it gets back on the table.

Former Member
0 Kudos

Hi Florian,

I previously tried this kind of approach, but for any available device on my system that I put on Import parameters PRINTER or DEST of that FM, I got the same exception ever: WRONG_DEVTYPE.

So, should I configure anything on my system, or do anything else?
Or better, could I get XML string and convert into XSTRING?

Thanks

Florian
Active Contributor
0 Kudos

Sounds a little weired. Are you able to print to spool with all the device types you are trying to use with this function?


As an workaround you could call the Form twice, one with the spool setting, second with the getpdf flag. But that would double your request to the ads-server.