Web dynpro to fire an event automatically via url in iview

Hi expert,
I create an iview, and would like to via the application parameter: 'auto = true' to fire an event in htmlb (bsp java) application.
I have already successful calling the service in my wdDoInit() method.
but next step is how to fire the event automatically in init method ? any code snippets will be appriciated.
Ben.J.

Hi,
I have 2 main DCs bound. Now from DC2 I have to read the Context of DC1 (which is bounded to another application).
To bind your context from DC1 to DC2
Copy the context that you want to expose from the component controller to interface controller of DC1.
Once this is done you will be able to see the context in DC2.
Based on your requirement you can set the Input type property of the context node.
Regards
Ayyapparaj

Similar Messages

  • Fire an event automatically after reading line from file

    Hi all
    I am writing a programe in which i need to fire an event automatically after reading each line (i.e. on every EOL) from the file.
    Thanks
    jon

    jonhill wrote:
    ..I am writing a programe in which i need to fire an event automatically after reading each line (i.e. on every EOL) from the file.Thanks for sharing that with us. Let us know how it goes. If you have any questions, feel free to ask them.
    BTW - sounds like a very weird requirement.

  • Web Dynpro as Callable object in GP using PDF Forms

    Hi All,
    I somehow want to integrate a user filling out a pdf form within a Guided Procedure. So far I have created a local web dynpro DC and I want to make it a Web Dynpro Callable Object (GP Interface). The problem is, I want the user to be able to see the PDF form when filling out the form. For example, if they had a role in the portal where they can invoke the Web Dynpro application with the pdf form, then when they click submit on the pdf they invoke the guided procedure...is this possible? This is so, I can use the web dynpro to do some data validation and call some bapis to get info, then submit this all to the GP. Is this achievable? I know how to do most things, I just want to know things like when is the "execute" and "getDescription" methods called? I want my execute( com.sap.caf.eu.gp.co.api.IGPExecutionContext executionContext ) method to call a bapi also. Is that possible? How do I automate a GP process when I click submit on the pdf form?
    Thanks in advanced
    TM

    Hi,
    You can integrate a PDF control in a Web Dynpro view. Refer the following links for that:
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/dc/f1783fe3263042e10000000a114084/frameset.htm">Example of the Use of an Interactive PDF Form (SAP Library - Web Dynpro for Java)</a>
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/60/6fc10c6748479392101e09c9e8d33a/frameset.htm">Interactive Forms in Web Dynpro for Java</a>
    Also you can create Web Dynpro Java callable object in GP by implementing the IGPWebDynproCO interface. Refer the following links for that:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50d74ada-0c01-0010-07a8-8c118d408e59">Implementing a Web Dynpro Callable Object which Implements the GP Interface</a>
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e3f07a7a-0601-0010-ebbd-b9cfb445b814">Implementing a Web Dynpro Callable Object</a>
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/fd/afb4429027da11e10000000a155106/frameset.htm">Implementing a Web Dynpro Component</a>
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/de/8976417f2d5558e10000000a1550b0/frameset.htm">Implementing and Exposing a Web Dynpro as a Callable Object</a>
    You can start a GP process using the public API:
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/43/fcdf77fc6510b3e10000000a11466f/frameset.htm">Starting and Terminating Processes Using the GP API (SAP Library - Creating Composite Applications)</a><a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5f27e290-0201-0010-ff82-c21557572da1">Creating Interactive Forms in Web Dynpro for Java</a>
    Also you can start a GP process using Web Service:
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/44/44c59fd7c72e84e10000000a155369/frameset.htm">Starting a Process Using Web Services (SAP Library - Creating Composite Applications)</a>
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/93/27dc108cfc407fbf6c726151840001/frameset.htm">Starting and Terminating Processes Within a Composite</a>
    Refering the above links you'll get a fairly good idea how to integrate Adobe forms in WDP and how to start GP process programitically. My suggestion for your requirement would be if always you need to start the process after the user submits the Adobe form, then consider having the Adobe form as the first step for the process. In that case you don't need to start the process programitically. Whenever the user starts filling up the Adobe form the GP process will start. You can refer <a href="/people/dipankar.saha3/blog/2007/03/02/how-to-present-your-gp-processes-to-the-end-user">this blog</a> on how to start a GP process as an iview link in portal.
    Otherwise if based on certain conditions you need to start the process then you can either use the Java API or the web service to start the process from Web Dynpro. You should have the Adobe form embedded in Web Dynpro and on submit event you can check the conditions and start the process if required.
    Thanks,
    Dipankar

  • Close Web Dynpro Application on click of button

    Hi,
         I have a Web Dynpro Appliaction which would be open in a Portal iView. I have a close button in the application. How do I close the application on the click of "Close" button.
    Thanks,
    Prasanna.

    Hi prasanna,
    First, it is very bad decision to make decisions instead of user. Just redirect him to logoff page and let close window himself.
    In WebDynpro you may use Exit plug on interface view with parameter Url (notice the case) of type string.
    Then you may previously fire this plug with JavaScript url: javascript:void(window.top.close())
    In recent versions of WD this will not work. So you have to redirect user via exit plug to some static html page, that contains in header <script>window.top.close();</script>
    Check the below thread,u will get an solution for your question....
    Close Button
    How to close portal page by Web Dynpro App
    Exit button that close me the window in personalize
    Re: Close Button Issue

  • Web Dynpro access Application Services directly?

    We're looking at implementing some processes using Guide Procedures, and I have a question about design 'style'.
    I'm creating a data layer using Entity Services.  The entity services will be utilized by the Application Services to create a business layer.  How to do this is clear, and straightforward.
    However, where I have a question is how the automatically generated Web Dynpro application (or any other Web Dynpro application, for that matter) can interact with Application Services.  I've seen sample applications where the Web Dynpro application interacts with application services via mapping from the Web Dynpro interface layer through the GP Runtime - from my perspective, this looks like a good way to deal with a small amount of data being passed between the steps in the GP.
    The primary Web Dynpro application will let the user interact with the data, massaging it until it's in a form where the next person needs to deal with it.  I was thinking of having the Web Dynpro application interact with the Application Services layer directly to move data from the database to the web dynpro application, and back again.  The only thing that would be passed between the steps in the GP would be the guid of the primary data structure.  I would also expose a method of the Application Service as a CO which would take the guid and return the entire business object, so viewing screens could be constructed - as well, PDF's could be generated, and so on.
    Is this considered bad form in a GP, specifically accessing Application Services directly, instead of through a step in the GP?  I understand that what I want to do ties the Web Dynpro application directly to the Application Services layer, but my thinking is that the CO that encompasses the Web Dynpro should be 'atomic', in that all operations related to that specific step should be contained in a single CO.  In other words, the action of creating the business object, fiddling with it, an then submitting it upstream should be contained in one CO.
    Comments, suggestions?

    Hi,
          In the Composite Application Framework scenario, you first create the Business Entities. These act as data holder. To fill the data within these entities the Application services are created. These application services are later exposed as a webservice and deployed.
                   These webservices can contain different methods along with the CRUD operations depending on the Process Flow and Design implemented. We can import the webservices as a model in the WebDynPro Component. The UI elements of the Views can be binded to the Model. So when we execute the model methods the data gets entered into the Business objects.
                   This WebDynPro component should be a callable object ( It requires some Dependencies to be added to the WebDynPro Component ). So that you can have Input/Output parameters and ResultStates. These parameters are useful if you have to pass some parameters from one view to other within the same component. So this WebDynPro Callable object includes the Application service calls and also the passing of data through the GP Input/Output Structures.
                   These callable objects are then included within the Process.
      This is how I think a Composite Application must be designed.

  • RFC: Introduce new 'Article/Tutorial (Comment) Threads' in the Web Dynpro Forum

    Some time ago I've suggested on SCN Support is both forum moderator and most active articles wrtiter
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net
    Message was edited by: Bertram Ganz
    This thread was branched from forum thread: How to print the data of a Model node.

    Hi Valery,
    thanks for this great idea. Indeed, there is no channel set up to communicate feedback/suggestions/questions to Web Dynpro tutorials or articles in a standardized way.
    WebLogs can be commented on the WebLog page itself and they are announced in a special ;\ New Web Dynpro Weblogs which can be opened via the <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d">Web Dynpro Feature2Sample Matrix</a>. Actually the section 'Further Information' lists all related articles, WebLogs etc. These links are regularly updated so that the Sample Description Pages helps to keep all links to valuable information in a central place.
    The 'Sample Description Page' should additionally comprise a section <b>'Discussion'</b> with a link to the above 'Article Comment Thread' in the Web Dynpro forum. The reader downloads the material from the sample description page and also finds a link to the related 'Article Comment Thread' there.
    For all new articles (which are combined with a related 'Article Comment Thread') the <i>Further Information</i> links could point to the 'Article Comment Thread' (which then itself links to the article) but not directly to the article resource. The reader can then also have look at the existing comments to the related resource. As an alternative the article PDF itself should have a permanent link to the 'Article Comment Thread' in the Web Dynpro Forum.
    Please post your comments on this idea.
    Regards, Bertram

  • Adobe form in Web Dynpro Submit Button Problem

    Hi all,
    I've created an Adobe form as a UI element in Web Dynpro as a development component. In this Adobe form, I've included a "Submit to SAP" button from the Web Dynpro Library.
    My whole purpose is to expose this DC as a callable object into Guided Procedures and then run this process, so that the Adobe form(embedded in Web Dynpro) can be seen and allows the user to enter information online into the form or download(maintain offline) and click on the submit button. After clicking of the button, I need the control to return to the GP framework to trigger to the next action. I have configured the button in the Adobe form as a submit format -> XML data and with submit to URL "%com.sap.caf.gp.if.PostProcessorUrl%". I did this because I want it to return the control to GP framework. However, there is also another option of the event submit button in the Web Dynpro UI Adobe element -> event-> onSubmit.... i created an action onsubmit which has the code wdThis.wdGetBformController().complete();
    When I run the GP process, the adobe form appears and when i click submit button, nothing happens... Does anybody know the solution?? Thanks!

    Hello,
    Can somebody tell me if i really need to put this code
    "%com.sap.caf.gp.if.PostProcessorUrl%"
    in the submit button. If so, do i need to configure somewhere what the PostProcessorUrl is? If so, can somebody tell me where i need to do this?
    Thx in advance.
    Kind regards,
    Maarten.

  • Page size in web dynpro

    Hi Experts!
    Currently I'm preparing web dynpro application for touchscreen.
    Unfortunatelly all elements on screen are too small to handle all operations by finger.
    Do you know any way to increated page zoom automatically? Maybe somewhere in web dynpro or maybe it's possible in URL?
    Thanks in advance
    Bartek

    I am not sure which browser is in used in your touch screen? is it Tablet or mobile ? You may have to check the Product Matrix for available supported browsers.

  • Issues with portal integration of Web dynpro for ABAP application

    Hi,
    I have the following issues when i integrate a Web Dynpro for ABAP application with portal.
    1. the iview does not contain some images, such as table scroll button images, maximize and close buttons of popups etc.
    2. the iview loads properly, but there is an error in the status bar that says "Access denied"
    3. is it possible to do absolute navigation from
       role1->folder1->iview1 to role1->folder2->iview2?
       when i fire this navigation from the webdynpro
       application, the navigation does not happen in the
       portal.
    thanks,
    Kavitha

    >
    sridhar vadaga wrote:
    > Hi Experts,
    >
    >
    > CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
    >   EXPORTING
    >     text           = url
    >  IMPORTING
    >    BUFFER         = content .
    >
    >
    > Thanks & Regards
    > Sridhar
    I think you are overestimating the power of the SCM_STRING_TO_XSTRING function module.  By supplying a URL as the value of the input text, it isn't going to magically go read the content from the remote location and convert that to a binary string.  It is going to take whatever value you supply in th importing TEXT parameter convert that to binary.  In other words it is literally converting the string http://xxx/test.xls to binary.  You will need some other mechanism to read the content from the remote location into ABAP memory before you can process it.  You will need to use the CL_HTTP_CLIENT class or call some sort of web service to retrive the content.

  • Issues witn portal integration of Web dynpro for ABAP application

    Hi,
    I have the following issues when i integrate a Web Dynpro for ABAP application with portal.
    1. the iview does not contain some images, such as table scroll button images, maximize and close buttons of popups etc.
    2. the iview loads properly, but there is an error in the status bar that says "Access denied"
    3. is it possible to do absolute navigation from
       role1->folder1->iview1 to role1->folder2->iview2?
       when i fire this navigation from the webdynpro
       application, the navigation does not happen in the
       portal.
    thanks,
    Kavitha

    Hi,
    Use a Transparaent container (TCO) inside it use the tabstrip and make it as matrixheader as per rootUI.
    You can also set the layout for TCO as matrix and do the necessary changes.
    Regards,
    Lekha.

  • Resize web dynpro iview

    Hi all.
    I have integrated Ep - -web dynpro. The wdApplication is displayed in the an iview.
    i have created a role so the iview is displayed in the inner page.
    The problem is that the iview takes up only half the page size while i want it to be fit full screen all over the inner page.
    How am i to achieve this?
    Points assured for help

    Hi,
    Initially when you selected a layout for the iView you must have selected two panel layout because of which only half the screen is occupied. Just as to which layout you have selected. A single panel layout should be the apt one.
    Actually in the iView properties, the property Fetch mode has to be server side than client side to suppose automatic adjustment and fit of the iView.
    Also in the appearance-size property you can set it to full_page so that the iView occupies the whole page than a part of it.
    These three options might solve your problem.
    Regards,
    Sujana

  • Close External Window in Web Dynpro Application

    Hi Folks,
    I am working on a development in Web Dynpro and I am pretty new to this topic, so I seek your help.
    The scene is:
    I have created a Web Dynpro application in which I open an URL using CREATE_EXTERNAL_WINDOW method of the Window Controller. I am able to open the window but not able to close it.
    I tried using methods,
    CLOSE()
      and
      SET_CLOSE_IN_ANY_CASE()
      but no success.
    Please guide me if anything more needs to be done for closing the opened window.
    Thank you.
    Sud.

    Thank you Thomas,
    You correctly pointed out, I was trying to close the external window from my source window.
    More precisely, I have a WD application which has a button (Search) on one of its views. On click of 'Search' button, I open a new window using 'CREATE_EXTERNAL_WINDOW' passing the URL 'www.google.com'.
    Till this point its fine, but now I want to close this newly opened window. As you said now these are 2 different sessions and cannot communicate anymore, so any guidance how to close this new window?.
    OR
    Is this the only way to call an URL i.e using CREATE_EXTERNAL_WINDOW? Is there any other way to call an URL without closing my current running WD application?
    Request your  help......
    Thanks.
    Regards,
    Sud....

  • Not able to run web dynpro application from portal.

    Hi portal experts,
    I want to run my web dynpro application from portal.
    So created a seperate iview  and a role  for the purpose.
    Assigned the iview to the role and also mapped a abap user id to the new role created.
    But when I click on 'preview'  the iview , getting the following dump.
    Error when processing your request
    What has happened?
    The URL http://mnghcmsap:8000/sap/bc/webdynpro/sap/zhr_cp_admin/ was not called due to an error.
    Note
    The following error text was processed in the system HRM : Die URL enthält keine vollständige Domainangabe (mnghcmsap statt mnghcmsap.<domain>.<ext>).
    The error occurred on the application server mnghcmsap_HRM_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: CHECK of program CX_FQDN=======================CP
    Method: STARTUP_CHECKS of program CL_WDR_CLIENT_ABSTRACT_HTTP===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
    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 HRM 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 mnghcmsap_HRM_00 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 mnghcmsap_HRM_00 . 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: 200 -u: INF51515 -l: E -s: HRM -i: mnghcmsap_HRM_00 -w: 0 -d: 20110209 -t: 121224 -v: RABAX_STATE -e: UNCAUGHT_EXCEPTION
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team
    Please let me know if I am doing the process correctly and also let me know if I am missing somthing.
    Thanks,
    Aditya.

    Are you able to run teh web dynpro application independtly i.e. without creatin an iview.
    http://mnghcmsap:8000/sap/bc/webdynpro/sap/zhr_cp_admin/ by using this link.
    or there also you are getting the error.
    i guess there also you should be gettign the error.
    this is some problem with the FQDN settings in the abap system.
    in the host name of the web dynpro applciation server one .(dot) is must.
    so you might have to change the host name to some thing like mnghcmsap. from mnghcmsap
    thanks
    sarbjeet singh

  • Displaying streamed images in Web Dynpro

    Hi All,
    I have following scenario to programme.
    - The DB have "images" stored as BLOB.
    - I need to read the images (stream) and make them visible in Web Dynpro UI.
    Problem is i only one way to providing images in Web Dynpro. The images are picked from url that points to Resource either at temporary location of permanent position Sap Images pool or contribution under mimes folder.
    I see temporary location as one option here but still not able to figure out where to store it !
    Can anybody help in this.
    Thanks and Regards,
    Ashwani Kr Sharma

    Hi ,
    Use
    WDWebResource.getPublicCachedWebResource(byte[] webResource,
                                                                  WDWebResourceType resourceType,
                                                                  WDScopeType scopeType,
                                                                  WDDeployableObjectPart deployableObjectpart,
                                                                  String key)
    Regards
    Bharathwaj

  • Pixel tracking in web dynpro abap

    Hi,
    I have a scenario where in we are tracking job applicant source. Lets say a job seeker goes to careerbuilder.com and searches for job. At that point, careerbuilder.com sets a cookie in the job seek's computer. when Job seeker clicks to appy for job that takes him to our company sap e-recruiting job application page. when job seeker finally clicks send application button from web dynpro abap,  we are rendering external https url as image using rfc destination from web dynpro abap. The external https url which basically reads the cookie ithat is set by careerbuilder.com site in the client computer. 
    External url as rfc destination is not reading the cookie even though I have enabled cookie read option and used http1.1 in rfc destination.
    does anyone have any idea how sap wda handles client cookie? how can we make a external url which renders as image can be set to no caching? any help is highly appreciated.
    thanks
    Vijay

    Hi,
    Please refer these links for cookies -
    Re: Get a cookie from web dynpro application
    Regards,
    Lekha.

Maybe you are looking for

  • IBook vs. iMac, and Airport Questions

    Hi everybody, After the announcement of the new iMac, I am seriously considering buying an iMac. However, I have a few questions, is the G5 alot more powerful than the G4? because the .48 Ghz difference, as a PC user, doesn't mean that much to me. I

  • Which Photoshop should I buy ??

    Hello, I am interested in buying photoshop and start learning how to edit photos for my boutique (online). My main function would be to edit photos ( to make the clothes color look vivid, make models look slimmer. or etc..) I have NO CLUE on what eac

  • PO where i can find Info record no.

    Hi, In PO ekpo table i can find info record no, but screen me22n i am not able to find which tab i can check. Jagadesh

  • Robohelp issues (folders & files are missing)

    Hi there, We're running Robohelp 7 HTML. We have 3 users using this product. All client PCs are running Windows XP (fully patched). They access their Robohelp project/documentation on a Windows 2003 dev server (also fully patched). Robohelp was worki

  • I'm new to MacPro. How do I open up a new document?

    I'm new to MacBook Pro. How do I open a new document?