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

extract pdf document

Former Member
0 Likes
1,082

Hi Experts:

I have a grid alv with a specefic "PDF" Button.

the requirement is:

when i select rows from alv, i have to extract a pre-filled pdf document (already created) and generate from it the same pdf document for each row with different name et store its locay.

How to do this extraction?

PS: i dont want to generate a pdf from alv, i am saying about a pdf document already existing.

Any help ?

Best regards

5 REPLIES 5
Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
909

Hi

Not Sure .....but make a try to AQBW_CALL_EXTRACTOR_QUERY.

Regards,

Sreeram

Read only

Former Member
0 Likes
909

Thanks for your reply,

i cannot test this FM because it's does not exist yet.

regards

Read only

0 Likes
909

Hi

I'm able to see and test the specified Function Module : AQBW_CALL_EXTRACTOR_QUERY

under the function group : AQBWEXR.

Regards,

Sreeram

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
909

Hello,

PS: i dont want to generate a pdf from alv, i am saying about a pdf document already existing.

So you want to open an existing PDF file based on the rows selected form the ALV?

Considering you must have some logic to populate the filename for the PDF file, then use the method EXECUTE of the class CL_GUI_FRONTEND_SERVICES.

Plz revert back if you have any other requirement.

BR,

Suhas

Read only

Former Member
0 Likes
909

Thank you Suhas for your reply.

i'm not an expert of abap object.

what is the funtionality of this method? because i saw that we can give a document name as a paramater:

CALL METHOD cl_gui_frontend_services=>execute

EXPORTING

document = filename

EXCEPTIONS

OTHERS = 1.

best regards