Reusable component for displaying Interactive Adobe form

Hi All,
I have created a web-dynpro component which will display the different  Interactive form at runtime depending on the data passed from the host application.
Following is the process I have done for the same:
1. Create a node and attributes at runtime with the data from the source node from host application.(using node and node_info class).
2. Passing the data is a problem since it gives dump(invalid operand)
3. Creating Interactive form element at runtime (passing data like form_name, data_source...etc)
4. Adding the element on view
Here form is displayed on the screen.... However, the form is empty...(irrespective of the random data entered on in debugging mode).
I dont know what is going wrong.
Following is the code:
lo_inft_node = go_v_main_cont_node->get_child_node( `FORM_DETAILS` ).
  lo_inft_node->get_static_attributes( IMPORTING static_attributes = ls_form_details ).
  lo_main_node_info = go_v_main_cont_node->get_node_info( ).
  CHECK ls_form_details-data IS NOT INITIAL.
  lo_node_info = ls_form_details-data->get_node_info( ).
  lo_rtti = lo_node_info->get_static_attributes_type( ).
  lt_attributes = lo_node_info->get_attributes( ).
*  lo_data_node_info = lo_main_node_info->add_new_child_node( name = `FORM_DATA` static_element_rtti = lo_rtti attributes = lt_attributes is_static = abap_false ).
  lo_data_node = go_v_main_cont_node->get_child_node( `FORM_DATA` ).
  lo_data_node_info = lo_data_node->get_node_info( ).
  LOOP AT lt_attributes INTO ls_attributes.
    lo_data_node_info->add_attribute( ls_attributes ).
  ENDLOOP.
  CREATE DATA lo_stru TYPE HANDLE lo_rtti.
  ASSIGN lo_stru->* TO <lfs_stru>.
  ls_form_details-data->get_static_attributes( IMPORTING static_attributes = <lfs_stru> ).
  lo_data_node = go_v_main_cont_node->get_child_node( `FORM_DATA` ).
  lo_data_node_info = lo_data_node->get_node_info( ).
  lo_rtti_dest = lo_node_info->get_static_attributes_type( ).
  CREATE DATA lo_stru_dest TYPE HANDLE lo_rtti_dest.
  ASSIGN lo_stru_dest->* TO <lfs_stru_dest>.
*  MOVE-CORRESPONDING <lfs_stru> to <lfs_stru_dest>.
  lo_data_node->set_static_attributes( static_attributes = <lfs_stru> ).
*  IF lo_data_node IS BOUND.
*    DATA: lo_el_data_node TYPE REF TO if_wd_context_element.
*    lo_el_data_node = lo_data_node->bind_structure( new_item = <lfs_stru> ).
*    lo_el_data_node->set_static_attributes( static_attributes = <lfs_stru> ).
*    lo_data_node->set_static_attributes( static_attributes = <lfs_stru> ).
*  ENDIF.
*  lo_data_node->get_static_attributes( IMPORTING static_attributes = <lfs_stru> ).
  me->gd_data_path = lo_data_node->get_meta_path( ).
  DATA: ld_offset.
  FIND FIRST OCCURRENCE OF '.' IN me->gd_data_path MATCH OFFSET ld_offset.
  ADD 1 TO ld_offset.
  me->gd_data_path = me->gd_data_path+ld_offset.
  CHECK ls_form_details-form_name IS NOT INITIAL AND
        me->gd_data_path          IS NOT INITIAL.
*  lo_form_disp ?= go_v_main_view->get_element( `PRINT_FORM` ).
*  CHECK lo_form_disp IS BOUND.
*  lo_form_disp->set_template_source( ls_form_details-form_name ).
*  lo_form_disp->bind_data_source( me->gd_data_path ).
  lo_form_disp = cl_wd_interactive_form=>new_interactive_form( bind_data_source = me->gd_data_path display_type = cl_wd_interactive_form=>e_display_type-native height = '800' read_only = abap_true template_source = ls_form_details-form_name view =
go_v_main_view width = '100%' pdf_source =
me->gd_pdf_source ).
  IF lo_form_disp IS BOUND.
    lo_flow_data = cl_wd_flow_data=>new_flow_data( element = lo_form_disp ).
  ENDIF.
  lo_container ?= go_v_main_view->get_element( 'ROOTUIELEMENTCONTAINER' ).
  IF lo_container IS BOUND.
    lo_container->add_child( lo_form_disp ).
  ENDIF.
Awaiting some replies....
Cheers,
Kunjal

Hi All,
Any updates please?

Similar Messages

  • Webdynpro for ABAP - interactive Adobe form - drop down lists not working

    Hi all,
    I'm trying to create an interactive form for a client using webdynpro for ABAP and I've viewed the demo "Create SAP Interactive Forms by Adobe with Web Dynpro for ABAP" by Thomas Jung, but when I implement it the form following similar steps the form is not interactive.
    In the properties of the "InterativeForm", I've tried clicking the "enabled" flag both on and off.  I've also tried setting the "displayType" property to both "ActiveX" and "Native".  But none of this worked.
    I though my problem might be with Adobe reader so I switched from 8.0 back to 7.0 but this didn't make any difference either.
    The system we are using is NW04s WAS 700.  Any hints would be greatly appreciated!
    Thanks,
    -tom

    Thanks for the suggestion Dezso.  I've downloaded a newer version of ACF as indicated by the OSS note and installed it.  I'm still having the same issue.
    My basic question is what options should I be using in the form and on the InteractiveForm component?  It looks like because of the evolution of the product there are multiple options available.  I recall reading somewhere that as of a certain SP level we should have ZCI (zero client install) available.  The would be our preference.  It will be a support nightmare if each user needed a manual download of ACF.exe installed.
    Should I click the "enabled" flag on the InteractiveForm object?  When I create the form should I use the "Native" drop down list or the one from the "Active X" tab?  I would like to use the "List Box" control on the form as well but it is only available in the "Standard" tab.  So does that mean I can't get the selections from a "List Box"?
    Thanks,-tom

  • Incomplete text displayed in interactive ADOBE form

    Hi Guys,
                 I have an interactive adobe form where a drop down will display "EQUIPMENT NO" W.R.T to the selection screen i/p
    uporn selection of the "equipment number"  the "EQUIPMENT NAME"field automatically populates.
    I used to get an error message "Entry is too long",
    got rid of it by setting the value of TYPE property of attribue to "MAXLENGTH" , uporn doing this the drop down and the discription text is displaying only  last 3 char of the values.
    I tried increasing the size/characters of the fields in the table in the form but was of no use. Any inputs will be Appreciated

    Yes I have checked all the subforms Flowed. Text field is working good in Preview Pdf Option of NWDS.
    But when I generate the pdf on server, when TextField flows to next page, on next page it repeats from first line.

  • Help for Interactive ADOBE form

    Can anybody tell me the example of Interactive ADOBE form usin web dynpro in ABAP? I am getting stucked at mapping between the two contexts. PLease guide me. And also the next step for Interactive form. After mapping betwwen form and web dynpro context.

    For further questions, check the follow
    https://www.sdn.sap.com/irj/sdn/adobe
    Improving the Performance of Adobe® LiveCycleu2122 Designer Forms(scripting)
    http://www.adobe.com/devnet/livecycle/articles/lc_designer_perf_guidelines.pdf
    Interactive Forms Based on Adobe Software: Overview
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e635e290-0201-0010-a9be-9e8e4ce04770
    Adobe Interactive Forms
    http://www.saplounge.be/Files/media/pdf/Huberland-Interactive-Forms-2007.10.10.pdf
    Taking interactive forms to next level
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8c103c36-0301-0010-cda8-f6b381bedb6e
    Introduction to Adobe PDF Library SDK(PDFL SDK)(Simply scroll the document)
    http://partners.adobe.com/public/developer/en/webseminars/PDFL_WebSeminar.pdf
    Creating Interactive forms in webdynpro for java
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5f27e290-0201-0010-ff82-c21557572da1
    PDF-Based Print Forms/SAP Interactive Forms by Adobe
    http://help.sap.com/saphelp_nw04s/helpdata/en/c8/4adf7ba13c4ac1b4600d4df15f8b84/frameset.htm
    Date Objects in Adobe Designer
    http://help.sap.com/saphelp_nw04/helpdata/en/dd/60694fddb74ad88cdb7d2a094f3dd2/frameset.htm
    Checking and Testing a PDF-Based Print Form
    http://help.sap.com/saphelp_nw04s/helpdata/en/c2/1fe9aa4d7b413e8515f90b73729e97/frameset.htm
    Architecture
    http://help.sap.com/saphelp_nw04/helpdata/en/f2/21021b911f4c0cae11459a4ce0bc62/frameset.htm
    http://www.nl4b.com/Adobe/Invitation_SAPBrussels_Q407.pdf

  • Eed link to the tutorial for creating a Interactive Adobe forms using WDA

    Hi Friends,
      I need link to the tutorial for creating a Interactive Adobe forms using WD ABAP

    Hi,
    Before posting search once in sdn for Blogs or articles.You will get information.Any how please look at this video demonstartion.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/20029530-54ef-2910-1b93-c41608ae0c90
    and check these blogs
    https://www.sdn.sap.com/irj/sdn/adobe?rid=/webcontent/uuid/24b9e126-0b01-0010-e098-f46384fad9f3

  • Interactive Adobe form for performance appraisal

    Hi Experts,
    Is it possible to create Interactive Adobe Form for Performance appraisal? I understand that the appraisal template varies company to company.Does it affect the Form? Can we update the infotype 0025 ( Appraisals where appraisee /Appraisals where appraiser tab) ? Please advice on this.

    Hi,
    We had the same question sometime back. This is what we found
    1. Users will not finish Performance Apprisal document in one session, they will complete partially and then comback another day to complete it.
    2. IT25 is not like normal infotype, it might be challenging to update it with BAPI/RFCs.
    These two issues stopped us from doing Adobe interactive forms (PCR like) for Performance apprisal.
    Srini

  • 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.

  • Error while Uploading Interactive Adobe Form

    Hi,
    I have been given a template Interactive Adobe form by Adobe which i have to upload in SAP. I created a test interface and form then i am trying to import the template into the layout. I get following error -
    " Can not Load: "http://dldtc00.wdf.sap.corp:5800/sap/bc/soap/wsdl11?services=test&sap-client120&sap-user=ag&sap-password=d01&. Check that path is correct and that the file is a valid WSDL file."
    Could you please tell me why am i getting this error and how to fix it?
    Thanks,
    Amit

    Abhi
    I too got the same error:
    WebDynpro Exception: The ADS call has failed. You can find information about the cause in the error.
    I refered the link provided by you for testing the ADS configuration and it displayed a 2 page report.
    Is that mean that there is a problem in my form?
    Regards
    Vijai

  • Save interactive adobe form in presentation server through report program

    Hi All,
              We have developed a interactive adobe form in SFP transaction and we are calling this form
              from report program  and we are able to save the form in presentation  server.
              But my scenario is that user provides input in interactive adobe form and i need to save the interactive adobe form
              in display mode that to in  presentation server with input values provided by the user.
             could  any help to achieve this or guide me if i am  moving in a wrong path.
    Thank you,
    Harsha P

    It all depends on what you want to do.
    If you are planning on users to fill out on-line form only and submit to SAP, it is pretty easy to do (that is once you understand how to create web dynpro and interactive form).
    You can also have users fill a form offline and upload to online and save it to SAP.
    You do need to know little bit about coding (ABAP or JAVA),
    but can be done w/ very minimum coding.
    If you are planning on doing in Web Dynpro ABAP,
    go to SE 80 and select WebDynpro and create form.
    To save data/form to SAP, you probably want to use BAPI or Function module already available so that you don't have to do much coding to save data.
    See some of these links for helpful tutorials. Thomas Jung has several good tutorials, but none of them probably have all the information you need... you just have to pick some from here and some from other places... If you have specific question, I will be happy to guide you...
    Practical tips for developing with ABAP WebDynpro
    Practical tips for developing with ABAP WebDynpro
    http://help.sap.com/saphelp_nw2004s/helpdata/en/7c/3545415ea6f523e10000000a155106/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/c766e918-0b01-0010-99b1-c2b78cd059b3

  • NewLine Character in the String received from Interactive Adobe Form

    Hello Experts,
    Following is the issue we have with interactive Adobe Form
    We have a text area within the form. User enters the text in multiple lines in this text area.
    We are calling a backend function module designed in SE37 that accepts and process the data from the adobe form.  We are also processing the string data user enters in the text area.
    When we receive the string from the form, the newline character within the string is displayed as '#' in the debugger. We tried splitting this string using cl_abap_char_utilities=>newline and cl_abap_char_utilities=>cr_lf  but NO luck. Though in the debugger we see cl_abap_char_utilities=>newline  as '#'  in the debugger and also '#' is present within the string, for some reason when string is processed to find cl_abap_char_utilities=>newline, we can find/locate it.
    Because ABAP code is not able to identify the newline character within the string received from Adobe form, we are not able to maintain the formatting of the string as it was entered in the form.
    Any help to resolve this issue is appreciated.
    Thanks in Advance.
    Regards,
    Bhushan

    Hi Bhushan,
    I was going through your issue, and I feel this is something you can do with scripting. Basically you should read whole string and find the new line character and replace with a space or comma, as per your requirment.
    Do like following:
    In the exit event of the field select java script and write following code:
    var strng = this.rawValue;
    strng.replace(/\n/g, " ");
    above im reaplcing new line with a space.
    I think it should work I have not tested it. Pls update if you test it .
    Regards,
    Ravi.D

  • Interactive Adobe Form's  Language Translation

    Hi all,
    we activated the MSS 60.1 version on the SAP NetWeaver 2004 Enterprise Portal.
    We need to activate a link on EP that refers to PCR application. From this link we want to call all the Interactive Adobe Forms associated to the ISR standard scenarios.
    Our problem is this: all the standard Adobe Forms are generated in german language. How can we generate them in italian language?
    Thanks a lot to all.

    Hi,
    Maybe useful.
    <b>Translation, globalization, internationalization</b>
    980522   Umlaut is not displayed in Interactive Form
    994045   Non-Latin-1 characters in PDF forms
    963063   Special characters not allowed in the name (create form)
    950271   Translation process in SFP
    837217   Update of translation process
    917483   Translation update
    864990   Form Builder: Layout translation settings
    876203   ISR Layout translation
    Source: <a href="/people/markus.meisl/blog/2006/11/03/the-most-important-sap-notes-for-sap-interactive-forms">/people/markus.meisl/blog/2006/11/03/the-most-important-sap-notes-for-sap-interactive-forms</a>

  • How to display an ADOBE FORM in the same view

    Hi forum
      I am displaying an Adobe Form in a view of Web Dynpro for Java, but when this open, the adobe form open another windows with de pdf... how can i diplay this adobe form in the same view ?
    Thnks
    Josué Cruz

    Hi Josué Cruz,
    Insert the 'Interactive Form' UI element in the desired view.
    And bind its 'pdfSource' property to the context atribute pdf source. Optionally, you can set height and width of the form.
    -Aarthi

  • Guided Procedures and online interactive adobe forms.

    Hi Experts,
    Scenario : User have to log into GP runtime, When he clicks the first action it should display the adobe form. He  has to fill the details and submit the form. This form is routed for Approver 1 for review. The first approver will log into portal,view it (UWL),approve it and sent for second approver.The same process happens with the second approver.After both approvals, a BAPI updates the data in the interactive form in R/3
    All the process have to be done in Guided Procedures, then  integrated with Portal at the end.
    We have tried creating an Wdynpro Java app with online adobe form and executed successfuly in NWDS and also in Webdynpro content administrator.
    issue:-
    When we create a callable object(webdynpro app(gp interface CO)) in GP and test, we were unable to view the form.
    Now our question is : what are we mising ?
    Is it possible to integrate online interactive adobe form with guided procedures?
    Is our approach to solve the scenario right?
    any links or tutorials will be greatly appreciated
    TIA,

    Hi
    See the following Link: [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/8a696cea-0c01-0010-d494-9b0b8ce7565f&overridelayout=true]
    Kind Regards
    Mukesh

  • Run time switched to interactive adobe form

    Dear Experts,
    I was able to convert the smartform in runtime to Adobe form but the resulting form is non-interactive.
    Is it possible to convert the smartform to a interactive PDF??
    I have a requirement , in the generated Adobe form I would like to insert a signatue field. I was able to convert the smartform and display the generated PDF with the signature field but it was non-interactive.
    Please suggest me a way to make it interactive.
    Regards
    sree.

    Dear Sandra,
    Thank you for your quick reply.
    We have installed the ADS configuration and were able to design the forms using SFP tcode. Now I want  to get the design Layout/data  existing in the smartforms to this interactive form.
    Please provide me any possible solution for this.
    I was able to export the layout of smartform to adobe form but the layouts were not same is there any other way to bring the same layout from the Smartform to the interactive Adobe form??
    Regards
    sree

  • How to use SAP Business Workflow along with Interactive Adobe Form

    Hi Experts,
    I am working on SAP Business Workflow since last couple of years.
    Now i have got a new Project where client wants to use SAP Business Workflow along with Interactive Adobe Form.
    I am new to Interactive Adobe Form and Portal thing and i really dont know from where to start.
    We have one central system and 2 local systems. when we do create a Material document using adobe form workflow should trigger and notification should go to group of users who can approve or reject it, once they approve it document gets created in central system and replicated to 2 local system through ALE.
    In the Local system they do extend the document to different plants, again workflow triggers and notification will go to Managers inbox for the approval.
    Once the final approval done data should go and store in SAP.
    Now here i have couple of Questions.
    1. In SAP R3 Business workflow when i execute the workitem from the inbox i do get the application screen ( i.e. MM01 MRP View ) , what is going to happen if the same case i have with Adobe form?? is it possible or do we have to design a adobe form and we will have to map the fields with backend application??
    2. Do i have to maintained 3 separate Org Structure for 3 different system or using UWL  i can manage the show
    3. Untill final submit is not done, where the application data is going to be, is there any kind of buffer that we will have to keep it or its there with XML file??
    Please help me out.
    Thanks in Advance.
    Regards,
    Manoj

    Hi Manoj,
    Welcome to ADOBE Forms related Workflow Development. Well, here are my answers.
    1) You can go for either go for ISR based development or WD development with Adobe form. In both the cases you can achieve your requirement. Yes, you will have to design the Adobe form and bind the fields to backend.
    2) Am not clear or your System landscape to advice you in these regards.
    3) Until final Submit/Approval is done, the data can be stored in WORKFLOW CONTAINERS or XML FORM(If you go for ISR based Development).
    Hope this helps.
    Regards
    <i><b>Raja Sekhar</b></i>

Maybe you are looking for

  • Hard drive back up

    How can I back up my hard drive, I am quite new to the Mac world. Can I revert to it after a Hard drive format? Thanks a lot all the best Rafcio

  • IWeb 08 bug in my html and I can't find it!

    iWeb created this code. This is a box with two hyperlinks in it, seperated by a graphic. In iWeb, each of the links goes loads the correct web page. However, after uploading the blog.html page and clicking on the links there, they are BOTH going to m

  • LCM x FDM artifacts in 11.1.2.3

    Hi All,          I'm trying to export the artifacts from a FDM app using LCM at Shared Services 11.1.2.3 version. But everytime I click on the app, I've got the following error : Error : LCM is not supported for this Application         Does it means

  • Titling errors galore

    I am having a serious problem trying to title my tracks- since the last iTunes 'upgrade' I find iTunes decides what the titles of my playlists and artists are! I am a producer with a specific naming system to the work I do and iTunes is arbitrarily d

  • Problem download the SAP GUI 6.40

    Hi I need to download the SAP GUI 6.40  andI have navigated through: service.sap.com -> software download -> SAP installations and upgrades -> Entry by application group -> SAP frontend components -> SAP GUI for windows. I can see follwoing four opti