Sunteți pe pagina 1din 9

Common Queries/Errors while working with Adobe Print PDF Forms

Applies to:
SAP Adobe Forms (Print-based forms)

Summary
This document lists common queries and errors while working on Adobe Print Forms. Author: Saurav Mago.

Company: Infosys Technologies Ltd. Created on: 16 November 2009.

Author Bio:
Saurav Mago is Software Engineer, Infosys Technologies Ltd with 2 yrs experience.

SAP COMMUNITY NETWORK 2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 1

Common Queries/Errors while working with Adobe Print PDF Forms

Table of Contents
Common Queries/ Errors:.............................................................................................................................. 3 1. Error while initiating Forms. .................................................................................................................... 3 2. Could not start Layout Designer (see long text) ...................................................................................... 3 3. Script Failed. ......................................................................................................................................... 3 4. How to Customise SAP Standard Forms: ............................................................................................... 3 5. Hiding Form fields at runtime. ............................................................................................................... 3 6. Adding Barcode to the form: .................................................................................................................. 4 7. Adding Watermark to the form. .............................................................................................................. 4 8. Adding Logo to the Form....................................................................................................................... 5 9. Translation of Form................................................................................................................................ 5 10. Repeating Master Page. ...................................................................................................................... 6 11. Avoid Blank pages or spaces in the Form............................................................................................ 7 12. More than one Master Page and its Use. ............................................................................................. 7 Related Content ............................................................................................................................................ 8 Disclaimer and Liability Notice ....................................................................................................................... 9

SAP COMMUNITY NETWORK 2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 2

Common Queries/Errors while working with Adobe Print PDF Forms

Common Queries/ Errors:


1. Error while initiating Forms. This requires the configuration of an Adobe Document Server (ADS) and RFC connection to the server. 2. Could not start Layout Designer (see long text) ADLC is not installed on the machine.

3. Script Failed. This error occurs when there is syntax error in Script written or when wrong language is selected i.e. Script is written is FormCalc and language selected is JavaScript. To avoid this error open the PDF preview palette. Any script error would be checked by the same and thus a pop up message will come up in case of Script error.

4. How to Customise SAP Standard Forms: Make a Z- copy of the forms and do the changes. 5. Hiding Form fields at runtime. Scripting is there to help you for this. 1. FormCalc Scripting. 2. JavaScript. Combination of both is also allowed in same form. Example: if( hasValue($) ) then StaticText1.presence eq visible Else

SAP COMMUNITY NETWORK 2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 3

Common Queries/Errors while working with Adobe Print PDF Forms

StaticText1.presence eq hidden Endif. 6. Adding Barcode to the form: Barcode can be added to the form and even Scripting can be added to it. Thus its value can be changed as per requirement. Example: If you do not want the barcode to be based on Trip number alone but a combination of Trip no, personal no and TP Variant. Formcalc script can be added to the Initialize event of this field to achieve this. Var trip = TRIP_NO. Var pno = PERSONAL_NO Var tpv = TRIP_VARIANT. $ = concat (trip, pno, tpv).

7. Adding Watermark to the form. Watermark is added to the form as an Image Element. Image form Library is picked, dragged and dropped to the Master Page. Image is browsed and Embed Image is ticket. In the figure below, Draft as a watermark is added to the form.

SAP COMMUNITY NETWORK 2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 4

Common Queries/Errors while working with Adobe Print PDF Forms

This way Image as a Watermark will appear in Master Page. 8. Adding Logo to the Form. Image is picked, dragged and dropped to the form. Depending upon on which page it is required , it should be placed accordingly i.e. if you want to place a Logo on all the pages, please insert the same in all the Master Pages of your Form. 9. Translation of Form. Form translation is maintained from SE63. If text modules (smart forms) or Standard Texts (So10) are added to form then their translation is maintained by them in their transaction. Any hard Coded Text can be translated in SE63.

SAP COMMUNITY NETWORK 2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 5

Common Queries/Errors while working with Adobe Print PDF Forms

Select PDFB PDF based Print Forms here to do the translations.

10. Repeating Master Page. For repeating same Master Page, Select the Tick Box. Limit to none in Object Palette.

SAP COMMUNITY NETWORK 2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 6

Common Queries/Errors while working with Adobe Print PDF Forms

11. Avoid Blank pages or spaces in the Form. Use subform so as to group form elements together and Use Type of Subform as Flowed. This would automatically avoid spaces in the form where ever no element is present. Keep different pages in different subforms and defined their property as flowed. This will adjust the subform position accordingly and will remove the blank spaces or pages in between.

12. More than one Master Page and its Use. Add as many master pages as you want. Each Body page can be assigned a separate master page. And a same master Page can also be applied to all the Body Pages from Object Palette select Restrict Page occurrence - maximum to 1 so that master page appears only once.

SAP COMMUNITY NETWORK 2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 7

Common Queries/Errors while working with Adobe Print PDF Forms

Related Content
For more information, visit the User Interface Technology homepage.

SAP COMMUNITY NETWORK 2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 8

Common Queries/Errors while working with Adobe Print PDF Forms

Disclaimer and Liability Notice


This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade. SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk. SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document.

SAP COMMUNITY NETWORK 2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 9

S-ar putea să vă placă și