cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe Print form problem

Former Member
0 Kudos
376

Hello,

I have a funny problem. Well, this is the first Adobe Print form development in my current project.

We have configured ADS and am able to create my Adobe form. I tried testing my form directly and it shows me my form in PRINT PREVIEW properly.

I tried creating the PRINT PROGRAM as shown below. For my suprise, I dont find the PRINT PREVIEW window itself. Niether the OUTPUT.Can anyone help me in correcting my mistake. I hope someone must have had this kind of similar problem before.

<i>* Get the Generated function module name

CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'

EXPORTING

i_name = 'Z_TEST_APPLICATION_FORM'

IMPORTING

e_funcname = l_funcname

  • E_INTERFACE_TYPE =

.

IF sy-subrc <> 0.

WRITE : 'Exit at FP_FUNCTION_MODULE_NAME'.

EXIT.

ENDIF.

  • Set the form processing attributes

l_outputparams-device = 'PRINTER'. "Set the output Device to PRINTER

l_outputparams-getpdf = 'X'. "Launch Print Preview

l_outputparams-preview = 'X'.

l_outputparams-immexit = 'X'.

l_outputparams-NODIALOG = ' '.

*l_outputparams-dest = 'LOCA'.

  • Start the form processing

CALL FUNCTION 'FP_JOB_OPEN'

CHANGING

ie_outputparams = l_outputparams

EXCEPTIONS

CANCEL = 1

USAGE_ERROR = 2

SYSTEM_ERROR = 3

INTERNAL_ERROR = 4

OTHERS = 5

.

IF sy-subrc <> 0.

WRITE : 'Exit at FP_JOB_OPEN'.

EXIT.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

l_docparams-LANGU = 'E'.

*l_docparams-fillable = 'X'.

  • Call our Deferment Application form

CALL FUNCTION l_funcname

EXPORTING

/1bcdwb/docparams = l_docparams

p9230 = p9230

ndgp = l_ndgp

ldate = l_ldate

lsubty = l_lsubty

stext = l_stext

nric = l_nric

ttext = l_ttext

rankname = l_rankname

ndgrant = l_ndgrant.

IF sy-subrc <> 0.

WRITE : 'Exit at l_funcname'.

EXIT.

endif.

  • Close the Form Processing.

CALL FUNCTION 'FP_JOB_CLOSE'

  • IMPORTING

  • E_RESULT =

  • EXCEPTIONS

  • USAGE_ERROR = 1

  • SYSTEM_ERROR = 2

  • INTERNAL_ERROR = 3

  • OTHERS = 4

.

IF sy-subrc <> 0.

WRITE : 'Exit at FP_JOB_CLOSE'.

EXIT.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

WRITE : 'Sucessful'.</i>

Expecting a fast response. Thanks in advance.

Regards

<i><b>Raja Sekhar</b></i>

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hey Raja,

Remove -

<i>l_outputparams-device = 'PRINTER'. "Set the output Device to PRINTER

l_outputparams-getpdf = 'X'. "Launch Print Preview

l_outputparams-preview = 'X'.

l_outputparams-immexit = 'X'.

l_outputparams-NODIALOG = ' '.

*l_outputparams-dest = 'LOCA'.</i>

Especially the getpdf one.

Hope this helps.

Thanks and regards,

Anto.

Former Member
0 Kudos

Hi Antony,

Thanks for the quick response.

It solved my problem. Out of anxiety, I wanted to know what this GETPDF attribute does.

Thanks Antony once again.

Regards

<i><b>Raja Sekhar</b></i>

Former Member
0 Kudos

Hi Raj,

Its really nice to hear from you. getPDf is used for getting the pdf document to process in the code.

Say, i require to attach the PDF and send the form through mail. In that case, I flag this parameter and get the values in the result import parameter of the FM.

Hope this will give you some idea. You may refer Jeff Gebo's webinar or Vani krishnamoorthy's papers available in SDN, which illustrates, how you can attach a PDF and ssend the mail..

Hey, btw, i am posting a new thread regarding drop downs. Please reply to it [:D]

Regards,

Anto.

Former Member
0 Kudos

Thanks for the reply Antony,

Hope your time has started to help me out during my development now.

Will try to answer your query.

Regards

<i><b>Raja Sekhar</b></i>

Former Member
0 Kudos

Any time [:)].

Former Member
0 Kudos

Hi Antony,

To add to the above question, Well, we had a requirement where the PDF should automatically get displayed without the option of INTERMEDIATE PRINT DIALOG BOX(With Print, Print Preview box and other options). So is there any parameter in this OUTPUTPARAMS which does this MAGIC.

Regards

<i><b>Raja Sekhar</b></i>

Former Member
0 Kudos
        • sorry. will update it

Hi Raj,

There seems to be some problem in my ADS. Your requirement is very much possible.

try out -

w_sfpoutputparams-device = 'PRINTER'.

w_sfpoutputparams-nodialog = 'X'.

w_sfpoutputparams-preview = 'X'.

w_sfpoutputparams-dest = '<output device>'.

Once its up and ifyou have issues, i will try it out from my end.

- anto

Message was edited by:

Antony John Isacc

Former Member
0 Kudos

???

Then what is the parameter name?

Former Member
0 Kudos

updated. will check out once ADS is up.

Former Member
0 Kudos

WoW,

It worked man!

Thanks for timely help.

Regards

<i><b>Raja Sekhar</b></i>

Former Member
0 Kudos

OOps you should have posted that in a second thread [:D].. just kidding [:)].

- anto.

Former Member
0 Kudos

Hehehehehe...Thought both the topics are related, so continued in the same thread and moreover all this info will be available in a single thread in future for pple like me...

Regards

<i><b>Raja Sekhar</b></i>

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Raja,

I'm new to Adobe Interactive Forms, These days im working on Iteractive forms.

i need to add check boxes dynamically to the Form. Is it possible.

It would be grate if u have any test programs.

Thanks in advance,

Lahiru.