cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe to Print and Fax

Former Member
0 Kudos

Hello Gurus,

Am creating astandalone program where it has all the invoice details and I have created 1 Adobe form via SFP tcode.

In my program selection screen, I have radiobuttons for Print and Fax.

So, user will select any one of the option. Based on the option selected, output is obtained i.e. if user selects "print" then adobe form should be printed and if user selects fax then adobe form should be faxed.

Here, the program & Adobe form layout is not attached to any standard transaction and no configuration is there for it. Just user executes the program based on the output option selected.

So, Please help me for this functionality.

What are the neccessary steps needs to be taken care for printing, faxing the adobe forms.

Thanks in advance.

Regards,

Usha

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Usha,

Please ref to below thread

Below link will give understanding of o/p parameters-

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

Regards,

Nishikant.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Usha,

Use as below in your program.

  • Call Interactive form

CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'

EXPORTING

I_NAME = L_FPNAME

IMPORTING

E_FUNCNAME = FNAME.

CALL FUNCTION 'FP_JOB_OPEN'

CHANGING

IE_OUTPUTPARAMS = OUT

EXCEPTIONS

CANCEL = 1

USAGE_ERROR = 2

SYSTEM_ERROR = 3

INTERNAL_ERROR = 4

OTHERS = 5.

IF SY-SUBRC NE 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4

DISPLAY LIKE 'I'.

ENDIF.

CALL FUNCTION FNAME

EXPORTING

IS_QUOTATION = IS_OUTTAB

EXCEPTIONS

USAGE_ERROR = 1

SYSTEM_ERROR = 2

INTERNAL_ERROR = 3

OTHERS = 4.

IF SY-SUBRC NE 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4

DISPLAY LIKE 'I'.

ENDIF.

CALL FUNCTION 'FP_JOB_CLOSE'

EXCEPTIONS

USAGE_ERROR = 1

SYSTEM_ERROR = 2

INTERNAL_ERROR = 3

OTHERS = 4.

IF SY-SUBRC NE 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4

DISPLAY LIKE 'I'.

ENDIF.

Regards,

Raju.

Former Member
0 Kudos

Hi Raju,

Thank you for reply.... Yes I agree that the piece of code which is sent has to be used. But, where exactly we have to specify i.e. "Fax No" and the details of printer and etc... in the function module.

In function module "FP_JOB_OPEN", we have device parameter where we can pass whether it is Print or Fax. But where do we give other details like Fax no for Fax as a output option and same for Print also.

These all details I need it.

Thanks in advance.

Regards,

Usha

Former Member
0 Kudos

Hi Usha,

Just pass the parameters in OUT structure.

sample :

out-device = 'PRINTER'. or 'TELEFAX' " in case of Fax

out-nodialog = 'X'.

out-dest = par_priz. " Destination

out-reqnew = 'X'.

  • out-reqimm = 'X'.

  • out-reqdel = 'X'.

out-reqfinal = 'X'.

hope this will help you.

Regards,

Raju.

Former Member
0 Kudos

Hi Raju,

This Information is also helpful for me. In Dest field, we can specify the destination but for FAX option, where should v give the Fax No... Could you please let me know about this also.

Thanks in advance.

Regards,

Usha