Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to return a PDF/ Adobe Form through a RFC function module

Former Member
0 Likes
1,632

Dear Experts,

I am having the below requirement:

In ME23N, when we click on "print preview" button it shows a PDF document having the purchase order data.

We have designed a form in SFP. There is a driver program which calls this form to create a PDF document when we click "PRINT PREVIEW" button.

We have to capture this PDF and return it to JCO(Java Connector) through a ABAP RFC function module.

Kindly give pointers.

Thanks in Advance

3 REPLIES 3
Read only

OttoGold
Active Contributor
0 Likes
1,026

Hello,

that is easy. In your driver program, please check the inputs of the job/ generator function modules.

You provide GETPDF = 'X' attribute what will make the FM not to print the form or display the preview but to return the binary stream of the PDF data (type FPCONTENT) what is a RAW or something. Next look for the PDF output parameter to get the returned binary data and send it as you wish through JCo.

Regards Otto

p.s.: Note there is Adobe forms forum under NetWeaver, you can find me and the others doing Adobe every day

Read only

Former Member
0 Likes
1,026

Hi Otto,

I already have the PDF document as output from ME23n and I want to develop a function module which will return this PDF as output using ABAP. We are not using webdynpro abap/java.

Read only

OttoGold
Active Contributor
0 Likes
1,026

I already have the PDF document as output from ME23n

Where do you have the form, how do you recieve it. What have you developed you far?

do you have a program that generates the form? with FP_JOB_OPEN and close? there you should find the structures´ attributes I mentioned above.

Otto