on 09-15-2009 7:20 AM
hello,
I hae create d ADOBE form and want to trigger it on "Save" record from Custom Infotype....
I need this form to be displied as User my do some changes and save it again...
I have used following code to trigger this from module pool...
Data : lv_fm_name type rs38l_fnam.
Data : gs_sfpoutputparams type SFPOUTPUTPARAMS,
gs_sfpdocparams TYPE sfpdocparams,
gs_formoutput TYPE fpformoutput.
Set output parameters and open spool job
gs_sfpoutputparams-nodialog = 'X'. " suppress printer dialog popup
gs_sfpoutputparams-GETPDF = 'X'. " launch print preview
call function 'FP_JOB_OPEN'
CHANGING
ie_outputparams = gs_sfpoutputparams
EXCEPTIONS
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4
others = 5.
First get name of the generated function module
call function 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = 'Z_ISR_FORM_Z017'
IMPORTING
e_funcname = lv_fm_name.
EXCEPTION
CX_FP_API_REPOSITORY = 1
CX_FP_API_USAGE = 2
CX_FP_API_INTERNAL = 3.
Set form language and country (->form locale)
gs_sfpdocparams-langu = 'E'.
gs_sfpdocparams-country = SY-LANGU.
gs_sfpdocparams-FILLABLE = 'X'.
Now call the generated function module
call function lv_fm_name
EXPORTING
/1bcdwb/docparams = gs_sfpdocparams
IMPORTING
/1BCDWB/FORMOUTPUT = gs_formoutput
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
others = 4.
Close spool job
call function 'FP_JOB_CLOSE'
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
others = 4.
But still I'm unable to get form on "Save"..
Please help me.
Regards,
Yogesh
Hi Yogesh,
Just to test ... can you place your code in a report and call the report with submit ... return in your module pool? For the data tables in the interface, you may export them and import them.. this will ensure that everything is good with your code and the place where you call the code from. I believe the issue is Module Pool rather than anything else. But that's just a doubt and we need to do this to confirm it.
Best Regards,
Abd-Al-Aleem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
please clarify:
i guess you mean save icon on the sap menu line?
and you want to do what? on this button generate form and then what?
your code looks good (i guess it may work as a report) but you need to call this code (create a function module for your code, e.g.: GET_SAVE_FORM...) and call this from the proper place.
you need to debug the code which is executed on your save button and find some place to add calling you function from.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.