Calling a WebDynpro application from a SRM Badi

Hi - I will like to call a WebDynpro Abap application from Badi/method IF_EX_BBP_SC_MODIFY_UI~SC_MODIFY_SCREEN in SRM. The purpose is to force certain users to put in som "standard" values to be used in the following steps in the purchase procedure. As it not possible to use ordinary Abap POPUP functions modules I have made a small WebDynpro program to do the wanted function. But when I start the url with CALL FUNCTION 'CALL_BROWSER' or CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE the return code indicates a frontend error from ITS.
Is there any way that I can get over this error and start my WebDynpro from a Badi in SRM?
Or is there maybe another way to send a POPUP for information to the internet user?
Thank you in advance:
Bg Steen Pedersen

Hi Radhika
Have used fm WDY_EXECUTE_IN_PLACE to start my application. Bu I still get errors as shown below. Do you have any idea of the problem?  
Følgende fejltekst blev behandlet i systemet SRD : Template interpretation failed. Template does not exist.
Fejlen forekom på applikationsserver SAPSRMUDV01_SRD_00 og i arbejdsproces 0 .
Afbrydelsesart var: RABAX_STATE
ABAP-kaldhierarki var:
SYSTEM-EXIT of program SAPLWDY_PRGN_NODES
Function: WDY_EXECUTE_IN_PLACE of program SAPLWDY_PRGN_NODES
Method: IF_EX_BBP_SC_MODIFY_UI~SC_MODIFY_SCREEN of program ZCL_IM_BBP_SC_MODIFY_UI=======CP
Method: IF_EX_BBP_SC_MODIFY_UI~SC_MODIFY_SCREEN of program CL_EX_BBP_SC_MODIFY_UI========CP
Form: SC_UI_MODIFY of program SAPLBBP_SC_UI_ITS
Function: BBP_SC_UI_ITMCHOICE_SCENARIO of program SAPLBBP_SC_UI_ITS
Form: LINKS_DEF_SCREEN_SET of program SAPLBBP_SC_UI_ITS
Form: UI_SCENARIO_SET of program SAPLBBP_SC_UI_ITS
Form: APP_INIT of program SAPLBBP_SC_UI_ITS
Form: WIZARD_INIT of program SAPLBBP_SC_UI_ITS

Similar Messages

  • Calling A Webdynpro Application From Another Webdynpro Application

    Hi,
    i want to call a webdynpro application from another webdynpro application with sending parameters.
    i used this method,
    CALL METHOD cl_wd_utilities=>construct_wd_url
        EXPORTING
          application_name = lv_webapp
        IMPORTING
          out_absolute_url = lv_url.
    CONCATENATE lv_url '?param1=' lv_param INTO lv_url.
    data lo_window_manager type ref to if_wd_window_manager.
    data lo_api_component  type ref to if_wd_component.
    data lo_window         type ref to if_wd_window.
    lo_api_component  = wd_comp_controller->wd_get_api( ).
    lo_window_manager = lo_api_component->get_window_manager( ).
    lo_window         = lo_window_manager->CREATE_EXTERNAL_WINDOW(
        URL = LV_URL
    lo_window->open( ).
    but this method shows the parameters on the address bar.
    is there a method to send the parameters to another webdynpro application without show the parameters on the address bar?
    Can somebody help me pls?
    Thanks.

    I've used a server cookie before. This was built for BSP, but it is really usable anywhere.  It just writes the data temporary into the database.  This way you can just pass one meaningless URL parameter - like a GUID and use this key to read the data (the server cookie) upon initialization of the new application.  I generally serialize all the data that I want into one server cookie by serializing a class. I can then restore whatever attributes of the class that I want on the receiving side.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/bd/4cd23a09313b37e10000000a11405a/frameset.htm

  • Calling JAVA webdynpro applications from SAP Business workflow

    Experts,
    Is it possible to call JAVA webdynpro application as a task from SAP Business workflow? If yes, please pass on any links to relevant documents.
    Thanks,
    Deepak

    Hello,
    You would probably want to use UWL in the portal. From UWL you can launch tasks from portal, and with proper configuration (for example with the help of transaction SWFVISU) you can easily start web dynpro applications from UWL.
    I suggest you go trough the SAP documentation about UWL. Start for example here:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/39/a1bb5c4c0d4ab4a417e87ef35f1efa/frameset.htm
    Regards,
    Karri

  • Is it Possible to call a WebDynpro Application from WebServices?

    Hi Gurus,
    I have the following problem:
    I have an application in which the user sent information from a webdynpro application to BD, we use a web service to pass the information from the dynpro app to BD. The user send the information using an iView in the dynpro app, and dynpro app gets de IP address of the user implementing the statement "WDProtocolAdapter.getProtocolAdapter().getRequestObject().getClientHostAddress()" this is with the purpose of knowing in which IP is executing the app.
    The problem is that sometimes the user doesn't use the dynpro app and sent the information using the web service directly, then when de user executes the web services in DB the record doesn't have de IP address, and there aren't way to know from which IP was sent the information.
    I tried to use the statement "InetAddress.getLocalHost().getHostAddress()", but; when the web service is executed it retrieves the IP address from the server where the webservice is exposed, but i don't can't get the IP address from the Client.
    Then my question is: is it possible to create an small dynpro app which being executed by my webservice for obtaining the IP address of the client?
    Thanks in advance.
    I hope you could help me.

    hi blanca ,
    use this code
    IWDRequest req = WDProtocolAdapter.getProtocolAdapter().getRequestObject();
    req.getClientHostName();
    Regards
    Govardan Raj

  • How to call a Webdynpro application from a BSP page

    Hi to all,
              I have created a web-dynpro application, now i have to call this function through click event of a BSP page. How i can achieve it.
    Please help if anybody have idea.
    Thanks in advance.
    Pankaj Kumar.

    Hi Pankaj,
       Using portal eventing you can acheive that.
    WebDynpro and BSP communication
    Regards, Suresh KB

  • How to call webdynpro applications from outside

    Hi
    I have a requirement where i need to call below webdynpro application from outside (for ex CRM,ISA..) environments
    http://test.com/webdynpro/dispatcher/test/eomp~eompapp/EmpDisp?EmpNo=0500002203.  When i am running this application from
    browser , my application working fine and i am able to see call to the backend BAPI's.  But when I configure this url
    in the configurations of the above environment.  I am unable to run this application.
    Any Idea?
    Thanks
    Prasad

    Hi
    I am not getting any error, but the backend call not hapening.  I put a debugger in the backend BAPI and run the webdynpro application , no input parameters came or call came to the the backend BAPI.
    Thanks
    Prasad

  • Calling Webdynpro application from Workflow Task

    Hi All,
    How do i call a custom Java WebDynPro Application from my task? How to pass the container values to the Webdynpro application.
    Can some one help me out?
    Thanks,
    Sarath

    Hi sarath,
    u see this thread, u get more information
    calling web dynpro from workflow - SWFVISU
    Calling Java code from Webdynpro Abap UI
    WebDynpro application that can work with SAP workflow work items?
    WebDynpro in Workflow
    Regards,
    vino

  • Calling a Webdynpro Application in using WDURLGenerator.getApplicationURL

    Hi,
    I have to call a webdynpro application in an external window using the application name. Please note that no iViews are created out of the application which i am going to call.
    I have DC1 and DC2 and from the Comp Controlller of DC1 , i need to invoke the application in DC2.
    String depObjectName =wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();
    WDDeployableObjectPart depObjectpart=WDDeployableObject.getDeployableObjectPart(depObjectName,"TestApp",WDDeployableObjectPartType.APPLICATION);
    String url = WDURLGenerator.getApplicationURL(depObjectpart) ;
    window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(url,"Test View");
    window.show();
    Is this the correct API to get getDeployableObjectName which is in the different DC.
    Please let me know the correct API which i can use to get the getDeployableObjectName and the subsequently the Application which is availbale in the different DC.
    Thanks and Regards,
    Sekar

    Hi Chintan Virani,
    Thanks for your reply.
    Is it possible to get to know through the APis that the Webdynpro Application Deployed in the server is started.
    I hope some API's will be available.I need to open this application only when it is started.
    I tried this,
    IWDDeployableObject deplObj = WDDeployableObject.getDeployableObject("TestApp");
    if (  deplObj.getState() == WDDeployableObjectState.STARTED ) {
        // do something
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to create deployable object TestApp' since it is not a Web Dynpro object.    null
    Thanks and Regards,
    Sekar

  • How to call a Webdynpro view from BSP page (MVC) in a new window?

    Dear Experts,
    kindly advise how to call a webdynpro view from BSP application after performing an event (through button or hyper link).
    Regards,
    Sarat.

    Hi,
    This has been discussed many times in several forums.
    Please check the method CL_WD_UTILITIES=>CONSTRUCT_WD_URL, to create a runtime url for your WD Application and call this URL.
    Refer thread: Call Webdynpro Application from BSP Application
    Hope this will be useful!
    Regards,
    Meganadhan S

  • How to call a VB application from Java

    Hi,
    does anybody know how to call a VB application from java.
    Would appreciate if you can provide me with an example.
    thanks

    try exec()ing the cad program with the name of the file as a command line parameter...
    Runtime.getRuntime().exec("CADProg.exe Test.prt");
    i have no clue if this will work but it seems like it's worth a try.

  • How to call an applescript application from Office 2011 Excel VBA

    All:
    I have been pounding my head how to implement a working VBA application into the Mac environment. I have tried a number of approaches calling applescript from VBA. I would like to call my applescript application and pass one argument. My applescript application is as follows:
    <code>
    on run argv
    set theURL to (item 1 of argv)
    set p_path to do shell script "echo ~"
    set m_path to POSIX file p_path
    set theName to text -((offset of "/" in (reverse of characters of theURL) as text) - 1) thru -1 of theURL
    set theFile to (p_path & "/Downloads/" & theName)
    set macPath to (POSIX file theFile)
    do shell script "/usr/bin/curl " & theURL & " -o " & quoted form of POSIX path of macPath
    end run
    </code>
    My last attempt within VBA is:
    <code>
    Sub SaveMetaDataFile(URL As String, shortFileName As String)
    Dim scriptToRun As String
    Dim posixcmd As String
    posixcmd = ThisWorkbook.Path
    scriptToRun = "tell application " & posixcmd & ":MetaDataFileDownloadScript.app " & URL
    MsgBox "[" & scriptToRun & "]"
    MacScript (scriptToRun)
    </code>
    I first tried to call the script directly without the "tell application" and I still obtain an error. I also tried the following in VBA and I get the same error with the last lane of code:
    <code>
    scriptToRun = "set theURL to " & """" & URL & """" & Chr(13)
    scriptToRun = scriptToRun & "set p_path to do shell script " & """" & "/bin/echo ~ " & """" & Chr(13)
    scriptToRun = scriptToRun & "set m_path to " & """" & posixcmd & """" & Chr(13)
    scriptToRun = scriptToRun & "set theName to " & """" & shortFileName & """" & Chr(13)
    scriptToRun = scriptToRun & "set theFile to (p_path & " & """/Downloads/""" & " & theName)" & Chr(13)
    scriptToRun = scriptToRun & "set macPath to (POSIX file theFile)" & Chr(13)
    scriptToRun = scriptToRun & "do shell script " & """" & "/usr/bin/curl " & """" & " & " & " theURL " & " & " & """" & " -o " & """" & " & " & " quoted form of POSIX path of macPath"
    MsgBox scriptToRun
    'scriptToRun = scriptToRun & "do shell script " & """/usr/bin/curl """ & " & " & " theURL " & """ -o """ & " & " & " quoted form of POSIX path of macPath"
    MacScript (scriptToRun)
    </code>
    The above code is from the applescript application. The applescript application works well using the terminal via osascript. For example:
    xenas-imac:Census Work Xena$ osascript MetaDataFileDownloadScript.app http://www2.census.gove/acs20095yr/summaryfile/Sequence_Number_and_Table_numberLookup.xls
    xenas-imac:Census Work Xena$
    The whole goal is to download a file into the Download directory from Excel to allow the next step to import the file into Excel for the user. Any help here would be great!
    Thank you;
    Lori

    Update:
    Ok have the module almost working and matches the syntax within the test applescript I had created, but the VBA code via the MacScript() call is generating an invalid procedure or argument call. The following is the test applescript to compare the created string to be passed to VBA MacScript() function:
    <code>
    set appPath to quoted form of POSIX path of "Macintosh HD:Users:Xena:Desktop:Census Work:"
    do shell script "/usr/bin/osascript " & appPath & "MetaDataFileDownloadScript.app " & "http://www2.census.gove/acs20095yr/summaryfile/Sequence_Number_and_Table_numberLookup.xls"
    </code>
    The following is the VBA module that generates the above word for word as far as I can tell:
    <code>
    Sub SaveMetaDataFile(URL As String, shortFileName As String)
    Dim scriptToRun As String
    Dim posixcmd As String
    posixcmd = ThisWorkbook.Path
    posixcmd = posixcmd & ":"
    scriptToRun = "set appPath to quoted form of POSIX path of " & Chr(34) & posixcmd & Chr(34) & Chr(13)
    scriptToRun = scriptToRun & "do shell script " & Chr(34) & "/usr/bin/osascript " & Chr(34) & " & appPath & " & Chr(34) & "MetaDataFileDownloadScript.app " & Chr(34) & " & " & Chr(34) & URL & Chr(34)
    MsgBox "[" & scriptToRun & "]"
    MacScript (scriptToRun)
    End Sub
    </code>
    The message box in the above VBA code matches my test applescript file and I have taken the output of the MsgBox and used it in a test applescript and it works great, but VBA is throwing "Run-time error '5': Invalid procedure call or argument".
    Looking at Microsoft's definition it takes a string argument and I have made sure that scriptToRun is a string type, so at this point I suspect there is something wrong with the MacScript() funciton, or I am missing something above. Is there another way to call an applescript application from VBA outside the MacScript() function? Or is there something I am missing? Any help or suggestions is needed.
    Thank you;
    Lori (CodeXena)

  • How to access custom JAVA webdynpro application from an iPad?

    Hi,
    We are trying to access custom JAVA webdynpro application from an iPad, but nothing is opening up from the iPad browser.
    What can be the possible reasons for this? Any kind of SICF enablement or opening up of ports in the network?
    Any inputs are welcome!!
    TIA,
    Regards
    Deepthi

    Hi,
    it is possible to show Java Web Dynpro applications on a mobile device in general, but the controls and the ui should be optimized for the mobile device.
    Safari devices are not officially supported so far for Mobile Web Dynpro.
    Supported are Windows Mobile devices and Blackberry devices. I also got some good results with Symbian devices.
    You can find more inforamtion on Mobile Always Connected at:
    ht[http://help.sap.com/saphelp_nwce711core/helpdata/en/7d/28fa3e7cb1d861e10000000a114084/content.htm|http://help.sap.com/saphelp_nwce711core/helpdata/en/7d/28fa3e7cb1d861e10000000a114084/content.htm]
    Best Regards,
    Stefan

  • Call a Java Application from MicroFocus COBOL (in UNIX environment)

    Hello,
    Could you please let me know, how to call a Java application from a MicroFocus COBOL application. If anyone has any code samples, that would be of great help.
    Thanks in advance,
    Tijo.

    You generally can't cause a program to be executed on a different >server. Basic security, you know. Besides this idea of having the Java >application run on a different server wasn't mentioned in your original >post. That leads me to believe we don't have the whole story.So I think you need to step back and find out what are the requirements. For example: Does your program need to start this Java application running, or is it already running and your program needs to connect to it somehow?
    My program has to start a Java class file, meaning that the Micro Focus COBOL module will call the Java class file. Will it be running on the same machine as your program, or on some other machine?
    For both cases, I would like to know the answer.a) Running on the same machine as my program is running.
    b) Running on the different machine.
    And then there are the questions about whether your program needs to have a conversation with the Java application, or whether it just needs to start it and that's all.
    COBOL program has to call a Java class by passing some parameters and Java class in turn process it and return some value back.. Kind of Request and Response model.Plenty of questions to be asked. Go and find out what they are.
    Sorry ... if I am not clear on my questions. Anyhow, thank you very much for providing the information.

  • Calling a Java Application from MicroFocus COBOL.... (in UNIX environment)

    Hello,
    Could you please let me know, how to call a Java application from a MicroFocus COBOL application. If anyone has any code samples, that would be of great help.
    Thanks in advance,
    Tijo.

    Annoyingly crossposted.
    http://forum.java.sun.com/thread.jspa?threadID=730657

  • Calling a java application from j2ee web application

    Hi,
    I have a j2ee application in which i am making a call to a jar file which is a java application.
    Runtime a4 = Runtime.getRuntime();
    Runtime a = Runtime.getRuntime();
    String cmd[] = new String[14];
    cmd[0] = "cmd";
    cmd[1] = "/c";
    cmd[2] = "start";
    cmd[3] = "javaw";
    cmd[4] = "-jar";
    cmd[5] = CATALINA_HOME+"\\webapps\\AveksaTesting\\AveksaTestingJava\\dist\\AveksaTestingJava.jar";
    cmd[6] = SERVER_TESTS;
    cmd[7] = COLLECTOR_TESTS;
    cmd[8] = SYSTEM_TESTS;
    cmd[9] = CREATE_ORACLE;
    cmd[10] = DB_NAME;
    cmd[11] = DB_DUMP;
    cmd[12] = email;
    cmd[13] = isMIGRATE;
    try{
    java.lang.Process p = a.exec(cmd);
    Now in the called java application, i am first shutting down the tomcat server by calling shutdown.bat script and then starting it using startup.bat. But the problem i am facing is when i restart the server from java application, it says address already in use(i.e. port 8445 on which tomcat is runninng).
    Id i just call the java application and do the same operation it works fine. I guess when i am calling java from j2ee application, j2ee still has some threads holding java and not shutting down tomcat properly.
    Can anyone suggest me what can be done in this case. I have to call a java application from j2ee and restart the tomcat server many times.
    Thanks in advance
    -Vikram

    Annoyingly crossposted.
    http://forum.java.sun.com/thread.jspa?threadID=730657

Maybe you are looking for