on 08-17-2008 10:53 AM
Hello experts.
I'm facing a problem. i need to create a pdf form based on data from a selection screen. everything works fine BUT when i navigate back from the form to the selection screen it does not clear the data - which means the gui fields are empty but the values in the parameters are still there.
How can i solve it?
thank you.
Keren.
hi Keren
assuming i understood your question correctly....
just clear all of your parameters after the "FP_JOB_CLOSE" function.
FORM PRINT_PDF USING p_fname.
DATA: gs_outputparams TYPE sfpoutputparams,
frm_result TYPE sfpjoboutput,
lv_formoutput TYPE fpformoutput,
lv_docparam TYPE sfpdocparams.
CLEAR: gs_outputparams-nodialog.
gs_outputparams-getpdf = 'X'.
gs_outputparams-nodialog = 'X'.
gs_outputparams-preview = 'X'.
lv_docparam-DYNAMIC = 'X'.
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = gs_outputparams
EXCEPTIONS
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4
OTHERS = 5.
CALL FUNCTION p_fname
EXPORTING
/1BCDWB/DOCPARAMS =
WHATEVER... = WHATEVER
IMPORTING
/1BCDWB/FORMOUTPUT = lv_formoutput
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.
CALL FUNCTION 'FP_JOB_CLOSE'
IMPORTING
e_result = frm_result
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
PERFORM init_params.
ENDFORM. " PRINT_PDF
hope it helps
Eyal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
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.