Documente Academic
Documente Profesional
Documente Cultură
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.
Author Bio:
Saurav Mago is Software Engineer, Infosys Technologies Ltd with 2 yrs experience.
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
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
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.
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.
10. Repeating Master Page. For repeating same Master Page, Select the Tick Box. Limit to none in Object Palette.
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.
Related Content
For more information, visit the User Interface Technology homepage.