cancel
Showing results for 
Search instead for 
Did you mean: 

need to fax a Adobe PDF form

Former Member
0 Kudos

Hi all,

We have a requirement where we need to fax a Adobe PDF form. Can you please help me what i need to do to fax a PDF form.

Can anyone explain me the step by step procedure or codes to achieve this.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

OttoGold
Active Contributor
0 Kudos

Hello,

check this: http://help.sap.com/saphelp_nw70/helpdata/en/6d/bd2d828aa04eeb9451aad0d02ae9a0/frameset.htm

last lines are:

Output as Fax or E-Mail

1. In your application program, set the field SFPOUTPUTPARAMS-GETPDF.

2. The system sends the generated PDF form back to the application program, where it can then be forwarded to the interface of the Business Communication Services.

and: http://help.sap.com/saphelp_nw70/helpdata/en/a5/28d3b9d26211d4b646006094192fe3/content.htm

Hope this solves your problem, Otto

Former Member
0 Kudos

Hi Otto,

The post was really very helpful... here is my code please say me whether is it correct or not.....



DATA: formoutput TYPE  fpformoutput ,       " PDF FORM settings.
         docparams  TYPE sfpdocparams ,         " Print and Spool Dialog settings
        ie_outputparams   TYPE sfpoutputparams ." Print and Spool Dialog settings

DATA: it_recipe TYPE ztrecipe_form1.    " Internal Table Declaration

DATA: i_name TYPE fpname,
      fm_name TYPE funcname.         " Captures the Generated Function Module name

i_name = 'ZRECIPE_PRINT_FORM1_1'.    " Adobe Form name

PARAMETERS: p_matnr TYPE zrecipe_form1-matnr OBLIGATORY.


SELECT * FROM zrecipe_form1 INTO TABLE it_recipe.

CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'               " Will contain the name of generated Function Module Name...
  EXPORTING
    i_name = i_name
IMPORTING
    e_funcname = fm_name.


ie_outputparams-device = 'TELEFAX'.
ie_outputparams-getpdf = 'X'.
CALL FUNCTION 'FP_JOB_OPEN'                           " To Open the Form for Printing...
  CHANGING
    ie_outputparams       = ie_outputparams.

*docparams-langu = 'E'.
*docparams-country = 'US'.
*docparams-fillable = 'X'.
CALL FUNCTION fm_name                                " Generated Function Module(/1BCDWB/SM00000167)...
  EXPORTING
    /1bcdwb/docparams        = docparams
    it_recipe                = it_recipe
    p_matnr                  = p_matnr
 IMPORTING
   /1bcdwb/formoutput       = formoutput   .

CALL FUNCTION 'FP_JOB_CLOSE'.                   " To Close The Form For Printing

here whats my doubt was i havent written any code for FAX except the line *ieoutputparams-device = 'TELEFAX'.*_ or should i write any code for the FAX option or this is enough....

how do i know whether the FAX option has worked or not

Please help me in this........

Answers (5)

Answers (5)

OttoGold
Active Contributor
0 Kudos

SO_NEW_DOCUMENT_ATT_SEND_API1

CL_SEND_REQUEST_BCS Method MIME_MESSAGE_GENERATE etc.

OttoGold
Active Contributor
0 Kudos

Maybe you can adapt smartform code for faxing?

http://sap-img.com/abap/sending-fax-from-abap.htm

Or general forms printing?

http://help.sap.com/saphelp_nw70/helpdata/en/6d/bd2d828aa04eeb9451aad0d02ae9a0/content.htm

Maybe some further information you can get in another forum: try ABAP Develeopment - Forms printing

Otto

Former Member
0 Kudos

Can anyone suggest me the function module to send a PDF to FAX ????

OttoGold
Active Contributor
0 Kudos

You need to work with mentioned BCS. I guess you must develop/ configure some interface between your Adobe form and BCS service. I have very little experience with BCS and have not develop anything for this, only called colleagues FMs on previous projects.

Details are supposed to be here: http://help.sap.com/saphelp_nw70/helpdata/EN/aa/29673a9011fc7be10000000a11402f/frameset.htm

But i cannot provide any code. Good luck, Otto

OttoGold
Active Contributor
0 Kudos

Hello,

I am not a faxing expert, but according to the mentioned blog, it is like sending an email. And you can use this tutorial: http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/c2567f2b-0b01-0010-b7b5-977cbf80665d&override...

to understand how to send email with Adobe form as an attachment. Hope this helps, Otto

Former Member
0 Kudos

The function modules which i used in the program are,

1. FP_JOB_OPEN

2. FP_FUNTION_MODULE_NAME

3. FM_NAME (Generated FM)

4. FP_JOB_CLOSE

Here my doubt is where i should mention the FAX details and how to send via FAX. like the fax number, fax name, etc.....

chintan_virani
Active Contributor
0 Kudos

Well I am no expert to list down all the steps but you would need to make use of the BCS (Business Communication Services) in order to email/fax Adobe documents.

Check out this blog --> /people/erwan.lebrun/blog/2007/04/16/tips-tricks-email-fax-through-the-same-output-type and additionally try searching on SDN for how to send a fax.

Chintan

Former Member
0 Kudos

Hi chinton & Otto,

Thanks for your response.

My requirement is to send only through FAX not by Email....... so can you guys help me with the code to send the fax.. I am having the driver program and i used the above mentioned function module, now i just want how to send the output(pdf) file to fax.

thanks,