Question on abap webdynpro...

Hi,
Where do I specify in a web dynpro application/component "from which SAP system to retrieve the data " ? For example I am developing a component in my SAP system and use a BAPI to fetch the data. So when I run the application it fetches the data from  my own system. But later when my component/application is reused, and if the user wants to fetch the data from another sap system, where and what is to be specified. Any idea ?? Please correct me if my understand is wrong..
thanks

The data for WD4A is from the system it runs on.  If you need to get data from another system, you may have to write a "wrapper" RFC for the BAPI.  The "wrapper" RFC could look like this:
select destination into w_destination from zconfig_table.
call function "BAPI_XXXX"
    destination w_destination
  exporting
  importing
The interface for the "wrapper" RFC will be the same as the BAPI (unless you want it to be different!). 
You can now use this "wrapper" RFC as your model in WD4A.

Similar Messages

  • ESS E-leave : which is the ABAP Webdynpro component ?

    Hi Gurus,
    I have a few questions regarding ABAP-Webdynpro.
    1. Which is the corresponding ABAP Webdynpro component for ESS E-Leave application ?
    I need to add a new report to the Leave Request page but unable to find the ABAP WD component for the same !
    2. Just by looking at the portal web-page, is it possible to find out if the page is based on Java WD or ABAP WD ? And if ABAP WD, how to find the corresponding component ?
    Any hints will be greatly appreciated and rewarded.
    Regards,
    Sandip.

    Just right click on empty space on leave application and select "more field help" then you will get technical information of the component.
    But some times, this option will be disabled by portal administrators.
    Regards
    Srinivas

  • Basic questions with respect to ABAP WebDynpro Application

    Hi All,
    I have two basic questions with respect to an ABAP WebDynpro application :
    a) If an ABAP WebDynpro application has been developed, how could it be made available to the end user?
    b) Can an ABAP WebDynpro application be developed in ECC or is it only applicable for version 4.6c?
    Thanks & Regards,
    Sushanth Hulkod

    Sushanth Hulkod wrote:
    > a) If an ABAP WebDynpro application has been developed, how could it be made available to the end user?
    >
    > b) Can an ABAP WebDynpro application be developed in ECC or is it only applicable for version 4.6c?
    a) If an ABAP WebDynpro application has been developed, how could it be made available to the end user?
    Answer - By providing direct link of the WD application created in SE80, creating iView for webdynpro abap application in the portal environment and  NWBC environment
    b) Can an ABAP WebDynpro application be developed in ECC or is it only applicable for version 4.6c?
    Answer - Yes it can be developed in ECC. Webdynpro ABAP is introduced in NW 2004s (SAP NetWeaver 7.0 or ECC 6.0)
    Thanks,
    Chandra

  • How to display HTML files using ABAP Webdynpro?

    Hi,
    I have a html index file and a bunch of other files accessed by the index file  in a specific directory on the SAP server. I'd like to display the index file via ABAP webdynpro and allow the users to click on what they need to see. How can I achieve this using utilizing the ABAP webdynpro technology ?
    Thanks!

    Hi Thomas,
    Thanks for taking the time to answer my question.
    I have the main html file and all other files needed by the main file in one directory on the application layer of SAP. I'd like to provide the user with a link, by clicking on which they should be able to get to the main html file using the browser. This is just a standalone application.
    I can try the approach using BSPs, however, I'm new to that area. Could you point me in the right direction to get started?

  • Error Handling in tables using ABap Webdynpro

    Hi All,
    I am new to this ABAP webdynpro programming. I have a small question. I am using a table control in one of my iview. I need to check some validations on some columns of this table. Let's say I have a table with 3 columns A,B and C. 
    Case 1 : Whenever any user enters values in C which is greater than A i want to raise an error message saying "The Value is greater than A". The user shouldn't be allowed to enter anyother inputs before correcting the same.
    OR
    Case 2: If the user enters 10 rows in the table and the 5th row contains the error. How can i highlight that row or field which contains the error.
    Your inputs will be valuable to me.
    Regards,
    Pravesh.

    Hi,
    Get the elements of the node for which you table is bound.
    Loop through the context element set.
    get the record for that context attribute and check the column A and column B value and throw
    the error using the report_error_element_message when there is error.
    Check this sample code -
      DATA:
        lt_attr_list type STRING_TABLE,
        ls_attr_list type string.
      ls_attr_list = column name.
      append ls_attr_list to lt_attr_list.
      clear ls_attr_list.
      ls_attr_list = column name.
      append ls_attr_list to lt_attr_list.
      clear ls_attr_list.
    DATA: lit_elementset type WDR_CONTEXT_ELEMENT_SET,
    lis_element type ref to IF_WD_CONTEXT_ELEMENT,
    ls_data type <<strucure type>>.
        CALL METHOD <<nodename>>->GET_ELEMENTS
          RECEIVING
            SET = lit_elementset.
        LOOP AT  lit_elementsetINTO  lis_element.
    lis_element->get_static_atributes->
    importing = ls_data.
    if ls_data-columnC GT ls-data-columnA.
    lr_msg_manager->report_element_error_message->
    message_text = 'Column C canot be gretaer than column A'
    element = lis_element
    attributes = lt_attr_list <<Populate the attributes table for which errors are to be shown>>
    endif.
    clear: ls_data, lis_element.
    ENDLOOP.
    Regards,
    Lekha.

  • Problem in retriving workitem id from uwl in abap webdynpro

    Hello,
    Curently, I've a problem similar with this post : Problem in retriving workitem id from uwl in abap webdynpro
    But unfortunatelly there is no answer :/
    I've followed this tutorial : http://wiki.sdn.sap.com/wiki/display/WDABAP/IntegratingWebDynproABAPapplicationswithUWLforworkflowin+Portal
    And I have a problem in my WD Abap. The WI_ID field is empty (initial).
    Here is my XML :
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE UWLConfiguration PUBLIC '-//SAP//UWL1.0//EN' 'uwl_configuration.dtd'
      >
    <UWLConfiguration version="1.0">
         <ItemTypes>
              <ItemType name="uwl.task.webflow.TS90000087.ED1CLNT100" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchWebDynPro" executionMode="default">
                <ItemTypeCriteria systemId="ED1CLNT100" externalType="TS90000087" connector="WebFlowConnector"/>
                <Actions>
                   <Action name="launchWebDynPro" groupAction="" handler="SAPWebDynproABAPLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes" launchNewWindowFeatures="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no">
                     <Properties>
                        <Property name="WebDynproApplication" value="zps_pnpi"/>
                        <Property name="newWindowFeatures" value="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no"/>
                        <Property name="DynamicParameter" value="WI_ID1=${item.externalId}"/>
                        <Property name="openInNewWindow" value="yes"/>
                        <Property name="WebDynproNamespace" value="sap"/>
                        <Property name="System" value="ED1CLNT100"/>
                        <Property name="display_order_priority" value="5"/>
                     </Properties>
                     <Descriptions default=""/>
                   </Action>
                </Actions>
              </ItemType>
         </ItemTypes>
    </UWLConfiguration>
    Here are the parameter defined in my application :
    WI_ID     000000000000     SWW_WIID
    WI_ID1     ${item.externalId}     STRING
    And, i've made the test with both the WI_ID and the WI_ID1 in the XML but everytime, no value at all.
    Could you please help me ? It's been three days I'm looking for a solution to get my Workitem ID in my Webdynpro ...

    In fact, it's quite strange, I added the menu and toolbar display and I can see that my url contains the data ...
    http://<begin_of_the_url>DynamicParameter=System%3DED1CLNT100%26wi_id%3D000000629442%26WI_ID%3D000000629442%26WI_ID1%3D000000629442<end_of_the_url>
    So ... how is it possible ?
    And the next question, how can I get the full url so I can parse it myself ?

  • Debugging abap webdynpro application

    hi gurus,
    an abap webdynpro application is runninf fine in developmernt server but not in production system. i transported the application again to refresh the application in production. but still the error persists. now i want to debug the abap editor in production system. so i wrote code 'BREAK POINT' in abap editor. but program is not stopping at this code. in dev as well as in prod system. please suggest.
    Moderator Message: There is a separate forum for Webdypro for ABAP. Please post your question there.
    Edited by: kishan P on Nov 29, 2010 1:25 PM

    Hi
    Few links to check:
    External debugging is not working
    Re: Debugging Abap webdynpro appln
    Re: Unable to Debug WD ABAP application
    Dedug is not working in Production Server.
    a) Check on number of R/3 sessions opened at a time.
    b) Check that user ID configured in portal using System Mapping Under 'Delegate User Administration' is the same user for which you are setting external breakpoint in backend system.

  • ABAP Webdynpro errors on transport

    Hello,
    Can some one tell me why an ABAP Webdynpro goes into error when transported from one system to another.
    Thanks,
    Vishwanath

    Please do not be so vague when asking a question.
    Rob

  • ABAP -WebDynpro - Read URL Parameter

    Hi,
    We have a Custom 'Catalog' that needs to be called from SRM using OCI (Open Catalog Interface). We are developing this custom catalog using ABAP Web Dynpro. We have following issues because of which we are unable to communicate back to Shopping cart from the Custom Catalog:
    1. Unable to read the value of 'HOOK_URL' in WebDynpro application. We need this value so that it can be used as Exit URL. How and where do we read this URL parameter in ABAP WebDynpro ?
    2. How can we return the 'HTML Form' to SRM with the values from Custom Catalog to fill the shopping cart ?
    I would appreciate your help...
    Thanks
    Meenal

    Hi Menal,
    I had the same problem.
    Did you define the HOOK_URL parameter in your webservice ? If not, do this 1st.
    2nd
    In you Webdynpro read the HOOK_URL in your handledefault method your window. Store it e.g. as attrribute in you assistance class.
    method handledefault .
    *&- Add FOF and HOOK_URL to assistanceclass attributes
      wd_assist->hook_url = hook_url.
    endmethod.
    After this you can read your HOOK_URL e.g in a view via:
    concatenate 'HOOK_URL=' wd_assist->hook_url zlv_hook_url into zlv_hook_url
    I hope your question is answered.
    What I want to now is: How to controll the HOOK_URL so that the formfields of the extenal catalog is added to the shopping card. Do you now that ?
    John

  • ABAP webdynpro events in Portal

    Hi All,
    I am a novice in Portal. I am not sure if this is the right forum also to ask this question.
    I created an application in ABAP webdynpro , created an iview using the ABAP webdynpro option.
    My scenario : I have to create a work request in a ztable that I have created.
    For this 1) create a uniques number using number_get_next
                 2) insert the values into the z table and show message
    what is happening -->
    Application appears with no problems.
    when I click on button message appears
    What is not happening on the portal
    number get next doesnot get created
    data doesnot get inserted in ztable
    portal and abap webdynpro are on different URL
    I tried to subscribe events that also didnot work .:(
    Appreciate all the help.
    Regards,
    Narayani

    Hi All,
    solved as below.
    Regards,
    Narayani

  • ABAP webdynpro or webservices

    hi all,
    I have an question. I have a system where i can use the ABAP webservices or the ABAP webdynpro to send data to a flex application.
    But which of those 2 is the best solution? Or doesn't it matter which one i choose?
    Do you have found some (dis)advantages for the solution with the webservices or do you have found some (dis)advanteges found with the solution with the ABAP webdynpro?
    Kind regards,
    Anton Pierhagen

    Hi Anton,
    If comparison done between Web Dynpro having Flash Island for Flex components and Independent Flex application communicating with R/3 via RFCs then in many aspects Web Dynpro is better option.
    If backend is R/3 then anyways you have all required infrastructure in place no need of any other servers in case of WD. But if you go for 2nd option then may be for hosting swf files you need WAS or any other server.
    There might be some cases where you need to fetch lots of data from DB then using SOAP way i.e. RFCs could give you time-out during data retrival at Flex frontend ( very rare case but there is possibility).
    You can use your WD to handle all business logic and Flex components only for presentations like charts, interactive components etc.
    One majot advantage of WD will be security aspect which can be handle very easily ( even with Single-Sign-On) whereas in independent Flex application you might end-up with extra security inception other than basic authentication of RFCs on load.
    these are few differences out of many others which i can tell you.
    Though both options you are thinking are good and feasible but i would suggest Web Dynpro. (Anyways being SAP Partner also we should promote SAP investments )
    Regards,
    Vivek
    Edited by: vivek khedekar on Sep 23, 2010 6:08 AM

  • ABAP webdynpro CO not showing input parameters

    Folks,
    I know this is strange. But might be that I'm missing something in the ABAP webdynpro creation/configuration.
    Here it is./.
    I have created an ABAP webdynpro application in SE80 with the context declared in COMPONENTCONTROLLER and a view with the context mapped to the COMPONENTCONTROLLER's context.
    The webdynpro application per se is working fine.
    When i created a CO in GP with type ABAP WD Application, and choose this application, all is fine until i reach the Define input screen. Here, i dont see any of those inout fields that are present in my WD COMPONENTCONTROLLER context. Should i do something to make it visible here?
    Cheers,
    Mandrake

    Good question. I'm surprised why this question never came up till now.
    I had a requirement where I had to use WD for ABAP in GP. I did a lot of research on this and found out with the following inferences.
    Pros
    1) It is easier to build and use when compared to WD for JAVA
    2) No deploying needed
    3) ABAP coding can be done in this so as to utilize the power of SAP to the fullest.
    4) No Java knowledge is required
    5) Can embedd any Adobe forms to make it interactive Adobe in GP
    Cons
    1) It can only import values from GP context and cannot export parameters like any other CO.
    2) Not very flexible as WD Java
    3) Comes up with an additional submit button on the GP Process which can supercede all the other checking and data validation functionalities that are built in the other webdynpro buttons in the Actual ABAP WD.
    4) The context visibility is one way from GP and not to GP.
    Steps:
    1) Create the WDA in SE80 and test it.
    2) Create a CO of type WD for ABAP
    3) Map the parameters with the process context parameters
    4) Test the CO and Process
    Hope this clarifies your doubts.
    Cheers,
    Mandrake!

  • ABAP Webdynpro - Populating second table based on data selected on first

    Hi Experts,
      I am new to ABAP Webdynpro. I have a requirement to show a search area, one table for header info, and second table for populating item level information.
      I was successful building a search area and populating first table when the 'Search' button is pressed.
      Now, I like to populate the second table with item details if a row on first table is selected. I tried to bind the OnSelect Event of first table to a method and try to get the results and bind to second table.. However, I am unsuccessful in this attempt.
      Here are my questions/challenges.
      1. When I select a row on first table, how can I extract the key information?
      2. Is it sufficient to create a context attribute and populate it with FM and bind that with second table? 
    I appreciate your help in answering this question.
    Thanks,
    SG

    Hi,
    Regarding...
    1. When I select a row on first table, how can I extract the key information?
    When you select any row in table, a lead selection will be set in the node which bound to the table.
    To read this selected record you need to use the following code. Here the name of context node is "FLAGS". And the structure ls_flags contains all the attributes defined in the node.
    DATA lo_nd_flags TYPE REF TO if_wd_context_node.
      DATA ls_flags TYPE wd_this->element_flags.
      lo_nd_flags = wd_context->get_child_node( name = wd_this->wdctx_flags ).
      CALL METHOD lo_nd_flags->get_static_attributes
        IMPORTING
          static_attributes = ls_flags.
    Regarding....
    2. Is it sufficient to create a context attribute and populate it with FM and bind that with second table?
    Based on the data that you got in the first step, you can fill an internal table with data that needs to be displayed in 2nd table.
    To bind the internal table you need to define the internal table of type context node. Use the following code to bind the internal table to context node which bound to 2nd table. Here name of  the context node is "OVERVIEW".
    DATA: lo_nd_overview TYPE REF TO if_wd_context_node,
                lt_overview TYPE wd_this->elements_overview.
    <<<< Fill lt_overview with data >>>>>
            lo_nd_overview = wd_context->get_child_node( name = wd_this->wdctx_overview ).
            CALL METHOD lo_nd_overview->bind_table
              EXPORTING
                new_items            = lt_overview.
    Alternatively you can use the Supply Function Method.
    Vikrant Trivedi

  • Graphs in Abap Webdynpro

    Hi
    All
    I have one requirement that i have to plott two curves in one GRAPH in ABAP WEBDYNPRO.
    One curve shows standard baby growth in months on X-axis and height on Y-axis.On the same graph
    i have to show particular baby growth on the same X-axis and height on Y-axis in another curve.
    Please help me regarding this.
    Thanks and regards
    Venkateswar

    You want to show Particular baby growth and standard baby growth on the same graph am i right?
    I have a simple question for you.do you know how many babies are there during the design time?
    if you dont know how many are there during the design time then you have to create the Serieses dynamically.
    This is the code to create dynamic graph.
    method wddomodifyview .
    data:lr_graph type ref to cl_wd_business_graphics,
         lr_cat type ref to cl_wd_category,
         lr_series type ref to cl_wd_simple_series,
         lr_container type ref to  cl_wd_uielement_container,
         lr_flow type ref to cl_wd_flow_data.
         lr_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
       lr_graph = cl_wd_business_graphics=>new_business_graphics(
    *             BACKGROUND_COLOR     = BACKGROUND_COLOR
    *             BIND_CATEGORY_SOURCE = BIND_CATEGORY_SOURCE
    *             BIND_ENABLED         = BIND_ENABLED
                  bind_series_source   = 'SERIES'
    *             BIND_TOOLTIP         = BIND_TOOLTIP
    *             BIND_VISIBLE         = BIND_VISIBLE
                  chart_type           =
    cl_wd_business_graphics=>e_chart_type-columns
                  customizing          = 'chart1.xml'
    *             DIMENSION            = E_DIMENSION-TWO
    *             ENABLED              = ABAP_TRUE
    *             FONT_FAMILY          = FONT_FAMILY
                  height               = 300
                  id                   = 'GRAPH2'
    *             IGS_URL              = IGS_URL
    *             IMAGE_SOURCE         = IMAGE_SOURCE
    *             MAP_SOURCE           = MAP_SOURCE
    *             ON_ACTION            = ON_ACTION
    *             TOOLTIP              = TOOLTIP
    *             TRANSPARENT_COLOR    = TRANSPARENT_COLOR
    *             VIEW                 = VIEW
    *             VISIBLE              = E_VISIBLE-VISIBLE
    *             WIDTH                = 300
    lr_cat  =      cl_wd_category=>new_category(
                       bind_description  = 'SERIES.COMP1.DESCRIPTION'
    *                   BIND_EVENT_ID    = BIND_EVENT_ID
    *                   BIND_TOOLTIP     = BIND_TOOLTIP
    *                   EVENT_ID         = EVENT_ID
                        id               = 'CAT1'
    *                   TOOLTIP          = TOOLTIP
    *                   VIEW             = VIEW
    lr_graph->set_category( the_category = lr_cat  ).
       lr_series =    cl_wd_simple_series=>new_simple_series(
                           bind_value     = 'SERIES.COMP1.COMPANY1'
    *                      CUSTOMIZING_ID = CUSTOMIZING_ID
    *                      EVENT_ID       = EVENT_ID
                           id             = 'SERIES1'
    *                      LABEL          = LABEL
    *                      TOOLTIP        = TOOLTIP
    *                      VIEW           = VIEW
           lr_graph->add_series(
    *           INDEX      = INDEX
               the_series = lr_series
    lr_flow = cl_wd_flow_data=>new_flow_data( element = lr_graph
    lr_container->add_child( lr_graph ) .
    endmethod.
    To customize the chart
    1. Create a chart through Chart desiner and save as XML file.
    2. Import this XML into your Web Dynpro component through MIME.
    also check this link to know how to create gragh
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ca932ebc-0901-0010-68a0-b4dd81a4bf81
    Thanks
    Suman

  • How does ABAP webdynpro architecture works......

    Hi experts,
    I am new to Abap webdynpro and i have a task to finish.
    Basically i gone through many documents on WDA, but was able to understand very little.
    I have following questions --
    1. When u create component, what is the use of component controller?
    2.. What exactly context and context node difference? Do we need to create an attribute(input box, button etc), under one context?
    3. How can i read the date entered by user? where to read? If i want to read a particular iinput box data and save it to database table, how and where it has to be done?
    4. How can i read the table data, complete table of UI?
    5. What is an interface controller/component?
    I still have lot of doubts about understanding MVC architecture, but I am so so sorry as I have little scope OO abap, so fining difficult to understand.
    Kindly if someone explain me I would be greatfully thankfull to you.
    Thanks in advance,
    Niraja.

    Hi Niraja,
    I am replying to your questions 1 by 1.
    +When u create component, what is the use of component controller?
    +
    Ans A component controller contains the context,attributes, methods etc for a component. No component can exist without this.Even a view has its own controller having same contents.
    All the tabs which you see after clicking on COMPONENT  CONTROLLER constitute the controller.
    What exactly context and context node difference? Do we need to create an attribute(input box, button etc), under one context?
    Ans: Context itself is a context node, but the only difference is that its the root and has unchangeable properties.It has a fixed cardinality of 1..1 where as a node can have different properties.
    All nodes and attributes for different UIs are created in the context only.
    How can i read the date entered by user? where to read? If i want to read a particular iinput box data and save it to database table, how and where it has to be done?
    Ans: Data can be read in form of nodes and attributes. Every UI element for example an Input field will be bound to a attribute.
    You can read these values by code ( use CODE WIZARD).
    You can code in any methods given under method tabs.
    You can create your own methods like event handlers for buttons and different events. You can write all your queries in these methods
    +How can i read the table data, complete table of UI?
    +
    Ans: If u mean by reading the whole node data, I would suggest you to use code wizard and understand the code.
    5. What is an interface controller/component?
    Ans: If you want to share your component and make it available for use in other components you define your make your methods and context visible in this controller .
    Please see the link below for whole Web Dynpro ABAP help.
    [WD ABAP|http://help.sap.com/saphelp_nw04s/helpdata/en/43/1f6442a3d9e72ce10000000a1550b0/frameset.htm]
    I would suggest you to understand things and try them and then come with doubts.
    Regards,
    Sumit Oberoi

Maybe you are looking for