Calling sap transaction in webdynpro

hi friends,
can any body provide the solution how to call the standard transaction like va02 or .any . in Web dynpro abap.
thanks in advance.
sai.

Hi,
It can be posible to display a standard transaction into Webdynpro.for that no coding required.you need to use webgui for that. ( pls refer transaction SICF ). in that case u can specify the Tcode u want use in URL.
like
http://<server-name>:8000/sap/bc/gui/sap/its/webgui?~TRANSACTION=va02
Call this url from linktourl or linktoaction
Tell me if you find any problem in doing this
Regards,
Edited by: Raju.. on Jun 30, 2009 5:51 PM

Similar Messages

  • Calling SAP transaction from WebDynpro

    HI,
    Could someone post a link as to how I may call a SAP transaction from a webdynpro.
    Will this be an external call to R/3 or can i get it embedded in my dynpro.......
    Tnks..

    Hi,
    You can call by creating external window method.
    create LINK to URL or LINK TO ACTION according to requirement, for this. write code in onaction of that.
    data: iv_url type string value 'http://<server>:<port>/sap/bc/gui/sap/its/webgui?~transaction=*se38 RS38M-PROGRAMM=rsparam;DYNP_OKCODE=SHOP'.
      data: api_component  type ref to if_wd_component,
              window_manager type ref to if_wd_window_manager,
              window type ref to if_wd_window.
      api_component = wd_comp_controller->wd_get_api( ).
      window_manager = api_component->get_window_manager( ).
      window = window_manager->create_external_window(
                     url = iv_url
                     modal = abap_false ).
      window->open( ).
    Cheers,
    Kris.

  • Can we call an SAP transaction in Webdynpro

    Hi,
    I have a requirement to call an SAP transaction in Webdynpro, ie on clicking a button in a view, the particular SAP transaction has to come . Kindly tell me how to do it.
    Regards,
    Lakshmi

    Lakshmi,
    You cannot call a transaction from WDA
    check these threads
    https://forums.sdn.sap.com/click.jspa?searchID=19319106&messageID=6146192
    https://forums.sdn.sap.com/click.jspa?searchID=19319106&messageID=6476084
    Thanks
    Bala Duvvuri

  • Calling SAP Transaactions in Webdynpro ABAP

    Hi All
    I have a requirement, i have 4 link to actions in view, and created different views for all links. I creat viewuielement container in mainview and i embed all views in that. Now I want to call sap transaction when i click perticular link to action and i have to display perticular transaction in that view. is it possible in webdynpro or only in portal side.
    Thanks
    Madhan.

    Hi Madan,
    Yes It is possible in WDA as well as in Portal.
    we can use ITS for tat. In View Container UI element call view in which u have to create  IFrame then set this url to the IFrame :
    http://<domain>:<port>/sap/bc/gui/sap/its/webgui?sap-client=800&~TRANSACTION=<transaction name> 
    since IFrame is deprecated u can call this in external window using Window Manager.
    reply me if u need some more clarifications..
    Thanks,
    Regards,
    Kiran

  • Calling SAP scripts from WEBDYNPRO

    Hi
    We need to call SAP scripts from WebDynpro application.  As per my understanding we need to do following steps
    Create a new RFC function module and create sap script output in PDF format.For this
        - use OPEN_FORM , by assigning TDGETOTF='X' in the Options(Structure
          ITCPO). 
        - call function module CLOSE_FORM with option OTFDATA
        - convert OTF data to PDF by using function module CONVERT_OTF_2_PDF
    Now I would like to know how to display the PDF string from WebDynpro.
    Please help....
    Regards
    Sujith

    Hi,
    You can call by creating external window method.
    create LINK to URL or LINK TO ACTION according to requirement, for this. write code in onaction of that.
    data: iv_url type string value 'http://<server>:<port>/sap/bc/gui/sap/its/webgui?~transaction=*se38 RS38M-PROGRAMM=rsparam;DYNP_OKCODE=SHOP'.
      data: api_component  type ref to if_wd_component,
              window_manager type ref to if_wd_window_manager,
              window type ref to if_wd_window.
      api_component = wd_comp_controller->wd_get_api( ).
      window_manager = api_component->get_window_manager( ).
      window = window_manager->create_external_window(
                     url = iv_url
                     modal = abap_false ).
      window->open( ).
    Cheers,
    Kris.

  • Calling sap transaction in html

    hi all
    i've created an iview which is calling sap transaction while creaating it has given me some options like sap gui for windows,sap gui for html.while selecting sap gui for html i am getting some error.other is working. can any one plzz tell me how to create a iview which calls saptransction using sap gui for html template.
    awaiting for replies

    Hi,
    In order to show your Iview in sap gui for html, you need to have ITS server configured.
    1. If you are using SAP version <= 4.7 on web as 6.20 then you need to install ITS 6.20.
    2. If you are using SAP version >= 4.7 on WEBAS 6.40, then ITS comes as integrated ITS 6.40. So you can activate the Integrated ITS.
    If you want to use SAP GUI for java then you need little configuration which is explained in my weblog.
    Steps for quick installation and usage of SAP GUI for JAVA in EP
    Hope this helps,
    Thanks,
    Praveen.
    PS.Dont forget to reward points.

  • Calling SAP Transaction from BSP

    I wonder whether it is possible to call SAP transaction from BSP application and pass to it some data; e.g., PO# when calling VA02?
    The called transaction could appear in a separate MS IE Window (like in some Portal applications) or in SAP GUI.
    Any help will be appreciated.
    Thank you in advance

    I have launched the Java SAPGui from BSP pages before.  I used SNC so that the users were logged on via Single Sign On.  I store the Java Gui in the Mime directory.  You can force the startup transaction.  Theorectically you could also Gui Scripting to try and control the Gui and force in the default value for your PO field.  I have not tried that however.  You will probably want to check the Service Marketplace for documents on the Gui Scripting.  The following is the code from my BSP page to launch the Java Gui in the Browser as an applet:
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <HTML>
    <HEAD>
      <TITLE>SAPGUI for the Java Environment</TITLE>
      <STYLE type="text/css">
          body { margin-left:0px; margin-right:0px; margin-top:0px; margin-bottom:0px; }
      </STYLE>
    </HEAD>
    <BODY scroll="no">
    <SCRIPT language="JavaScript">
    // user configurable part starts here
    var pluginurl         = '';
    var scriptable     = 'true';
    var codebase         = '.';
    var jnlp           = 'platin.jnlp';
    var keepalive      = 'true';
    var frog           = 'true';
    var trace          = '';
    var tracefile      = '';
    var connectionData = 'conn=/M/nts163/S/3620/G/SPACE/&tran=SE80&clnt=088&fast=true&sncon=true&sncname=p:[email protected]&sncqop=9';
    // user configurable part ends here
    // verify if Java Plugin as control in Internet Explorer or Java Plugin for Netscape or native JRE of browser must be used
    var jre = 'control';
    if(navigator.platform.indexOf("Mac") > -1)
       jre = 'native';
    else if (navigator.appName.indexOf("Netscape") != -1)
       jre = 'plugin';
    document.open();
    switch (jre)
    case 'control':
        document.writeln('<OBJECT CLASSID  = "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"                               ');
        document.writeln('    ID       = "PlatinGUI"                                                                    ');
        document.writeln('    CODEBASE = "j2re-1_3_1_02-win-i.exe#Version=1,3,1,0"                             ');
        document.writeln('    WIDTH    = "100%"                                                 ');
        document.writeln('    HEIGHT   = "100%"                                                 ');
        document.writeln('    BORDER   = 0>                                                      ');
        document.writeln('<PARAM NAME = "TYPE"           VALUE = "application/x-java-applet;jpi-version=1.3.1">         ');
        document.writeln('<PARAM NAME = "SCRIPTABLE"     VALUE = "', scriptable,'">                                ');
        document.writeln('<PARAM NAME = "code"           VALUE = "com.sap.platin.GuiApplet2">                   ');
        document.writeln('<PARAM NAME = "codebase"       VALUE = "', codebase,'">                             ');
        document.writeln('<PARAM NAME = "jnlp"           VALUE = "', jnlp,'">                             ');
        document.writeln('<PARAM NAME = "archive"        VALUE = "GuiStartS.jar">                             ');
        document.writeln('<PARAM NAME = "keepalive"      VALUE = "', keepalive,'">                             ');
        document.writeln('<PARAM NAME = "frog"           VALUE = "', frog,'">                             ');
        document.writeln('<PARAM NAME = "trace"          VALUE = "', trace,'">                             ');
        document.writeln('<PARAM NAME = "tracefile"      VALUE = "', tracefile,'">        ');
        document.writeln('<PARAM NAME = "connectionData" VALUE = "', connectionData,'">                               ');
        document.writeln('                                                                ');
        document.writeln('This page requires a Sun Java Plugin 1.3 and a SAPGUI for Java to view.                      ');
        document.writeln('                                                                ');
        document.writeln('</OBJECT>                                                           ');
        break;
    case 'plugin':
        document.writeln('<EMBED TYPE        = "application/x-java-applet;version=1.3"                         ');
        document.writeln('    PLUGINURL      = "', pluginurl,'"                                          ');     
        document.writeln('    WIDTH          = "100%"                                            ');                                        
        document.writeln('    HEIGHT         = "100%"                                             ');
        document.writeln('    ALIGN          = "BASELINE"                                                ');
        document.writeln('    code           = "com.sap.platin.GuiApplet2"                                      ');
        document.writeln('    codebase       = "', codebase,'"                                        ');
        document.writeln('    jnlp           = "', jnlp,'"                                                ');
        document.writeln('    archive        = "GuiStartS.jar"                                       ');
        document.writeln('    keepalive      = "', keepalive,'"                                       ');
        document.writeln('    frog           = "', frog,'"                                            ');
        document.writeln('    trace          = "', trace,'"                                            ');
        document.writeln('    tracefile      = "', tracefile,'"                                       ');
        document.writeln('    connectionData = "', connectionData,'"                                        ');
        document.writeln(' <NOEMBED>                                                      ');
        document.writeln(' </NOEMBED>                                                      ');
        document.writeln(' </EMBED>                                                              ');
        break;
    case 'native':
        document.writeln('<APPLET CODEBASE  = "', codebase,'"                                                           ');
        document.writeln('        ARCHIVE   = "GuiStartS.jar"                                                           ');
        document.writeln('        CODE      = "com.sap.platin.GuiApplet2"                                               ');
        document.writeln('        WIDTH     = "100%"                                                                    ');
        document.writeln('        HEIGHT    = "100%">                                                                   ');
        document.writeln('<PARAM NAME = "SCRIPTABLE"     VALUE = "', scriptable, '">                                    ');
        document.writeln('<PARAM NAME = "jnlp"           VALUE = "', jnlp, '">                                          ');
        document.writeln('<PARAM NAME = "keepalive"      VALUE = "', keepalive, '">                                     ');
        document.writeln('<PARAM NAME = "frog"           VALUE = "', frog, '">                                          ');
        document.writeln('<PARAM NAME = "trace"          VALUE = "', trace, '">                                         ');
        document.writeln('<PARAM NAME = "tracefile"      VALUE = "', tracefile, '">                                     ');
        document.writeln('<PARAM NAME = "connectionData" VALUE = "', connectionData, '">                                ');
        document.writeln('</APPLET>                                                                                ');
        break;
    document.close();
    </SCRIPT>
    </BODY>
    </HTML>

  • Call SAP transaction out of a Crystal Report

    Hi there,
    is there a possibility to call a SAP transaction and maybe even pass a parameter (like e.g. project number) out of a Crystal Report?
    Are there any SSO scenarios?
    Thanks in advance
    With kind regards
    Sebastian

    Hi Sebastian Wörner,
    Could you please expand what exactly you are looking for ?
    Calling SAP transaction out of Crystal Report?
    Thanks,
    Sastry

  • Call sap transaction from java

    can anyone tell me how to call SAP transaction from JCO,
    cheers
    Ajay

    Hi Ajay,
    You should find or create functional module which covers your requrements.
    Best regards, Maksim Rashchynski.

  • Calling a transaction in webdynpro

    Hi,
      As per my requirement when a button click happens I need to call the transaction CAT2 by skipping initial screen. How to achieve this in webdynpro.
    Thanks
    Raghavendra

    Hi Raghavendra,
    If you are using portal as a triggerring point of your web dynpro applications, then the below requirement is achieved by doing the following.
    1. Create a BDC report program to call transaction CAT2 skipping the first screen.
    2. The report has the same input parameters as that of the transaction CAT2.
    3. Associate a transaction to the report program sat 'ZCAT2'.
    In the event handler of the button in your web dynpro do that following
    Data declarations
      Local Internal tables(lt_)
        lt_bus_parameter_list              TYPE wdy_key_value_table,
        lt_launcher_parameter_list         TYPE wdy_key_value_table,
      Local Work area's(ls_)
        ls_keyvalue_pair                   TYPE wdy_key_value,
      Local Variables(l_)
        l_pcdpageurl                       TYPE string,
        l_componentcontroller              TYPE REF TO if_wd_component,
        l_port_manager                     TYPE REF TO if_wd_portal_integration.
    Constants(c_)
      CONSTANTS:
       c_transaction_code            TYPE string VALUE 'ZCAT2',
       c_okcode                            TYPE string VALUE 'F8',
       c_param1                            TYPE string VALUE 'P_Data_Entry_Profile',
       c_param2                            TYPE string VALUE 'P_person_number'.
      l_componentcontroller = wd_this->wd_get_api( ).
      l_port_manager        = l_componentcontroller->get_portal_manager( ).
    Fill all the business parameters
      CLEAR ls_keyvalue_pair.
      ls_keyvalue_pair-key    =  c_param1.
      ls_keyvalue_pair-value  =  'Data Entry Profile'.
      APPEND ls_keyvalue_pair TO lt_bus_parameter_list .
      CLEAR ls_keyvalue_pair.
      ls_keyvalue_pair-key    =  c_param2.
      ls_keyvalue_pair-value  =  'Person Number'.
      APPEND ls_keyvalue_pair TO lt_bus_parameter_list .
    Fill the launcher parameters for the transaction
      CLEAR ls_keyvalue_pair.
      ls_keyvalue_pair-key    =  'AutoStart'.
      ls_keyvalue_pair-value  =  'Yes'.
      APPEND ls_keyvalue_pair TO lt_launcher_parameter_list.
      CLEAR ls_keyvalue_pair.
      ls_keyvalue_pair-key    =  'GuiType'.
      ls_keyvalue_pair-value  =  'WinGui'.
      APPEND ls_keyvalue_pair TO lt_launcher_parameter_list.
      CLEAR ls_keyvalue_pair.
      ls_keyvalue_pair-key    =  'OkCode'.
      ls_keyvalue_pair-value  =  c_okcode.
      APPEND ls_keyvalue_pair TO lt_launcher_parameter_list.
      CLEAR ls_keyvalue_pair.
      ls_keyvalue_pair-key    =  'System'.
      ls_keyvalue_pair-value  =  'SAP_R3_HumanResources'.
      APPEND ls_keyvalue_pair TO lt_launcher_parameter_list.
      CLEAR ls_keyvalue_pair.
      ls_keyvalue_pair-key    =  'TCode'.
      ls_keyvalue_pair-value  =  c_transaction_code.
      APPEND ls_keyvalue_pair TO lt_launcher_parameter_list.
      CLEAR ls_keyvalue_pair.
      ls_keyvalue_pair-key    =  'Technique'.
      ls_keyvalue_pair-value  =  'SSF'.
      APPEND ls_keyvalue_pair TO lt_launcher_parameter_list.
      CLEAR ls_keyvalue_pair.
      ls_keyvalue_pair-key    =  'WinGui_Type'.
      ls_keyvalue_pair-value  =  'Shortcut'.
      APPEND ls_keyvalue_pair TO lt_launcher_parameter_list.
    SAP has provided us with customizing table to maintain the path for the iView.Here Resource_key is the key field to get the path.
    We create a new entry in this table using which we uniquely identify the path of the iVew that needs to be launched.
    get the url of the pcd page for the common transaction iView
      SELECT SINGLE b~text
             INTO  l_pcdpageurl
             FROM  t7xssserstring AS b
             INNER JOIN t7xssserres AS a
             ON    arespcdpage  = bguid
             WHERE a~ressource = /rio/zcl_hse_constants=>c_common_resource.
    Navigate to the Injury Illness details
      CALL METHOD l_port_manager->navigate_absolute
        EXPORTING
          navigation_target   = l_pcdpageurl
          navigation_mode     = l_port_manager->co_show_external
          use_sap_launcher    = abap_true
          business_parameters = lt_bus_parameter_list
          launcher_parameters = lt_launcher_parameter_list.
    The folowing is the flow of the program:
    When user clicks a button to launch transaction CAT2, the event handler associated to it called.
    Here we populate an internal table with the parameters to call transaction ZCAT2 and the iView is launched by calling navigate_absolute method with the right path.
    I am not very much sure as to how the iViews are set up but there is a provision to read the key valure pair there. The values are read and the tranzation ZCAT2 is called which will inturn launch CAT2 transaction.
    By adding Skip First screen statement we can get in the details directly.
    Hope this helps.
    Regards,
    Sravan Varagani

  • Calling sap transaction in web browser

    Hi,
    I want to call a sap transaction in web browser.
    In my case the Solution Manger Transaction SMSY
    to provide all the System Landscape Information.
    How can I realise it with less effort?
    What technology is state of the art for this problem?
    Thx 4 answer!
    Best Regards,
    Rene Trippolt.

    Hi Jörg,
    thx 4 ur answer but is ITS the only way for solving this problem? Is it still state of the art?
    What about Portal -> Application Integration with iView,
    WebDynpro, etc. Is it also possible with this technology to call a sap transaction in a web browser with less effort?
    I have to do a kind of evaluation for the best integration
    of an sap transaction in a web browser.
    Independent of any SAP Release!
    thx 4 each hint,
    Rene.

  • Passing multiple values for a single field in URL to call sap Transaction

    Hi All,
    I need to pass multiple values for a single field to SAP transaction .
    means if i have say a field "Date" which can contain more than one value, <b>but its not a range which has two fields</b> . How is it possible.
    Let me know pls.
    Regards,
    Sirisha.R.S.

    Hi Satyajit,
    I need to call a transaction with multiple values which gives me the report based on those values.
    So I need to pass multiple values for a single parameter.
    I hope u got it.
    Regards,
    Sirisha.R.S.

  • Call sap transaction in view element

    Hi together,
    I'm a WD beginner.
    So I want to know how can I start/show a sap Transaction in a UIElment. I don't want to start an external window.
    I searched a Long time here in SCN. Some guys said it is not possible  ?!?!?!
    Thanks a lot
    Wolfgang
    PS: I want to create a tabstrip element. In one Tabstrib I want put a view element in it. In this element I want to Show a Special SAP Standard Transaction to Show data. The Transactions runs if I create a new window. BUt we think it's not user friendly to create a new view.

    Hi Steffen,
    You can achieve your requirement as below
    Create an ui element  "IFRAME" inside the tab and bind the source to a context attribute URL
    Generate the URL for your t-code and set the value to context attribute URL
    You can refer my answer in the below link
    ITS server in ABAP Webdynpro
    Hope this helps you.
    Regards,
    Rama

  • Calling SAP transaction

    Hello,
    Is there any possibility of callin SAP transaction say 'VA01' using Webdynpro.
    if yes then, how this can be achieved?

    >
    Arne Jakob Hidle wrote:
    > Hi Abhi,
    >
    > after testing the LORD_MAINTAIN_COMP component, I am not able to recreate the costing scenario in R/3 -- menu 'Extras -> COSTING.
    >
    > Do you know if that is possible to navigate to costing, or best solution how to recreate this?
    >
    > Best Regards
    > Arne Jakob
    The LORD in the name of the component stands for Light Order - in other words LORD_MAINTAIN_COMP isn't a complete replacement for VA01/VA02/VA03.  There are some of the more advanced features of order entry that haven't been brought over to the Web Dynpro version yet.

  • Calling SAP Transaction from WDA

    Hi,
    We have a peculiar requirement of calling SAP Standard Transaction from Web Dynpro ABAP.Well, we tried achieving this using the Transactional iview. On click of appropiate link/button in my applicaiton, I can call the Transactional iview. But the problem is, I could not pass on the data from WDA Application to Transactional iview. I need some inputs in handling such cases.
    The case might look something similar to PCR's final updation(like after all approvals of PCRs, the final Administrator executes the workitem which in turn calls the Notification Maintenance and this in turn calls the PA40 passing the data from Adobe form(XML data) to PA40 txn. Like this, After all my approvals, I would like to call the SAP Transaction passing the data from WDA Application. Hope I am clear.
    Regards
    <i><b>Raja Sekhar</b></i>

    Hi,
    Maybe you can use the information from this blog to pass dynamic parameters to the SAP transaction iview which you call with the created URl
    How to launch SAP transaction & pass parameters via URL
    Dagfinn

Maybe you are looking for