Web dynpro + adobe form decimal field round off

hello all,
I am now developing an application which is based on the SAP WebDynpro and Adobe form, but the application has an error, if one can help me to resolve the error, I will be very thankful.
The error is as follows, for a decimal filed on the Adobe form which is binded to a deicmal attribute of Webdynpro, if I get the value of the decimal field using the programming code as "context.nodexx.getAttribute("xx")", the decimal value is rounded off (e.g., 2.4 is changed to 2.0, 2.7 is changed to 3.0).
for example:In Web Dynpro,  A node name is  "TestNode" which has a  type of decimalattribute named "TestAttr" ,  in  adobe form  a decimal field  bind to the TestAttr . when i input 2.3  in  adobe form,  i  click the button with code:
this.wdComponentAPI.getMessageManager.reportSuccess(this.wdContext.nodeTestNode.getTestAttr()+"");
the rusult is  :     2.0
if  i  input  the  value  2.5   the result  will be  3.0
Thanks All !

Hi,
there is a special display pattern to check for null values:
null{pattern}
Example:
null{'please enter a value'}
But I don't know if WDJ is really sending a null value. You can combine this with alternatives using '|' to separate alternatives.
Regards,
Juergen

Similar Messages

  • Problem executing an Online Form in Web DynPro(Adobe Form)

    Gurus,
    I am trying to create an Online Form in Web DynPro(Adobe Form), i could successfully create the form and deploy it.
    But when i executed, i am getting the below error.
    <<
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Error during call to AdobeDocumentServer: Processing exception during a "UsageRights" operation.
    Request start time: Thu May 18 16:31:04 CEST 2006
    com.adobe.ProcessingError: Error while retrieving a password for credential: ReaderRights:
    java.lang.Exception: Could not retrieve a password for credential: ReaderRights
         at com.sap.tc.webdynpro.clientserver.adobe.AdobeFormHelper.createPDFDocumentForUIElement(AdobeFormHelper.java:420)
    >>
    Any Help would highly be appreciated
    Regards,
    Arvind Kugasia

    Hello  Markus,
    let's say I have two systems. One - X - installed J2EE+ABAP and configured WD pdfobject WS proxy to point to second system - Y - with correctly configured ADS (inculding Redaer Rights Credential). Do I have to setup this Reader Rights Credentila also on system X ?? Do I have to setup something else on system X to work with Interactive forms in WD Java on system X ?
    PS: Our ABAP calls from X to ADS on Y are working okay, but I didn't try WD ABAP as basis is too low.
    Thanx, Richard.
    Message was edited by:
            Richard Calaba

  • Web dynpro + adobe form

    Hello all,
    I am using interactive adobe form in wed dynpro for abap. I have created three fields in form which are input fields and one submitt button. I have on submit event in web dynpro for abap code to save the data in some z table. when i am clicking on submitt button, i am getting error "could not post data to".
    Can anybody tell me how to get rid of this error.
    Regards,
    Sagar

    Hello Sagar,
    You might not have mapped the adobe form fields to your table properly.
    Regards,
    Chenna.

  • Web dynpro Adobe Form Display In Portal

    Hi,
    I have a Web dynpro Abap application which triggers a adobe form, which is displayed fine when previwed from Web dynpro Abap, but the same application when inegrated in portal it is not displaying the adobe form in portal.
    Any help would be greatly appreciated.
    Thanks in advance.
    Regards
    G Suraj

    Hi Suraj,
    As you have written that you are using ADOBE Form, So you check with your Portal Admin that
    ADS services are configured in Portal or not ??
    Regards,
    Piyush

  • Web Dynpro & Adobe Forms: Context Mapping

    Hi Experts,
    By assigning a form to a view via templateSource the option to automatically generate context. With sample data, implemented in the view its working fine.
    Now I want to use data out of the component controllers' context, but I can't map the views context nodes to the component controller nodes without deleting the context structure out of the form.
    In other words; how can I connect the automatically generated context from the form with the context of the component controller?
    How can I solve this issue?
    An option is to read out the component controllers context into itabs and save them in the views context.......
    not very nice, but my only idea right now.
    Does anyone has an idea?
    Thanks in advance,
    Tan

    Hi again,
    I've found this [documentation|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/63a47dd9-0b01-0010-3d8e-de27242bf011?quicklink=index&overridelayout=true], chapter "Integrating a PDF in a Web Dynpro Application"  (Page 192-193) and followed the print scenario.
    My intention is not to create an interactive form. I just want to display a generated pdf which is provided with data out of web dynpro context.
    That's what I did:
    In my views' layout tab in properties list I've entered a (not existing) form name (as templateSource) to create a new form. Then double cklicked on it to create it, entered a interface name (which was not existing also) and selected a context (the context was mapped before out of the component controller). Then se80 switched to form builder. The context nodes are available so I dragged some into the form, save & activate.
    The result is, the dragged fields are visible, but there are no values assigned, the corresponding fields are empty.
    I checked whether the context nodes are filled --> they are....
    Any idea what's going wrong?

  • BSP - Web Dynpro - Interactive Forms by Adobe - Flex

    Hi,
    I am a student SAP from Belgium.
    I am currenty developping an application and I am using BSP's, Web Dynpro's, Interactive Forms and Flex.
    I have a good idea regarding to what the possibilities are of each User Interface, but I would like your opinions:
    What are the main advantages/disadvantages of each of the named User Interfaces?
    So what's good/not good about BSP, Web Dynpro, Interactive Forms, Flex?
    What's the easiest to code, to make a layout,....
    I know, according to the sitiuation, you can choose which UI to use, but I would really like to know what your opinions are about coding, easy-to-use, speed, logic,... (PRO/CONTRA'S)
    Thanks a lot for your input, it would really help me!
    Greetings,

    Hi Mahamed,
    I got your problem. You have not done anything wrong.
    It is WebAS version which is not supported for this functionality.
    But there is solution to this problem
    Please refer to the SAP Note number - 1055738.
    I think you will get the answer and the scenario described there will match your requirement.
    This is a know issues with WebDypro ABAP but this works fine for Java Web Dynpro.
    I have also tried for 2 months but finally came to know about it.
    Regards
    Satya

  • Drop Down List population - Abap dynpro adobe form - type ZCI

    Hi ,
    How to create drop down list on a field. I am using ZCI type of form. (Abap dynpro adobe form - type ZCI)
    Most of the post i have seen only refers to the setting in forms but not about the settings in interface in se80 or SFP. please give me the detail steps to create drop down field and how to populate it.
    In other words is how to populate the drop down fields, where does the values come from to these fields.
    Thanks,
    Nikhil
    Edited by: NIKHILKUMAR POOJARI on Apr 3, 2009 7:28 PM

    HI Pradeep,
    Can you please tel me what i am doing worng here :
    types : begin of ty_nameid,
                  ZCARRIAGERESTRIC type ZCARRIAGERESTRICT,
                  DESCRIPTION type ZDESCRIPTION,
                END OF ty_nameid,
                tyt_nameid TYPE TABLE OF ty_nameid.
        data  : it_nameid type tyt_nameid,
                wa_nameid TYPE ty_nameid.
        DATA lo_nd_name TYPE REF TO if_wd_context_node.
        DATA lo_nd_nameid TYPE REF TO if_wd_context_node.
        DATA lo_el_nameid TYPE REF TO if_wd_context_element.
        DATA ls_nameid TYPE wd_this->element_nameid.
      navigate from <CONTEXT> to <NAME> via lead selection
        lo_nd_name = wd_context->get_child_node( name = wd_this->wdctx_name ).
      navigate from <NAME> to <NAMEID> via lead selection
        lo_nd_nameid = lo_nd_name->get_child_node( name = wd_this->wdctx_nameid ).
      @TODO handle not set lead selection
        IF lo_nd_nameid IS INITIAL.
        ENDIF.
      get element via lead selection
        lo_el_nameid = lo_nd_nameid->create_element(  ).
      @TODO handle not set lead selection
        IF lo_el_nameid IS INITIAL.
        ENDIF.
      alternative access  via index
      lo_el_nameid = lo_nd_nameid->get_element( index = 1 ).
      @TODO handle non existant child
      IF lo_el_nameid IS INITIAL.
      ENDIF.
    select * from ZCARRIAGERESTRIC INTO CORRESPONDING FIELDS OF TABLE it_nameid.
      get all declared attributes
       lo_el_nameid->set_attribute(
         EXPORTING
           Value = it_nameid
           name  = 'NAMEID' ).
    lo_nd_nameid->bind_table( it_nameid ).
    but its giving dump WebDynpro Exception: The ADS call has failed.
    i have created the Node as under
    CONTEXT
    NAME (NODE)
    NAMEID (NODE)
    ZCARR (ATTRIBUTE)
    DESCR  (ATTRIBUTE)
    DESC (ATTRIBUTE)
    I tried the second method, but that too failed. while entering the INSERT WEB DYNPRO SCRIPT it gave an error 'Error while entering script'.
    Edited by: NIKHILKUMAR POOJARI on Apr 6, 2009 11:04 AM

  • Web Dynpro & Adobe Interactive Forms - how to update the context node

    Hi Experts,
    I got a WD Component with some context nodes that are mapped to some views and are filled in this views. These context nodes are the dataSource for the Interactive Forms. These forms are embedded in a view by UIElement Interactive Forms.
    My problem is, everytime when I change the structure of the context nodes (i.e. there's an additional attribute necessary), I have to design new forms to get the context nodes linked to the form. My existing forms cannot handle updated context nodes.
    The change in the context node is displayed on web dynpro side, in the dataSource view in UIElement property. But in TA sfp there is the old context node structure displayed without any change (i.e. in number of attributes).
    My forms' layout type is ZCI Layout the interface is based on XML.
    How can I easily update the forms' context node structure without creating new forms every time?
    Thanks in advance,
    Tan

    ok, got it.
    by double clicking on templateSource in UIElement properties the interface can be updated.
    Regards from Murphy's Law.
    Tan

  • ABAP Web dynpro Interactive forms ADOBE

    Hi,
    I want to create Adobe form for quotation.
    There are item groups and within item group there are sub items.
    After displaying all sub items for a group i want to show Total amount.
    This is repeated for every group.
    Can anyone help me out with this.
    Thanks and regards,
    Nikita.

    http://www.sdn.sap.com/irj/scn/interactiveforms-elearning
    the above link helps you out witht he best e learning sessions
    http://wwwimages.adobe.com/www.adobe.com/enterprise/partners/pdfs/solution_in_detail_interactive_forms.pdf
    this also is a very helpful document
    If you have any specific queries please feel free to shoot
    Cheers
    Senon

  • How to import an xdp-File to Web Dynpro Interactive Forms

    Hi Experts
    I am working with Web Dynpro and Interactive Form. With Adobe Lifecycle Designer I do an import of an MS Word-Document and convert it to the XDP-Format. How do I import this XDP-File into an Interactive Form inside Web Dynpro? The form shouldn't be created with Web Dynpro. So far, what I did was creating an empty form from within Web Dynpro and overwriting it with my xdp-File. But this doesn't seem to be a secure and robust solution. Do you have any suggestions?
    Thanks for helping
    Kind regards
    Bettina Hepp

    Hi Bettina,
    I can understand what problem you are facing.
    Please follow these steps and let me know if it has solved your problem or not
    1. Open the XDP file in Adobe Life Cycle Designer and go to File Menu ->Save As ->
    Save the file as PDF.
    2. NWDS Webdynpro Edit the interactive form and now you can import the same PDF file.
    This will solve your problem and let me know if you are facing any other issue.
    Cheers
    Satya

  • Zebra printing in web dynpro/Adobe

    Hello,
    We have zebra label print designs in place (we dont want to design using adobe designer). Now we would like to enable subcontractors to print them online using web dynpro/Portal.
    1. one way I identified is send the zebra spool as a file and save it in the local disks and print it using zebra printer.
    Whats the better and efficient way to approach? How everybody is doing this?. Doesnt SAP have any solutions?.
    Thanks ,
    Raj.

    SAP Interactive Forms by Adobe comes with ABAP backend print support for Zebra label printers.
    However, as with all backend printing the required output formats are placed in the spool. To my knowledge, there is no standard SAP way to make these spool-based formats available for print in a Web Dynpro application. In addition, note that in the ABAP backend SAP doesn't print from the PDF, which for these processes has only got a preview function. Depending on the scenario, printing is done from PS, PCL or ZPL through the corresponding SAP device types.
    Best regards,
    Markus Meisl
    SAP NetWeaver Product Management

  • Sending java web dynpro interactive form as pdf attachment from Business WF

    Hi,
    I have a java web dynpro application with interactive form(online), on send button click i need to send the filled form as an PDF attchment to internet mail id. I am using SO_NEW_DOCUMENT_ATT_SEND_API1 inside workflow to send attachment. My custom RFC which is interacting with WD app is getting the pdf source context attribute(simply i set the import parameter with that attribute and no juggling is done) as import parameter which  is of type XTSRING. Once i execute the application i am getting mail with attachment as pdf but i am not able to open the pdf. It is of just 1 KB size. It seems my pdf source context attribute is not sending data. Can some one suggest how can i solve this.DO i need to convert the data to pdf format before sending or any otgher thing i need to do.
    Regards
    Ravindra

    I did that before posting the question itself (enables = false), it doesn't work. It just disable the extra features like digital signature and stuff.  Interesting thing is all our HCM forms developed for HR actions works fine with out any issues. Why the interactive form developed with WDJ is not working and it requires credentials??. The same form works fine if I deploy the application directly into server but it throws the error if I check in through NWDI ..
    If you look at the server location it has the file but it throws the error:
    Caused by: com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: IOException occured while creating template stream from the TemplateSource : .\temp\webdynpro\public\sap.com\ess~ben\webdynpro\Components\com.sap.xss.hr.ben.reviewtable.VcBenefitsReviewTable\ReviewTableView_InteractiveForm_Review.xdp (The system cannot find the file specified)
    Please advise.
    Thank You,
    Hari.

  • Adobe Form - Locked field

    Hi All
    Could someone please tell me what are the function 'Lock Text', 'Lock Static Object' and 'Lock Field' under 'Edit' on menu selction bar - used for - (I'm new with Adobe Form) - Thanks

    Hi Liem,
    You can find answers to such questions easily in adobe designer help. I am providing below the answer to your query, Hope it will be helpful:
    Lock text:
    LiveCycle Designer lets you lock text in text objects or in the captions of objects by using the Lock Text command. When you select Lock Text, you must double-click the desired text or caption in order to edit it. This makes it not as easy to modify the text. If Lock Text is not enabled, you click in the caption or text object to start editing the text.
    Lock Text applies to all text and captions on the form design. Using Lock Text is particularly useful if you want to select and move objects but not make any changes to the text. You can single-click the object to select it, but you must double-click the caption or text in order make any changes.
    Lock Static Object:
    LiveCycle Designer lets you lock all static objects on the form design by using the Lock Static Objects command. All static objects in the form design cannot be selected, moved, or modified.
    The Lock Static Text command is useful in situations when you have finished formatting static objects in the form design and want to continue working with other types of objects.
    For example, your form includes a large number of text field objects, as well as text objects that provide instructions on filling the form. You have laid out and formatted all the static text objects and need to apply a different font to the text field objects. You can easily do this by locking the text objects and then using Edit > Select All to select all the text field objects at once and then change the font.
    When text objects are locked, the text inside them is also locked. However, if you want to continue to select and move text objects, but not make any changes to the corresponding text, you can change the behavior of the text to make it not as easy to modify.
    Lock Field:
    LiveCycle Designer lets you lock all field objects on the form design by using the Lock Fields command. All field objects in the form design cannot be selected, moved, or modified.
    The Lock Fields command is useful in situations when you have finished formatting the field objects in the form design and want to continue working with other types of objects.
    For example, your form includes a large number of text field objects and check box objects, as well as text objects that provide instructions on filling the form. You have laid out and formatted all the field objects and need to apply a different font to the text objects. You can easily do this by locking the field objects and then using Edit > Select All to select all the static text objects at once and change the font.
    When field objects are locked, their corresponding captions are also locked. However, if you want to continue to select and move fields, but not make any changes to the caption, you can change the behavior of the caption to make it not as easy to modify.
    Regards,
    Vaibhav Tiwari.

  • Adobe Forms Data Fields in Portal

    This question regarding Adobe Forms in Portal 7.
    Can data fields on a form which are not stored in the SAP backend can be saved?  Can this be done in the portal or do we have to save this data in the backend via Z tables or creating additional infotypes?
    We need to have this data to be available if a user would like to redisplay a form at a later date.

    Hi Azim,
    to clarify your query go thru this url
    To use Adobe interactive forms you should install the Adobe Reader Version .... 7. Launch the SAP Enterprise Portal. (. http://<host>:<port>/irj/portal ...
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e98c87ea-0c01-0010-3798-a4f8db2411c5
    if usefull reward me points
    thanks
    karthikeya

  • Adobe form hiding fields stopped suddendly

    Hi All,
    I had made the sub form as flowed and written the below script in docready event in order to move other fields up if it do not have a value.
    if(this.rawValue == null) 
    this.presence = "hidden"; 
    This was working and it is working for the fields which are in the content area. But it suddendly stopped working.
    Thanks in advance.

    Hi!
    There might be a number of reasons for such behavior. First of all, check for the latest versions of Adobe form. If there were recent changes it might be e.g. some other script which is incorrect and your script fails to run. A simple test for scripts is going to "Preview PDF" tab on Format page. If any error popups - check the corresponding script. It's the first point I start from while having script troubles.
    If Adobe form wasn't changed, I would still check whether this script runs. If this issue can be reproduced in DEV / TEST systems, you can make any kind of debug printing or popup to be sure that IF-condition is fulfilled. If it's ok, have a closer look at the form elements, if not - check the data coming from the outside.

Maybe you are looking for

  • Bootcamp fails to create windows 7 startup disk

    Bootcamp version 5, running on Mountain Lion, keeps failing on creating the Windows 7 Startup disk. I'm using a 8gb USB drive and it formats it without any problems. The process will carry on until around 50% of copying installation files and then fa

  • Premiere Pro CC2014 Playback issues, Render issues, Serious Error issues

    Here's my problem.  Premiere Pro CC worked amazing. Never had any issues with playback, rendering - nothing. However, CC 2014 appears to be quite different. Yesterday I literally had to restart Premiere every 20 minutes! Out of no where video playbac

  • Cannot Install - Installer cannot find file

    A colleague and I are getting the same error when trying to install this software. The installer extracts files into the temp directory, then an error pops up saying "The system cannot find the files pecified." I can see that it is trying to find "hp

  • PO not cretaed On SUS.

    Hello Experts, We are implementing MM-SUS. When PO Idoc gets triggered from MM and Via XI it goes to SUS. In SUS , Tcode, SXMB_MONI, i can see the XML message with Error. Error message is as follwos: " Save Stylesheet failed /1SAI/TXSD5BFE2D6C24B57C0

  • Restrict purchase order document type at plant level

    Dear, I would like to restrict the purchase order document type at plant level, Plz help me.