Updated data in a web dynpro application

hi
when we develop a web dynpro application using a model from an  R/3 as a backend access system , how is the data updated in the application, in the portal whenever there is a change in the source OLTP data tha we used?
thanks in advance
krishna chaitanya

Hi,
Do you want to change the message server name thriugh coding then use the below code.
Store the message server name in a customizing table.
use the below code to replace the MS name:
DATA    lv_temp_str TYPE char255.
  DATA    lv_split1 TYPE char255.
  DATA    lv_split2 TYPE char255.
DATA :  lv_string TYPE string,
          lv_application TYPE string.
DATA    lv_dns_str TYPE /mrss/t_rm_dns_str.
CALL METHOD cl_wd_utilities=>construct_wd_url
    EXPORTING
      application_name = lv_application " webdynpro application name
    IMPORTING
      out_absolute_url = lv_string."url of the application.
lv_dns_str = message server name form the customizing table
lv_temp_str = lv_string.
  SPLIT lv_temp_str AT '//' INTO lv_split1 lv_split2.
  CLEAR lv_split1.
  lv_temp_str = lv_split2.
  SPLIT lv_temp_str AT '.' INTO lv_split1 lv_split2.
  lv_temp_str = lv_split1.
  REPLACE lv_temp_str IN lv_string WITH lv_dns_str.
Regards,
MAdhu

Similar Messages

  • Exchanging data between a Web Dynpro application and SAP Web Shop

    I'll try to keep this as clear as possible:
    1) We have the SAP Internet Sales system running, which has a series of Business Object classes and corresponding Backend Layer objects that can return data from several sources.
    2) We are able to create our own Backend Layer objects that would return data from a component called IPC, which is a Java component.
    3) I would like a Web Dynpro application to retrieve data from this backend layer object, but I am not experienced enough with Java to know if what I want to do is possible. I don't think that I can use JCo, because I am trying to get a Java component (class?) in Web Dynpro to access a Java class remotely.
    4) I think I am asking is this: is there a way for a Java to Java connection to be created, much like Web Dynpro can use JCo to connect Java to ABAP systems?
    If this is a glaringly obvious question to Java programmers, my apologies!
    - Tony.

    Somebody on another forum recommended using RMI. Which would be the better option in terms of ease of implementation?
    - Tony

  • How to send data from a web dypro application using workflow

    Hi All,
    I am working on a web dynpro application where the user will enter the header and item details for a FI document to be posted. Once the user enters the data the workflow should initiate and should also send the data across to the approver to approve. To initiate the workflow I am using the function module 'SAP_WAPI_START_WORKFLOW' and it's working fine and generating a uniquw workflow item id. Now my main concern is how to send the data across from web dynpro application through the workflow. I have my data in three internal tables: 1. header table. 2. G/L table and 3. Currency table, I am capturing all this data from the web dypro screen entered by the user. Right now I have the following code in my web dypro application.
    METHOD execute_bapi_acc_document_post .
      DATA: return TYPE TABLE OF bapiret2.
      DATA: wa_return LIKE LINE OF return.
      DATA lo_bapi_acc_document_po TYPE REF TO if_wd_context_node.
      DATA lo_changing TYPE REF TO if_wd_context_node.
      DATA lo_accountgl TYPE REF TO if_wd_context_node.
      DATA lo_currencyamount TYPE REF TO if_wd_context_node.
      DATA lo_importing TYPE REF TO if_wd_context_node.
      DATA lo_documentheader TYPE REF TO if_wd_context_node.
      DATA lo_element TYPE REF TO if_wd_context_element.
      DATA lt_elements TYPE wdr_context_element_set.
      DATA ls_c_documentheader TYPE if_componentcontroller=>element_documentheader.
      DATA lt_c_accountgl TYPE if_componentcontroller=>elements_accountgl.
      DATA ls_c_accountgl LIKE LINE OF lt_c_accountgl.
      DATA lt_c_accountgl_cp TYPE if_componentcontroller=>elements_accountgl.
      DATA lt_c_currencyamount TYPE if_componentcontroller=>elements_currencyamount.
      DATA ls_c_currencyamount LIKE LINE OF lt_c_currencyamount.
      DATA lt_c_currencyamount_cp TYPE if_componentcontroller=>elements_currencyamount.
      DATA wa_c_currencyamount type bapiaccr09.
    CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
      EXPORTING
        TASK                      = 'TSXXXXXXXXXX'            
       USER                      = sy-uname
    IMPORTING
       RETURN_CODE               = L_RETURN_CODE
       WORKITEM_ID               = LV_WIID
    TABLES
    *   INPUT_CONTAINER           = lt_input_container
       MESSAGE_LINES             = lt_message_lines
       AGENTS                    = ls_agents
      lo_bapi_acc_document_po = wd_context->get_child_node( wd_this->wdctx_bapi_acc_document_po ).
      lo_changing = lo_bapi_acc_document_po->get_child_node( wd_this->wdctx_changing ).
      lo_accountgl = lo_changing->get_child_node( wd_this->wdctx_accountgl ).
      lo_currencyamount = lo_changing->get_child_node( wd_this->wdctx_currencyamount ).
      lo_importing = lo_bapi_acc_document_po->get_child_node( wd_this->wdctx_importing ).
      lo_documentheader = lo_importing->get_child_node( wd_this->wdctx_documentheader ).
      lo_element = lo_documentheader->get_element( ).
      lo_element->get_static_attributes(
        IMPORTING static_attributes = ls_c_documentheader ).
      lt_elements = lo_accountgl->get_elements( ).
      LOOP AT lt_elements[] INTO lo_element.
        lo_element->get_static_attributes( IMPORTING static_attributes = ls_c_accountgl ).
        INSERT ls_c_accountgl INTO TABLE lt_c_accountgl[].
      ENDLOOP.
      lt_c_accountgl_cp = lt_c_accountgl[].
      lt_elements = lo_currencyamount->get_elements( ).
      LOOP AT lt_elements[] INTO lo_element.
        lo_element->get_static_attributes( IMPORTING static_attributes = ls_c_currencyamount ).
        INSERT ls_c_currencyamount INTO TABLE lt_c_currencyamount[].
      ENDLOOP.
      lt_c_currencyamount_cp = lt_c_currencyamount[].
      READ TABLE lt_c_currencyamount INTO ls_c_currencyamount INDEX 2.
      ls_c_currencyamount-amt_doccur = ls_c_currencyamount-amt_doccur * '-1.0000'.
      MODIFY lt_c_currencyamount FROM ls_c_currencyamount INDEX 2.
      CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
        EXPORTING
          documentheader = ls_c_documentheader
        TABLES
          accountgl      = lt_c_accountgl
          currencyamount = lt_c_currencyamount
          return         = return.
    ENDMETHOD.
    Please suggest.
    Thanks,
    Rajat
    I am not sure if this falls in webdynpro or workflow threads.. so I am posting it here also
    Edited by: rajatg on Jun 23, 2010 9:28 PM

    Dear Colleague,
    You have different method to send parameters to Workflow.
    1. Method
    Container Set Element
    DEFINE SWC_SET_ELEMENT.
      CALL FUNCTION 'SWC_ELEMENT_SET'
        EXPORTING
          ELEMENT   = &2
          FIELD     = &3
        TABLES
          CONTAINER = &1
        EXCEPTIONS
          OTHERS    = 1.
    END-OF-DEFINITION.
    Set the data into Workflow container
        SWC_SET_ELEMENT IT_CONTAINER 'parameter1' lv_parameter1.
    Start the Workflow
        CALL FUNCTION 'EWW_WORKFLOW_START'
          EXPORTING
            X_TASK          = 'WS90000001'   " your wf
          IMPORTING
            Y_WORKFLOW_ID   = WF_ID " your workitem id
          TABLES
            X_CONTAINER     = IT_CONTAINER
          EXCEPTIONS
            INVALID_TASK    = 1
            NO_ACTIVE_PLVAR = 2
            START_FAILED    = 3
            GENERAL_ERROR   = 4
            OTHERS          = 5.
    2. Method,
    You can also add your parameters direly to a container,
      DATA: lt_simple_container TYPE TABLE OF swr_cont,
            ls_simple_container TYPE swr_cont.
      ls_simple_container-element = 'parameter1'.
      ls_simple_container-value = lv_parameter1.
      APPEND ls_simple_container TO lt_simple_container.
      CALL FUNCTION 'SAP_WAPI_WRITE_CONTAINER'
        EXPORTING
          workitem_id      = WF_ID " your workitem id
          do_commit        = 'X'
        TABLES
          simple_container = lt_simple_container.
    Bulent.

  • Adobe form data not being retrieved by Web Dynpro application

    Hi,
    I have created an online interactive Adobe form embedded in a Web Dynpro ABAP application.  The Web Dynpro application calls a function module to update data in SAP.  My problem is that the ABAP code that was generated to retrieve the data from the Adobe form and call the function module does not retrieve the data if it has been typed into any of the input fields.  Oddly enough, it does work if the data is entered by using the value helps that have been placed on the form. 
    I would appreciate any suggestions.
    Thanks!
    Russell

    Use messageboxes on various events to find out when your value dissapeears.
    If you´re not sure about the binding, you can always drag/drop from data view tab onto the layout and check the binding which the system generates for you. Just to make sure.
    Regards Otto

  • Example storing data in the default schema with a Web Dynpro application

    Hi,
    is there any example or tutorial for storing data in the default schema with a Web Dynpro application via SQLJ or Hibernate by using the default DataSource?
    Thanks for Help,
    Dirk

    Hi,
    When you create the TAB-Strip object you should be able to set the default displayed TAB against the properties of the TAB-Strip.
    Gareth.

  • Web Dynpro Application Deployment need server restart?

    Hi Everyone,
    When deploying Web Dynpro application on production environment, do we need to restart the sap portal system and server?
    I have this issue that when ever we deployed new develop Web Dynpro application with new Abap Function module we need to restart our Enterprise portal production server. Is this really necessary. Is there other way to deploy Web Dynpro application with new Abap function module without restarting the server.
    Please help,
    Michael Mondelo

    Hi michel,
    for example , assume you imported a RFC bapi_flights from r/3 to webdynpro dc , and both rfc requests and webdynpro application is deployed to the development server and then moved to quality server.
    now you have done some changes in the rfc bapi_flights i  mean change in the structure .
    case 1 : now with out reimporting the change to webdynpro application and you move the request to the quality r/3, your application dumps . because the structure change is not incorporated at your webdynpro DC.
    case 2 : you have re imported the rfc incorporating the changes to the web dynpro applicaiton dc, now with out moving the structure changes request to the quality r/3 and you deploy the webdynpro Dc having the changes to your quality EP , still the applicaiton dumps because your appliction refers to the rfc with out structure change in quality r/3.
    case 3 : you have moved the abap request having the strucutre change and also the webdynpro development component where the changes are also incorporated , now on moving both , your application might dump , because the meta data cache might have been not updated with the new structure change in the quality ep server. so you have invalidate the cache in the JCos you have used to import the rfc. or else on restarting the EP server , the new structure change will be updated in the server.
    most of the cases  Invalidation of cache works and in some cases you have restart the server fo the changes to update.
    Regards
    Govardan Raj

  • Passing a parameter while calling a web dynpro application on portal

    hi
    I am having a web dynpro application which retrieves data from R/3 system via RFC using Jco destinations define in the Portal.
    Now we have different kinds of portals running on the same WAS, now I want the application to run which access data from different R/3 systems thru different JCo destinations.
    I need to create a logic such that mu application runs fine on any portal with any Jco destination.
    Is there any provision to achieve this.
    kindly let me know about this.
    Thanks and regards
    kris

    Gopi,
    there's an parameter called "sap-wd-arfc-useSys" you can pass to the application, to change the used JCo-Connection (read more at http://help.sap.com/saphelp_erp2005/helpdata/en/f4/651741f163f023e10000000a155106/frameset.htm)
    so, if you're running the WD-aaplication on <b>one</b> WAS and call it from different portals, you have to create three (or six with the META-connections) JCo-Connection on your WD-WAS.
    In a WD-application you can access URL-Parameters with:
    WDWebContextAdapter.getWebContextAdapter().getRequestParameter("<your URL Parameter-Name>");
    kr, achim

  • Problem with starting the Web Dynpro Application

    Hello,
    I have a problem with my web dynpro application, which is in our SAP Portal. We have three different systems (development, test, production). In production always the follewing error message occurs:
    The URL https://zsil2401.servers.wacker.corp:9004/sap/bc/webdynpro/sap/ZPLM_EN_FORM_300MM/ was not called due to an error.
    Note
    The following error text was processed in the system P1A : is not a valid attribute type.
    The error occurred on the application server zsil2401_P1A_04 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: GETATTRIBUTE_RTTI of program CL_WDR_CONTEXT_NODE_INFO======CP
    Method: INIT_ATTRIBUTES of program CL_WDR_CONTEXT_NODE_INFO======CP
    Method: CREATE_FROM_STRUCT of program CL_WDR_CONTEXT_NODE_INFO======CP
    Method: IFWDR_RG_CTRL_HANDLE~INIT_CONTEXT of program SAPLWDR_RG_GENERATED_SRC_API
    Method: IFWDR_INTERNAL_API~INIT_CONTEXT of program SAPLWDR_RG_PROXY_FACTORY
    Method: CONSTRUCTOR of program /1BCWDY/35DSOWFU6YQV6I81U8VG==CP
    Method: IF_WDR_CLASSLOADER~GET_COMPONENT_CONTROLLER of program /1BCWDY/35DSOWFU6YQV6I81U8VG==CP
    Method: CONSTRUCTOR of program CL_WDR_DELEGATING_COMPONENT===CP
    Method: CONSTRUCTOR of program CL_WDR_CLIENT_COMPONENT=======CP
    Method: CONSTRUCTOR of program CL_WDR_CLIENT_APPLICATION=====CP
    Some User get this message also in test an development. What could be the reason?
    Note: Nothing has changed in coding or context.....this error occurs without any changements
    Thanks for your help
    Best Regards
    Martin

    Hi,
      May be you can put an external breakpoint in the method "_get_attribute_rtti"(of class CL_WDR_CONTEXT_NODE_INFO).
    From that you can find out which attribute is causing the dump , and try to solve the issue . May be some data dictionary object is not transported to production.(Assuming that you have permission to put breakpoints in production system..:))
    Aditya.

  • I want to editable description field  in my web dynpro application

    Hi expert,
    The requirement is to make the Description field editable. However, the container for the dynpro only appears to allow for a certain type of action and is essentially used to display the Line Item details, giving no option to change the Line Item Description.
    so i want to editable in this description field  in my web dynpro application  /SAPSRM/WDC_DOTC_PC_I_BD .
    Kindly give me soulation ASAP.
    Thanks and Regard's.
    Vikash

    Thanks for the reply.
    The name of the view is V_PC_DOTC_ITM on which we have the records. On each line item there is a description field which is of type (LinkToAction). I want to enable user so that it can change the Description text (I will handle the action). Also, if you have any idea about updating the database table from here as it needs to be updated in BBP_PCPOS table.
    -vikash

  • The Web Dynpro Application 'XssMenu' has expired

    Hi,
    we implement an ESS Scenario, with One Enterprise Portal 6.0 SP17, a mySAP ECC 5.0 System with ERP2004 and a seperate server with a java stack, because our customer don´t want to install and use a java stack on their HR/ERP systems. They want to minimize the performance.
    After some configurations, we get the startpage for ESS. If I click on a service like travel management it has no effect. If I click the second time, I got an error "500 Internal Server Error" with the message
    The Web Dynpro Application 'XssMenu' has expired. Please restart the application either with the refresh button or click the following link XssMenu.
    Same error comes, if I choose travel management in the second navigation level and click the service. And same message on every service.
    Now I tried anotehr way. I call the ess startpage directly on the external java stack. And here´s no problem. All WebDynpro-Services works fine.
    Can anyone help me, why the WebDynpro Service doesn´t work in the Portal?
    Best regards
    Christian

    We had exactly the same problem.  We had multiple java servers and our switch was not retaining stickiness.  So it would send the user to a different java server which hadn't got any session data for that user.
    If this could be it, get something like httplook to do a trace of what is happening.  We saw it switching java servers.
    If you do not have multiple servers it could be switches chopping out cookies, causing the same issue.
    Paul

  • The Web Dynpro application 'UWL' has expired

    Hi ALL,
    We are using Enterprise portal 7.0. and backend SRM server
    When the user login into portal it will take him to the UWL page
    in that the user click for any "Approve shopping cart" the error message showing
    " The web dynpro application *'UWL' has expired. restart the application. choose 'refresh' in the iview tray or use the*
    *browser 'refresh' button to restart the iview"*
    user not getting the error message every time. error coming occasionally
    we suggest the user to clear the cookies and restart the browser and relogin.
    but some times it works some times not
    Can any one know the exact problem (any parameters has to be change or any other solution)?
    Regards,
    Abdul Razzaq
    SAP NW.BASIS Consultant

    Dear Abdul ,
    Hope you are doing good.
    We have seen similar cases of  WD Session Expired error message when the  jsessionid cookie issued by the server with the initial requests was not returned from the client with subsequent requets to the server. The only way to ascertain whether this is the case in your system will be by checking the HTTP watch trace (note 1558903 - How To Trace a Portal Scenario Using HttpWatch).
    As the jsessionid cookie is used for session management, when it is missing from the request headers the correct session could not be retrieved and as result new session will be created for that user. Set the parameter JSESSIONID.CookieDomain to "NONE" as mentioned in the sap note: 791765 and see if the issue persists. This configuration should be accessible in
    Config Tool -> expand the tree "cluster-data" -> "Global Server Configuration" -> "services" -> "servlet_jsp" -> Go to "Global
    Properties". Do make the changes, save the customization and then restart the complete SAP server (not just the JAVA server nodes).
    Kindly go through the note completely.
    Also make sure that the SystemCookiesDataProtection and SystemCookieHTTPProtection is set in the HTTP Provider Service on
    the server nodes.
    Do make the changes,save the customization and then restart the complete SAP server.
    Thank you and have a nice day :).
    Kind Regards,
    Hemanth
    SAP AGS

  • The Web Dynpro Application 'Appl' has expired.

    Hallo altogether,
    i am a newbie in this area.
    I maked a simple Web Dynpro with two views,
    only for navigation test
    and without data transport.
    Everybody view consist of two elements:
    one TXV_Field and one BTN_Element.
    V_ONE:
    TXV_ONE with a text "View one",
    BTN_GO + action GO,
    OP_TO_TWO,
    IP_FROM_TWO
    V_TWO:
    TXV_TWO with a text "View two",
    BTN_BACK + action BACK,
    OP_TO_ONE
    IP_FROM_ONE.
    There are two links between views builds.
    I cann my application APPL deploy without problem and without error messages.
    I see my V_ONE im browser.
    If i click the button BTN_GO ==>
    The Web Dynpro Application 'Appl' has expired.
    I controlled the file default.properties
    the timeout = 3600.
    what cann i do????
    Thank,
    vmath.

    1. check ur server configuration windw> preference->j2ee-engine.
    I have DeveloperStudio local on my PC.
    There are  following settings for j2ee-engine:
    SAP J2EE-engine is installed on local host
    System name: J2E
    J2EE Instance: 0
    SCS Instance: 1
    BEN_1\sapmnt\J2E\SYS\profile\J2E_JC00_ben_1
    BEN_1\sapmnt\J2E\SYS\profile\J2E_SCS01_ben_1
    vmath

  • Calling an interface METHOD of another abap web dynpro application

    Hi Experts,
    Can u plz tell how we can Call an interface METHOD of another abap web dynpro application in main WD Component.
    Thanks
    Mahesh

    Hi ,,
       Example ALV interface method calling   GET_MODEL interface method
       View attribute   declaration   :    M_WD_ALV  type      IWCI_SALV_WD_TABLE
         DATA lo_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
          wd_this->M_WD_ALV =   wd_this->wd_cpifc_alv( ).   "ALV is the usage name
         DATA lv_value TYPE ref to cl_salv_wd_config_table.
          lv_value = wd_this->M_WD_ALV->get_model(  ).   " interface method calling in ALV component usage.....
    Regards,
    Devi

  • Error using tabs in Web Dynpro application

    Hi all,
    I am working on a web Dynpro application where I want to use "tabs" to display different vendor details, basically I need two tabs one for header data, one for address data. What I did is I created a group and there created the element for the user to enter the vendor number and also created a button and binded it with the BAPI, now I created a tab using tabstrip and then inserting the tab and adding the element to the tab (in my case i m using the table type), once I finish this and try to do the syntax chek i am getting this error:  "ACC: Element "TAB" does not have a header"
    Can you please help me with this?
    Thanks,
    Rajat

    Looks like i was missing some step... I deleted everything and then re created and this time it works.

  • Error message display in web dynpro application?

    Hi All,
    In my web dynpro application I am displaying error messages but the focus does not go to the field where error occured and also if I click on the error message it does not lead to the place of error.
    And also when I navigate to another view the error message does not go.
    Below is my code:
    *    report message
          DATA err1_text TYPE syst-msgv1.
          err1_text = wd_assist->if_wd_component_assistance~get_text( key = '002' ).
          CALL METHOD lo_message_manager->report_t100_message
            EXPORTING
              msgid      = 'ZAA'
              msgno      = '005'
              msgty      = 'E'
              p1         = err1_text
            RECEIVING
              message_id = lo_text.
    Please suggest me the way to do it.
    Thanks & Regards
    Archana

    Hi,
    I got your point.. in the BIND_TABLE( set_intiail_elemts = abap_true) change this to ABAP_FALSE.
    Because of this you are gettng the intiial values. Eventhough your table has no BALNK/space records.
    bind a single element
      node->bind_table(
        new_items             =  lt_year_list
        set_initial_elements = abap_true ).
    change as
    bind a single element
      node->bind_table(
        new_items             =  lt_year_list
        set_initial_elements = abap_false ).
    You can use this code - I have tjhe dropdwon for projects event I'm doing the same.
    navigate from <CONTEXT> to <PROJECT> via lead selection
      lo_nd_project = wd_context->get_child_node( 'PROJECT' ).
    ***Gets the selected project id from drop down
      if lo_nd_project is not initial.
        CALL METHOD lo_nd_project->GET_LEAD_SELECTION
          RECEIVING
            ELEMENT = lo_el_project.
    get all declared attributes
        if lo_el_project is not initial.
          lo_el_project->get_static_attributes(
            IMPORTING
              static_attributes = ls_project ).
    change your code to 
    lo_nd_year_list = wd_context->get_child_node( name = wd_this->wdctx_year_list ).
    ***Gets the selected project id from drop down
      if lo_nd_year_list is not initial.
        CALL METHOD lo_nd_year_list->GET_LEAD_SELECTION
          RECEIVING
            ELEMENT =  lo_el_year_list .
      IF lo_el_year_list IS NOT INITIAL.
        get single attribute
        lo_el_year_list->get_attribute(
          EXPORTING
            name =  `YEAR`
          IMPORTING
            value = lv_year ).
    Regards,
    Lekha.

Maybe you are looking for

  • Photoshop Elements 8 when I open Edit error 150:30 appears

    I'd like to edit pics before importing into Photobox book but error 150:30 appears when I try to perform the edit task.

  • Photoshop CS4 Dual Monitor Tabs

    I am trying to get Photoshop running COMPLETELY on my secondary monitor. I can get the images, tools, etc on that monitor. But if I minimize a file, the tab still minimizes to the bottom of the primary monitor. How can I get EVERYTHING onto one monit

  • Location - FTP Type

    Hi everyone, I created FTP type Location and set correct parameters for Host, User, Password and path. During the file import process, when I try to expand path to select objects I alway get the same error: API2836: Directory ... does not exist. I ha

  • Profile changed

    After downloading an app I see my profile under the general settings  changed. What is that about? Does it cost anything?

  • LR4.3 Custom Color Profiles

    I just updated to LR 4.3 from 4.2 and my custom color profiles are not being recognized. Is there a new folder or bread crumb trail I need to be following? I am running on OSX.