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

concatenating PDF files

Former Member
0 Likes
1,421

Hi,

   I need to call the Adobe form Function Module inside a loop. So I want to concatenate all PDF outputs in a Single PDF file. Here is my Function call code

call function iv_fm_name

     exporting

       /1bcdwb/docparams  = is_docparams

        bil_prt_com        = is_interface

importing

       /1bcdwb/formoutput = es_formoutput

     exceptions

       usage_error        = 1

       system_error       = 2

       internal_error     = 3

       others             = 4.

Any suggestions Please to get this done in my ABAP print Progam.

THanks

Swarna....

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,325
Hi Swarna,
 
1) Seems like the interface type is 'ABAP Dictionary Based Interface'  change it the Interface type 'Smartforms - Compatible Interface'
2) After you convert the interface type to Smartforms compatible you will be able to get the OTF data from JOB_OUTPUT_INFO-OTFDATA. which will be same as smartforms.
3) Use CONVERT_OTF function module and pass all the OTFDATA.

This should work and there should be no problem in combining multiple pdf's into one. Hope this helps. Let me know if any additional info is required.

Thanks,

Tooshar Bendale

Hi,

   I need to call the Adobe form Function Module inside a loop. So I want to concatenate all PDF outputs in a Single PDF file. Here is my Function call code

call function iv_fm_name

     exporting

       /1bcdwb/docparams  = is_docparams

        bil_prt_com        = is_interface

importing

       /1bcdwb/formoutput = es_formoutput

     exceptions

       usage_error        = 1

       system_error       = 2

       internal_error     = 3

       others             = 4.

Any suggestions Please to get this done in my ABAP print Progam.

THanks

Swarna....

8 REPLIES 8
Read only

Former Member
0 Likes
1,325

Hi Ram,

You have to loop at the internal table which is having all the records(lt_interface).

loop at lt_interface into is_interface.

call function iv_fm_name

     exporting

       /1bcdwb/docparams  = is_docparams

        bil_prt_com        = is_interface

importing

       /1bcdwb/formoutput = es_formoutput

     exceptions

       usage_error        = 1

       system_error       = 2

       internal_error     = 3

       others             = 4.

endloop.

Regards,

Mahidhar.

Read only

0 Likes
1,325

Hi

   Thanks for the reply.. I have no problem with the looping.

   I was asking for the merging of ADobe form output PDF files.

  I read in SDN that it is not possible...

  So wanted to know if any other way to do this.

Thanks

swara

Read only

0 Likes
1,325

It is not possible with Adobe forms( AFAIK ), you can do it with sap script or smart forms by collecting otf data and then converting it into PDF in one shot.

Read only

Venkat_Sesha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,325

Hi Kesav,

I have a doubt here. Cant we convert the Adobe form to OTF to convert into PDFs and then use again Merge and then after megre we can convert into PDF in one shot. Is that not possible

What say?

Read only

0 Likes
1,325

Hi Venkat,

We tried this some time back, but this technique does not work with adobe forms.

Read only

Former Member
0 Likes
1,326
Hi Swarna,
 
1) Seems like the interface type is 'ABAP Dictionary Based Interface'  change it the Interface type 'Smartforms - Compatible Interface'
2) After you convert the interface type to Smartforms compatible you will be able to get the OTF data from JOB_OUTPUT_INFO-OTFDATA. which will be same as smartforms.
3) Use CONVERT_OTF function module and pass all the OTFDATA.

This should work and there should be no problem in combining multiple pdf's into one. Hope this helps. Let me know if any additional info is required.

Thanks,

Tooshar Bendale

Read only

0 Likes
1,325

Thanks Friends for the valuable Suggestions..

I was having problem with printing the Deep structured table data. Now I am able to resolve it.

Now my Issue is to print the Country name which is dynamic one in the table in the Footer section of the Master page.

I am not able to get that data as it belongs to master page.

Any suggestions Please to resolve this ?

Thanks

Swarna

Read only

0 Likes
1,325

Hi Swarna,

You can use java script for this. Select the text element on layout through which you want to print country and add the java script to this.

lets say your country field in master page is lv_country and you text element in body page is lb_country.

Dont bind country text element with any variable in Object tab as we are doing this using java script.

this.rawValue = navigationpath.lv_country.rawValue.

Here navigation path is the path from top node to your master page country variable in heirarchy structure.

If you have any prob please share.

Regards,

Mahidhar.