Amount in adobe forms

Hello All,
            I am Creating the Table in Adobe Forms.I have a filed called Amount.It is the taking value "0.00' as default.I don't want this value in the amount field.I want blank field in the amount.
How can i get this.
This is very urgent.Please Give me the answer.
I will reward points.
Thanks,
Swapna.

Hi Mandeep ,
                  In my table I have 4 rows and 2 columns.In the 4 the row i have Amount Field which is (DMBTR) .It has value "0.00".
You have given the syntax.
wdContext.currentContextElement.get<contextElement>().toString(" ");
I modified the syntax like this
My field name is DMBTR.
I am passing like this in the "INITIALIZATION "event in the 4 th row of  the table.
wdContext.currentContextElement.get<DMBTR>().toString(" ");
Is it correct .
Or I have to pass anything in the currentContextElement and in the wdContext .
Actually in which event i need to pass.
Am i doing correct.otherwise please correct me where am i doing mistake.
Thanks,
Swapna.

Similar Messages

  • Weird character 'u00A4' display  at output of  ADOBE form in SAP for amount

    When display pattern for amount field is set for ADOBE form in SAP, output displays ' ¤ '.
    All display patterns shows '$' at the begining, but when output is generated it displays '¤'.
    Advice me how to eliminate this. (or)
    Is there a way to hide this character.

    I am not saying this is your problem BUT I was troubled for quite a while by having unprintable characters imbedded within text fields.  It turns out that Ctrl V character was being embedded within text by user.
    So I suggest that you view the data while in debug and do it in hex.  This was the only way I was able to see that I had a problem with the text itself.  Then I was able to add logic to filter for these errors.

  • Adobe form not showing negative sign before amount

    Hi Experts,
    We are having a strange problem. Our developers displaying
    negative
    amount in my adobe output. Its working fine in our development
    system.
    But for the similar set of data in testing system, negative sign before
    the amount is not coming. The same adobe form, layout and print
    program
    is there in both development and test environment systems. Please
    help.
    Thanks,
    Sunny

    Hi Sunny ,
    Check with the development team .. The field attribute while display types which you can restrict in the adobe form layout settings.
    I am pretty sure this  will help you and revert back if you have any questions in this regard.
    Thanks ,
    Gowrisankar

  • Problem in printing amount in different currencies in adobe form

    Hi All,
    I have a requirement to print the amount as space for thousand seperator and comma for decimals.
    I have set the pattern format such that the amount is printing in below format as required.
    Locale---Italian.
    Space as thousand seperator and comma as decimal seperator.
    for example 1 234,45
    As some of the Currencies will not have decimals, now users would like to print amount without decimals. For example in my case amount  printing in KRW ( Korean currency ) is also similar to the above format which is wrong.
    for example Now amount is printing as 55 000,00. But actually it should be 550 000. Similarly for JPY currency also, as it doesnot haves decimals ( checked in TCURX table ).
    I have written some logic in the interface. below is the logic.
    WRITE:
        wa_mhnd1-wrshb to wa_item-wrshb CURRENCY WA_ITEM-WAERS.
    *READ TABLE lt_tcurx INTO lwa_tcurx WITH KEY currkey = wa_item-waers BINARY SEARCH.
      IF sy-subrc  = 0.
      IF lwa_tcurx-currdec = '0'.
      REPLACE ',' WITH SPACE INTO WA_ITEM-WRSHB.
      REPLACE ',' WITH SPACE INTO WA_ITEM-WRSHB.
      else.
       REPLACE ',' WITH SPACE INTO WA_ITEM-WRSHB.
        REPLACE ALL OCCURRENCES OF '.' in  wa_item-wrshb WITH ','.
    endif.
    ENDIF.
    a. when the write statement gets executed amount will be in ,. ( 1,234.45 )format. Then my logic gets executed correctly. In this company code is CH10 ( EUR ) and KR10.
    b. But sometimes after the write statement gets executed amount will be in ., format ( 1.234.45 ). In this case my logic works, but gives the wrong value. In this case company code is VN10 ( EUR )
    In both the cases currency is EUR.
    Will the decimal format change accordingly based on the company code code currency.Can anyone please tell me why write statement behaved differently.
    Do I need to change any locale in the adobe form, or any other logic to be written in interface. ?  I am trying it out from long time, but not able to fix it. I will have to fix it ASAP.
    Can anyone kindly please help me how to achieve this ?
    Thanks and Regards,
    Karthik Ganti.

    Hi Ayan,
    Thanks for your reply.
    I have already made the locale to default in adobe form and tried. In the interface I have written the logic to print the amount in particluar currency.
    WRITE:
        wa_mhnd1-wrshb to wa_item-wrshb CURRENCY WA_ITEM-WAERS.
    *READ TABLE lt_tcurx INTO lwa_tcurx WITH KEY currkey = wa_item-waers BINARY SEARCH.
      IF sy-subrc  = 0.
      IF lwa_tcurx-currdec = '0'.
      REPLACE ',' WITH SPACE INTO WA_ITEM-WRSHB.
      REPLACE ',' WITH SPACE INTO WA_ITEM-WRSHB.
      else.
       REPLACE ',' WITH SPACE INTO WA_ITEM-WRSHB.
        REPLACE ALL OCCURRENCES OF '.' in  wa_item-wrshb WITH ','.
    endif.
    ENDIF.
    I dont know why the above write statement is behaving differently. In one case the value is shown as 1,234.00, but in another test case it shows 1.234,00.
    In both the test cases the currency is 'EUR'. In case if the above write statement works correctly, my issue will be solved.
    Can anyone tell me why the write statement is behaving differently. Will the currency be dependent on any other factor ( for example company code,customer )
    I would like to fix this ASAP.
    Thanks and Regards,
    Karthik Ganti.

  • Adobe form MICR not printing transit, amount chars

    Hi,
    I am using MICR Std font in the adobe form and the form is also loaded on printer which has device type TROY MICR.
    I can see the numbers in MICR font but I am not able to print special chars. I tried to do that using 'A' 'B' 'C' 'D' as we do in sap-script. Then I tried it with '[or]' '#' '$' and '-' but it just print those chars not special chars.
    I hope someone can help me on this.
    Thanks

    Just to document the solution, we had the same problem where we wanted to print the Transit synmbol or Branch Bank Id number,
    1. Goto MS word
    2. Type the numerals 2446 which is the unicode number for transit symbol, press Alt X on the keyboard it will transform the numbers into the symbol
    3. Now create a text field in your Adobe designer and set the font to MICR Std, you would see a [] in the field but on print preview it would come out correctly.
    Regards,
    Aditya

  • In Adobe forms - the space between items more

    Hi Experts,
    While displaying the ouput through adobe forms , the space between the items is more.
    Please suggest me how to reduce the blanklines inbetween the items.
    Even I made the subform content as 'FLOWED' and also in context for some fields i added condition if TB_ITEM-TEXT NE space ..
    I tried by Events with scripts as,
    if ( $.rawValue eq null )
    then
    $.presence = "hidden";
    endif
    still space between the items is not reduced. Please help me out from this.
    Thanks in advance.
    Regards,
    Priya.

    Hi Ankit and Rajeev,
    Thanks for your reply.
    As ankit said,
    In print program by using read text function module  am capturing item texts. If item text exists am setting flag .
    with that flag, in adobe form in context am checking condition if flag field not equal to space then it will enter for item text field.
    even after this..item texts not exists but in the output spaces are not truncated.
    Rajeev,
    My requirement is for body page.
    My output is like this :
    In table am dispalying matnr, desciption, unit of measure , quantity , amount ....
    10 8910047 CILPENETR PC 30 20,000
         ab
         abc
    20 22447   VALVE     PC 20 30,000
    in the above format 10 and 20 are line items.
    inbetween this line items ab, abc are the two text fields which displaying material Sales text and Itercompnay text.
    if items texts not exist,
    I want output should get displayed as like this,
    10 8910047 CILPENETR PC 30 20,000
    20 22447   VALVE     PC 20 30,000
    inbetween 10 and 20 spaces should be truncated if those fields value is empty.
    In subform Pallets -> Object -> Subform, alreday its 'Flowed' and Flow direction as 'Western Text'.
    Please help me out.
    Regards,
    Priya.

  • Can you cut and paste multiple lines of text in adobe forms?

    Hi -
    I am working on cutting and pasting large amounts of information into adobe forms. When I presently cut and paste from Excel, it puts all of the data in one line rather than in separate choices in a multiple choice selection.
    Is there a way to separate out this data so that from the excel sheet, each piece of data is separated into a different possible selection?
    Thanks,
    Laura M

    That's not the way of transferring data from Excel to a PDF form. You should format the data in two rows, the first being the field names and the second being their values, and then import it via Tools - Forms - More Form Options - Import Data...

  • Web Dynpro & case sensitive selection of Adobe Forms

    Hi Community
    how can I solve this issue:
    I have a Web Dynpro View with a button. Clicking this button generates a Adobe form and displays it.
    So long everything's fine.
    Here's my problem:
    There are 4 different case sensitive forms in dependence of the user's selection. How can I solve this?
    The form is assigned to the view via layout, so do I have to create 4 views,related to the amount of forms? And additionally the pdf's are displayed in dialog windows, so do I have to create 4 windows additionally where I have to embed a view for each of them?
    Is there any other way to solve it? It looks for me like a not very nice solution.
    Thanks in advance,
    Tan

    Hi Tan,
    Solutions that i am proposing may not be the best solution but you need to take a call on the best one:
    Solution 1 :
    1. Try Creating only one view and one window for pop up ( in addition to your existing view with button )
    2. in the view add an interactive form and bind it to one of the form.
    3. in WDDOMODIFYVIEW method , depending on the situation try to change the mapping to this interactive form
    4. This embedded view in the pop up window is always called, only based on the conditions the adobe forms changes.
    Solution 2:
    1. in your view add 4 Interactive forms , bind them to different nodes as per its mapping requirement
    2. create 4 Visibility context attributes , bind them with each of the forms
    3. depending on the condition , hide or make visible the adobe forms.
    4. show this view in the pop up window.
    My suggestion would be to go with Solution 2 , since it does not involve dynamic modifications at runtime.
    Regards,
    Ashish Shah

  • Adobe form validation with Print button

    Hi All,
    I have an adobe form with field validation (javascript) already set up but I'm trying to add one more feature to the validation.
    Let me explain my initial validation first:  I have 18 required fields with their tooltip name having an '*' at the end.  Any fields not filled in with this tooltip marker will show up on an alert message when the print button is selected.
    There are two fields called IException and Amount that are required but an End User might have additional IExceptions and corresponding Amounts.  Therefore I have created 5 textboxes for each but only the first IException and Amount are absolutely required (and I use a '*' within their tooltip).  Now if an End User has an additional IExceptions ("IException2") and fills out this field, I need to make it mandatory that "Amount2" would also have to be filled in.
    Here is my code: [code]
    function validateFields()
    var flg = 0
    var n = this.numFields
    var fArr = new Array();
    for(var i = 0;i<n;i++)
    var fn = this.getNthFieldName(i);
    var f = this.getField(fn);
    var tt = f.userName
    if(tt.indexOf('*')!=-1 && f.value == f.defaultValue)
    flg++;
    fArr[fArr.length] = tt;
    if(flg>0)
    app.alert('There are '+flg+' fields that require a value\n\n'+ fArr,3)
    var IException2 = document.getElementById('IException2').value;
    var Amount2 = document.getElementById('Amount2').value;
    if ((IException2.length >0) && (Amount2.length == 0))
    app.alert('Amount is missing')
    else
    document.ExceptionForm1.print();
    validateFields();
    [/code]
    Currently when one of the require fields is NOT filled in, i receive my first alert message.  If all required fields are filled in my print button doesn't work.  Also if all required fields are filled in and IException2 is also filled in but Amount2 is not, I don't receive my second Alert message.  So my code works up to the "Var IException2 = document....." and I don't know what the issue is.
    Thank you for your help in advance. 

    One more question,  since I have 4 of these...I'm having trouble getting the button to do exactly what its suppose to based on what's filled in because i think i have my '{ }' messed up and or IF/ELSE statement is wrong...can you please take a look..
    function validateFields()
    var flg = 0
    var n = this.numFields
    var fArr = new Array();
    for(var i = 0;i<n;i++)
    var fn = this.getNthFieldName(i);
    var f = this.getField(fn);
    var tt = f.userName
    if(tt.indexOf('*')!=-1 && f.value == f.defaultValue)
    flg++;
    fArr[fArr.length] = tt;
    if(flg>0)
    app.alert('There are '+flg+' fields that require a value\n\n'+ fArr,3)
    var a = this.getField('IException2').value;
    var b= this.getField('Amount2').value;
    if ((a.length >0) && (b.length == 0))
    app.alert('Since IException 2 is filled in, Amount 2 is also required')
    var c = this.getField('IException3').value;
    var d= this.getField('Amount3').value;
    if ((c.length >0) && (d.length == 0))
    app.alert('Since IException 3 is filled in, Amount 3 is also required')
    var e = this.getField('IException4').value;
    var f= this.getField('Amount4').value;
    if ((e.length >0) && (f.length == 0))
    app.alert('Since IException 4 is filled in, Amount 4 is also required')
    var g = this.getField('IException5').value;
    var h= this.getField('Amount5').value;
    if ((g.length >0) && (h.length == 0))
    app.alert('Since IException 5 is filled in, Amount 5 is also required')
    else
    this.print();
    validateFields();

  • Adobe Forms : Adjacent Table printing

    Hi  All,
    I have copied standard adobe form PYXXFO_SAP_PAYSLIP_US2 payslip into custom one.
    in standard form output in page is as below
    EARNINGS
    wtno wttext          rate number  amount
    TAX
    wtno wttext          rate number  amount
    DEDUCTIONS
    wtno wttext          rate number  amount
    What I want to do is print  Earnings and Deduction adjacently on same line,  can anyone help me in this, please?

    Hi Santosh,
    Change the layout as per your requirement. Wrap the earnings and deductions table in subforms as below:
    Subform1
    ->Subform2(Earnings_table, Earnings_total)
    ->Subform3(Deductions_table, Deductions_total)
    The content type of subform1 should be flowed(Choose it from object->subform->content in subform property).
    Flow direction should be Western text.
    The content type of subform2 and subform3 should be flowed and flow direction should be top to bottom.
    Adjust the size of individual columns of both tables so that they can fit in layout side by side.
    Hope it will give you an idea to proceed further.
    Regards,
    Vaibhav

  • Balance carry forward at end of page in adobe forms

    Hello all,
    I am new to adobe forms.
    I have a table with data with amount column. when the content of the table flows to next page i need to get balance carry forward and page to total and same at next page top as below
    I got to know we need to write script to get this but I don't know script in adobe form.
    So kindly help me.
    Regards
    ujwal

    Hi Ujwal,
    You're script could be handled something like this:
    if(xfa.layout.pageCount() > 1){
    var page = xfa.layout.page(this) - 1;
    var fields = xfa.layout.pageContent(page, "field");
    var total = 0;
    for(var i = 0; i < fields.length; i++)
      var item = fields.item(i);
      if(item.name == "CARRYFORWARD")
        total = total + item.rawValue;
    this.rawValue = total;
    I'm not sure what your technical name for the carry forward value is so I made one up in the sample.  Also, I have used this in one form but at line 02 I had to use -2 instead of -1 for my form even though the scripting help gives -1 as an example.  This will simply check if there is more than one page and if so then it will look back at the previous page to get the value of any field named CARRYFORWARD.
    Regards,
    Ryan Crosby

  • Subtotals in adobe forms

    Hi,
       Sorry for this question.Although this has been asked a lot of times,i am getting problems.
    I want to print the subtotal for each page in adobe forms.I am getting the total at end of last page.
    This is the code given in sdn and saptechnical.
    var fields = xfa.layout.pageContent(xfa.layout.page(this)-1, "field", 0);
    var total = 0;
    for (var i=0; i <= fields.length-1; i++)
    if (fields.item(i).name == "PRICE")
    total = total + fields.item(i).rawValue;
    this.rawValue = total;
    But it is not working for me.
    Some have also asked to code in the program,but I have no idea about it.
    Pls help.
    Thanks and regards,
    Raka.

    Hi Raka,
    Add a footer row for your table.
    From the object palette -> Pagination, check property 'Include footer row in subsequent pages'.
    Add total field in the required cell.
    Hide unwanted cells in the footer row.
    In the calculate event of the total field use the following script in formCalc
    sum(Table1.Row1[*].amount[*])
    Hope this will help.
    Regards,
    Sanoosh

  • Adobe Form - Problem of data not refreshing each time the form is called

    Dear All,
    I have created a web dynpro component comprsing of two views.
    In the first view i am displaying an ALV which is bound to an internal table.
    After selecting one record i click on a button which calls the second view and in the second view
    i am displaying an adobe form.
    i have provided a native wd submit button  which again calls the first view.
    The first time when i select the record it works fine and shows me correct data.
    but second time onwards it shows me the data one previous to the current row selected.
    Kindly give your valuable suggestions>
    Regards,
    Niti
    Moderator message: sorry wrong forum, please have a look in the forum for "Adobe Interactive Forms".
    Edited by: Thomas Zloch on May 9, 2011 5:59 PM

    Instead of using in the java code.
    For the html page and in jsp pages use the following code
    1) Coding Method:
    <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
    2) Browser setting:
    You can adjust the space to store the temporay files. On the Tools menu in Internet Explorer, click Internet Options, On the General tab, click Settings. you can select the newer version radio button also, adjust the "amount of disk space to use" slider towards the left side(equivalent to disable the cache)..
    cheers
    -balaji

  • Adobe forms - No scroll bar for Display only fields

    I am using adobe forms for SAP Enterprise Portal. i am using these in Worklfows. In the form there is a text field with no size limit and Allows Multiple Lines. Any amount of text is allowed to be entered. when the form is viewed by the next person, the script in the form make the field as read only. This is as expected.
    Problem: If there are multiple lines the scroll bar does not appear for the field. Entire content is not visible. Printout of the form prints the entire text from the field. In edit mode the scroll bar is displayed!!
    Adobe Reader version - 7.0.9
    OS - XP SP2

    Hi Sumant,
    I am facing same issue. Any solution ?
    Thanks & Regards,
    Tushar Trivedi.

  • Arabic SubTotals in Adobe Form Page.

    Hi Everyone,
    I have a requirement of printing Subtotals of a table in Arabic as well as English on the same page for all pages in the form.
    FYI i have made a function module to convert english digits into arabic, which i use in my code to convert english amounts to arabic amounts.
    Like -
    CALL FUNCTION 'ZJP_M_ARABIC_NUMERALS'
    EXPORTING ENGLISH = V_AMOUNT
    IMPORTING ARABIC = V_AMOUNT_AR.
    This gives me the arabic amount.
    Now i am printing english subtotals using the javascript code :
    var fields = xfa.layout.pageContent(xfa.layout.page(this)-1, "field", 0);
    var total = 0;
    for (var i=0; i <= fields.length-1; i++) {
    if (fields.item(i).name == "AMOUNT") {
    total = total + fields.item(i).rawValue;
    this.rawValue = total;
    Through this code i am able to get the english subtotal in my offline adobe form.
    My PROBLEM is - how do i use this english subtotal generated via javascript to convert it into arabic subtotal (using the FM)
    for each page.
    Any help is highly appreciated..!!
    Thanks,
    Piyush.

    Hi Piyush,
    Check this below link set locales for a field using java script this might help if you are looking for @ scripting
    /people/raghavendra.prabhu/blog/2010/12/17/currencynumber-formatting-in-hcm-forms
    I have 2 approaches (hopefully both of them will work).
    1)  Have a hidden field with arabic locale, in your loop keep adding values to this field.
    2) have the required field on the form set the locale to arabic, just assign the english value to this field. (if both english and arabic totals are from same records and same values mathematically then only the presentation locale is different but the value sud be the same right).
    If I am wrong understanding your requirement, please explain what is the difference ...?
    Cheers,
    Sai

Maybe you are looking for

  • How to open a URL without session ID and reuse the current browser session?

    Hi All, I have a question about HTMLDB 2.0 How to open a URL without session ID and reuse the current browser session? That was the behaviour in HTMLDB 1.6 ... My usecase for this is the following: We have written an issue tracking application, which

  • Will not load webpages

    I don't understand. Using either firefox or safari neither will open some webpages. Celtx.com and bbedit.com "Safari can't open the page "http://www.bbedit.com/" because it could not connect to the server "www.bbedit.com"" HOWEVER... when I use my li

  • How do I change currency in iTunes Store?

    When I go into iTunes Store the prices are in $ not £

  • Is Mac MINI support WOL after shutdown completely

    In PC environment,when the computer completely shutdown but connecting the power ,the lan card still have signal so that we can use the magic packet wake up Is Mac MINI support WOL after shutdown completely?

  • Understand dbx output

    in a debugging , i am getting error : (dbx) run Running: irun (process id 21424) t@3083814688 (l@21424) signal SEGV (Segmentation fault) in hoper_ at 0x804950a 0x0804950a: hoper_+0x0012:      movl     %ecx,0xfcd33470(%ebp)so i can see some SEGV probl