Context binding - offline scenario

Hi everyone,
I have a scenario in which the user downloads a PDF-template, fills in that form, uploads it back to WD for further processing.
Now I have the following problem:
- The context bindings between the different views in WD are mapped. But when the user uploads the form and then views it, the context
fields are not filled with the data the user had entered in the form. But when he changes a field in WD (after upload) the context field is filled.
According to the upload/download tutorial this should happen automatically, which it doesn't.
Can anyone give me some advice so I could move on?
Thank you,
Wesley

Hi,
So check the binding between controller context and model.
You might be mistake in that....
Like....here i explain example.....
Controller context                                                                      Model
Bapi............Input()                                                                Bapi...........................Input()
                                                                                .firststrucure()                                                                               
.Output()
                                                                                firststructure();
So u should be mapped with first one.
Regards,
Gurprit Bhatia

Similar Messages

  • WebService Calls in Adobe Forms Offline Scenario

    Hi,
    I think this topic was discussed, but I have a very specific question.
    I need to create an interactive form to be used in an offline scenario but consuming a webservice from an ABAP backend on user request.
    I understand you need to create and configure the web service on ABAP side using SOAMANAGER, and you need to create a data connection using the binding WSDL in the Forms Designer.
    For security reasons I would like to have a basic authentication at least. According to several blog entries this should be possible.
    Now the dilemma: it seems that in SOAMANAGER you can only create a web service with basic authentication using HTTPS.
    BUT: Adobe Life Cycle Designer does not support HTTPS.
    The only option to not use authentication at all is not an option for me.
    So, does anybody have the same problem and a solution?
    Is SOAMANAGER changed that way or did I just not find the right configuration possibilities?
    If it is that restrictiveL since when? It was different in NW 7.0, SP 14. I am currently working with SP 18.
    Please respond if you can provide any helpful insight.
    Michael

    I hope you are putting the code in the click event of a a custom Regular button and not using the one that can be drag-drop from the connectionset.
    Try sap-username as parameter instead of sap-user in above code statement.
    var cURL = "http://....?sap-client=<client no>&sap-username=<username>&sap-password=<password>" ;

  • Offline scenario

    Hi,
         I have developed an application for the offline scenario of interactive adobe form. I tried to load the adobe form from my desktop. After pressing the button "Display form" it throws an error "Parse method is not possible for this type". Could someone let me know how to get rid of this error?
    thanks
    anantharam

    Hi,
    Can someone please help me with a step by step error to this problem?
    If I include wdContext.getNodeInfo().getAttribute("pdfObject").getModifiableSimpleType() in the doInit() method of the view I receive this error -
    com.sap.tc.webdynpro.progmodel.context.ContextException: MappedAttributeInfo(UploadView.pdfObject): must not modify the datatype of a mapped attribute
    When I comment it out and upload I receive the error enclosed -
    Parse method is not possible for this type
    Any help is highly appreciated.
    Many thanks,
    Divya

  • ABAP IAF - Make Fields Editable in Offline Scenario

    Hello all,
    Good day!
    I just want to ask if its possible to make field modifiable for the ABAP Interactive Adobe Forms (transaction SFP) in an Offline Scenario?
    I ask because when I set a textfield as (user entered) during the preview section in the Livecycle Design Editor the fields can be modified. However once I use the FM to generate the print preview and save the PDF locally the field cannot be modified.
    Is there a way in how to make this possible?
    I hope to hear from you soon.
    Thanks and Regards

    Chad,
    I just had the same issue.
    I created an offline, interactive form in SFP and just called it using ABAP. The form came up and I could enter data, BUT it would not save.
    The trick is to make sure you provide a valid interface mapping between a DDIC object and the interface.
    Create an DDIC structure that matches your form fields, and make sure you pass it in the FM call and it's defined in the interface. Then map the fields to your form fields.
    btw, i'm using
    SFPDOCPARAMS-FILLABLE = 'X'.
    SFPDOCPARAMS-DYNAMIC = 'X'.

  • Dynamic context binding in web dynpro alv

    I use dynamic context binding (see code below to show and edit the ALV table.
    'DB_TABLE' is a tranparent table. It works fine.
    But now this table should be expanded with additional fields which are only known at runtime and could be different from case to case.
    How can I get these fields in the context dynamically?
      DATA:
            rootnode_info TYPE REF TO if_wd_context_node_info,
            dyn_node      TYPE REF TO if_wd_context_node,
            tablename   TYPE string.
      rootnode_info = wd_context->get_node_info( ).
      tablename = 'DB_TABLE'.
      cl_wd_dynamic_tool=>create_nodeinfo_from_struct(
        parent_info = rootnode_info
        node_name = tablename
        structure_name = tablename
        is_multiple = abap_true ).
      DATA:
            stru_tab TYPE REF TO data.
      FIELD-SYMBOLS: <tab> TYPE table.
      CREATE DATA stru_tab TYPE TABLE OF (tablename).
      ASSIGN stru_tab->* TO <tab>.
      SELECT * FROM (tablename) INTO CORRESPONDING FIELDS OF TABLE <tab>.
      dyn_node = wd_context->get_child_node( name = tablename ).
      dyn_node->bind_table( <tab> ).

    You should create a structure dynamically and use this as the context structure. See the coding below, where a structure is created, which contains CARRID and CONNID.
    DATA: node_info type ref to if_wd_context_node_info,
          struct_type TYPE REF TO cl_abap_structdescr,
          table_type  type ref to cl_abap_tabledescr,
          comp_tab    TYPE cl_abap_structdescr=>component_table,
          comp        LIKE LINE OF comp_tab,
          my_table    type ref to data,
          my_row      type ref to data.
      field-symbols: <table> type table,
                     <row> type data,
                     <flight> type sflight.
    * build a structure description from the list of single fields
      comp-name = 'CARRID'.
      comp-type ?= cl_abap_datadescr=>describe_by_name( 'S_CARR_ID' ).
      APPEND comp TO comp_tab.
      comp-name = 'CONNID'.
      comp-type ?= cl_abap_datadescr=>describe_by_name( 'S_CONN_ID' ).
      APPEND comp TO comp_tab.
    * note this structure contains the fields "CONNID" and "CARRID"
      struct_type = cl_abap_structdescr=>create( comp_tab ).
    * now the nodeinfo is created
      node_info = wd_context->get_node_info( ).
      node_info = node_info->add_new_child_node(
        name                         = 'MY_NODE'
        IS_MANDATORY                 = ABAP_true
        IS_MULTIPLE                  = ABAP_true
        STATIC_ELEMENT_RTTI          = struct_type
        IS_STATIC                    = ABAP_false
    * fill new node;
      data: l_node type ref to if_wd_context_node,
            l_flight type STANDARD TABLE OF sflight.
      l_node = wd_context->get_child_node( 'MY_NODE' ).
      l_flight = wd_assist->get_flights( ).
    *  if you could create a local data type, would be fine, but if you have to do it dynamically ...
      struct_type = node_info->GET_STATIC_ATTRIBUTES_TYPE( ).
    * create tabledescriptor from structdescription (standard table, no keys)
      table_type = cl_abap_tabledescr=>create( p_line_type = struct_type ).
      create data my_table type handle table_type.
      assign my_table->* to <table>.
      loop at l_flight assigning <flight>.
        create data my_row type handle struct_type.
        assign my_row->* to <row>.
        move-corresponding <flight> to <row>.
        append <row> to <table>.
      endloop.
      l_node->bind_table( <table> ).

  • Offline Scenario - How to Automatically Manipulate Fields

    Hello all,
    Good day! I would just like to ask in Adobe Interactive Forms using ABAP if its possible to modify fields automatically?
    So example scenario is let's say this a table with a modifiable field sorted by Operation and there is a field where you can place a value A, B,and C.
    Ex structure in PDF
    Sub-Operation
    Catalog - Drop Down
    Priority (A, B, C).
    There is another table in the PDF form. Sorted by catalog and what it will is that it will populate the A, B, C fields based on the Catalog. Sorted by Catalog.
    Ex Structure
    Catalog
    A
    B
    C
    Also keep in mind that since you can input the Catalog in the first table, the 2nd table should be appended.
    Not sure if this is possible via ABAP in the offline scenario, though if this is required using Java Script your help will still be welcome (just let me know how to code it in the events).
    Thanks and Regards

    For a dynamic form like that, you will certainly have to code it in Formcalc or Javascript. you need to check the Adobe Help for examples.
    It provides lots of examples on how to code in Formcalc and Javascript. You may even want to join the Live Cycle Designers group over at google groups for specific coding questions.

  • Interactive Forms by Adobe in Web Dynpro for ABAP: offline scenario

    Hi colleagues,
    I have the following problem:
    So I created a web-Dynpro with an interactive from. In this application there are two scenarios:
    -     An Online scenario: it works!
    -     An Offline scenario: unfortunately doesn’t work (The problem persists in this scenario).
    As I understood correct, I should be able to upload the PDF-file from my documents. But the up-load option doesn’t work.
    Please see the steps I follow:
    1. I created a FileUpload-application and then I browsed a PDF- File by using browse-button. And I got a standard open-window and I was able to choose a PDF-file, which I want to open.
    2. I click on the button upload and it doesn’t work. But the current page is only refreshed. In case it works, I should see the information I have uploaded onto my PDF-form.
    I already discussed this issue with my colleague, but couldn’t find the solution yet.
    Does anybody have the idea, why the Upload option doesn’t work?
    Thank you in advance!
    Kind Regards,
    Mohamed

    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

  • Enable AIF for adding Attachments in Offline scenario

    Hi,
    I know it is possible to add attachments in a Interactive Form, you can add them by ABAP (as you see with a trace-file). But how can I do this when the user wants to add an Attachment (in a offline scenario) it seems to mee that Reader Rights is not enough.
    Some a suggestion ? How I can obtain this.
    Useful answers will be rewarded.
    Kind Regards,
    Jeroen Cosijnse

    After new installations it seems that attaching files is included in the ReaderRight Credential
    Regards,
    Jeroen Cosijnse

  • Offline Scenario with NW04

    Hello,
    we have an ECC 5.0 system (NW 04) and would like to implement an offline scenario (CS).
    Is there a way to do this in ABAP or is it only possible in the Java stack?
    Which restrictions do you see in general in a NW04 environment?
    Thanks,
    Michael

    Actually not the answer to my question.
    It is clear that ADS is always installed on the Java stack.
    the question was which possiblities exist for offline scenarios under NW04.
    Thanks,
    Michael

  • SAP Delivered forms for an offline scenario?

    Hi,
    Is there any SAP Standard/delivered forms for an offline scenario?
    How many number of SAP standard forms are available?
    Where to look at this information?
    Thanks
    Sundar

    Hi Sundar,
    We have about 2300+ forms delivered through various SAP scenarios.
    To get an overview of this list you could have a look in Service Market Place.
    http://service.sap.com/erp
    -> Media Library - SAP ERP Overview -> Detailed information cross ERP -> Adobe Forms for SAP ERP
    Regards,
    Nikhil

  • Context binding error in Dynamic UI element creation

    Hi,
    I am new to Webdynpro. I am trying to build an app for dynamic table data in an ALV,so creating an input field for table name dynamically.
    I am facing a issue while binding the dynamic input field to the dynamically created context node attribute. The error description is: ERROR: Error in INPUT_FIELD "IF" of view "ZVK_DYNAMIC1.MAIN": Context binding of property VALUE cannot be resolved: The MAIN.1.INPUT node does not contain any elements (termination: RABAX_STATE).
    Following is the code written in wdinit( ) method and wdmodifyview( ) method of the view controller.
    METHOD wddoinit .
       DATA: lr_root_node_info  TYPE REF TO if_wd_context_node_info.
       DATA: lr_input_node_info TYPE REF TO if_wd_context_node_info.
       DATA: ls_attribute_info  TYPE wdr_context_attribute_info.
       lr_root_node_info = wd_context->get_node_info( ).  " get the root node
       CALL METHOD lr_root_node_info->add_new_child_node
         EXPORTING
           name                         = 'INPUT'
           is_multiple                  = abap_false
           is_multiple_selection        = abap_false
    *      is_initialize_lead_selection = abap_false
         RECEIVING
           child_node_info              = lr_input_node_info.
       CLEAR ls_attribute_info.
       ls_attribute_info-name          = 'TABLE_NAME'.
       ls_attribute_info-type_name     = 'STRING'.
       CALL METHOD lr_input_node_info->add_attribute
         EXPORTING
           attribute_info = ls_attribute_info.
    ENDMETHOD.
    METHOD wddomodifyview .
       DATA: lr_ui_root     TYPE REF TO if_wd_view_element.
       DATA: lr_container   TYPE REF TO cl_wd_uielement_container.
       DATA: lr_input_field TYPE REF TO cl_wd_input_field.
       DATA: lr_flow_data   TYPE REF TO cl_wd_flow_data.
       IF first_time EQ 'X'.
         lr_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
         CALL METHOD cl_wd_input_field=>new_input_field
           EXPORTING
    *       activate_access_key        =
    *       alignment  = E_ALIGNMENT-AUTO
    *       bind_alignment             =
    *       bind_display_as_text       =
    *       bind_display_only          =
    *       bind_enabled               =
    *       bind_ime_mode              =
    *       bind_input_prompt          =
    *       bind_length                =
    *       bind_password_field        =
    *       bind_read_only             =
    *       bind_state =
    *       bind_style_class_name      =
    *       bind_suggest_filter_method =
    *       bind_suggest_values        =
    *       bind_suppress_value_help   =
    *       bind_text_direction        =
    *       bind_tooltip               =
             bind_value = 'INPUT.TABLE_NAME'
    *       bind_visible               =
    *       bind_width =
    *       context_menu_behaviour     = E_CONTEXT_MENU_BEHAVIOUR-INHERIT
    *       context_menu_id            =
    *       date_picker_reference_id   =
    *       display_as_text            =
    *       display_only               =
    *       enabled    = 'X'
    *       explanation                =
             id         = 'IF'
    *       ime_mode   = E_IME_MODE-AUTO
    *       input_prompt               =
    *       length     = '20'
    *       multi_field_suggest        =
    *       no_history =
    *       on_enter   =
    *       on_table_paste             =
    *       password_field             =
    *       read_only  =
    *       state      = E_STATE-NORMAL
    *       style_class_name           =
    *       suggest_filter_method      =
    *       suggest_values             =
    *       suppress_value_help        =
    *       text_direction             = E_TEXT_DIRECTION-INHERIT
    *       tooltip    =
    *       view       =
    *       visible    = E_VISIBLE-VISIBLE
    *       width      =
           RECEIVING
             control    = lr_input_field.
         CALL METHOD cl_wd_flow_data=>new_flow_data
           EXPORTING
    *       cell_design = E_CELL_DESIGN-PADLESS
             element = lr_input_field
    *       id      =
    *       v_gutter    = E_V_GUTTER-NONE
           RECEIVING
             control = lr_flow_data.
         CALL METHOD lr_input_field->set_layout_data
           EXPORTING
             the_layout_data = lr_flow_data.
         CALL METHOD lr_container->add_child
           EXPORTING
    *       index     =
             the_child = lr_input_field.
       ENDIF.
    ENDMETHOD.
    Please help.

    Hi Vishal,
    Actually, for an input field the node should be with cardinality either 1...1 / 1...n. i.e. at least one element should exist. So you need to pass "is_mandatory = abap_true" while creating node.
    Please modify your code as below
    CALL METHOD lr_root_node_info->add_new_child_node
         EXPORTING
           name                         = 'INPUT'
           is_mandatory = abap_true
           is_multiple                  = abap_false
           is_multiple_selection        = abap_false
    *      is_initialize_lead_selection = abap_false
         RECEIVING
           child_node_info              = lr_input_node_info.
    Hope this helps you.
    Regards,
    Rama

  • Error in context binding for text property

    Hello experts,
    I receive this error in my WD4A application:
    The following error text was processed in the system XXX : Context binding for property TEXT of "T_MONTHTO"
    cannot be resolved: Node MAINVIEW.1.TEMPVAL2 does not contain any elements
    The error occurred on the application server sapxxxxx_XXX_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: RAISE_FOR of program CX_WDR_ADAPTER_EXCEPTION======CP
    Method: RAISE_BINDING_EXCEPTION of program CL_WDR_VIEW_ELEMENT_ADAPTER===CP
    Method: GET_BOUND_ELEMENT of program CL_WDR_VIEW_ELEMENT_ADAPTER===CP
    TEMPVAL2 has cardinality 0..1, selection 0..1, Inizialization Lead Selection false and the ST22 dump says:
    33
    34   if l_adapter->m_view_element is bound.
    35     l_component ?= l_adapter->m_view_element->view->if_wd_controller~get_component( ).
    36     l_view_name = l_adapter->m_view_element->view->name.
    37     l_view_element_id = l_adapter->m_view_element->id.
    38     l_component_name = l_component->component_name.
    39   endif.
    40
    41   if l_adapter->m_context_element is bound.
    42     l_path = l_adapter->m_context_element->get_path( ).
    43   endif.
    44
    >>   raise exception type cx_wdr_adapter_exception
    46     exporting
    47         textid          = textid
    48         previous        = previous
    49         component_name  = l_component_name
    50         view_name       = l_view_name
    51         view_element_id = l_view_element_id
    52         adapter_stack   = l_adapter_stack
    53         path            = l_path
    54         p1              = l_p1
    55         p2              = l_p2
    56         p3              = l_p3
    57         p4              = l_p4
    58         reason          = reason.
    59 endmethod.
    Could anybody please tell me why exactly this error is occuring?
    Many regards,
    Martin

    Hi Martin,
    I am getting the same error. can you please help me resolve this error.
    Error:
    Note
    The following error text was processed in the system RS2 : Adapter error in &VIEW_ELEMENT_TYPE& "VBELN" of view "Z_MYFIRST_WEBDYNPRO.MAIN": Context binding of property VALUE cannot be resolved: Node MAIN.1.NODE_VBAK does not contain any elements
    My Code is in the Method for the action is created for a button on MAIN VIEW
    METHOD onactionaction_find .
    wd_this->fire_to_alv_table_plg(  ).
      DATA: node_node_vbak TYPE REF TO if_wd_context_node,
            elem_node_vbak TYPE REF TO if_wd_context_element,
           stru_node_vbak TYPE if_main=>element_node_vbak .
    stru_node_vbak type wd_this->element_node_vbak.
    navigate from <CONTEXT> to <NODE_VBAK> via lead selection
    break dasarikb.
      node_node_vbak = wd_context->get_child_node( name =
    wd_this->wdctx_node_vbak ).
    get element via lead selection
      elem_node_vbak = wd_context->get_element(  ).
    get all declared attributes
      elem_node_vbak->get_attribute(
      exporting
      name = 'VBELN'
        IMPORTING
          value = stru_node_vbak ).
      DATA: ls_where(72) TYPE c,
            lt_where     LIKE TABLE OF ls_where,
            lt_vbak      TYPE STANDARD TABLE OF vbak.
    create where condition
      IF NOT stru_node_vbak-vbeln EQ ''.
        CONCATENATE 'VBELN = ''' stru_node_vbak-vbeln '''' INTO ls_where.
        APPEND ls_where TO lt_where.
      ENDIF.
      IF NOT stru_node_vbak-erdat EQ '00000000'.
        CONCATENATE 'ERDAT = ''' stru_node_vbak-erdat '''' INTO ls_where.
        IF stru_node_vbak-vbeln NE ''.
          CONCATENATE 'AND' ls_where INTO ls_where SEPARATED BY space.
        ENDIF.
        APPEND ls_where TO lt_where.
      ENDIF.
      SELECT *
             FROM vbak
             INTO TABLE lt_vbak
            WHERE (lt_where).
      DATA: node_node_alv TYPE REF TO if_wd_context_node,
            stru_node_alv TYPE if_main=>element_node_alv.
    navigate from <CONTEXT> to <NODE_ALV> via lead selection
      node_node_alv = wd_context->get_child_node( name =
    if_main=>wdctx_node_alv ).
    get all declared attributes
      node_node_alv->bind_table( lt_vbak ).
    ENDMETHOD.
    Thanks,
    Kiran

  • Context Binding is not possible in webdynpro component for Interactive form

    Hi,
    Click
    [Enhancement of webdynpro component|http://swethacblog.blogspot.com/2011/11/context-binding-for-interactive-form.html#!/2011/11/context-binding-for-interactive-form.html] to view the procedure that I have followed to create interactive form in enhanced view.
    Can you please tell me that why i am getting the context menu nodes in invisible mode while binding it to from interface.
    Thank you,
    Swetha.C

    Hi Abhil,
    If your layout type is 'ZCI Layout' then you have insert the webdynpro script in the layout. After selecting the ZCI Layout click on enter and then go to layout tab, in this go to Utilities menu->select Insert WebDynpro Script.
    If you do this then in the Hierarchy tab of adobe form you can see the (Variable) ContainerFoundation_JS, it means that you have inserted WebDypro Script in the form.
    Finally activate the form and run the application.
    Thanks,
    Jhansi Miryala

  • Adobe Interactive Form - Offline Scenario

    Dear Experts,
    I am new to this feature. I am developing sap interactive form with offline scenario. I try to put the button in adobe designer and call my Function module that exposed as web services.
    Questions
    1. When I execute, It was failed. Do I need to install adobe professional in order to make it work?
    2. What can I see, we can put Java Script code. In the end user side, do we need to install adobe professional or adobe reader is enough?
    Many many thanks.
    Thanks & Regards,
    L.Mochisuki

    Hi,
    At the user end, Adobe Reader is enough to call the web service. What is the issue that you are facing while calling the web service? If you search you will get many threads which explains the steps of calling web service.
    Thanks & Regards,
    Sanoosh

  • PMS Offline Scenario - Download Issue

    Hi,
    I am facing issue in the PMS offline scenario (Download).
    I am executing an standard BSP application (HAP_DOCUMENT) for PMS process.
    In that i tried PMS offline process, download the appraissal form from he BSP page.
    A popup window opens without displaying anything and all of a sudden it get closed.
    But as per the standard scenario whenever an appraisal form is downloaded it will be locked automatically, for me also the form get locked but it was not downloaded.
    I don't know why that popup window getting closed automatically, as that window only shows the option of saving the appraissal form to the local desktop.
    Kindly help me on this to get solved.........
    Thanks in Advnace.........
    Thanks & Regards,
    Chandran S

    Hi all,
    (Detailed Description of the Issue)
    We are in process of implementing PMS(Performance Management System) Offline Scenario and We are facing issues while implementing.
    We are able to create an appraisal form through the apraisal template "Performance Goal Setting" (TCODE : OOAM). While we are performing the Offline process, downloading the appraisal form from either as Part appraiser or final appraiser,(Normally a popup window will get openned, which will have the option to download form to the local desktop), for us popup window  opens and closed immediately with out showing the option to downlaod the form. And as per the PMS offline scenario whenever an apraisal form is get downloaded, it will be locked (offline lock) automatically (TcODE : PHAP_ADMIN).For us also the form is getting locked (Offline Lock).
    Note : We are executing an standard BSP application.
    Category Group : Personnel Appraisals
    Category : NewFunctions ERP2005
    Appraisal Template : Performance Goal Setting.
    BSP Application : HAP_DOCUMENT
    Pages with Flow Logic : documents_todo.htm
    Regards,
    Chandran S

Maybe you are looking for