Start Transaction on native SAPGUI from Netweaver

Hello,
is it possible to connect to a native SAP GUI and start a Transaction (e.g. MD04) with the parameters plant and material from  Netweaver 7.0 or 7.1?

Hello,
thank you for your answers.
To be more exact:
We want to start a new SAP GUI for Windows Session on a Windows PC from a Webdynpro for Java Page (Netweaver 7.1).
Our Idea ist to hab a Link on the Webdynpro.
When the user uses this link a new SAP GUI for Windows Window is opening (with automatic Login and)  with the excpected Transaction including the selected Parameters from the Webdynpro for Java Page.

Similar Messages

  • Starting transaction in SAPGUI via JCo

    Hello,
    I'm trying to start SAPGUI for Windows using parameter
    setSapGui(1), but the GUI Window does not show. When I'm using setAbapDebug(true)than the GUI window starts in debug mode.
    What can be wrong? Does anyone have any ideas?
    I'm trying to start transaction se11 using BAPI RFC_CALL_TRANSACTION.
    Code looks like this:
    // Obtain parameter list for function
          JCO.ParameterList input = function.getImportParameterList();
           // Obtain table for function
           JCO.Table BDCtable = function.getTableParameterList().getTable("BDCTABLE");     
          //BDCtable.setRow(0);
          BDCtable.appendRows(4);
          BDCtable.setValue("SAPMSRD0", "PROGRAM");
          BDCtable.setValue("0102", "DYNPRO");
          BDCtable.setValue("X", "DYNBEGIN");
          BDCtable.nextRow();
          BDCtable.setValue("BDC_CURSOR", "FNAM");
          BDCtable.setValue("RSRD1-TBMA_VAL", "FVAL");
          BDCtable.nextRow();
          BDCtable.setValue("BDC_OKCODE", "FNAM");
          BDCtable.setValue("=SHOW", "FVAL");
          BDCtable.nextRow();
          BDCtable.setValue("RSRD1-TBMA", "FNAM");
          BDCtable.setValue("X", "FVAL");
          BDCtable.nextRow();
          BDCtable.setValue("RSRD1-TBMA_VAL", "FNAM");
          BDCtable.setValue("BUKRS", "FVAL");
          BDCtable.nextRow();
          BDCtable.setValue("SAPMSRD0", "PROGRAM");
          BDCtable.setValue("0102", "DYNPRO");
          BDCtable.setValue("X", "DYNBEGIN");
          // Pass function parameters
          input.setValue(transactionName, "TRANCODE");
          //input.setValue(daneKlienta, "DANE_KLIENTA");
          conn.execute(function, conn.createTID());
    Regards Artur
    Message was edited by: Artur Welke

    Hi Artur,
    This answer is in relation to BSP but i think concept is same, it will give you an idea. This answer is taken from
    Brain's <a href="/people/brian.mckellar/blog/2003/10/23/bsp-trouble-shooting-frequently-asked-short-questions weblog.
    <i>Typical question: "We have developed a BSP application and we're trying to call some function. It doesn't work. However, if we execute the BSP application in debug mode, everything works fine. Why?"
    When you log onto a WebAS system the Dynpro engine is started that contains all the logic to handle interaction with the SAPGUI. For example, things such as rendering controls and doing file upload/download are all available.
    When you run an HTTP request into Web AS, a very special "dark" (or background) Dynpro is started. A minimal Dynpro is required to get ABAP up and running. But now there is no SAPGUI available, so no SAPGUI-based service will work. Also little things such as popup windows do not work.
    So why does the code work in the debugger? Because, once the debugger is triggered,it realizes that a normal Dynpro is required for the debugger and not the "dark" one. So the full-blown Dynpro engine is started, making all SAPGUI services available.
    You can consider finding the code that causes the error and bracket it with IF-statements in this function, so that no SAPGUI interaction is required in the context of a HTTP call.</i>
    Also visit this <a href="https://www.sdn.sap.com/sdn/collaboration.sdn?contenttype=url&content=https%3A//forums.sdn.sap.com/thread.jspa%3FthreadID%3D35880%26tstart%3D60">thread</a>, this will certainly help you.
    Regards,
    Narinder Hartala

  • Error in starting server from NetWeaver Studio

    I get the following error when i start the server from NetWeaver studio. Any reason why this error pops up.
    Problem Occurred:
    Startting Server - SAP Server E<24> (Time of error.....)
    Reason :
    JsfOpenAdmin failed: object not found.
    However I can start and stop the server from the management console.
    thanks,
    Sahir
    Edited by: Sahir Pathan on Jul 14, 2008 5:29 PM
    Edited by: Sahir Pathan on Jul 14, 2008 5:37 PM

    Maybe when you are on netweaver studio, the instance number passed is the java one instead of the abap instance one :
    sidadm> sapcontrol -nr 01 -function J2EEGetProcessList
    27.02.2009 17:13:02
    J2EEGetProcessList
    OK
    telnetPort, name, pid, type, restart, exitCode, state, startTime, elapsedTime, restartCount, errorCount, cpu, debug
    0, SDM, 11557, SDM Server, Yes, , J2EE_RUNNING, Running, 2009 02 01 06:41:40, 634:31:22, 0, 0, 0:14:36, Switched off
    50108, dispatcher, 11555, J2EE Dispatcher, Yes, , J2EE_RUNNING, Running, 2009 02 01 06:41:40, 634:31:22, 0, 0, 0:24:21, Disabled
    0, server0, 11556, J2EE Server, Yes, , J2EE_RUNNING, Running, 2009 02 01 06:41:40, 634:31:22, 0, 0, 1:16:31, Disabled
    sidadm> sapcontrol -nr 11 -function J2EEGetProcessList
    27.02.2009 17:13:17
    J2EEGetProcessList
    FAIL: JsfOpenAdmin failed: object not found
    sidadm>

  • Error when starting server from NetWeaver Studio

    I get the following error when i start the server from NetWeaver studio. Any reason why this error pops up.
    Problem Occurred:
    Startting Server - SAP Server E<24> (Time of error.....)
    Reason :
    JsfOpenAdmin failed: object not found.
    However I can start and stop the server from the management console.
    thanks,
    Sahir
    Edited by: Sahir Pathan on Jul 14, 2008 5:30 PM

    Hello Sahir,
    Can you post some other error logs ?
    Regards,
    Siddhesh

  • Starting and Stopping Instances from Netweaver Administrator does not work.

    When we go to our http://<host>:<port>/nwa and navigate to Systems. We see our instances, although we see status and UNKNOWN.
    Also, when we click down to see our server nodes, and try and restart them or stop them...we enter our user/pass for Unix and but it doesn't do anything.
    Does anyone know what is involved to get this functionality to work? We're not looking install CCMS or anything like that, we just want th ability to start and stop our cluster from the central instance web administration screens.
    Thanks,
    -Tim

    Just works for us, without needing any config.
    If your running unix the alternative method is to use a tool called JCMON, much better than NWA.
    log in as <sid>adm onto your host.
    jcmon pf=/usr/sap/PEP/SYS/profile/PEP_JC00_xxxxx
    for our production portal for example;
    Which allows you to do admin on your java instance only.
    use the menu options 10 - 21.
    Message was edited by:
            James Ibbotson
    Message was edited by:
            James Ibbotson

  • Problem starting transaction for MDB

              Hello All,
              I have a MDB configured as Container managed transaction.
              Sometimes I rollback a message sent to a Queue.
              The problem is that sometimes the WEBLOGIC log show the follow error and do not
              start a JMS service.
              Anyone had this problem before?
              Thanks.
              <Mar 3, 2004 4:51:13 PM GMT-03:00> <Error> <JTA> <BEA-110424> <An unexpected exception
              was caught during begin: java.lang.NullPointerException
              at java.security.SecureRandom.setSeed(SecureRandom.java:369)
              at weblogic.transaction.internal.XidImpl.seedRandomGenerator(XidImpl.java:378)
              at weblogic.transaction.internal.XidImpl.create(XidImpl.java:266)
              at weblogic.transaction.internal.TransactionManagerImpl.getNewXID(TransactionManagerImpl.java:1719)
              at weblogic.transaction.internal.TransactionManagerImpl.internalBegin(TransactionManagerImpl.java:249)
              at weblogic.transaction.internal.ServerTransactionManagerImpl.internalBegin(ServerTransactionManagerImpl.java:303)
              at weblogic.transaction.internal.ServerTransactionManagerImpl.begin(ServerTransactionManagerImpl.java:259)
              at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:253)
              at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2596)
              at weblogic.jms.client.JMSSession.execute(JMSSession.java:2516)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              >
              <Mar 3, 2004 4:51:13 PM GMT-03:00> <Error> <JMS> <BEA-040368> <The following exception
              has occurred:
              java.lang.RuntimeException: [EJB:010166]Error occurred while starting transaction:
              javax.transaction.SystemException: java.lang.NullPointerException.
              at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:277)
              at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2596)
              at weblogic.jms.client.JMSSession.execute(JMSSession.java:2516)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              >
              

    Thanks for ur help!
              WLS 8.1
              <JDBCTxDataSource EnableTwoPhaseCommit="true"
              JNDIName="JDBCDataSource" Name="JDBCDataSource"
              PoolName="JDBCConnectionPool" Targets="myserver"/>
              WLS 7.0
              <JDBCDataSource JNDIName="JDBCDataSource" Name="JDBCDataSource" PoolName="JDBCConnectionPool"/>
              Because JDBCDataSource is the default datasource when you create a new datasource in WLS7.0, JDBCTXDataSource is the default datasource in WLS8.1.
              After I changed the config.xml, it's ok!
              > Can u please post the DB Connection Pool & DataSource
              > part of config.xml from both (7 & 8.1) your
              > environments ?
              >
              >
              > Cheers!
              > Dips

  • Invoking SAP transaction in native SAP GUI

    Hi,
      I need to invoke SAP transaction in native SAP UI and not web browser using a Java application or any executable application.
    Can this be done?
    Thanks,

    Hello Vijaya,
    I assume your question is whether SAP transactions can be run via a Web Browser without a JRE being installed - right?
    The answer to this question is: That depends on the transaction.
    You can use SAP GUI for HTML (a service of the SAP integrated ITS) to render many SAP transactions in the browser (for limitations have a look at note 314568). However if you do not want to use Java applets this means one additional limitation: You will not be able to download or upload files from the browser to the SAP system. Before doing anything like this I would strongly recommend to do thorough testing (and rethink why no JRE should be used).
    BTW: Follow ups to this question should be better posted in the SAP ITS forum.
    Best regards,
    Frank

  • Attempt to start transaction on SQL server

    I have managed to successfully configure Oracle 8.1.7 on NT to retrieve data from a MS
    SQL Server (version 6.5)
    However, one of the databases we are accessing is set up as read only; Oracle is
    attempting a start transaction, as it recognises that the SQL server can take
    part in distributed transaction. I am doing something like
    insert into mytable (a, b, c) select a, b, c from remote_table@sql_server
    Because the SQL Server is in read-only mode, the 'start transaction' fails,
    and the insert statement fails as a whole (I've examined the trace file, and the
    error I'm getting is reproducable on the SQL server if I type it in)
    I've tried looking at the data dictionary, and sure enough it is set up for
    2 phase commit as per the documentation.
    My question is, can I tell Oracle to not attempt the 'start transaction' on the
    remote system? I've tried various DBMS_HS calls but to no avail (from the
    documentation I believe the agent overrides the data dictionary entries anyway)
    Thanks,
    Colin McPherson

    Colin,
    This looks like bug 1622021. This bug has been fixed in v9.0.1 of the gateway.

  • MSS:  Cannot Start Transaction HRWPC_FC_EXEC

    We have three custom ABAP reports setup for the 'Reports' tab in MSS.  Two of them work fine, but one of them is giving this error message:
    Cannot Start Transaction
    The Internet Transaction Server could not start the transaction "HRWPC_FC_EXEC" because of the following error: .
    It doesn't give an error message, so I have no idea what the error is.  Any ideas?

    I would check/try the following:
    1)Does the transaction exist and does it need to be published to the ITS?
    2)Does the user have the appropriate security profile to run the report - try with SAP_ALL and SAP_NEW as a test?
    3)Run the transaction directly in R/3 SAPGui with your test user ID, what happens?
    4)Is your test user appropriately integrated into your org chart (does the MSS report rely on this?)
    Just some ideas.... hope something gives you a clue

  • Open SAPGUI from BSP

    Hi,
    I have a requirement to open the print-preview of a smartform in the SAPGUI when a link is clicked on the BSP page in the browser. I have created a program which shows the print preview etc. Is there any way of opening up the SAPGUI from the browser with a specific transaction being called and parameters passed from BSP to the SAPGUI?
    I dont want to display as PDF unless there is a way to disable downloading or saving of the displayed PDF to the users hard disk. Also printing of the PDF needs to be disabled. This does not seem to be possible from what I have seen in the forums.
    Any help will be highly appreciated. Thanks in advance.
    Regards
    Preet

    Hi,
    Thanks for replying so quickly. The SAP version is R/3 Enterprise and I need to open the Wingui. However the issue we are facing is how to pass a dynamic parameter to the R/3 transaction. In the portal we can specify the transaction to call and can pass parameters to it but there seems to be no way of dynamically passing a value to the R/3 transaction.
    I hope this makes sense. When the user clicks say a customer number on the webpage, I need to call a Z transaction in R/3 with that customer number passed to it. Is this actually possible?
    Regards,
    Preet

  • TPETRAN - error starting transaction" gwerrno(402017)

    I'm making a TPCALL(TOUPPER, TypedString, 0) to tuxedo through WTC on WebLogicServer8.1.
    Below is the error from ULOG on Tuxedo side.
    LIBGW_CAT:1029: ERROR: Service request not forwarded to remote site:"TPETRAN -
    error starting transaction" gwerrno(402017)
    Error on WebLogic Server side:
    tperrno encountered: TPETRAN(14):0:0:Unknown(17259):QMNONE(0):0
    Both WLS8.1 and Tuxedo are on the same BOX.
    CONFIGURATION Info:
    DMCONFIG.UBB
    *DM_LOCAL_DOMAINS
    DEFAULT:
    DOM1 GWGRP = CHEVELLE_GRP
    TYPE = TDOMAIN
    DOMAINID = "oonst1_domain"
    DMTLOGDEV = "/apptest/obsoon/oonst1/bin/DMTLOG"
    DMTLOGNAME= "DMTLG_DOM1"
    *DM_REMOTE_DOMAINS
    RDOM5 TYPE = TDOMAIN
    DOMAINID = "websvc1"
    *DM_TDOMAIN
    DOM1 NWADDR = "\\localhost:19217"
    RDOM5 NWADDR = "\\localhost:7004"
    *DM_LOCAL_SERVICES
    TOUPPER
    CONFIG.XML on WLS8.1
    <WTCServer Name="WTCsimpapp" Targets="ObsoonServer">
    <WTCLocalTuxDom AccessPoint="MyLclAccessPt"
    AccessPointId="websvc1" NWAddr="//local:7004" Name="myLoclTuxDom"/>
    <WTCRemoteTuxDom AccessPoint="MyRemoteAccessPt"
    AccessPointId="oonst1_domain"
    LocalAccessPoint="MyLclAccessPt"
    NWAddr="//localhost:19217" Name="myRTuxDom"/>
    <WTCImport LocalAccessPoint="MyLclAccessPt"
    Name="myImportedResources"
    RemoteAccessPointList="MyRemoteAccessPt" ResourceName="TOUPPER"/>
    <WTCExport EJBName="tuxedo.services.OBSStructRetrievalHome"
    LocalAccessPoint="MyLclAccessPt" Name="myExportedResources" ResourceName="changeCase"/>
    <WTCtBridgeGlobal JmsFactory="weblogic.jms.ConnectionFactory"
    JndiFactory="weblogic.jndi.WLInitialContextFactory"
    Name="tBridge" TuxFactory="tuxedo.services.TuxedoConnection" WlsErrorDestination="weblogic.jms.tBerrorQueue"/>
    <WTCtBridgeRedirect Direction="JmsQ2TuxS" Name="JMSQ2TuxS"
    ReplyQ="weblogic.jms.Tux2JmsQueue"
    SourceName="weblogic.jms.Jms2TuxQueue"
    TargetAccessPoint="MyRemoteAccessPt" TargetName="TOUPPER"/>
    </WTCServer>
    Looking forward to ur response!
    Thanks * Regards
    Jay

    Please see my responses in the WTC newsgroup.
    Regards,
    Todd

  • BTM SLA Alert - Completed Started Transactions

    I'm looking for a way to setup an BTM Alert when Completed Transactions is less than Started Transactions.
    SLA Alerts provide instrumentation for both Completed and Started transactions/as well as rates, but there does not appear to be a way to compare Completed vs Started.
    Does anyone know of a way to do this?
    thanks!
    -Javier

    When connect to the BTM main console as Administrator you can navigate to Explorer ---> SLA Policies
    Next, from the 'Create' menu you can create a SLA Policy --> Transaction SLA
    Is that what you are looking for?
    Regards
    Rob
    http://oemgc.wordpress.com

  • Calling native libraries from OC4J (howto config)

    Hello folks,
    I need your help. I am trying to set up OC4J so that I can call native libraries from my servlet. Could you point me to the respective documentation or give a hint on how to configure OC4J for this? Thank you.
    GKK

    gday GKK --
    I don't have an example, so I'm working from memory here and assuming you are using OC4J standalone.
    There's two aspects which need to be considered:
    1: the Java wrapper classes you have which call out to the native libary.
    2: the native libs themselves (which I'll call a .dll from hereon in for simplicity).
    What you would need to do is make sure the Java wrapper classes are all available to the web application. This can be done by either packaging them in a jar file and putting it into the web-inf/lib directory of your web application, or leaving them in an unpackaged form and putting it into the web-inf/classes directory.
    I do vaguely remember helping someone debug a JSP tag lib issue once before which used native code and we ran into some problems with concurrent use of the same DLL (a Java restriction) because a DLL can only be registered once per JVM instance and the threading model meant it was being loaded more than once -- but it may have also had something to do with the JSP taglib cache.
    If you do get some form of Java runtime exception showing concurrent access error for the native lib, what you can do is move the lib with the Java wrapper classes into the global classpath (j2ee/home/applib) meaning it's only ever loaded once..
    Then what you need to do is make sure the DLL itself is accessible to the Java process -- on Windows this is done by making sure directory holding the DDL is set in the PATH environment variable before -- before starting OC4J. On other platforms, it can be done using the LD_LIBRARY_PATH environment variable.
    That should be all you need to do to make it work.
    cheers
    -steve-

  • Unable to deploy from Netweaver studio after changing hostname

    Hi All,
    After following the SAP note 757692 to change the hostname for J2EE Engine 6.40, we are getting error message " Error: There is no control instance running in the cluster" in the SDM log when trying to deploy an app from netweaver studio. We have change the setting in netweaver studior to point to the new server etc ...
    1. We noticed that in the SDM log, it seem to still looking at the old hostname (clttst1) instead of the new host name (apple)
    2. We have to change the hostname because of the cluster environment.
    3. I checked the trace file dev_ms and found the following messge "  MsHttpInit: full qualified hostname = clttst1.rta.nsw.gov.au" , i.e. still pointing back to the old hostname.
    I have made all the neccessary changes base on the SAP note 757692, i.e. message server name etc ...
    Any advices / help are greatly appreciated.

    Hi ,
    Thanks for your help, I can connect to SDMserver using RemoteGui fine, the default hostname in the login screen is my "new" hostname.
    But when the developer try to deploy the apps from Netweaver studio, getting error and the SDM log indicating that it is still using the old hostname.
    Old hostname clttst1, new hostname apple
    The error message in the SDM log as follow :
    Oct 20, 2005 2:42:07 PM  Info: ***** Begin of SAP J2EE Engine Deployment (J2EE Application) *****
    Oct 20, 2005 2:42:08 PM  Info: Starting cluster instance processes.
    Oct 20, 2005 2:42:08 PM  Error: An error occured while starting a cluster instance.
    Oct 20, 2005 2:42:08 PM  Error: There is no control instance running in the cluster:
    Name:JM_T1129783328975_clttst1
    Host:clttst1
    State:5
    Name:JM_T1129783488134_RTASVR04
    Host:137.172.153.23
    State:5
    Name:JC_clttst1_JRP_30
    Host:clttst1
    State:5
    Please check if there are running cluster instances.
    As you can see from the log, it is still looking at clttst1 ...
    Any helps are greatly appreciated.

  • BAPI Function module : Unable to search from Netweaver Studio

    Hallo,
    I developed a small BAPI Function module GetCarList etc using the tutorial <a href="http://www.sappoint.com/abap/bapiintro.pdf">Introduction to BAPIs</a> . This ofcourse is also available in help.sap.com for GetFlightList etc.
    Steps Followed :
    -o developed RFC based Function Module. (BAPI supported)
    -o activated it, released it.
    -o created a alias in the BAPI explorer, added API methods, parameters and released all of them
    After i activated and released the function module, i could see it in the BAPI Explorer (Transaction SWO1) as released( ready to be used). But when i tried to search it from Netweaver Studio (to import it as a WebDynpro Model) i could not find it.
    -o checked if the BAPI method is available or not in the BAPI Explorer list. (it is available and released)
    -o Tried to import BAPI Func.Module - like 'GetFlightList' of Table SFLIGHT (comes with SAP examples), [ but could not] .
    I have no idea what the problem could be. do let me know.
    thanks
    Sreenivas.

    Hi all,
    i did check the SE37 or SE80 transaction to find out whether the current module is Remote call enabled or not. Adn well it was already RFC set. I have no idea what had happened in the last week, today it works. Now i can import the function module into netweaver. anyways thanks Achim for the support.
    Sreenivas.

Maybe you are looking for

  • Help!!Old backup with .nfb can't be opened with th...

    Hello, With an old version of PC Suite I made a backup of my phone Nokia 6680. After updating the Phone I want to restore my backup. With the old version I didn't get any communication so I installed the latest version of PC Suite. Now I have a real

  • Image does not fit cell exactly? Entire site changes width and there are boaders.

    I am trying to help a friend modify their site with a new header. There is an existing header cell that is set to autostretch when I click the fixed radio button I get the dimensions 1381x132. In Photoshop I made the new banner 1381x132. I have tried

  • MacBook Pro 13" Slow

    Hi I just had my Mac for 8 month and it has been very slow recently. It started with garage band request for optimization. I rarely use my mac honestly and the least I'll do is Page, watch movies and online also some minor downloading. Nowadays, logg

  • Opening folders and files with enter/return instead of clicking

    in finder i've found that i can open any folder/file with command-o. however, not all apps support that and sometimes i really need the way to open the file/folder with return key or enter one. and it's impossible)) so i have to take my mouse and cli

  • Service Applications - Service Account Auto Changing

    Each time I create a service application, SP is auto-changing the service account used for the application pool identity.  I set it as SP_Services in the UI of CA, then suddenly when I go back and look it has auto-changed it to SP_Farm.  How can I st