Tracking ABAP web dynpro events in back end SAP

Hi Experts ,
I have
Is there any way to capture the events on th ABAP web dynpro in the backend.
The scenario is that i have some particular code which gets executed in the back end when User clicks on any button or tab in the appraisal document , which is ABAP web dynpro application.
I want this code to be executed only when User clicks on particular TAB/BUTTON on the ABAP web dynpro.
Are there any system tables that I can check.I am novice in ABAP Web dynpro.
Thanks

hi ,
I wud like to demonstrate this with example
suppose in ur WD  screenu  take the sales organization as input .
and u want to do smthing like this in backend :
u wud like to read VBELN from VBAK where VKORG is with in sales organization range entered in input field
create a context attributeinside a context node  in Context Tab inside ur view
first bind the VALUE property of ur Input field to a context attribute
inside the method OnActionClick  thn u wud  use code wizard (control +f7) to read the context attribute which is binded to input field
u press CONTROL + F7 and select the radio button read context node/attribute
DATA lo_nd_cn_node TYPE REF TO if_wd_context_node.
    DATA lo_el_cn_node TYPE REF TO if_wd_context_element.
    DATA ls_cn_node TYPE wd_this->element_cn_node .
    DATA lv_attr  LIKE ls_city-ca_attr.
*   navigate from <CONTEXT> to <CN_VISIBLE> via lead selection
    lo_nd_node = wd_context->get_child_node( name = wd_this->wdctx_ca_attr).
*   get element via lead selection
    lo_el_cn_node = lo_nd_cn_node->get_element(  ).
*   get single attribute
    lo_el_cn_node->get_attribute(
      EXPORTING
        name =  `CA_ATTR`
      IMPORTING
        value = lv_attr ).
// I have read attribute CA_ATTR inside the node CN_NODE
thn u wud put select query to fetch from data base using the value lv_attr
DATA : vbeln type string .
SELECT SINGLE vbeln FROM vbak INTO lv_vbeln
    WHERE vkorg = lv_attr .
I hope it is clear nw
regards,
amit

Similar Messages

  • Abap web dynpro and portal events

    First off, a little introduction: My name is Martin Kroppen, I am an Abap developer for SAP Netherlands, and I am currently involved in a project for hospitals to built a portal. For this, I have created 2 Abap web-dynpros, and then impemented the views as iviews in an EP. What I want to achieve is that the input view triggers the display view on a second page, and the data is shown for the values in the input view (all in the same browser window).
    I am using the portal integration manager for this,  with the method for relative navigation.
    The navigation is working fine, only problem is that I don't know how to handle the business parameters that I send over.
    My questions are:
    1. is this the correct way for navigating between abap webdynpro iviews in the portal?
    2. what is the correct way to read the business parameters into my context of the second Abap WD application?
    I tried the solution that is described below, I could not get it to work correctly.
    If you define BUSINESS_PARAMETERS as application parameters in your Web
    Dynpro application and the parameter names start with &#8243;APP&#8243;, they will
    automatically be forwarded to the startup plugs of the Web Dynpro application –
    provided they are marked as startup parameters. In this case, keep in mind that
    the iView/page used as the navigation target must be assigned to the user role.
    If it is not, navigation cannot be triggered.
    Hope someone can help me…
    Regards
    Martin Kroppen

    Hi,
    please refer to this link for portal integration
    Web Dynpro for ABAP Portal Integration [original link is broken]

  • Not able to check-in file in Browser (Portal/ABAP web dynpro)

    Hi
    If I try to check-in file from Back-end or Easy DMS I am able to do that and file is in Locked status. But when I use Portal or ABAP web-dynpro it is saying Check-in completed and when I save document(DIR), it is changing it to Unlocked icon.
    Did anyone get this type of issue before?
    do we have to do any special configuration or use different Content server for Browser and GUI ?
    Thanks
    ND

    DMS Folks.....
    if you came across this type of error then let me know ...
    Am I missing any configuration ?
    For HTTP request (like portal/webdynpro) do we need HTTP content server or normal content server will work for same.

  • ABAP Web Dynpro iView error

    My ABAP Web Dynpro iView encouters errors:
    The URL http://sp06:8004/sap/bc/webdynpro/sap/z_jgo_demo// was not called due to an error.
    Note
    The following error text was processed in the system SB2 : WebDynpro Exception: Error in UCF Template POPUP_PAGE ($).
    The error occurred on the application server sw06_SB2_04 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: RAISE of program CX_WD_GENERAL=================CP
    Method: RENDER_TEMPLATE of program CL_WDR_UCF====================CP
    Method: HANDLE_TEMPLATE of program CL_WDR_UCF====================CP
    Method: HANDLE_REQUEST of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Method: EXECUTE_REQUEST of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP
    I was able to run the ABAP web dynpro application outside of portal by using the url: http://sp06:8004/sap/bc/webdynpro/sap/z_jgo_demo/. But with the extra / at the end, I get the same error.
    Can anyone point me to how to remove that extra / at the end?
    Thanks
    Ben

    Hi Gurus ,
    We have upgraded the SAP HR system from ECC6.3 to ECC6.4 and netweaver from 7.0 to 7.1 .
    Following are the list of error in EHP4 system ,
    1) Layout of ABAP Webdynpro Component are not displayed .
    2) Any ABAP WEBDYNPRO Application is not displayed by tesing in SAP-R3 and also in ESS .
    error are as follows while trying to view layout in abap webdynpro application :
    http://dv.hr.co.in:4567/sap/bc/wdvd/painting.html?_vdrespkey=4IS29CT7NDRIOI511AFI0R1E3&_vdframe=painting&sap-client=435
    If any one have information for this kindly let me know .
    Thanks :
    Vishwas

  • Exiting from ABAP Web Dynpro application

    Hi,
    In ESS portal we have one tab Personal info, there I have created one link and integrated my ABAP web dynpro application.
    I want to exit from the application and go back to the Personal info sub area. created one exit button in my application on press of that i need take this action.
    Please guide me with this
    Thanks!
    Piyush

    Piyush,
    I am not sure whether it works or not just get the navigation url of personalinfo subarea and using portal APIs navigate to that url when you click on exit button
    Thanks
    Bala Duvvuri

  • ABAP Web Dynpro - OfficeControl - Word Integration

    Hi,
    i have a problem concerning the office control of the abap web dynpro.
    I have a textedit box on the view of a web dynpro. Now i want to transfer the data from the textedit box to the word document. I used the "IOS_TEST_WORDPROCESSING" as an example.
    Everything works fine, if there is only one line of text in the textedit box. If i put for example three lines in it, word opens and now i have the choice for a data seperator.
    The word document contains only one field as a "MergeField" like the field of the word document used in the "IOS_TEST_WORDPROCESSING". 
    Could anyone give me a hint how to solve the problem.
    With best regards
    Markus

    I have the same problem. I want to integrate an ABAP Web Dynpro in GP, but there is no way to implement an Interface from GP like it is in JAVA. That means you cannot maintain input , output parameters and give a status back to GP. Seems that in ABAP the WD is not integrated in GP.
    I went to the relevant developement departement an they gave me the following answer.
    In GP you can maintain input parameters for a ABAP Web Dynpro Application manually which will be displayed in the apllication UI URL . Then you need a function module to map the input parameters inside the url to the ABAP Web Dynpro context. Output parameters are not possible in GP with ABAP Web Dynpro. It is also not possible to give back the processing state to GP from your ABAP web Dynpro Application like it is in JAVA. Only the GP framework provides a button to complete this Step manually by the user.
    Regards
    Rainer

  • Implicit commit in ABAP Web Dynpro?

    I wonder if ABAP Web Dynpro is executing an implicit commit. I have two buttons on the same view. The first one inserts an entry into a table, the second one executes a "rollback work" (and to be sure calls function "DB_ROLLBACK").
    However, after first pressing the insert-button and secondly the rollback-button, the rollback had no effect, i.e. one dataset has been permanently inserted into the database table.
    Is it possible that until the view is ready for new processing (i.e. finished any initializations) an implicit commit is executed by SAP?
    I have not used any commit nor do I use debugger mode.
    The same behavior happens when I split the insert and rollback things into two views. In the second view the rollback is possible before the inbound plug is processed to the end, but afterwards (e.g. when handling a button click by an assigned method) not.

    Hi Klaus,
    I was wondering if you could do a ST05 trace? It will reveal the place where the commit happens. It will be quite interesting to see if it happens inside of the WD runtime. If yes, I would consider it a bug.
    Best regards,
    Thomas

  • Incorporating web service in an ABAP web dynpro view

    Hi,
    I am trying to call an external web service to have its results displayed in an ABAP web dynpro view. I've seen various threads that are dealing with the same issue, but none of them seemed to have helped me (I am quite new at this so maybe I'm just having a slow beginning, please bear with me)
    I'm interested in extracting information from a simple web service online. To this end, I went on www.xmethods.net and found a "quote of the day" service, which is practical because it doesn't even need input.
    I am writing down all the steps I've taken, even if they seem trivial, because maybe my problem is the result of a silly mistake I'm not yet capable of noticing...
    I am mostly following the instruction from here:
    <a href="/people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap:///people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap
    The SAP I use is the one on the SC7 system, seems to be ECC 6.0
    After I created my package, I go on to create a Proxy Object, and when prompted for a WSDL source, I give the URL destination I got from xmethods.net: <a href="http://www.swanandmokashi.com/HomePage/WebServices/QuoteOfTheDay.asmx?WSDL">http://www.swanandmokashi.com/HomePage/WebServices/QuoteOfTheDay.asmx?WSDL</a>
    Doing this I get an HTTP error (return code 400, message "ICM_HTTP_CONNECTION_FAILED") (others have had this problem, e.g. Calling Web Services from ABAP, but the answers offered haven't been much help to me)
    and having no idea what to change or not change in SICF and other settings, I decided to save the file locally, and so I then created a Proxy Object by choosing the WSDL source as the local file I saved.
    Telling me that multiple port types exist (SOAP, httpGet and httpPost) I picked SOAP. I can then see the properties of my Client Proxy Object, its structure with the classes and methods etc.
    Then, following Thomas Jung's procedure, I went to create a logial port which I named QUOTE_PORT. When I do the F8 test he suggests to do, I get an error: SRT: Processing error in Internet Communication Framework: ("ICF Error when receiving the response: ICM_HTTP_CONNECTION_FAILED") which was predictable since I still haven't resolved that same problem above.
    I then proceed to create a Web Dynpro Component. In that component, in the component controller's context, I created a simple node into which I added attributes which I created using the wizard -> Attributes from components of structure, and there I picked the structures that had just been created in my proxy object, each in its own node
    I have three proxy structures generated: GET_QUOTE_SOAP_IN, GET_QUOTE_SOAP_OUT and QUOTES. This last one has two attributes which are STRINGs, the quote of the day and its author.
    I then create a rather trivial view, whose context I have mapped to the component controller's context so as to have access to those "quote" and "author" attributes I just mentioned. The layout is simplistic at best, containing only two textviews, each one bound to its respective attribute.
    Once the application has been done and tested, the output is a blank page. I'm hoping that this is only because of that ICM_HTTP_CONNECTION_FAILED error. Has anyone else had these problems when calling external web services? Is this the right procedure for displaying output?
    Thanks and Regards,
    Micol

    Hi, sorry for the long reply time.
    from work I do have proxy settings:
        automatic configuration script: http://proxy:8083
        proxy server for LAN: proxy / 8080
    from home it's a proxy free connection.
    In both cases I tried changing the settings in the SICF transaction, but it hasn't changed much.
    With the HTTP error that I get, I get a long text on how to maybe solve it,
    <b>No connection to Integration Builder (only generic data visible)
    Message no. SPRX081</b>
    In this long text, I have four tests to do in order to check the connection (as far as I can understand)
    1. The address of the Integration Builder must be stored in the SAP system
    =>Check/maintain with report SPROX_CHECK_IFR_ADDRESS
    2. The HTTP connection of the ERP application server must function correctly
    =>Check with report SPROX_CHECK_HTTP_COMMUNICATION
    3. The Integration Builder server must be running correctly
    =>Check with report SPROX_CHECK_IFR_RESPONSE
    4. Proxy generation must interpret the data of the Integration Builder correctly
    ==>Check with report SPROX_CHECK_IFR_CONNECTION
    The checks for 1&2 work okay, but I get errors for checks 3&4
    "Integration Builder data not understood"
    How can I go on from here?
    Thx

  • Test of Web Dynpro Event Handling : GeoMap business graphics

    Hy guru's, i have this problem: on Test of Web Dynpro Event Handling page i tried to open the GeoMap web dynpro on Business Graphics section but i received this error:
    The URL http://.../sap/bc/webdynpro/sap/wdr_test_events/ was not called due to an error.
    Note
    The following error text was processed in the system BI7 : Exception condition "COMMUNICATION_ERROR" raised.
    The error occurred on the application server bi7-saplab_BI7_08 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_GIS_VIEW~UPDATE of program CL_GIS_VIEW_IGS===============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/LBUSINESS_GRAPHICS======CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system BI7 in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server bi7-saplab_BI7_08 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 0 in transaction ST11 on the application server bi7-saplab_BI7_08 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http -c: 100 -u: AMARAVIGLIA -l: E -s: BI7 -i: bi7-saplab_BI7_08 -w: 0 -d: 20071119 -t: 232916 -v: RABAX_STATE -e: RAISE_EXCEPTION
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team
    Could you help me?
    Thank's a lot
    Sincerely yours
    Andrea Maraviglia

    Hi,
    did you install the IGS (see the <a href="http://help.sap.com/saphelp_nw70/helpdata/en/37/268841a79f1609e10000000a155106/frameset.htm">documentation</a>) and check if SAP note 1108034 helps?
    Regards, Heidi

  • "Add To Browser Favorites" for ABAP Web Dynpro

    Hi All,
    In the Portal Environment, the end user has an option to "Add To Browser Favorites".  This will trigger the "Add a Favorite" window in the Internet Explorer and the user can save the favorite as needed.  Do we have a similar cabapility in ABAP Web Dynpro if the Web Dynpro is not delivered through an SAP Portal? 
    Thanks in advance for your help.
    John

    John Breen wrote:
    Hi All,
    >
    > In the Portal Environment, the end user has an option to "Add To Browser Favorites".  This will trigger the "Add a Favorite" window in the Internet Explorer and the user can save the favorite as needed.  Do we have a similar cabapility in ABAP Web Dynpro if the Web Dynpro is not delivered through an SAP Portal? 
    >
    > Thanks in advance for your help.
    >
    > John
    No.  There is no similiar option in the Web Dynpro framework, nor can you access JavaScript in order to interact with the web browser and supply this feature. Browser Favorites can be maintained by the NetWeaver Portal Framework or in the NetWeaver Business Client by the surrounding frame. In the case of the NWBC, it isn't actually browser favorites but a separate set of favorites merged with Easy Access Menu favorites.

  • ABAP Web Dynpro Guided Procedures integration

    Hello,
      does anyone know if there is a way for an ABAP Web Dynpro to expose input and output parameters for use in Guided Procedures?
      Thanks in advance
        Gabor

    I have the same problem. I want to integrate an ABAP Web Dynpro in GP, but there is no way to implement an Interface from GP like it is in JAVA. That means you cannot maintain input , output parameters and give a status back to GP. Seems that in ABAP the WD is not integrated in GP.
    I went to the relevant developement departement an they gave me the following answer.
    In GP you can maintain input parameters for a ABAP Web Dynpro Application manually which will be displayed in the apllication UI URL . Then you need a function module to map the input parameters inside the url to the ABAP Web Dynpro context. Output parameters are not possible in GP with ABAP Web Dynpro. It is also not possible to give back the processing state to GP from your ABAP web Dynpro Application like it is in JAVA. Only the GP framework provides a button to complete this Step manually by the user.
    Regards
    Rainer

  • ABAP Web Dynpro CSS Stylesheets

    Hallo,
    I have a question concerning "ABAP Web Dynpro". My current task is to implement an application for our company intranet. This application must have the look an feel (corporate design) of the company I'm working for. How can I manage this by using ABAP Web Dynpros?
    Where can the Stylesheets be found and how can I change them in order to fit our corporate design.
    While answering please consider that I am a raw beginner concerning ABAP Web Dynpros.
    Thank you in advance.
    Kerstin Röck

    You need to Change the Themes , For that you need ThemeEditor. You can download that from SDN. First install that and then Download the theme from Mime repository. and then Create a Theme Editor project (It is basically NWDS which consists of ThemEditior plug in).
    Here you can change the CSS properties and then Go back and create a New theme under the Respective mime Repository.
    Search in SDN also you get lot of articles and Forum questions.

  • ABAP Web Dynpro v/s BSP

    Hi All
    Can you pls tell the difference between ABAP Web Dynpro v/s BSP.
    Regards
    DM

    Hi madan....
    <u><b>Web Dynpro for ABAP</b></u>
    <i><b>Features</b></i>
    Web Dynpro ABAP is the SAP standard UI technology for developing Web applications in the ABAP environment. It consists of a runtime environment and a graphical development environment with special Web Dynpro tools that are integrated in the ABAP Workbench (SE80).
    Web Dynpro offers the following advantages for application developers:
    The use of declarative and graphical tools significantly reduces the implementation effort
    *Web Dynpro supports a structured design process
    *Strict separation between layout and business data
    *Reuse and better maintainability by using components
    *The layout and navigation is easily changed using the Web Dynpro tools
    *Stateful applications are supported – that is, if the page is changed, the data that is required remains intact so that you can re-access the data in the entire application context.
    Note that stateless applications are not possible.
    *Automatic data transport using data binding
    *Automatic input check
    *Automatic operation of the Web Dynpro application using the keyboard
    User interface accessibility is supported
    *Full integration in the reliable ABAP development environment
    <u><b>BSP</b></u>
    BSP applications are standalone Web applications with presentation, workflow and application logics that are self-contained in terms of function.
    In many ways, BSPs are similar to the server page technologies (xSP)from other software manufacturers, such as Active Server Pages (ASP)from Microsoft and Java Server Pages (JSP) from Sun Microsystems.
    This technology has become relatively widespread in the field of Web development thanks to its various advantages.
    regards,
    get back for more help
    vijay
    Message was edited by: Vijayasarathy Raghunathan

  • Change style of ABAP web dynpro

    Hi,
    I have to change the style / color of an ABAP Web Dynpro application at one of our customers.
    So the standard blue background must be white and the dark blue heading backgrounds should be green for example.
    How can I do this?
    Is there a guide to do it?
    Thanks in advance and kind regards,
    Bart

    Hi Jan,
    Even i have done the same process for changing background theme for web dynpro application.
    My requirement is to upload background image for the theme , i achieved it by changing the css file and uploading back to the custom folder and calling folder in application parameter.
    But i am facing lot of issues listed below.
    1.)In the application F4 help, pop up window and dropdown are not working
    2.)Even for standard applications also facing similar situation
    I don't know how to resolve this issue?
    My SAP System version is SAP-BASIS Release 702  Level 007

  • Open a new outlook  email with Abap Web Dynpro

    Hi Experts,
    I'm developing an abap web dynpro application, and at the end of a text I need to have a link that opens the outlook for sending and email, do you know how can this be done with ABap Web dynpro.
    Regards and thanks.
    Fona

    It should be noted that just relying on the browser handling for the [url mailto: reference|http://www.w3.org/TR/WD-html40-970708/htmlweb.html] does not guarantee handling by any specific email application. It is completely up to the browser implementation - The HTML 4.0 spec does not specify any handling other than:
    MAILTO URLs have the following syntax:
    mailto:email-address
    User agents may support MAILTO URL extensions that are not yet Internet standards (e.g., appending subject information to a URL with the syntax "?Subject=my%20subject" where any space characters are replaced by "%20").
    Then again - given that WDA supports so few browsers (user agents!), you could probably get around the different support in each them in a reasonably common way.
    To ensure that it is MS Outlook you are launching and potentially pass more data into that email you'll need to make use of the [ACFExecute functionality|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/b91539878a2d67e10000000a42189c/frameset.htm] and then also the [command-line interface of Outlook.|http://www.brighthub.com/office/collaboration/articles/21840.aspx]

Maybe you are looking for

  • HP 2311f not able to connect with ps3

    I can't connect my monitor with my ps3. Monitor does not detect the hdmi. Pls advise.

  • My iPad 2 will NOT charge, no matter what!

    It started about a month after the update and it is getting really annoying. Whenever it is connected (yes, it is with a genuine Apple iPad charger) the lightning bolt will not show up. However, when the ipad is turned off, if the charger is connecte

  • XML diff and merge - free lib?

    I'm using my own XML communication protocol and got a problem. I transfer a configuration with this protocol, and the config can grow very large. So I want to create a diff of old/new configuration an transfer only this diff. On the receiver side the

  • Error running Web Services in DEMO : User is not Authorized error

    Hi all, We created a Web Service in our DEMO installation of ERP9 Tools 8.97, Database Local SSE (User - DEMO, Password-DEMO). The Web Service is using JDE Vanilla BSFN - B0100021 - Formatted Address and created through JDeveloper using JDE BSSV tool

  • Posting VPRS in the billing document

    Hi, We have a requirement to post VPRS to accounting as well as CO-PA. We find that as long as VPRS is statistical, it transfers all the characteristics of the material to CO-PA. However, if we try posting VPRS to FI as well, we loose the material ch