on 06-27-2011 9:36 AM
Hello,
I would like to test/modify the given adobe sample invoice FMCA_INVOICE_SAMPLE_PDF (SFP).
Does anybody know a corresponding print programm in SE38 or better: How can I find the print programm to any (sample) form?
Thanks for help.
Hello Guy,
i dont now a programm for this formular, but i can tell you how to call it by a own program.
To find the programm maybe try to find a program which use the datatypes on the exportparameter of the interface
***********************************************************************
* Data Definition for Adobeforms BEGIN
DATA: gs_outputparams TYPE sfpoutputparams.
DATA: gs_docparams TYPE sfpdocparams.
DATA: gs_result TYPE fpformoutput.
DATA: e_result TYPE sfpjoboutput.
DATA: lf_fm_name TYPE rs38l_fnam.
DATA: lf_formname TYPE tdsfname.
* Data Definition for Adobeforms END
************************************************************************
lf_formname = 'THE_FORMULAR_NAME"'.
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = lf_formname
IMPORTING
e_funcname = lf_fm_name
* E_INTERFACE_TYPE =
.
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = gs_outputparams
EXCEPTIONS
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
************************************************************************
* Now call the generated function module
*Please copy the parameter of the invoice interface into Exporting
************************************************************************
CALL FUNCTION lf_fm_name
EXPORTING
/1bcdwb/docparams = gs_docparams
v_value = g_value
....
...
....
....
...
IMPORTING
/1bcdwb/formoutput = gs_result
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
DATA: e_adserrstr TYPE string.
CALL FUNCTION 'FP_GET_LAST_ADS_ERRSTR'
IMPORTING
e_adserrstr = e_adserrstr.
CALL FUNCTION 'FP_GET_LAST_ADS_TRACE'
IMPORTING
e_adstrace = e_adserrstr.
" MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
" WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
CALL FUNCTION 'FP_JOB_CLOSE'
IMPORTING
e_result = e_result
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
But if you want only a test program to look how it works you can use programm "FP_TEST_03"
Regards
Edited by: Florian Martin on Jun 28, 2011 8:23 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your answer.
For me it's clear how I can create a adobe formular and how i can write a print program for it.
I want to create an invoice form and need a print program for the elementary things, so that I don't need to reinvent all the basics. (invoice head, invoice positions etc.)
Can somebody help?
Thanks.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.