cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe forms and selection screen

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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