on 12-24-2008 10:34 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.