Adobe forms - script for dollar amounts with no decimal?

I have several forms where the decimal is already on the form (think Tax Form).  I want to be able to set to a number format with 2 decimal places, but I do not want the decimal to show.  Not all of the text placed will have cents amounts, and I need to have the field combed to allow it to show up correctly in the field.

Then you need to use the validation script or custom calculation script to round or truncate the inputted data as necessary.
You can use JavaScirpts 'Math.floor()' method to truncate the cents or you can round using JavaScript's 'Math.round()' method or Acrobat JavaScript's 'util.printf()' method to round the inputted value.

Similar Messages

  • Doubt regarding Adobe forms used for PCR

    Hey all,
    I have a doubt regarding Adobe forms used for PCR.If i goto tc
    <b>SFP->form name (ISR_FORM_SPPM)->Layout->XML SOURCE-->
    <base><server name><port>/sap/bc/fp/form/layout/</base></b>
    But in tc SICF,i do not have anything beyond FP.It goes like this :<b> sicf-> default_host->sap->bc->fp</b> .
    Could this be the possible cause of error why i am not able to view the forms in PDF format?
    Can anyone , who has doen this before, please help me out with this issue?
    Thanks,
    Aditi

    Hi Aditi,
    Are you getting an error when you are trying to access the PDF form ?
    Is ADS installed and configured properly ? Also let me know the operating system you are using, it's version, J2EE and Portal version.
    Regards,
    Sunil

  • I am a final cut pro user and i recently started using adobe premiere pro. for anyone firmiliar with fcp, there are interesting ways of doing introductions on it and im wondering if anyone could tell me if premiere pro has preset introductions i can use

    i am a final cut pro user and i recently started using adobe premiere pro. for anyone firmiliar with fcp, there are interesting ways of doing introductions on it and im wondering if anyone could tell me if premiere pro has preset introductions i can use.

    Singenu wrote:
    I tought about looking in Monitor Activity to see what happens...
    Well, when I start working (should I say try to work with FCPX, activity monitor in the %processor column for FCPX jumps rapidly over 100% and reaches more than 200% ??? What the **** is that ?
    200% or more is not strange. Remember that your mac has 4 cores (you say it's 3 months old, so I assume it is a new model), so 200% amounts to using 2 of these 4 cores to the max.
    Regarding the question of creating a new admin user: while it sits in the same system, it may help if the problem is caused by some user-specific preferences or settings. Not likely in your case, since you seem to have reinstalled from scratch, but still it is worth a try. It takes 5 minutes and may help pinpoint the problem.

  • Seperate Adobe Form printing for each order

    Hi,
    I have a scenario where i need to print Adobe Form for each order.
    Right now i am handling this from print program(Executable) by looping at the Adobe form FM for each order.
    So it will print seperate Adobe form for each order with corresponding Header & Item Data.
    To get next order i need to hit on right & last arrows etc...
    So right now i am handling it through Print Program.
    Is there any way it can be handled directly at Adobe Form level.
    By passing all orders to Adobe FM at a time (Intsead of looping) and handling Adobe Form printing for each order at Adobe Form level itself!
    Thanks in advance.
    Thanks,
    Kumar.

    simple,
    create one new program  not driver program . Then u have to call that FORM
    1.Get all the data created during the dates.
    split the data into , based on the date ranges.
    2.
    loop at itab1.
    perform open_form
                write_form
                close_form
    endloop.
    loop at itab2.
    endloop.
    1) I need to print the form automatically when an Order is created.<b>---->COnfig</b>
    2) Every June 15th and Dec 15th I need to print the form for that Order
    automatically with some other data.
    <b>---> what ? what u split ?</b>
    *--Similarly I need to trigger the form in this way automatically for all Orders.
    <b>---> Config+ABAP</b>
    How can I trigger the Form automaticall for the above requirement
    Regards
    Prabhu

  • Adobe CS3Clean Script for Windows

    I have downloaded and unzipped the file located at:
    http://www.adobe.com/support/contact/cs3clean.html
    English/Japanese
    Download the Adobe CS3Clean Script for Windows (ZIP, 978 KB)
    Each time I extract the files, the
    AdobeCS3CleanReadMe.pdf
    will not open because it is corrupt.
    There is an additional file named:
    âNâèü[âôâAâbâvâXâNâèâvâgé+é-éóé-.pdf
    which I have not attempted to open for obvious reasons....

    I don't know for sure, but a good guess is that it's the same
    readme in
    Japanese. I don't have Japanese characters installed so
    perhaps that's why
    the gobbletygook?
    However, the AdobeCS3CleanReadMe.pdf in the download I just
    got is fine.
    Try downloading again .. if that doesn't help .. and your
    Adobe Reader is
    updated .. drop me a line and I'll send you the PDF from my
    download.
    Nancy Gill
    Adobe Community Expert
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
    2003)
    Technical Editor: Dreamweaver CS3: The Missing Manual,
    DMX 2004: The Complete Reference, DMX 2004: A Beginner's
    Guide
    Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
    Web Development
    "sbuck415" <[email protected]> wrote in
    message
    news:fg5q7a$l0s$[email protected]..
    >I have downloaded and unzipped the file located at:
    >
    >
    http://www.adobe.com/support/contact/cs3clean.html
    >
    > English/Japanese
    > Download the Adobe CS3Clean Script for Windows (ZIP, 978
    KB)
    >
    > Each time I extract the files, the
    > AdobeCS3CleanReadMe.pdf
    > will not open because it is corrupt.
    >
    > There is an additional file named:
    > ?N???[???A?b?v?X?N???v?g?+?-???-.pdf
    > which I have not attempted to open for obvious
    reasons....
    >
    >
    >

  • Adobe form script changes not reflected when PDF created by ADS.

    Hello Experts,
    We have done some modifications (UI elements java script) in PDF form in the Development system and tested... everything fine and as expected everything working.
    When we move the same changes to Quality system, the expected functionality is not working. For error analysis we followed below things.
    --1. I have checked the PDF form in SFP TCode is newly added script code is available or not.... Is available in Quality system.
    --2. I have run the application In SAP Portal, where we show this adobe form and saved locally generated PDF form by application. Then we imported  same saved PDF form into ALD  and checked... is newly written java script is available or not....strange is not available...... but in ECC under  SFP TCode i am able to see the newly written script code.
    --3. o.k. we feel that some issue with ADS server so avoid that we restarted the server even though same.... the newly written script PDF form is not picked  by ADS server while generating the PDF in the portal application.
    Can some one throw some torch on this issue?
    Regards
    Malli
    Edited by: mallikarjuna pasupulati on Apr 7, 2011 9:03 AM

    Steve,
    Might M. Kazlow's announcement be relevant?
    Announcement: Mac OS X.7 Lion Compatibility and Acrobat X
    Mac OS X.7 is not fully compatible with Acrobat X.
    Please see http://kb2.adobe.com/cps/905/cpsid_90508.html for more details.
    by MichaelKazlow at Jul 20, 2011 1:17 PM
    Be well...

  • SAP and Adobe Form - Scripting Issues

    Hello experts,
    before i start with the the issue, I would like to describe some functions which we have developed in our adobe form (not interactive Form!).
    We are displaying XHTML Text coming from SAP , in order to load the XTHML into the controls we are calling the following line of code during the initialize event:  
    this.value.exData.loadXML(this.rawValue); 
    We are printing a table which contains 3 position types (SAP DATA)
    Product items
    Groups
    Texts/Pictures (XHTML/Binary Data)
            On each new page a header line shall be printed if the type is product item. This codding is placed inside the layout:ready event:
    data.BODY.HIERARCHY.GS_HIER.DATA.ALTERNATIVE_NODE_TYPE.NODETYPE::ready:layout - (JavaScript, both) 
    var vPage = xfa.layout.page(this); 
    Script.setHeaderline(vPage, this.rawValue, this.parent.FLAG_HEADER_LINE.rawValue); 
    data.BODY.HIERARCHY.GS_HIER.HEADER::ready:layout - (JavaScript, both) 
    var vPage =  xfa.layout.page(this); 
    Script.getHeaderline(vPage); 
    if (Script.gHeader == "X") { 
      this.presence = "visible"; 
    else { 
      this.presence = "hidden"; 
    SCRIPT SECTION: --> 
    var gHeader = "Y"; 
    var level_hier = 5; 
    var new_page; 
    var gPage = 1; 
    arrHeader = new Array(); 
    function setPage(in_page) { 
      gPage = in_page; 
    function getPage(out_page) { 
      out_page = gPage; 
      return out_page; 
    function setHeaderline(in_page, in_nodetype, in_flag_header_line) { 
      if (in_page != gPage) { 
           if (in_nodetype == "1" && in_flag_header_line != "X") { 
                arrHeader[in_page] = "X"; 
      else { 
           arrHeader[in_page] = "N"; 
      gPage = in_page; 
    function getHeaderline(in_page) { 
      gHeader = arrHeader[in_page]; 
    The first functionality was working always pretty good. For making the second functionality available we started calling the Adobe Forms using the Parameter DYNAMIC = 'X'. Unfortunaltey the first functionality is then not working anymore correctly. We have tried to change javascript processing to server side/client side and both, but in the mode DYNAMIC = 'X' it does not have any influence, all javascript is performed at the client and at runtime. The result is that some pdf reader can not see the XTHML texts and we are expierencing some other problems with pictures.
    We need to have both functionalities working at the same time for all readers. I guess this is only possible if the javascript is processed at the server side and the ADS returns a finished/static PDF document.
    Does anyone has an idea how to solve this issue ?
    Thanks a lot,
    Wladimir

    Thanks for the info Juergen. I am still awaiting your blog on secured web services , if you get time please post it.
    @Anil: Please close the thread if the issue is resolved.
    Chintan

  • Hiding Image field based on the page number in Adobe Form- Script

    Hi Folks,
    I have a problem with the print form that I am working on. I need to insert an image of lines (OMR) based on the page numbers. For the OMR part, the first page will always have 4 lines as a image, the middle pages will have 3 lines as a image and the last page will have two lines as a image.
    I have uploaded these 3 images a BMPs in SE78 and I am using Xstring of these images in the form. I have two master pages. First master page is for the first page and the second master page is for the remaining pages. The first master page will always have the 4 line image. I created a positioned subform in the master page2, in that subform, I have 2 hidden numeric fields, as the run time properties one for the current page number, other one for the total number of pages. I placed those two images(one for the three line image and the other one for the two line image) exactly on the same location positioned dimensions wise. 
    I have written the java script for these two image fields to show based on the page numbering. But, somehow, it is not working. Can anybody please let me know where I am doing wrong. I am posting my java script here.
    for the three line image:
    var cp = data.PageSet.MasterPage2.OMR.cpage.rawValue;
    var np = data.PageSet.MasterPage2.OMR.npages.rawValue;
    //if(data.#pageSet[0].MasterPage2.OMR.cpage.rawvalue == data.#pageSet[0].MasterPage2.OMR.npages.rawvalue){
    for (j=0; j<xfa.layout.pageCount(); j++){
      if(cp == np){
        xfa.resolveNode("data.PageSet.MasterPage2[" + j + "]").OMR.OMR2.presence = "hidden";
      else{
        xfa.resolveNode("data.pageSet.MasterPage2[" + j + "]").OMR.OMR2.presence = "visible";
    For the two line image:
    var cp = data.PageSet.MasterPage2.OMR.cpage.rawValue;
    var np = data.PageSet.MasterPage2.OMR.npages.rawValue;
    for (j=0; j<xfa.layout.pageCount(); j++){
      if(cp == np){
        xfa.resolveNode("data.PageSet.MasterPage2[" + j + "]").OMR.OMR3.presence = "hidden";
      else{
        xfa.resolveNode("data.pageSet.MasterPage2[" + j + "]").OMR.OMR3.presence = "visible";
    Please give me a direction as this is kind of hurry.
    Thanks,
    Srinivas.
    Edited by: srinivas kari on Jun 9, 2010 2:03 AM

    HI Otto,
    Thanks for the response. You are right, I am struck with this image. My problem was to keep the OMR marking on each page based on the page number. It is like a lines with 10mmX10mm dimension at the top right corner for the sorter machine to know the number of pages to put in the envelope. The logic for this is, on the first page, it has 4 lines each 3mm apart. On the middle pages it has 3 lines . On the last page it has 2 lines. When the sorter machine picks these, it looks at the first page with 4 lines, it will count as a first page, it will continue through the 3 line pages as the middle pages until it reaches the 2 line to know it as the last page. This is all happens in the master pages. I have two master pages , one for the first page and the second one for the remaining pages.
    At first I did not know how to To achieve this, I created 3 images. one with 4 lines, another ones with 3 lines and 2 lines. The 4 lines image was on the first master page. The 3 lines and 2 lines images were on the second master page at the same place as the image fields positioned. Thats where I was trying this scripting. I was trying to capture the current page and number of pages. Based on these, I was trying to place them.
    Is there any other way to achieve this instead of using the images? I thought of sy-uline. but some in the forum told that its not going to work. Even if I use the sy-uline, I have to do some script to achieve this I believe.
    Any inputs on this.. Please give the direction.
    Thanks,
    Srinivas.

  • Hiding Image filed based on the page number in Adobe Forms - scripting

    Hi Folks,
    I have a problem with the print form that I am working on. I need to insert an image of lines (OMR) based on the page numbers. For the OMR part, the first page will always have 4 lines as a image, the middle pages will have 3 lines as a image and the last page will have two lines as a image.
    I have uploaded these 3 images a BMPs in SE78 and I am using Xstring of these images in the form. I have two master pages. The first master page will always have the 4 line image. I created a positioned subform in the master page2, in that subform, I have 2 hidden numeric fields, as the run time properties one for the current page number, other one for the total number of pages. I placed those two images(one for the three line image and the other one for the two line image) exactly on the same location positioned dimensions wise.
    I have written the java script for these two image fields to show based on the page numbering. But, somehow, it is not working. Can anybody please let me know where I am doing wrong. I am posting my java script here.
    for the three line image:
    var cp = data.PageSet.MasterPage2.OMR.cpage.rawValue;
    var np = data.PageSet.MasterPage2.OMR.npages.rawValue;
    //if(data.#pageSet[0].MasterPage2.OMR.cpage.rawvalue == data.#pageSet[0].MasterPage2.OMR.npages.rawvalue){
    for (j=0; j<xfa.layout.pageCount(); j++){
    if(cp == np){
    xfa.resolveNode("data.PageSet.MasterPage2 [" + j + "]").OMR.OMR2.presence = "hidden";
    else{
    xfa.resolveNode("data.pageSet.MasterPage2 [" + j + "]").OMR.OMR2.presence = "visible";
    For the two line image:
    var cp = data.PageSet.MasterPage2.OMR.cpage.rawValue;
    var np = data.PageSet.MasterPage2.OMR.npages.rawValue;
    for (j=0; j<xfa.layout.pageCount(); j++){
    if(cp == np){
    xfa.resolveNode("data.PageSet.MasterPage2 [" + j + "]").OMR.OMR3.presence = "hidden"; // there is some problem while //posting it is like MasterPage2[" + j + "]")
    else{
    xfa.resolveNode("data.pageSet.MasterPage2 [" + j + "]").OMR.OMR3.presence = "visible";
    Please give me a direction as this is kind of hurry.
    Thanks,
    Srinivas.
    Edited by: srinivas kari on Jun 9, 2010 12:04 AM

    HI Otto,
    Thanks for the response. You are right, I am struck with this image. My problem was to keep the OMR marking on each page based on the page number. It is like a lines with 10mmX10mm dimension at the top right corner for the sorter machine to know the number of pages to put in the envelope. The logic for this is, on the first page, it has 4 lines each 3mm apart. On the middle pages it has 3 lines . On the last page it has 2 lines. When the sorter machine picks these, it looks at the first page with 4 lines, it will count as a first page, it will continue through the 3 line pages as the middle pages until it reaches the 2 line to know it as the last page. This is all happens in the master pages. I have two master pages , one for the first page and the second one for the remaining pages.
    At first I did not know how to To achieve this, I created 3 images. one with 4 lines, another ones with 3 lines and 2 lines. The 4 lines image was on the first master page. The 3 lines and 2 lines images were on the second master page at the same place as the image fields positioned. Thats where I was trying this scripting. I was trying to capture the current page and number of pages. Based on these, I was trying to place them.
    Is there any other way to achieve this instead of using the images? I thought of sy-uline. but some in the forum told that its not going to work. Even if I use the sy-uline, I have to do some script to achieve this I believe.
    Any inputs on this.. Please give the direction.
    Thanks,
    Srinivas.

  • Adobe Form Calling WebService Doesnu00B4t work with Adobe Reader 7

    Hi experts,
    We have created and adobe form that simulates a PM Notification in which the user, without logging into SAP, through an RFC and WebServices can create the notification into SAP.
    This process only works with Adobe Reader 9 and not with Adobe Reader 7.
    Can anyone tell me what main difference/component/functionality does Adobe Reader 9 have that Adobe Reader 7 doesn´t?
    When I call the Webservice through the form in Adobe 7, a pop-up message appears that says:
    "Error attempting to read from file.
    http://desaecc6.codelco.cl:8001/sap/bc/rfc/sap/zi_aviso_adobe_pm12/222/zi_aviso_adobe_pm12/zi_aviso_adobe_pm12"
    Any ideas why this error ocurrs only in Adobe Reader 7?
    Thanks and best regards,
    Fernando Montenegro

    Hello,
    I cannot tell what are the exact differencies between the version. But I can tell you should always use (at least try to use the newest Reader). I guess you´re not the only developer on Forms, so there are possibly more people depending on the version of the client browser/ Reader. There is a solution for this problem, which does not ask anything from you, only the user.
    You can easily test the Reader version through JS coding and act based on the result. I use this like this "if your Reader is lower than 8.1" then "message popup = We are sorry, your Reader is too old, this form won´t work for you. Please upgrade first.". It takes like 5 minutes (10 for lame users at max) to update his Reader.
    Maybe you should this about such a test, if the user passes the test, his application won´t have any problem, if not there is no guarantee. And YOU have no problem, nobody tells you "hey sir, your form is not working, I´m not gonna pay you".
    Otto

  • PDF form column has dollar amount how can I line up numbers and have auto calculate?

    PDF file has columns that have dollar amounts.  I can not get it to line up or add up automatically.

    Line up: In Form Edit mode, select the fields, then right-click one of them and select Align, Distribute or Center and then one of the Align options.
    Auto-calculate: Again, in Form Edit mode, right-click a field and select Properties. Go to the Calculate tab and you'll see various options. The first one is the easiest to use for simple calculations. The other ones require more detailed instructions.

  • Adobe Form Scripting

    Hi All,
    I have a table and two buttons (Add / Delete ) in Adobe form and i am trying to do scripting for adding a row and deleteing a row in the table.
    I am using the instanceManager.addInstance(1) for Add button.
    My life cycle designer version is 7.1, i have also tried it in 8 version. This form is used in Webdynpro for Java.
    the script is not working.
    Can anyone please provide step by step details of doing this scripting? also the configuration required for dynamic form settings?
    thanks,
    Anil.

    Thanks for the info Juergen. I am still awaiting your blog on secured web services , if you get time please post it.
    @Anil: Please close the thread if the issue is resolved.
    Chintan

  • I need an action/script for image resizing with a "special" attribute

    Having a headache, nothing work so far the way I want it...
    So here's the deal: I have a bunch of psd files and I need them saved as jpegs in a fixed size - 450x590px.
    The filename of the jpeg should be the same as each psd and the images should be resized proportionate.
    The psds have irregular sizes, some are tall, some are square, some are wide, etc.
    I tried using the place function on a template, but that requires my input - choose what to place, then type the filename.
    Any ideas?
    Thank you for your input!

    elmoldovano wrote:
    So here's the deal: I have a bunch of psd files and I need them saved as jpegs in a fixed size - 450x590px.
    The filename of the jpeg should be the same as each psd and the images should be resized proportionate.
    The psds have irregular sizes, some are tall, some are square, some are wide, etc.
    I tried using the place function on a template, but that requires my input - choose what to place, then type the filename.
    So have both Portrait and Landscape images with varying size. and want to create jpeg from them that are 450x590 pixels in size.  Can the have Portrait and Landscape orientations.  If they all must be Portraits 450px wide by 590px high  your landscape images composition will not fair well.  For cropping landscape image to portraits image normally crops away  to much image content.   Content aware scale may work somewhat better then cropping to portrait the introduced distortion may be acceptable.
    If Portrait 450x590px and Landscape 590x450px is an acceptable solution.  I would go with a cropping solution for there will be no distortion and centered crop composition are usually acceptable.   It can also be done with a two step action used by an image processor script.  If you download my crafting action package. It has a plug-in script that can be recorded in an action to set a 45:59 centered aspect ratio selection which you follow with an Image Crop step.  You run the Image Processor  script have the action make the crop and the Image processor to resize the crop to fit into a 590x590px area.
    Crafting Actions Package UPDATED Aug 14, 2012 Changed AspectRatioSelection Plug-in script added Path support.
    Contains
    Action Actions Palette Tips.txt
    Action Creation Guidelines.txt
    Action Dealing with Image Size.txt
    Action Enhanced via Scripted Photoshop Functions.txt
    CraftedActions.atn Sample Action set includes an example Watermarking action
    Sample Actions.txt Photoshop CraftedActions set saved as a text file.
    12 Scripts for actions
    Example
    Download

  • Urgent : Regarding Adobe Forms ,Scripts and Smartforms

    <i>
    Hi Floks
    Any body having Adobe Printing Forms ,Scripts and Smartforms documents Links can you send me to me . Its will be help full to me
    thanks
    suresh</i>

    Hi Suresh,
    SCRIPTS
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRPROG/BCSRVSCRPROG.pdf
    http://www.thespot4sap.com/articles/SAPscript_Introduction.asp
    http://www.onestopsap.com/sap-miscellanous/sap-script/
    http://sap.niraj.tripod.com/id19.html
    http://help.sap.com/saphelp_45b/helpdata/en/65/897415dc4ad111950d0060b03c6b76/content.htm
    http://www.thespot4sap.com/Articles/SAPscript_commands.asp
    Smartforms
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    How to trace smartform
    http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm

  • Function Module for Dollar Amount

    Hi All,
    I have a requirement where a REFX contract once created has to go through a series of approvals. How do I get the dollar amount on the contract so that it can be routed to the proper level for approval? Is there a function module for this?
    Thanks a lot in advance.

    Hi Amlan,
    For the condition (amount) on contract you can get using..
    BAPI_RE_CN_GET_DETAIL or
    API_RE_CN_GET_DETAIL
    And if you doing currency conversion there are lot of FM.
    Thanks
    Veman

Maybe you are looking for

  • ZEN Style M300 Firmware Update Ver 1.00.16

    ZEN Style M300 Firmware Update Ver .00.6 Filesize : 3.72 MB Release date : Aug This download contains an improved version of the firmware found on your Creative ZEN Style M300 player. It improves the overall stability and Bluetooth user experience. F

  • Mail autofill list /where is the file for this list

    I want backup the file of the autofill list on mail new message sender Where is this list ? in French : Je veux faire la suvegarde du fichier de la liste "remplissage automatique" des courriels dans mail quand j'écrit un nouveau message Thank's

  • AND BOOM, slapped with a upgrade fee and activation fee!

    So, got two new iPhone 6's coming.  Walked in the store, and in 10 minutes we were out.  I was totally impressed with how fast it was.  I asked the sales guy to break down the cost, I got the 64gig phone, so he said "you will pay the full retail tax

  • Installing BI stats Best practices

    Hi Experts, I am installing BI Statistics for our client in SAP BI 7.0. Now, experts who have worked on this must be knowing that there are tons of objects that are activated on the system while installing it. Now to transport this to Quality and pro

  • Como conectar Server explorer 2.4.1 con ActiveX?

    Hola amigos, Quiero realizar una aplicación para que automaticamente se abra el Server Explorer 2.4.1 y después Lockout 5.1, para que la PC arranque el servicio sola. Estoy pensando en hacer en LV2010 usando ActiveX, pero, cómo puedo hacerlo?... ¿CÓM