WD Application- Adobe Non interactive subtotal issue

Hi,
I am trying to subtotal a column in my table.I followed one of sap website tutorials.PRICE is myfield .For my subtotal text field this is the script.
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;
after this instead of displaying total value this is again display my first row value in subtotal box
Any thing wrong with the code?
Rgds
Vara

For adobe forms specific questions - especially those involving scritping in the form - you should really ask your question in the InteractiveForms Form on SDN.

Similar Messages

  • Export data to adobe non interactive form

    Hello,
    I would like to fill a non interactive adobe form with seized data in visual composer.
    How I can do that please ?

    Tony-
    I have not worked with Adobe Forms so I am not sure if this is feasible. If I had to populate a Web Dynpro form with data from a VC form I would have an action which would invoke the URL of the Web Dynpro application. This URL would have appended to it the field name and values as entered in the VC form. In the Web Dynpro component I would retrieve all the parameter values being passed through the URL and then set these values into the context. If the context is bound to a form, the data will automatically be displayed.
    Cheers-
    Atul

  • Error during activation of adobe non-interactive form

    Hello everyone,
    I am trying to activate a non-interactive adobe form and am getting the below error:-
    "Field p_lifnr has a conversion routine(see SAP note 796755)".
    I have made sure that this field (which is corresponding to LFA1-lifnr) has context binding, I even tried using below code in its interface:-
    GET PARAMETER ID 'LIF' FIELD p_lifnr.
    and also tried the below:-
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
            EXPORTING
              input  = p_lifnr
            IMPORTING
              output = p_lifnr.
    just in case..
    but all above in vain,can someone let me know what might be the problem....or where would I find this 'SAP note 796755' ?
    Thanks,
    Rachna.

    Hi,
    I am facing the same problem of "Error during activation" while activating the SAP interactive form.
    I am using ECC 6.0, ADL 7.1 and Adobe reader 8.0
    Could you please suggest a way out.
    Thank You
    Aser

  • Hide adobe Non interactive form in Initial Display

    Hi,
    I have a adobe form under the input field & button in WD application.
    Form should be shown only when users hits the Button.
    Right now both are shown in intial view.How do we hide adobe form ?
    rgds
    Vara
    Edited by: Vara K on Jan 27, 2009 7:49 PM

    Hi,
    Add a attribute of type WDY_BOOLEAN and bind it to the Adobe UI element.
    And do the following in the wddomodifyview.
    IF NOT first_time IS INITIAL.
      data lo_nd_screen_valid type ref to if_wd_context_node.
      data lo_el_screen_valid type ref to if_wd_context_element.
      data ls_screen_valid type wd_this->element_screen_valid.
    navigate from <CONTEXT> to <SCREEN_VALID> via lead selection
      lo_nd_screen_valid = wd_context->get_child_node( name = wd_this->wdctx_screen_valid ).
    get element via lead selection
      lo_el_screen_valid = lo_nd_screen_valid->get_element(  ).
    get single attribute
      lo_el_screen_valid->set_attribute(
        exporting
          name  =  `ADOBEUIELEMENT`
          value =   u2018u2019 ).
    ENDIF.
    Thanks,
    Rajkumar.S
    Edited by: Rajkumar S on Jan 28, 2009 7:05 AM

  • Adobe forms, non-interactive (HR)

    Hi,
    I'm trying to get in touch with SAP web applications (webdynpro, adobe form, bsp...).
    I have the following requirement:
    I have to provide a page within the sap enterprise portal to allow the employee to track his presence. In this page the employee has to check a presence/absence flag and in another page he can justify his absence with some reason.
    I didn't find a standard functionality to meet this requirement, so I think a new form has to be created.
    As additional requirement this form as to be stored as PDF document and it is not needed to store the information contained in the form in the sap backend system. The information contained in the form has to be stored in a non-sap system, so this information should be available as flat file to be imported in the non-sap system.
    I'd like to understand the possible scenarios from a technical point of view to create the required functionalities.
    ADOBE Interactive Form.
    This is a webdynpro (java or abap) that contains the adobe component. The fields of the adobe component are linked to the sap backend system and are editable. The adobe component reads some data from sap bakend system and stores the values filled by the employee via the adobe component in the backend system.
    ADOBE non-interactive Form
    A webdynpro (java or abap) or a BSP has to be built to create some values, then once the user save/submit the information a PDF document is created with the information created in the previous page.
    What is the difference between ADOBE (non-interactive) Form and ADOBE Interactive Form? The difference is that the first one is not editable? There is a big difference in terms of complexity develop an interactive or a non-interactive adobe form?
    BSP that generate the PDF as output?
    Could you please provide some input/defintion/sample to clarify this topic?
    Thanks in advance
    MP

    Hi,
    I'm trying to get in touch with SAP web applications (webdynpro, adobe form, bsp...).
    I have the following requirement:
    I have to provide a page within the sap enterprise portal to allow the employee to track his presence. In this page the employee has to check a presence/absence flag and in another page he can justify his absence with some reason.
    I didn't find a standard functionality to meet this requirement, so I think a new form has to be created.
    As additional requirement this form as to be stored as PDF document and it is not needed to store the information contained in the form in the sap backend system. The information contained in the form has to be stored in a non-sap system, so this information should be available as flat file to be imported in the non-sap system.
    I'd like to understand the possible scenarios from a technical point of view to create the required functionalities.
    ADOBE Interactive Form.
    This is a webdynpro (java or abap) that contains the adobe component. The fields of the adobe component are linked to the sap backend system and are editable. The adobe component reads some data from sap bakend system and stores the values filled by the employee via the adobe component in the backend system.
    ADOBE non-interactive Form
    A webdynpro (java or abap) or a BSP has to be built to create some values, then once the user save/submit the information a PDF document is created with the information created in the previous page.
    What is the difference between ADOBE (non-interactive) Form and ADOBE Interactive Form? The difference is that the first one is not editable? There is a big difference in terms of complexity develop an interactive or a non-interactive adobe form?
    BSP that generate the PDF as output?
    Could you please provide some input/defintion/sample to clarify this topic?
    Thanks in advance
    MP

  • ADOBE form interactive and non-interactive... (HR)

    Hi,
    I'm trying to get in touch with SAP web applications (webdynpro, adobe form, bsp...).
    I have the following requirement:
    I have to provide a page within the sap enterprise portal to allow the employee to track his presence. In this page the employee has to check a presence/absence flag and in another page he can justify his absence with some reason.
    I didn't find a standard functionality to meet this requirement, so I think a new form has to be created.
    As additional requirement this form as to be stored as PDF document and it is not needed to store the information contained in the form in the sap backend system. The information contained in the form has to be stored in a non-sap system, so this information should be available as flat file to be imported in the non-sap system.
    I'd like to understand the possible scenarios from a technical point of view to create the required functionalities.
    ADOBE Interactive Form.
    This is a webdynpro (java or abap) that contains the adobe component. The fields of the adobe component are linked to the sap backend system and are editable. The adobe component reads some data from sap bakend system and stores the values filled by the employee via the adobe component in the backend system.
    ADOBE non-interactive Form
    A webdynpro (java or abap) or a BSP has to be built to create some values, then once the user save/submit the information a PDF document is created with the information created in the previous page.
    What is the difference between ADOBE (non-interactive) Form and ADOBE Interactive Form? The difference is that the first one is not editable? There is a big difference in terms of complexity develop an interactive or a non-interactive adobe form?
    BSP that generates the PDF as output?
    Could you please provide some input/defintion/sample to clarify this topic?
    Thanks in advance
    MP

    Reader credential rights missing. Now it works.

  • Non-interactive PDF forms & licences

    Hello,
    I need an advice. I created WD application using non-interactive PDF form. Actually I used UI element InteractiveForm but we didn't place any editable element (text box, dropdown list, ...) into it. We just want to generate the PDF form dynamically. And now we need to know whether it's necessary to buy any licence for this use case. Does somebody know that?
    After deployment I can't open the PDF form. The report "500   Internal Server Error ..." is displayed and there is message "... The error is: com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: Failed to UPDATEDATAINPDF ..." in defaltTrace file.
    Thank you in advance!
    Regards
    Zbynek

    Thank you very much! The answer was really helpful. But I have one more question. I have changed preview type from INTERACTIVE FORM to PRINT FORM as you recommended but it still doesn't work.
    There is written "
    ...PDFObjectRuntimeException: Processing exception during a "UsageRights" operation.
    com.adobe.ProcessingException: Could not retrieve a password for credential: ReaderRights.
    " in defaultTrace file.
    Till now I didn't asked SAP for sending credential. Now I did that. Do you think that it could be the problem? I thought it's not necessary for non-interactive forms.
    Regards,
    Zbynek

  • Contradiction form error in non interactive adobe forms.

    HI All,
    I am woriking on a non interactive adobe forms generation program in ABAP.
    The program uses a variant and generate pdf forms for all the list items on the varient.
    Note: I am not using Webdynpro its the normal pdf generation.
    The problem I am facing is that when the varient has a list of more records at some point of time it generates the contradiction form error and terminates. if I alter the varient so that the list is minimal then there is no problem with that.
    I know that the Contradiction form error occurs when the pdf generation is open and there is another request to open a new form before closing the previous call. but when the varient has minimal data there is no problem with that, my assumption here is the data volume or such which causes the problem.
    Does somebody came accross such an issue earlier or if you have a solution approach please do share it with me.
    Thanks in Advance.
    Sai Krishna.

    Total Posts:  366 
    Total Questions:  110 (59 unresolved) 
    Forum Points:  2 
    Why do you ask so much and never answer? You´d better reconsider the questions/ points balance if you want some help from our side.
    Otto

  • WebDynpro - Creating a non-interactive Adobe file

    Im trying to display some information in an Adobe file, but it seems that webdynpro uses only Interactive form which<b> I dont need.</b>
    The information I display usually come from different BAPIs

    Im Looking for <b>NON</b> Interactive forms
    all the questions and replies talks about interactive forms but I NEED <b>NON Interactive</b> .
    The problem is as simple as reading some data from Backend and opening a PDF file that contains the information from WebDynpro application.
    <b>I dont need to use Adobe Designer to create the form</b>

  • Multiple images into a subform in a dynamic non-interactive adobe form

    I want to convert a set of images into a PDF (one page for each image) with Webdynpro. I'm trying with a non-interactive adobe form.
    I followed the tutorial "Dynamic Non-Interactive PDF Form".
    I've got a multiple Context node: 'Images' with a string attribute 'url' for each image.
    In the form, I've created subform1, and subform2 within. I put an image field into subform2, setting its url to: $record.Images[*].url
    and its script to: this.value.image.href = xfa.resolveNode(this.value.image.href).value;
    It doesn't work.
    If I add a field into subform2 binding it to url attribute, I can see some lines with the correct path for each image, but the image isn't displayed.
    It works with a single dynamic image in the page. What am I doing wrong?
    Regards
    Anibal Pozo.

    No. It's form scripting. In any case I'm working with Webdynpro Java.
    I tried this code in table 'initialize' event.
    for int=0 upto $record.nImages do
    Table1.Row1[int].ImageField.value.image.href = $record.Images[int].url;
    Table1.Row1[int].Cell4.value.#image.href = $record.Images[int].url;
    endfor
    Cell4 is a static image.
    In 04SP9, it show always the same image in the image field (first column), and alternating image in cell4 (second column).
    In 04sSP6, it shows always the same image in all the rows in both columns.
    Any idea? I didn't find any OSS related.

  • Digital Signatures in Adobe Forms (Non-Interactive)

    Hi everyone,
    I need to sign a receipt that will be sent by e-mail. The form is non-interactive, it´s only a simple receipt. This form may be printed or sent by e-mail; in case of being sent it must be signed before sending it. The receiver should be able to open it using Adobe Reader.
    I´ve read other posts/help about singatures in Adobe Forms, but none of them of non-interactive forms; I need to know if it is possible to do this if the form is not interactive, and how it can be done.
    Thanks!
    Pablo

    Hi Jinal,
    Here it goes:
    report fp_pdf_test_07.
    * set signature
    class cl_fp definition load.
    selection-screen begin of block s_files with frame title text-100.
      parameters: p_pdf(64)    type c lower case obligatory,
                  p_out(64)    type c lower case obligatory.
    selection-screen end of block s_files.
    selection-screen begin of block s_conn with frame title text-101.
      parameters: p_dest       type rfcdest default 'ADS' obligatory.
    selection-screen end of block s_conn.
    selection-screen begin of block s_sig with frame title text-102.
      parameters: s_key(64)    type c lower case,
                  s_field(64)  type c lower case,
                  s_reason(64) type c lower case,
                  s_loc(64)    type c lower case,
                  s_cinfo(64)  type c lower case.
    selection-screen end of block s_sig.
    types: ty_raw(255) type x,
           ty_tab type standard table of ty_raw.
    data: l_filename_pdf   type string,
          l_filename_out   type string,
          l_fp             type ref to if_fp,
          l_pdfobj         type ref to if_fp_pdf_object,
          l_pdf            type xstring,
          l_out            type xstring,
          l_fpex           type ref to cx_fp_runtime.
      l_filename_pdf = p_pdf.
      l_filename_out = p_out.
      perform load_file using    l_filename_pdf
                        changing l_pdf.
    * get FP reference
      l_fp = cl_fp=>get_reference( ).
      try.
    *   create PDF Object
        l_pdfobj = l_fp->create_pdf_object( connection = p_dest ).
    *   set document
        call method l_pdfobj->set_document
          exporting
            pdfdata = l_pdf.
    *   set signature
        call method l_pdfobj->set_signature
          exporting
            keyname     = s_key
            fieldname   = s_field
            reason      = s_reason
            location    = s_loc
            contactinfo = s_cinfo.
    *   execute, call ADS
        call method l_pdfobj->execute( ).
    *   get result -> l_out
        call method l_pdfobj->get_document
          importing
            pdfdata = l_out.
      catch cx_fp_runtime_internal into l_fpex.
        perform error using l_fpex 'INTERNAL ERROR'.
      catch cx_fp_runtime_system into l_fpex.
        perform error using l_fpex 'SYSTEM ERROR'.
      catch cx_fp_runtime_usage into l_fpex.
        perform error using l_fpex 'USAGE ERROR'.
      endtry.
      check l_fpex is initial.
    * download PDF
      data: l_len      type i,
            l_tab      type tsfixml.
      call function 'SCMS_XSTRING_TO_BINARY'
        exporting
          buffer                = l_out
        importing
          output_length         = l_len
        tables
          binary_tab            = l_tab.
      call method cl_gui_frontend_services=>gui_download
        exporting
           bin_filesize            = l_len
           filename                = l_filename_out
           filetype                = 'BIN'
        changing
           data_tab                = l_tab
        exceptions
           others                  = 1.
      if sy-subrc = 0.
        write:/ 'Datei erfolgreich geschrieben'(001).
      else.
        write:/ 'Fehler beim Schreiben der Datei'(002).
      endif.
    form error using p_fpex type ref to cx_fp_runtime
                     p_str  type string.
    data: l_errcode  type i,
          l_errmsg   type string,
          l_string   type string.
      write:/ '***************************************************'.
      write:/ '***', p_str.
      write:/ '***************************************************'.
      skip 2.
      call method p_fpex->get_errall
        importing
          errcode  = l_errcode
          errmsg   = l_errmsg.
      write:/ 'ERROR CODE       : ', l_errcode.
      write:/ 'ERROR MESSAGE    : ', l_errmsg.
      l_string = p_fpex->get_text( ).
      write:/ l_string.
    endform.
    form load_file using    p_filename type string
                   changing p_content  type xstring.
    data: l_rawtab type ty_tab,
          l_len    type i.
      call method cl_gui_frontend_services=>gui_upload
        exporting
          filename                = p_filename
          filetype                = 'BIN'
        importing
           filelength             = l_len
        changing
          data_tab                = l_rawtab
        exceptions
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          not_supported_by_gui    = 17
          error_no_gui            = 18
          others                  = 19.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                   with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
      perform convert_tab_to_x using    l_rawtab l_len
                               changing p_content.
    endform.
    form convert_tab_to_x using    p_rawtab type ty_tab
                                   p_len    type i
                          changing p_xstr   type xstring.
    data: l_line  type ty_raw,
          l_count type i,
          l_len   type i,
          l_rest  type i.
      describe table p_rawtab lines l_count.
      loop at p_rawtab into l_line.
        if sy-tabix = l_count.
          l_rest = p_len - l_len.
          concatenate p_xstr l_line(l_rest) into p_xstr in byte mode.
        else.
          concatenate p_xstr l_line into p_xstr in byte mode.
          add 255 to l_len.
        endif.
      endloop.
    endform.
    Good Luck!
    Pablo

  • Adobe Form - non-Interactive Pdf Print - Access to table cell

    Hi experts
    I am new to Adobe Print Form (non-interactive flowed form) and I am desparately need your help.
    I am merging table data from a context into a table on a form layout and then use function call to generate a print form and send it out as an email. Sofar, everything works fine - except one of the requirement that if , on any row, a cell value in column 1 > 5 (i.e. example), set the font color to red.
    I tried all sort of ways (in JavaScript) - but cannot get hold of the cell to check the value. Please show me
    1) how to get to the cell in Javascript
    2) in What event that I must place the Javascript in
    At the moment, I have the form layout as followed:
    Data
    | Report
    | | Table1
    | | | Header
    | | | | ...........H_Fd1
    | | | | ...........H_Fd2
    | | | Row
    | | | | ...........R_Fd1
    | | | | ...........R_Fd2
    etc...
    There are no reference to "table" object in Adobe lc designer - If you have please also send me some
    Thanks
    Points will be rewarded for any reply.

    Hi
      JS to fetch a the value of a field in a table is
    xfa.resolveNode("form_name.subform_name.table_name.Row1["Row Index"].column_name[0]").rawValue;
    You can write the code in the exit or validate event of the second column
    Thanks
    Gopal

  • GP adobe interactive form issue

    GP adobe interactive form issue  
    Hello All ,
    My scenario :
    I need to create three forms
    namely 1). Initiation (1)
    2). Sanction forms (2).
    When I create an interactive form to accept the initiation form details & submit the data to the next form that is sanction form , I am not able to process to the next form . why is it so ?
    basically I need to move from one action to another with two different forms.

    Hi,
    Check if you have saved and activated your interactive form callable object.
    Are you using this document:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7fad6fea-0c01-0010-56b4-8ac88b4185ab
    Regards,
    Mona

  • Reagarding saving and sending the adobe interactive form as non interactive

    Hi ,
              I am trying to send the interactive adobe form as non-interactive form  through email.The interactive form size is very large because of the interactivity.
    Can anybody suggest how to do this.
    Regards,
    Debasis

    Dear Antony,
    Thanks for the reply.
           I got you but can you pls guide me how to go about it.
    I need to send the email while submiting the form.So when and how i will be mapping each data node /attibutes of the main form with the intermediate form.My interactive form is of 30 pages and it may grow upto 40 pages.My response is with the to the main form where i am showing the success message.
    Regards,
    Debasis Nayak

  • Sending the adobe interactive form as non-interactive form through email

    Hi ,
              I am trying to send the interactive adobe form as non-interactive form  through email.The interactive form size is very large because of the interactivity.
    Can anybody suggest how to do this.
    Regards,
    Debasis

    Dear Antony,
    Thanks for the reply.
           I got you but can you pls guide me how to go about it.
    I need to send the email while submiting the form.So when and how i will be mapping each data node /attibutes of the main form with the intermediate form.My interactive form is of 30 pages and it may grow upto 40 pages.My response is with the to the main form where i am showing the success message.
    Regards,
    Debasis Nayak

Maybe you are looking for

  • E-mail search doesn't work

    Since the update of new Verizon e-mail software yesterday the search function does not work, and the screen allocations of space are unworkable. I didn't take time yesterday to set up the screens, and now it is not accessible. Software problems, or w

  • Converting named alpha channels to layers

    I have an image file with RGB channels and around 20 other channels with names (not as alph1 ...2 etc). I want to automate the process of making smaller files from the big image by loading these channels as selection. Is there script available for th

  • Firewire 400 & 800 not working together

    I have two 800 firewire external drives connected to my Macbook Pro. They're plugged into wall outlets. I also have my DVCAM deck connected via a 400 firewire cable. If the 400 is connected, one or both of the 800s disappears and vice versa. How can

  • Latest OX10 Lion update (10.7)

    This update will not install on my iMac (Intel core duo) It says due to a system error, "contact the software Maker". Ha!   I have tied updating from the Apple site and from my desktop via a download. Both with same result. Any suggestions?

  • Unable to install Eclipse BPEL Plugin

    Hello List, I am running 3.1.0 version of Eclipse. When I install BPEL Eclipse Plugin, it is complaining I am not running 3.0+version of Eclipse, which is not true. Appreciate your help on this. Thanks Booshan.