GUI Linking

I have been set an assignment to connect a java program to an oracle database. I wanted to put a GUI interface on top of the program. I was wondering how you can connect the GUI together for example on my code i have a read in from database button and when it is pressed i want it to read in data from the database and then i want it to go to a separate GUI that can display the data. How would i display the data would it have to be put into a large text box or is there a more appropriate way of doing this. Also how would i simply link two GUI interfaces together so that when one is pressed with for example a button to say to next it would go to another menu. Sorry if this is very wordy. I'm not sure if you would just use a extends or something like that.
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class LeagueGUI extends JFrame implements ActionListener{
     private JPanel pnlPanel;
     private JButton btnRead, btnUpdate, btnReadDatabase, btnDisplayUpdated;
     private JFrame frmFrame;
    private JLabel lblpicture;
     public LeagueGUI(){
          setTitle("League Table");
          setSize(900,600);
        pnlPanel = new JPanel();
          pnlPanel.setLayout(null);
        pnlPanel.setBackground(Color.blue);
        ImageIcon LeagueGUI = new ImageIcon("Premier.jpg");
        lblpicture = new JLabel(LeagueGUI);
        lblpicture.setBounds(430, 10, 100, 500);
        pnlPanel.add(lblpicture);
        btnRead = new JButton("Match Results");
          btnRead.setBounds(50, 450, 200, 100);
          btnRead.addActionListener(this);
          pnlPanel.add(btnRead);
          btnUpdate = new JButton("Update");
          btnUpdate.setBounds(250, 450, 200, 100);
          btnUpdate.addActionListener(this);
          pnlPanel.add(btnUpdate);
        btnReadDatabase = new JButton("Read Database");
          btnReadDatabase.setBounds(450, 450, 200, 100);
          btnReadDatabase.addActionListener(this);
          pnlPanel.add(btnReadDatabase);
        btnDisplayUpdated = new JButton("Display Updated");
          btnDisplayUpdated.setBounds(650, 450, 200, 100);
          btnDisplayUpdated.addActionListener(this);
          pnlPanel.add(btnDisplayUpdated);
          getContentPane().add(pnlPanel);
          setVisible(true);
        public void actionPerformed(ActionEvent event) {
          Object source = event.getSource();
          if (source == btnRead)     {
          else if (source == btnUpdate) {
         public static void main(String[] args)     {
          LeagueGUI League = new LeagueGUI();
}thank you in advance for your help please let me know if u need more specific information.

if i were doing this i would first write a bunch of functions that will handle connecting to the database and getting back the values formatted the way you will want them displayed.
after that i would start working on the GUI and linking it all together. you can easily add listeners to buttons (and other things) that can detect when they have been clicked -- once you detect the click you can call any functions / do anything you'd like (in this case you would call the database code you wrote).
if you google around you should be able to find some basic JDBC examples of java connecting to oracle databases.
let me know if you need anything else.

Similar Messages

  • GUI - - link to console application.

    I have a GUI Jframe window with a button. If the button is pressed, the program is supposed to redirect the user to a console application I have in that package. Right now, if the button is pressed, the application starts but the console is not functional.
    I just get the first line of code asking the user to input an int, but you can't type on the console. The console application works fine when started by itself.
    has anyone encountered this before or know what is wrong?
    Thanks.

    Yes:
    public void actionPerformed(ActionEvent e){
                Object source = e.getSource();
                            if(source == button1){new FoolHere();
                            validate();
                            initComponents();
    }FoolHere is a constructor that initiates the console application.

  • SAP GUI issue with Portal on Windows Vista

    Hello.  I am using Windows Vista on my laptop.  We use the portal to access our SAP systems.  I have SAP GUI 7.1 installed on my machine.  When I click my WIN GUI link from inside the portal I get a download file request.  I download the file, however I have to click on the WIN GUI link a second time for the GUI to actually open  I am using IE 7.0 as well.
    Please advise if you know how to resolve this issue.
    Thanks,
    Stuart

    try installing patch 5 for  SAPGUI from ftp://ftp.sap.com/pub/sapgui/win/710/patches/

  • Execute mapping shows error message.

    Hi I am trying a File2File scenario and while executing a mapping I get an error. Here is the error log.
    #6 04:01:39 [AWT-EventQueue-0] ERROR com.sap.aii.utilxi.swing.toolkit.ExceptionDialog: Throwable Thrown: MESSAGE ID: com.sap.aii.ib.server.cmpl.CompilerException com.sap.aii.ib.core.mapping.exec.ExecuteException: Cannot CreateProcess: javac @C:/usr/sap/SXI/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map8b23308093f611dd9b370019d136ec56/O1223332299687.txt @C:/usr/sap/SXI/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map8b23308093f611dd9b370019d136ec56/S1223332299796.txt error=2 at com.sap.aii.ibrep.server.mapping.ServerMapService.execute(ServerMapService.java:195) at com.sap.aii.ibrep.sbeans.mapping.MapServiceBean.execute(MapServiceBean.java:52) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0.execute(MapServiceRemoteObjectImpl0.java:259) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0p4_Skel.dispatch(MapServiceRemoteObjectImpl0p4_Skel.java:146) at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:291) at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183) at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:119) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37) at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162) Serialized server exceptions: MESSAGE ID: com.sap.aii.ib.server.cmpl.CompilerException (serialized) com.sap.aii.ib.core.mapping.exec.ExecuteException: Cannot CreateProcess: javac @C:/usr/sap/SXI/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map8b23308093f611dd9b370019d136ec56/O1223332299687.txt @C:/usr/sap/SXI/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map8b23308093f611dd9b370019d136ec56/S1223332299796.txt error=2 at com.sap.aii.ib.server.mapping.exec.ServiceUtil.compileSourceCode(ServiceUtil.java:200) at com.sap.aii.ib.server.mapping.exec.ServiceUtil.compile(ServiceUtil.java:149) at com.sap.aii.ibrep.server.mapping.ServerMapService.compileSourceCode(ServerMapService.java:360) at com.sap.aii.ibrep.server.mapping.ServerMapService.compileSourceCodeWithoutAndWithArchives(ServerMapService.java:300) at com.sap.aii.ibrep.server.mapping.ServerMapService.execute(ServerMapService.java:154) at com.sap.aii.ibrep.sbeans.mapping.MapServiceBean.execute(MapServiceBean.java:52) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0.execute(MapServiceRemoteObjectImpl0.java:259) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0p4_Skel.dispatch(MapServiceRemoteObjectImpl0p4_Skel.java:146) at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:291) at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183) at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:119) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37) at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162) MESSAGE ID: com.sap.aii.ib.server.cmpl.CompilerException (serialized) com.sap.aii.ib.server.cmpl.CompilerException: Cannot CreateProcess: javac @C:/usr/sap/SXI/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map8b23308093f611dd9b370019d136ec56/O1223332299687.txt @C:/usr/sap/SXI/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map8b23308093f611dd9b370019d136ec56/S1223332299796.txt error=2 at com.sap.aii.ib.server.cmpl.Compiler.compile(Compiler.java:205) at com.sap.aii.ib.server.mapping.exec.ServiceUtil.compileSourceCode(ServiceUtil.java:196) at com.sap.aii.ib.server.mapping.exec.ServiceUtil.compile(ServiceUtil.java:149) at com.sap.aii.ibrep.server.mapping.ServerMapService.compileSourceCode(ServerMapService.java:360) at com.sap.aii.ibrep.server.mapping.ServerMapService.compileSourceCodeWithoutAndWithArchives(ServerMapService.java:300) at com.sap.aii.ibrep.server.mapping.ServerMapService.execute(ServerMapService.java:154) at com.sap.aii.ibrep.sbeans.mapping.MapServiceBean.execute(MapServiceBean.java:52) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0.execute(MapServiceRemoteObjectImpl0.java:259) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0p4_Skel.dispatch(MapServiceRemoteObjectImpl0p4_Skel.java:146) at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:291) at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183) at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:119) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37) at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162) MESSAGE ID: com.sap.engine.compilation.CompilerProcessFailureException (serialized) com.sap.engine.compilation.CompilerProcessFailureException: Cannot CreateProcess: javac @C:/usr/sap/SXI/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map8b23308093f611dd9b370019d136ec56/O1223332299687.txt @C:/usr/sap/SXI/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map8b23308093f611dd9b370019d136ec56/S1223332299796.txt error=2 at com.sap.engine.compilation.ExternalCompiler.compile(ExternalCompiler.java:77) at com.sap.aii.ib.server.cmpl.Compiler.compile(Compiler.java:188) at com.sap.aii.ib.server.mapping.exec.ServiceUtil.compileSourceCode(ServiceUtil.java:196) at com.sap.aii.ib.server.mapping.exec.ServiceUtil.compile(ServiceUtil.java:149) at com.sap.aii.ibrep.server.mapping.ServerMapService.compileSourceCode(ServerMapService.java:360) at com.sap.aii.ibrep.server.mapping.ServerMapService.compileSourceCodeWithoutAndWithArchives(ServerMapService.java:300) at com.sap.aii.ibrep.server.mapping.ServerMapService.execute(ServerMapService.java:154) at com.sap.aii.ibrep.sbeans.mapping.MapServiceBean.execute(MapServiceBean.java:52) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0.execute(MapServiceRemoteObjectImpl0.java:259) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0p4_Skel.dispatch(MapServiceRemoteObjectImpl0p4_Skel.java:146) at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:291) at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183) at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:119) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37) at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162) #5 03:50:54 [AWT-EventQueue-0] FINE AutoLog.created.com.sap.aii.utilxi.swing.framework.PersistenceException: com.sap.aii.utilxi.swing.framework.PersistenceException: Object Data Type | not found (no context) at com.sap.aii.ib.gui.editor.XiDocument.load(XiDocument.java:320) at com.sap.aii.utilxi.swing.framework.cmd.OpenCommand.execute(OpenCommand.java:208) at com.sap.aii.utilxi.swing.framework.ExecutionContext.execute(ExecutionContext.java:196) at com.sap.aii.utilxi.swing.framework.ExecutionContext.executeSafe(ExecutionContext.java:134) at com.sap.aii.ib.gui.link.XlcOpenAction.actionPerformed(XlcOpenAction.java:83) at com.sap.aii.ib.gui.link.XlcMouseHandler.mouseClicked(XlcMouseHandler.java:52) at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source) at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source) at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source) at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source) at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source) at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source) at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source) at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source) at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) #4 03:50:54 [AWT-EventQueue-0] DEBUG AutoLog.created.com.sap.aii.utilxi.swing.framework.PersistenceException: Object Data Type | not found (no context) #3 03:42:22 [AWT-EventQueue-0] FINE AutoLog.created.com.sap.aii.utilxi.swing.framework.SilentCancellationException: com.sap.aii.utilxi.swing.framework.SilentCancellationException: at com.sap.aii.utilxi.swing.framework.cmd.CloseCommand.execute(CloseCommand.java:77) at com.sap.aii.utilxi.swing.framework.ExecutionContext.execute(ExecutionContext.java:196) at com.sap.aii.utilxi.swing.framework.cmd.CloseContainerCommand.execute(CloseContainerCommand.java:35) at com.sap.aii.utilxi.swing.framework.ExecutionContext.execute(ExecutionContext.java:196) at com.sap.aii.utilxi.swing.framework.ExecutionContext.executeSafe(ExecutionContext.java:134) at com.sap.aii.utilxi.swing.framework.FrameDCWrapper$FrameDCWrapperListener.uniFrameCloseTriggered(FrameDCWrapper.java:113) at com.sap.aii.utilxi.swing.toolkit.uniframe.UniFrame.fireUniFrameEvent(UniFrame.java:156) at com.sap.aii.utilxi.swing.toolkit.uniframe.UniFrame.close(UniFrame.java:64) at com.sap.aii.utilxi.swing.toolkit.uniframe.FrameAdapter$1.windowClosing(FrameAdapter.java:31) at java.awt.Window.processWindowEvent(Unknown Source) at javax.swing.JFrame.processWindowEvent(Unknown Source) at java.awt.Window.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) #2 03:42:22 [AWT-EventQueue-0] DEBUG AutoLog.created.com.sap.aii.utilxi.swing.framework.SilentCancellationException: #1 03:33:56 [AWT-EventQueue-0] FINE AutoLog.created.com.sap.aii.ib.core.service.TypeNotRegisteredException: com.sap.aii.ib.core.service.TypeNotRegisteredException: Type "versConflList" is not registered in the service class Type Service - Type Information at com.sap.aii.ib.core.service.ServiceBase.getServiceImpl(ServiceBase.java:71) at com.sap.aii.ib.bom.gen.TypeServiceImpl.getTypeInformation(TypeServiceImpl.java:82) at com.sap.aii.ib.gui.xiitem.services.InternalXiItemService.getTypeInfo(InternalXiItemService.java:23) at com.sap.aii.ib.gui.xiitem.services.InternalXiItemServiceBase.(InternalXiItemServiceBase.java:44) at com.sap.aii.ib.gui.xiitem.CommonInternalXiItemService$ForVersionConflictList.(CommonInternalXiItemService.java:323) at com.sap.aii.ib.gui.applcomp.StartupCodeEntry.guiStartup(StartupCodeEntry.java:141) at com.sap.aii.ib.gui.applcomp.StartupCodeEntry.startup(StartupCodeEntry.java:104) at com.sap.aii.ib.core.applcomp.IStartupCodeEntry.startupIfNotAlreadyDone(IStartupCodeEntry.java:33) at com.sap.aii.ibrep.gui.applcomp.StartupCodeEntry.startup(StartupCodeEntry.java:68) at com.sap.aii.ib.core.applcomp.IStartupCodeEntry.startupIfNotAlreadyDone(IStartupCodeEntry.java:33) at com.sap.aii.ib.core.applcomp.ExplicitApplicationComponentImpl.startup(ExplicitApplicationComponentImpl.java:116) at com.sap.aii.ib.core.applcomp.ExplicitApplicationComponents.startup(ExplicitApplicationComponents.java:374) at com.sap.aii.ib.core.applcomp.ApplicationComponent.startup(ApplicationComponent.java:201) at com.sap.aii.ib.gui.login.SplashLoginFrame$6.run(SplashLoginFrame.java:429) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) #0 03:33:56 [AWT-EventQueue-0] DEBUG AutoLog.created.com.sap.aii.ib.core.service.TypeNotRegisteredException: Type "versConflList" is not registered in the service class Type Service - Type Information
    I am a beginner to XI. Could someone help me out in this issue.
    cheers,
    Chandra.

    both the sender and receiver message types have the same element types and no udf/standard functions are used for mapping.
    source message type contains:
    empid - integer
    empname -string
    empsal- float
    emploc- string
    target
    eid - integer
    ename -string
    esal - float
    eloc -string.
    n all the fields are mapped in the same order.

  • Error in creating IAC iviews

    Dear All,
    We are trying to create IAC iviews but getting error.
    Environment details:
    OS: AIX 5.3
    DB Oracle 10.2.0.2(UC)
    Application EP7.0 (SPS14)
    Backend ECC 6.0 SR3
    We followed the below mentioned steps:
    01) Created one Internet Service ziactest in se80 with the parameters -
    ~transaction = tcode and ~generatedynpro = 1
    02) Published the 'complete service' to the site INTERNAL.
    03) Created one sub element under /sap/bc/gui/sap/its as ziactest
    04) Modified the service ziactest as :
    - specified "GUI Link" = Yes
    - specified following GUI Configuration parameters:
    ~WEBGUI = 1
    ~SINGLETRANSACTION = 1
    ~NOHEADEROKCODE = 1
    ~TRANSACTION = tcode
    ~GENERATEDYNPRO = 1
    - specifed handler as CL_HTTP_EXT_ITS
    05) save & activated the service
    When trying to test the service, we are getting a script error "Error on Page": wgu_global_eventhandler is null or not an object and the page displayed - is getting distorted . Also, system is specifying that: "The URL
    http://gcbeccd:/sap/public/bc/its/mimes/system/page/menubase.html was not called due to an error."
    When tried directly with the above url, the following error is getting displayed:
    "The following error text was processed in the system RD3: The theme extracted from PAGE/MENUBASE.HTML has more than 2 characters."
    Please note that: The SAP GUI for HTML has been configured and working properly. Also, the SAP note 790727 has been applied to resolve this problem but no result.
    Any help in this regard will be highly appriciated.
    Thanks & Regards
    Sudip

    Hello Sudip,
    If the webgui service is working then there should be no reason for this to not work.  By specifying ~webgui 1 you're actually not using any template you've created for the ziactest service.  The URL should be:
    http://gcbeccd:/sap/bc/gui/sap/its/ziactest
    Please also try:
    http://gcbeccd:/sap/bc/gui/sap/its/webgui?~transaction=tcode
    Please also publish the IAC, WEBGUI and SYSTEM Internet Services from SE80 to the Internal ITS.
    You should look at the developer trace (dev_w#) for the Dialog Workprocess that is used and reporting the error for more information. 
    Edgar

  • Creating web transaction for sub screen modulr pool

    Hi Experts,
    I am working with SRM . I have crated a module pool program which contains one main screen (9000) and two subscreens (9001, 9002 ). Also one subscreen area ( SUBSCR ). I have created two buttons in the main screen , button1 and button2. When I click on button one 9001 subscreen will appear in the subscreen area and when I press button 2,  9002 subscreen will appear in the subscreen area SUBSCR.  this transaction is working fine in R/3 system. I have created a service in SICF. I need to write the coding in template. I have never written HTML coding for this type of problem.
    Please give me the sample code for the above case.
    thanks in advance
    sankar

    Hello Sankar,
    If you already created this transaction and it works in the R/3 system then just follow the "Creating Internet Services" steps in the ITS help:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/53/302068f84311d4969300a0c94260a5/frameset.htm
    Or you could do it manually:
    1. create a new service in SICF
    2. make sure the "GUI link" is yes
    3. the parameters need to have:
        ~generatedynpro 1
        ~transaction   Z<transaction code>
    4. Activate the service
    That is probably the simplest way, let the ITS dynamically create the HTML for you.
    Edgar

  • Problem with Local File Identification in RFC

    Dear all,
    We are working on a scenario where we have to integrate an external application with SAP system. The external application would use SAP DMS as document repository; It will send us a local file path and we have to upload the document located in that path as an attachment to a DMS Document Info Record. We have designed a wrapper RFC for this purpose, which encapsulates the standard Fm BAPI_DOCUMENT_CREATE2. This BAPI takes a file path input under table parameter DOCUMENTFILES. Problem is, when we are running the RFC from SAP GUI, the document info record is created correctly with the document as attachment, but when we invoke the RFC from the external application, the process fails and we get an error message stating:"Error while checking in Original Files". We debugged the scenario and found out that, while running under SAP GUI, the BAPI is able to identify a GUI Link, and hence succeeds; but while calling from the external application, the BAPI fails to find a GUI Link, tries to start a FTP Server using RFC Destination SAPFTP, and fails. So, obviously, the BAPI is not able to parse the local file path because of non-existence of GUI Link. So,in this regard, my question is: is there no way that we can pass a local file path from an external application to SAP, and get the same identified and get the document uploaded? Is there any alternative to our approach?
    Awaiting answers.
    Regards,
    Sid

    Solved the problem by:
    Converting file content to binary->transferring binary content to a wrapper RFC->writing the content into a temporary file in application server->then calling BAPI_DOCUMENT_CREATE2 to create the document without attachment->then calling CVAPI_DOC_CHECKIN to checkin the temporay file from application server.
    Related references:
    http://wiki.sdn.sap.com/wiki/display/PLM/DMSandbackground+processing
    https://websmp130.sap-ag.de/sap/support/notes/504692
    How to upload file from Web Dynpro into R/3 (BAPI_DOCUMENT_CREATE2)
    Thanks to All who have contributed to the Solution.
    Sincere Regards,
    Sid

  • SP3a - what's the diff?

    OK, I've got SP3 (the original) installed, and Hotpatch 1 as well - for
    testing, not in production. Works fine, except Hotpatch 1 was not pretty -
    it messes up many of the admin GUI links, and doesn't fix Outlook Web Access
    2000 access as advertised.
    Now along comes SP3a. What exactly is the difference? Should an
    original SP3 installation be wiped clean and redone with SP3a? And are any
    post-sp3 hotpatches included in SP3a?
    Thanks for the help/advice!
    Gary Beshara
    BP

    On 10/21/2001 1:18 PM, Gary Beshara wrote:
    OK, I've got SP3 (the original) installed, and Hotpatch 1 as well - for
    testing, not in production. Works fine, except Hotpatch 1 was not pretty -
    it messes up many of the admin GUI links, and doesn't fix Outlook Web Access
    2000 access as advertised.
    Now along comes SP3a. What exactly is the difference? Should an
    original SP3 installation be wiped clean and redone with SP3a? And are any
    post-sp3 hotpatches included in SP3a?
    Thanks for the help/advice!As I understand it, SP3a has a change to the install script, but not the
    contents.
    Kent

  • How to get the WD port number of the actual system?

    Hello everybody,
    In my application I'm calling a Sap Gui transaction through an ITS WebGUI link that is generated dynamically by an action method. Works find so far.
    However, as the code has to run on various systems (development, test, production) I also have to generate the system and port name dynamically. System name is no problem, but how can I get the WD port of the actual system? Is there any method or variable for that? Couldn' find anything so far...
    Thanks in advance for any help!

    Hello,
    As Thomas mentioned, you have to use the utility class to construct the URL for any application.
    you have two options here
    Option 1 -> Prefix your generated WebGUI link with '/' and pass it to the method CL_URL->HOST in the URL parameter. this method will prefix the corresponding http:<host>:port to the passed in URL.
    Option 2 -> you can directly use the method CL_URL->ITS to generate your entire web GUI link.
    BR, Saravanan

  • Business Explorer Tool for SAP NetWeaver BW

    Hi,
    I'm not an expert SAP.
    I need to know SAP BW and BEx Business Explorer Tools.
    I downloaded and installed version of SAP Netweaver trial for Windows 32-bit that I found at this link:
    http://www.sdn.sap.com/irj/scn/downloads?rid=/library/uuid/30a6dbb2-a774-2e10-ee83-9f6432973545
    I thought I would find among the applications installed the BEx tools, but it is not present.
    Can you please help me?
    where I can download BEx tool?
    There is another link where I can found the SAP Netweaver that contains BEx tool?
    Thanks.
    Elisa

    Hi Elisa:
       Please try the following steps (I'm assumming you have an "S" account to access the SAP Marketplace).
    SAP GUI FOR WINDOWS.
    1. Open the page https://websmp102.sap-ag.de/support
    2. Enter the User and Password to access the SAP MarketPlace.
    3. Click on the "Software Downloads" tab.
    4. Click on the "Installation and Upgrades" sub-section.
    5. From the left side menu, click on the "Browse our Download Catalog" option.
    6. Click on the "SAP Frontend Components" link.
    7. Click on "SAP GUI FOR WINDOWS" link.
    8. Click on the "SAP GUI FOR WINDOWS 7.20 CORE" link.
    9. Clcik on the "Installation" link to see the u201CSAP GUI FOR WINDOWSu201D installer available to donwload (aprox. 780 MB).
    SAP GUI FOR WINDOWS (SUPPORT PACKAGES AND PATCHES).
    1. Open the page https://websmp102.sap-ag.de/support
    2. Enter the User and Password to access the SAP MarketPlace.
    3. Click on the "Software Downloads" tab.
    4. Click on the "Support Packages and Patches" sub-section.
    5. From the left side menu, click on the "Browse our Download Catalog" option.
    6. Click on the "SAP Frontend Components" link.
    7. Click on the "SAP GUI FOR WINDOWS" link.
    8. Click on the "SAP GUI FOR WINDOWS 7.20 CORE" link.
    9. Click on the "Win32" link to display the list of "SAP GUI" patches available to download.
    BI ADDON FOR SAP GUI (BEx Tools for BW).
    1. Open the pagea https://websmp102.sap-ag.de/support
    2. Enter the User and Password to access the SAP MarketPlace.
    3. Click on the "Software Downloads" tab.
    4. Click on the "Support Packages and Patches" sub-section.
    5. From the left side menu, click on the "Browse our Download Catalog" option.
    6. Click on the "SAP Frontend Components" link.
    7. Click on the "BI ADDON FOR SAP GUI" link.
    8. Click on the "BI 7.0 ADDON FOR SAP GUI 7.20" link.
    9. Click on the "Win32" link to display the list of u201CSAP BEx Toolsu201D patches available to download.
    Regards,
    Francisco Milán.

  • ITS Problem of navigating to 2nd page

    Hi All,
    Hi Experts,
    I am trying to access ITS standard service mobile00 & mobile01 and found that it is not foinf to the next navigation point. non of the button is heading to the next page. If it is a standard service it should work.
    The transaction for which this service is, it is working fine in SAP system.
    I also tried to create a custom service in SE80 & defined it in SICF with CL_HTTP_EXT_ITS header list, GUI Link 'Y' and 3 parameters ~mobile = 1, ~transaction = LM01 and ~theme = 99.
    When i open it in internet explorer, it only opens1/4th of the page and i dotn get anything to proceed further. When i open it in Mozilla firefox, it opens the page with a bad alignment but i can navigate to the 2nd page.
    Can anyone please help me.
    Regards,
    Nik

    Hello Nikhil,
    Did you publish the itsmobile00 and itsmobile01 services to the internal ITS from SE80?  Please have a look at the ITS Mobile wiki for information on creating your ITS mobile services and templates.  https://www.sdn.sap.com/irj/scn/wiki?path=/display/home/itsmobile
    Edgar

  • Hiding Command Box

    Hi,
    I have imported the Best practices for EP package. In the package we have webgui transactional iviews. my concern is when i run the iview i can see the command box and from that i can run other transactions. I want to hide the command box so that user can run only that particular transaction.
    using webgui (ITS) this can be done by setting the service parameter ~NOHEADEROKCODE = 1. But when we import the business package where do we need to set this service parameter.
    Is there a way to do it?
    Thanks in advance,
    Lakshmi.

    finally i had a chance to try it out myself.
    for some reason when you specify in the iview application parameter its not working .
    i went to sicf, and added this as the parameter in gui link and its working as expected (command box is hidden)
    I am trying out, if i come across anything i will post it here.
    also when i tested it in browser like below
    sap/bc/gui/sap/its/yraja?sap-client=023&~noheaderokcode=1 its working as expected, but for some reason it doesnt work with iview application parameter.
    Regards
    Raja
    Message was edited by: Durairaj Athavan Raja

  • Command box  in ESS portal to execute R/3 Tcodes

    Hi All,
    If you worked on similar requirement, can you let me know whether it is possible for making the command box(similar to R/3) to appear in Portal? so that we can execute standard Transaction codes directly from Portal..
    Please let me know if this can be done.
    Thanks,
    cs

    Yes it is possible. It can be done by using IAC iview.
    Steps to display the SAP Transaction as Internet Application Component (IAC) in Portal
    Creating an IAC
    1)Go to transaction sicf. Click on the "watch"button. Under Virtual Host / Services expand Default_host > SAP > bc > gui > sap > ITS. Now right click over ITS and select New Sub-Element.
    2)In the new dialog box give the name of the service.
    3)In the drop box corresponding to GUI Link select the option Yes. Now click the GUI Transaction button and enter the parameters as shown below.
    Parameter Name Value
    ~TRANSACTION <tcode>
    ~THEME 99
    ~generateDynpro 1
    ~noHeaderOkCode 1
    4)Now go to the tab Handler List and maintain the parameter CL_HTTP_EXT_ITS.
    Now click on the save button from the top and save it.
    You can now see the service under ITS.
    5) after saving the service, right click and active it.
    Creating an IAC iview in the portal
    Under Content Administration > Portal Content create an iview of type SAP IAC iview and specify the system alias name and the IAC.
    Note: If you R/3 is not a local system, you have to create a new system under system administraion in portal.
    If you face any issue, let me know.
    Regards,
    Anand G

  • Removing or destroying an ABAP program from memory

    Hello!
    Is there a command to kill, unload, remove or destroy a previously called ABAP program from memory? Let me explain what I'm trying to do:
    I'm doing some WM developments and I use the function L_TO_CONFIRM to confirm transfer orders. This function belongs to function group L03B (program SAPLL03B) and eventually it makes external  calls to subroutines belonging to program SAPML03T.
    If my Z program calls this funcion, the SAPLL03B program is responsible for loading SAPML03T into memory and everything works fine. The loaded programs list (on the debugging menu) are like this:
    No     Program          Group with
    52     SAPLL03B       
    78     SAPML03T      52
    This is also what I get if testing L_TO_CONFIRM from SE37, where it also works.
    But I wanted to reuse some subroutines from SAPML03T on my Z program, so I call something like this:
    PERFORM set_quit_icon(sapml03t) ...
    This call happens before the function call, so SAPML03T gets loaded by my Z program first, and stays on the memory. The list of loaded programs then looks like this:
    No     Program          Grouped with
      1     ZWMO_023
    27     SAPML03T       1
    So after calling the external subroutine in SAPML03T, I do some more coding and finally call the function L_TO_CONFIRM. Inside this call, my list looks like:
    No     Program          Group
      1     ZWMO_023 => My Z program
    27     SAPML03T       1
    28     SAPLL03B       
    So SAPML03T is grouped with my Z program and not SAPLL03B as it would be if I hadn't called the external subroutine first.
    Now, the problem:
    Since SAPML03T and SAPLL03B apparently share some global data (at least global workarea/table LTAK), in a normal call (SAPML03T)LTAK gets filled by a select statement and instantly (and somewhat inexplicable from what I new until now) (SAPLL03B)LTAK also gets filled by the same data. Well, I've only seen stuff like this with field-symbols but this is not the case. I would bet this two workareas would always be in fact two different workareas, but during the straight function call they are not. They are the same (I wish I could find their pointer addresses (like C++ stuff) to prove they were the same, but I couldn't). But if I call the external subroutine first and SAPML03T gets loaded, then I do have two different LTAKs and that's where I have problems, because L_TO_CONFIRM was coded considering this single workarea thing and when I have two, it doesn't work.

    Yes, I tought about that.
    As a matter of fact, just last week we had another global memory issue in a costing user-exit and we tried solving it with a STARTING NEW TASK. This initialy solved our problem, but this command leads to the opening of a new gui session, and when running this cost calculation procedure in the background, a short dump COMMUNICATION FAILURE was raised, probably because of the lack of a SAP GUI link. We then used DESTINATION 'NONE' and this solved the problem (I think it also opens a new LUW).
    Also my WM problem is on a Z application that will be running under SAP Console, and I don't think opening a new GUI session with STARTING NEW TASK under SAP Console will work. I should try it anyway. - edited: I just remebered I did this a couple years go and it works
    I could use DESTINIATION 'NONE' in this case too, since the funcion module is RFC-enabled already. There are a few ways to solve the problem (which is already solved by the way). My main question still is about removing a whole program from SAP memory through ABAP commands.
    Thank you very much!

  • T Code SICF for create service

    Dear Expert.
    I have the following doubt with the TAB  Logon Data of the T.Code SICF and the fields enclosed in the box yellow of the following Image.
    [T.Code SICF|http://www.freeimagehosting.net/uploads/dcd2069022.jpg]
    When I want publish a T.code ABAP in the portal What fields I should Use of this fields enclosed in the image of Above
    Thank in Advance for your help,
    Best Regards
    Carmen G

    In most cases, you would not need to use any of the fields under the Logon Data to publish a TCode in portal.
    All that you would need to maintain are:
    1. Under Service Data - GUI Link (set this to yes) and GUI Configuration (define parameters based on your need).
    2. Under Handler List - Use Handler CL_HTTP_EXT_ITS
    Please check the wiki page for more info:
    https://wiki.sdn.sap.com/wiki/display/HOME/InternetTransactionServer
    One good link to look at:
    http://wiki.sdn.sap.com/wiki/display/HOME/Article-EmploySAPGUIforHTMLinsteadofanInternet+service
    Thanks,
    Shanti

Maybe you are looking for