Web Dynpro ABAP calling another ABAP program

I have a question and just want to know if it's possible or not.
Is it possible to write a Web Dynpro ABAP program that calls another ABAP program which happens to be an ALV report?
Rather than re-write the ABAP ALV report, I was wondering if it's possible to call the ABAP ALV report within a Web Dynpro ABAP program and display the results within the Web Dynpro program.
If it's not possible, then I assume it would be better to re-write the code from the ABAP ALV report in the Web Dynpro ABAP program.
Thanks
John

The ALV report in your classic program is coded to be displayed in the GUI only.
Your best bet would be to create a Function Module or Method that will return the data to be used in your ALV.  Simply call the Function/Method from your Web Dynpro and then bind the table to the DATA context node of the ALV INTERFACE CONTROLLER.

Similar Messages

  • A Web Dynpro that calls another one

    Hi all,
    I need to pass a context node from a WD to another. How can I do this?
    Thx in advance for your help,
    Vito

    Hi all,
    I solved the problem in this way. Just for information here my solution:
        URL url = null;
        String appPath = "";
        String encodedFieldParam1 = "";
    //Convert fields in UTF-8 by using java encode
    encodedFieldParam1 = URLEncoder.encode(wdContext.currentTabellaElement().getCODICE_CONTO(),"UTF-8");
    //Get the actual URL     
    WDDeployableObjectPart part = wdThis.wdGetAPI().getComponent().getApplication().getDeployableObjectPart();
    appPath =WDURLGenerator.getAbsoluteWebResourceURL(part);
    // Get the server name from URL, this permit to obtain dinamically the name and
    // add the target url to open
    String[] words = appPath.split ("webdynpro");
    String urlString = words[0] + "webdynpro/dispatcher/local/ChangeHistoryDisplaySecondLevelPdc10/Liv2Pdc10?param1="+encodedFieldParam1;
    // Open url in the same page ( _SELF )
    WDWindow win = wdComponentAPI.getWindowManager().createNonModalExternalWindow(urlString , "Piano dei Conti");
    //Or open URL in a new page
    IWDWindow win = wdComponentAPI.getWindowManager().createExternalWindow(urlString , "Piano dei Conti", false);
    //Show the window
    win.show();
    Vito Palasciano

  • Parameter transfer from one Web Dynpro Application to another

    hi,
    Is it true that  only parameters with string type can be transfered from one Web dynpro application to another ?

    hi, Justin ,
    You are right , I can use inplug for the dest component , and can transfer referenced type , but now I met a problem , how I can transfer the parameter to the dest comp ? 
    I can use the following code to transfer a value from origin to dest , but how to transfer an object , can you give me some sample code ?
    CONCATENATE l_url '?'
                   '&guid=' lv_guid
                   into l_url.
    CALL METHOD window_manager->create_external_window
          EXPORTING
            url    = l_url
          RECEIVING
            window = lo_window.

  • Navigating from one Web Dynpro app to another not belonging to same project

    Hi All,
    I wanted to know is it possible to navigate from one Web Dynpro app to another which does not belong to the same project. if yes how.
    Regards
    Sid

    Hi Siddarth,
    If you want provide the interaction between two Web Dynpro applications then you must develop those projects as Development Components as DCs provides the reusability of the components created.
    You can  through these link to find out more information:
    Where to start DC creation  ?
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/bd0e0401-0801-0010-aaab-d0e1742da383">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/bd0e0401-0801-0010-aaab-d0e1742da383</a>
    Server Side Eventing:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/19e6e990-0201-0010-eca6-a62e342eaad3">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/19e6e990-0201-0010-eca6-a62e342eaad3</a>
    Regards,
    Jhansi

  • How to export my ABAP web dynpro content to another server

    Hi,
      I need to export my ABAP webdynpro application from one server to New server. Can any one please guide me how to do this.
    Regards,
    SPK.

    Hi
    You mean transporting your web dynpro comopnent across your landscape, use the transport system.
    Web Dynpro Object is like any other object you can transport.
    If the destination server is not maintained or is in other networks use this link will be helpful
    Import/Export webdynpro ABAP application
    Abhi

  • Problem with Web Dynpro Theme in 2004s ABAP Sneak Preview

    Hi !
    Working on the Web Dynpro for ABAP 2004s Sneak Preview
    I encountered a problem in applying a web Dynpro theme
    via the URL-parameter sap-cssurl.
    I tried the following URL:
    http://hostname:8000/sap/bc/webdynpro/sap/webdynproapp?sap-cssurl=http://hostname:8000/sap/public/bc/ur/nw5/themes/sap_hcb
    But it didn't work ?!
    Could anybody tell me what went wrong ?
    Thanks in advance,
    Frank

    Hi Frank,
    Try this
    1. Set all dynpro's to run with portal theme whether you run them inside/outside portal.
    For this, run visual administrator -> server -> configuration adapter -> (change mode) -> webdynpro -> sap.com -> tcwddispwda -> Propertysheet.default
    set the parameter sap.theme.default to your portal theme path: we've theme CustomerTheme (portal is nw04sr1 sp14) and theme url is as follow:
    /irj/portalapps/com.sap.portaldesign.urdesigndata/themes/portal/CustomerTheme
    2. call individual application with parameter to use portal theme as follow:
    http://<portal hostname with domain>:<port>/webdynpro/dispatcher/local/WD_Project/Applname?sap-cssurl=http://<portal hostname with domain>:<port>/irj/portalapps/com.sap.portal.design.urdesigndata/themes/portal/CompanyTheme
    Hope it helps...
    Lokesh

  • How can we call methods of one web dynpro component in another one

    Hello Team,
    How do I call  one Web Dynpro component methods in another Web Dynpro component.
    How do we use public parts.
    thanks

    Hi,
    You want to use Comp2's getData() method in Comp1
    If both the WebDynpro components are in the same DC:
    1. Create a wrapper method (with the same signature) in the Comp2's Interface controller. And invoke the Component contorller's getData() method in this method using the below code.
    wdThis.wdGetComp2Controller.getData()
    2. Now Go to the Comp1 and right click on UsedWebDynproComps and add this Comp2 as a UsedWebDypro component.
    3. Now go to the Component Controller of Comp1 and in properties tab add the usage declaration of Interface controller of Comp2.
    4. Now using this below code you can access the method of InterfaceController of Comp2.
    wdThis.wdGetComp2Interface().getData();
    If both the WebDynpro components are in different DCs:
    1. Right click on Comp2 and select Add to public part on Comp2 in DC2.
    2. Now Add this public part in DC1 UsedDCs.
    Now repeat the above stpes 1...to..4. of  "If both the WebDynpro components are in the same DC" same.
    Regards,
    Charan

  • Calling another ABAP pgm from Documentation

    Hi All,
    I have maintained a document for 1 ABAP pgm using SE38. Now in that document I want to provide some link/button which if taken should triger another ABAP pgm.
    Is this possible?
    Thanks.
    Pankaj.

    Hello Pankaj
    Have a look at message 1X(350) using transaction SE61.
    If you change to the SapScript editor it looks like that:
    When you display the message it looks like that:
    Run the program <b>RS_STREE_OBJECTS_TO_REQ_GET</b>. It will complete the piece list.
    The report name is highlighted in red. If you change to the SapScript editor you will see the following:
    <DS:REPO.RS_STREE_OBJECTS_TO_REQ_GET>RS_STREE_OBJECTS_TO_REQ_GET</>
    This will give you a "hotspot" executing the report (RS.<report name>. The name after the ">" is how it is displayed in the message.
    In the "Insert" menu you have several functions to link message text to SAP objects, e.g. transactions.
    Regards
      Uwe

  • Web Dynpro application calling external web server using HTTPS giving error

    Hello,
    I don't know whether this is the right question in this forum but my ABAP web-dynpro applicaiton is expected to call another HTTP application on external web server through HTTPS. Presently it is calling through plain HTTP but we want to have HTTPS.
    Here are the steps that we followed based on the link from help.sap.com
    1] Received the certificate files from external web server
    2] Created SSL Anonymous client
    3] Imported the certificate files under this client and added into the certificate list
    4] Re-started ICM
    5] Created RFC Destination of type HTTP to connect to external server with SSL option and basic authentication. This RFC destination was working under plain HTTP.
    When tried with Test connection it gave error "ICM_HTTP_CONNECTION_FAILED".
    Any idea what might be missing. Thanks in advance.
    Regards
    Rajeev

    Used proper certificate after which the error went away

  • Copy a Web Dynpro DC to another Software Component in a new Track

    Hi everybody,
    how can i copy a Web Dynpro DC to a new Track inside a new Software Component?
    regards,
    Sid

    Hi Sid,
    Not sure on how to copy a DC but you can move custom developed SC from One track to another.
    Check the link below:
    [http://wiki.sdn.sap.com/wiki/display/Snippets/MigrationofdevelopmenttrackfromoneNWDItoanotherNWDIusingexportedsoftwarecomponentandSCAfile.|http://wiki.sdn.sap.com/wiki/display/Snippets/MigrationofdevelopmenttrackfromoneNWDItoanotherNWDIusingexportedsoftwarecomponentandSCAfile.]
    Hope this helps.
    Cheers-
    Pramod

  • Web Template to call another Web Template (Dashboard to Dashboard)...

    Hi All,
    I have a dashboard where I want to drilldown to a more detailed level of data.
    I have setup the RRI and when executing in the initial dashboard it uses the default web template...fine.  But how to get it to call another template/dashboard?
    Is there a way to have multiple tables in one dashboard and the "2nd" table only gets filled when the RRI is executed?
    Thanks so much.

    Hello Bhanu,
    Well, that was a stupid question...I set it up for query and not web template.  Sorry about that...just never did before for the web.
    Full points, that worked perfect.
    Thanks,  M-

  • Which sy variable is initiated when web dynpro application call rfc of r/3

    Hi,
    My question is that when i pressed my web dynpro application button which called rfc at r/3 at that time which system variable will initiated.
    Regards,
    Gurprit

    Hi Gurprit,
      All variables of sys structure will be intiated.
    regards,
    Ganga.

  • Launch webhelp Topic from a web application; problem calling another topic

    My client has a web application for which I have created a WebHelp Help Guide.
    I have RH8 v8.0.2.208 running on Windows XP SP3.
    When the user clicks a Help icon on the web app screen, it launches a corresponding Help topic. The developer has managed to launch the full Help Guide, at the required topic, by using something like "help/imrd_help.htm#edit_subject_details.htm". So far, so good: this works fine for the first topic.
    But if the user leaves the Help Guide open, switches back to the web app, works through to another page in the web app, and clicks for a new Help Topic (say, "help/imrd_help.htm#add_new_user.htm"), the old topic stays on screen: the Help Guide does not update to the required Help topic.
    Any ideas how to fix this please, so that it calls the new topic?
    Thanks.

    See Calling WebHelp on my site. This problem is described there.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • A web service that calls another ws which need authentication

    Hi,
    I need to call a web service which need authentication.
    I've used the following code:
    SystemMsg sm = new SystemMsg();
    sm.setMsgType("Test");
    sm.setMsgDesc("Test");
    sm.setDateTime("Test");
    SystemMsgOB acbss = new SystemMsgOBBindingStub();
    acbss._setProperty(SystemMsgOB.USERNAME_PROPERTY, "user");
    acbss._setProperty(SystemMsgOB.PASSWORD_PROPERTY, "password");
    acbss.systemMsgOB(sm);
    When I try to run the project from the J2EE engine I get an exception: java.lang.IncompatibleClassChangeError.
    When debugging I found that the method that causes the trouble is the _setProperty.
    I'll appreciate any help.
    Yaniv.

    Hi Yaniv,
    This error previously only occurred if the inqmyxml.jar archive was enhanced incompatibly.
    1) Terminate the SDM. Copy the inqmyxml.jar              file from the deploying/lib subdirectory of the J2EE installation directory into the lib subdirectory of the SDM.
    2) Make sure that you remove the original file from the lib subdirectory.
    3) In particular, the file must not remain renamed in the lib subdirectory. Then restart the SDM and repeat the deployment by selecting "Restart".
    Hope it helps,
    Regards,
    Nagarajan.

  • How to use one Web Dynpro DC into another Web Dynpro Dc

    Hi All,
    I am trying to learn the usage of DC but I am unable to find a basic tutorial on this topic. I found a few tutorial and few blogs too, but none of them explains topics like:
    How to call child component methods from parent component and vice versa too if possible?
    Can somebody please provide me with a basic tutorial on this topic.
    Regards
    Sid

    Hi,
    Go through the Componentization tutorials
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/webcontent/uuid/bd0e0401-0801-0010-aaab-d0e1742da383 [original link is broken]
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/webcontent/uuid/751d003a-0b01-0010-8996-afbaa3fd5339 [original link is broken]
    https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#comp
    Regards,Anilkumar

Maybe you are looking for

  • Staffing changes and how to handle within the middle of a project

    Hello, Our users have this issue.  They have a project set up that is partially complete.  Let's say the project lasts three years and we have finished half of the project.  We have a resource staffed to a role that has been listed as the responsible

  • How to start and stop an embedded sound

    I'm putting a sound of a cat purring in the intro to my animation. I've been asked to make it possible for viewers to turn the sound on and off with buttons. I can do it with an outside sound file by using URLRequest. Is there a way to start and stop

  • SAP Netweaver BI Connection

    Hi, When I integrate a BEx report with Xcelsius via "SAP Netweaver BI Connection", dashboards can only be published to portal. Is there any chance to use them locally (e.g. pdf, swf)? Thanks, Erdem

  • Mac book pro boot slow

    My MACBookPro 15"" MAC OS 10.7.5 takes a very long time for its boot process. The sign of apple appears fast but then you must wait and wait ... until I can fill in my name and my code. Aftrwards everything works properly. Please tell me, what can I

  • Just for a contact

    hi anji Reddy Wangala, i have heard about u....... very short tempered. congrats for month topper. regards Reena