Problem with 'SAPGUI_PROGRESS_INDICATOR' in SAP GUI 7.10
Hi!
We have a problem with SAP GUI 7.10 PL 11. When running this little code snipet, the SAP GUI crashes and SM21 mentions a broken pipe while calling writev in niuxi.c
DATA: lv_i type i,
lv_string type string.
DO 50000 TIMES.
lv_i = lv_i + 1.
lv_string = lv_i.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
* PERCENTAGE = 0
text = lv_string.
ENDDO.
Can anyone confirm this problem or is it solved with a higher patch level ?
Thank you,
Markus
Hello Markus,
this code snippet would be perfect to be added to an official bug report created at http://service.sap.com/message on component BC-FES-GUI.
Best regards
Rolf-Martin
Similar Messages
-
Problem with Interaction between SAP GUI and BSP Applications
Hi Folks,
I am new to BSP and am trying to create a program to created a BSP within the SAP GUI. This is my program, I have tried to find as to what error have I made but I am not able to find out.
I can only find a button post document in the output, but I am not able to trigger any event. Please let me know as to what is the error.REPORT zbsp_iact_gui.
SET SCREEN 100.
* CLASS cl_my_html_yiewer DEFINITION
CLASS cl_my_html_viewer DEFINITION INHERITING FROM cl_gui_html_viewer.
PUBLIC SECTION.
METHODS: constructor IMPORTING parent TYPE REF TO cl_gui_container.
METHODS: on_sapevent FOR EVENT sapevent OF cl_gui_html_viewer IMPORTING action postdata.
ENDCLASS. "cl_my_html_viewer DEFINITION
* CLASS cl_my_html_viewer IMPLEMENTATION
CLASS cl_my_html_viewer IMPLEMENTATION.
METHOD constructor.
super->constructor( parent = parent ).
DATA: event_tab TYPE cntl_simple_events,
event TYPE cntl_simple_event.
event-eventid = me->m_id_sapevent.
event-appl_event = 'X'.
APPEND event TO event_tab.
call method html_control->set_registered_events
exporting
events = event_tab.
SET HANDLER me->on_sapevent FOR me.
ENDMETHOD. "constructor
METHOD on_sapevent.
BREAK-POINT.
IF action CS 'COUNTER'.
DATA: counter TYPE string.
READ TABLE postdata INDEX 1 INTO counter.
SPLIT counter AT '=' INTO counter counter.
MESSAGE counter TYPE 'I'.
ENDIF .
ENDMETHOD. "on_sapevent
ENDCLASS. "cl_my_html_viewer IMPLEMENTATION
DATA: html_viewer TYPE REF TO cl_my_html_viewer,
html_container TYPE REF TO cl_gui_custom_container,
fcode LIKE sy-ucomm.
*& Module STATUS_0100 OUTPUT
* text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'TESTHTM1'.
IF html_viewer IS INITIAL.
CREATE OBJECT html_container
EXPORTING
container_name = 'HTML'.
CREATE OBJECT html_viewer
EXPORTING
parent = html_container.
DATA: url TYPE string, urlc(2048) TYPE c.
cl_bsp_runtime=>construct_bsp_url(
EXPORTING in_application = 'ZBSP_IACT_GUI'
in_page = 'Start.htm'
IMPORTING out_abs_url = url ).
urlc = url. " type conversion STRING to C
CONCATENATE urlc '?SAP-CLIENT=650' INTO urlc.
html_viewer->show_url( url = urlc ).
ENDIF.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
* text
MODULE user_command_0100 INPUT.
CASE fcode.
WHEN OTHERS.
CALL METHOD cl_gui_cfw=>dispatch.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
Edited by: Nonconformist Pagal on May 12, 2009 1:42 PM
Edited for formatting by: Durairaj Athavan Raja on May 14, 2009 9:50 AM -
Problem with printing through SAP
Hi All,
We have problem with printing, only one person through SAP can only print the documents successfully and the remaining are getting incomplete print output. This is happening only for transactions GD23 and FB03 (FI related transactions). We have tried with removing Saplpd folder and installing Sprint as suggested by SAP from note 894444. Still problem persists. Please suggest me in this regards.
Veerendra Kumar.Hi Ardhian,
We are using Front end printing and already installed SAP GUI new version i.e. 7.10.
Only one user is able to print the document correctly from SAP, and other are getting incorrect print and getting error message "System cannot print the last 80 columns of the report" on one system.
SAP version we are using is 4.7EE.
Let me know if any more information needed for analysing the issue.
VeerendraKumar.
Edited by: Veerendra Kumar Mutyala on Feb 20, 2009 5:35 AM
Edited by: Veerendra Kumar Mutyala on Feb 20, 2009 5:37 AM -
What's up with RSRT in SAP GUI 7.20
Hi guys,
I recently installed SAP GUI 7.20, and when I try to run a debug from RSRT options for debugging won't come up... I go directly into a debug without the code I wanted to see (it's a couple of steps after)...
Any ideas ? Has this changed in this new version or is it me doing something wrong ?
I'm running against the clock here, and I seem to be unable to solve this...
Regards !Try uninstalling the GUI 7.20 and reinstall the GUI 7.20 along with the .net Component.
Seems like the GUi problem, try reinstalling the GUI with the latest patch.
Edited by: prashanthk on Oct 7, 2010 4:37 PM -
Problem while printing from SAP GUI for HTML
Hello,
We are trying to print a delivery confirmation from the portal using SAP GUI for HTML. We have followed note 771683 to do this. However we are facing the following problems:
1) The print action(PDF creation) is not triggered until the user performs some action
2) the PDF that is created is corrupted(does not open)
In order to correct this we tried to implement note 957292. However, the changes to the object FRONTEND_PRINTPOLL_FRONT_REQUEST.HTM mentioned in this note created problems. So we decided to do the changes to this object manually. But we see that the SAP note doesn't contain any information on changes that should be implemented for this object.
Question:
Is the note 957292 only way to solve the printing(PDF) problem? If not, how can we trigger the automatic creation of the PDF and remove the error from the PDF file?
If yes, any idea what is causing the problem during the note implementation?
We are on NW2004s - EP7.0 SP10
ITS 7.0
Thanks in advance.
Regards,
ReenaHi,
configure printer in SPAD , no setting for JAVA GUI
check note
605467:SAPscript/Smart Forms: Print preview in SAP GUI for Java
634158 SAPscript/Smart Forms: Print preview in SAP GUI for Java (2)
1024624 SAPscript/Smart Forms: Print preview in SAP GUI for Java (3)
regards,
kaushal
regards,
kaushal -
Problem with "Submit to SAP" button in Adobe Form
Hello All,
I have a problem with my Adobe form. The "Submit to SAP" button for some reason does not seems to work in the newer forms. Whenever I click on the button, no action is being triggered. However, when I load older version of the same form, the button will respond.
Has anyone come across similar situation before ? Any suggestions/feedback will be greatly appreciated. Thank you.
fromKwok WeiHi Bhavik,
I created different version of the forms (Eg: added new logo, additional table rows etc...) by using the save a copy function in adobe designer. Seems that the original one works but the later ones will no longer respond to the button.
The submit action is also correctly specified in the property of the UI Element. Otherwise it will not work on any forms... is my understanding correct ?
Thnaks
from
Kwok Wei -
Problem with Method environment_get_variable (Windows GUI)
Hello,
I want to use the Method "cl_gui_frontend_services=>environment_get_variable".
I try this coding with same keywords ('%TMP%', 'TMP', ...), but the result is ever sy-subrc = 0 und s_path is initial.
DATA s_path TYPE string.
CALL METHOD cl_gui_frontend_services=>environment_get_variable
EXPORTING
variable = 'USERPROFILE'
CHANGING
value = s_path
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
not_supported_by_gui = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE 'E' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Please, can every body tell what is wrong.
Thankshi,
seems to be a problem with java environment...
see link and note
[https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_fes/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d31303237303133%7d]
take a look at the env-variable:
QTJAVA=d:Javajre1.5.0_11libextQTJava.zip
and try to change it to older relase (1.4!)
Bye -
Problem with 640 kernel: SAP R3, Oracle9i, Sunsolaris
Dear Experts,
Am facing problem with kernel 640 version.
1. We have Production (620) and DR servers (620).
2. I upgraded kernel in production to 640, still pumping and applying redo logs in DR server which is 620 kernel.
3. I copied kernel 640 from production server to DR server.
4. When I open database in DR server (system started normally) it is showing kernel version 620 only, not 640.
5. Only diff is production server is upgraded from 4.0B to 4.7 and DR server recently we installed 4.7 directly.
After restoring backup in DR server again control file created and moved to DR server and applying redo logs normally.
Why kernel version showing only 620 in DR server???
Is control file plays any role in kernel upgrade. Should I open database and check again (with new control file and newly restored data). . . .
Any idea, , , ,
Adv thanks....Am believe I did. I followed as under.
1. Copied production box exe in /sapmnt/SID/ to other location of same box
2. zipped using zip command zip <newfilename>.zip exe on same box
3. ftp'ed to DR box with normal ftp
4. unzipped the the zip file there with command unzip <newfilename>.zip then moved to /sapmnt/SID/
5. next renamed.
You tell me one thing will there be any wrong with zip command
regds -
Problem with services of SAP after installation of ABAP on MS SQL server
Hi,
I am trying top install 2004 Netweaver ABAP+ JAVA on my machine
Following is my machine configuration -
Machine type - Windows 2003 Standard Edition SP1
Machine name - pun-idmqa-vm1
SAP Instance name - QSA
DB type - MS SQL 2000 SP4 + hotfixes and instcoll.exe is executed. After nstalling SQL shows server proper as SQL_Latin1_General_CP850_BIN2 collation
Message port - 3600
I could sucessfully install Database from CD and thereby could sucessfully install ABAP. During postinstall I tried to start the server. all the following services got up -
msg_server.exe
disp+work.exe
igswd.exe
But after some time 2nd service goes down. Following is the error message flashed in
trc file: "dev_disp", trc level: 1, release: "640"
Mon Jul 02 16:33:16 2007
kernel runs with dp version 128000(ext=102000) (@(#) DPLIB-INT-VERSION-128000-UC)
length of sys_adm_ext is 524 bytes
systemid 560 (PC with Windows NT)
relno 6400
patchlevel 0
patchno 31
intno 20020600
make: multithreaded, Unicode
pid 2492
***LOG Q00=> DpSapEnvInit, DPStart (00 2492) [dpxxdisp.c 1100]
Mon Jul 02 16:33:17 2007
shared lib "dw_xml.dll" version 31 successfully loaded
shared lib "dw_xtc.dll" version 31 successfully loaded
shared lib "dw_stl.dll" version 31 successfully loaded
shared lib "dw_gui.dll" version 31 successfully loaded
Mon Jul 02 16:33:21 2007
WARNING => DpNetCheck: NiAddrToHost(1.0.0.0) took 4 seconds
***LOG GZZ=> 1 possible network problems detected - check tracefile and adjust the DNS settings [dpxxtool2.c 3886]
MtxInit: -2 0 0
DpSysAdmExtInit: ABAP is active
DpSysAdmExtInit: JAVA is not active
DpShMCreate: sizeof(wp_adm) 10528 (1316)
DpShMCreate: sizeof(tm_adm) 2780232 (13832)
DpShMCreate: sizeof(wp_ca_adm) 24000 (80)
DpShMCreate: sizeof(appc_ca_adm) 8000 (80)
DpShMCreate: sizeof(comm_adm) 290000 (580)
DpShMCreate: sizeof(vmc_adm) 0 (372)
DpShMCreate: sizeof(wall_adm) (38456/34360/64/184)
DpShMCreate: SHM_DP_ADM_KEY (addr: 054B0040, size: 3192688)
DpShMCreate: allocated sys_adm at 054B0040
DpShMCreate: allocated wp_adm at 054B1B58
DpShMCreate: allocated tm_adm_list at 054B4478
DpShMCreate: allocated tm_adm at 054B44A0
DpShMCreate: allocated wp_ca_adm at 0575B0E8
DpShMCreate: allocated appc_ca_adm at 05760EA8
DpShMCreate: allocated comm_adm_list at 05762DE8
DpShMCreate: allocated comm_adm at 05762E00
DpShMCreate: allocated vmc_adm_list at 057A9AD0
DpShMCreate: system runs without vmc_adm
DpShMCreate: allocated ca_info at 057A9AF8
DpShMCreate: allocated wall_adm at 057A9B00
MBUF state OFF
EmInit: MmSetImplementation( 2 ).
Mon Jul 02 16:33:22 2007
<ES> client 0 initializing ....
<ES> InitFreeList
<ES> block size is 1024 kByte.
Using implementation std
<EsNT> Memory Reset enabled as NT default
<EsNT> EsIUnamFileMapInit: Initialize the memory 1132 MB
<ES> 1131 blocks reserved for free list.
ES initialized.
Mon Jul 02 16:33:36 2007
rdisp/http_min_wait_dia_wp : 1 -> 1
***LOG CPS=> DpLoopInit, ICU ( 2.6.1 2.6 4.0) [dpxxdisp.c 1462]
Mon Jul 02 16:33:38 2007
***LOG Q0K=> DpMsAttach, mscon ( pun-idmqa-vm1) [dpxxdisp.c 9719]
Mon Jul 02 16:33:46 2007
CCMS: start to initalize 3.X shared alert area (first segment).
DpMsgAdmin: Set release to 6400, patchlevel 0
Mon Jul 02 16:33:47 2007
MBUF state PREPARED
MBUF component UP
DpMBufHwIdSet: set Hardware-ID
***LOG Q1C=> DpMBufHwIdSet [dpxxmbuf.c 1025]
DpMsgAdmin: Set patchno for this platform to 31
Release check o.K.
Mon Jul 02 16:34:20 2007
ERROR => W0 (pid 2740) died [dpxxdisp.c 12170]
ERROR => W1 (pid 3736) died [dpxxdisp.c 12170]
my types changed after wp death/restart 0xbf --> 0xbe
ERROR => W2 (pid 3876) died [dpxxdisp.c 12170]
my types changed after wp death/restart 0xbe --> 0xbc
ERROR => W3 (pid 3896) died [dpxxdisp.c 12170]
my types changed after wp death/restart 0xbc --> 0xb8
ERROR => W4 (pid 3852) died [dpxxdisp.c 12170]
ERROR => W5 (pid 2008) died [dpxxdisp.c 12170]
my types changed after wp death/restart 0xb8 --> 0xb0
ERROR => W6 (pid 3776) died [dpxxdisp.c 12170]
my types changed after wp death/restart 0xb0 --> 0xa0
ERROR => W7 (pid 4052) died [dpxxdisp.c 12170]
my types changed after wp death/restart 0xa0 --> 0x80
DP_FATAL_ERROR => DpWPCheck: no more work processes
DISPATCHER EMERGENCY SHUTDOWN ***
increase tracelevel of WPs
killing W0-2740 (SIGUSR2)
ERROR => DpWpKill(2740, SIGUSR2) failed [dpxxtool.c 2468]
killing W1-3736 (SIGUSR2)
ERROR => DpWpKill(3736, SIGUSR2) failed [dpxxtool.c 2468]
killing W2-3876 (SIGUSR2)
ERROR => DpWpKill(3876, SIGUSR2) failed [dpxxtool.c 2468]
killing W3-3896 (SIGUSR2)
ERROR => DpWpKill(3896, SIGUSR2) failed [dpxxtool.c 2468]
killing W4-3852 (SIGUSR2)
ERROR => DpWpKill(3852, SIGUSR2) failed [dpxxtool.c 2468]
killing W5-2008 (SIGUSR2)
ERROR => DpWpKill(2008, SIGUSR2) failed [dpxxtool.c 2468]
killing W6-3776 (SIGUSR2)
ERROR => DpWpKill(3776, SIGUSR2) failed [dpxxtool.c 2468]
killing W7-4052 (SIGUSR2)
ERROR => DpWpKill(4052, SIGUSR2) failed [dpxxtool.c 2468]
NiWait: sleep (10000 msecs) ...
NiISelect: timeout 10000 ms
NiISelect: maximum fd=1629
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Mon Jul 02 16:34:30 2007
NiISelect: TIMEOUT occured (10000 ms)
dump system status
Workprocess Table (long) Mon Jul 02 11:04:30 2007
========================
No Ty. Pid Status Cause Start Err Sem CPU Time Program Cl User Action Table
0 DIA 2740 Ended no 1 0 0
1 DIA 3736 Ended no 1 0 0
2 UPD 3876 Ended no 1 0 0
3 ENQ 3896 Ended no 1 0 0
4 BTC 3852 Ended no 1 0 0
5 BTC 2008 Ended no 1 0 0
6 SPO 3776 Ended no 1 0 0
7 UP2 4052 Ended no 1 0 0
Dispatcher Queue Statistics Mon Jul 02 11:04:30 2007
===========================
--------++++--
+
Typ
now
high
max
writes
reads
--------++++--
+
NOWP
0
3
2000
10
10
--------++++--
+
DIA
5
5
2000
5
0
--------++++--
+
UPD
0
0
2000
0
0
--------++++--
+
ENQ
0
0
2000
0
0
--------++++--
+
BTC
0
0
2000
0
0
--------++++--
+
SPO
0
0
2000
0
0
--------++++--
+
UP2
0
0
2000
0
0
--------++++--
+
max_rq_id 13
wake_evt_udp_now 0
wake events total 9, udp 7 ( 77%), shm 2 ( 22%)
since last update total 9, udp 7 ( 77%), shm 2 ( 22%)
Dump of tm_adm structure: Mon Jul 02 11:04:30 2007
=========================
Term uid man user term lastop mod wp ta a/i (modes)
Workprocess Comm. Area Blocks Mon Jul 02 11:04:30 2007
=============================
Slots: 300, Used: 1, Max: 0
--------++--
+
id
owner
pid
eyecatcher
--------++--
+
0
DISPATCHER
-1
WPCAAD000
NiWait: sleep (5000 msecs) ...
NiISelect: timeout 5000 ms
NiISelect: maximum fd=1629
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Mon Jul 02 16:34:35 2007
NiISelect: TIMEOUT occured (5000 ms)
Shutdown server ...
DpModState: buffer in state MBUF_PREPARED
NiBufSend starting
NiIWrite: write 110, 1 packs, MESG_IO, hdl 3, data complete
MsINiWrite: sent 110 bytes
MsIModState: change state to SHUTDOWN
DpModState: change server state from STARTING to SHUTDOWN
Switch off Shared memory profiling
ShmProtect( 57, 3 )
ShmProtect(SHM_PROFILE, SHM_PROT_RW
ShmProtect( 57, 1 )
ShmProtect(SHM_PROFILE, SHM_PROT_RD
DpWakeUpWps: wake up all wp's
Stop work processes...
Stop gateway
killing process (3832) (SOFT_KILL)
Stop icman
killing process (3960) (SOFT_KILL)
Terminate gui connections
[DpProcDied] Process lives (PID:3832 HANDLE:1600)
waiting for termination of gateway
NiWait: sleep (1000 msecs) ...
NiISelect: timeout 1000 ms
NiISelect: maximum fd=1629
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Mon Jul 02 16:34:36 2007
NiISelect: TIMEOUT occured (1000 ms)
Mon Jul 02 16:34:37 2007
[DpProcDied] Process died (PID:3832 HANDLE:1600)
[DpProcDied] Process died (PID:3960 HANDLE:1588)
DpHalt: cancel all lcom connections
MPI CancelAll 2 -> 0
MPI DeleteAll 2 -> 0
NiIMyHostName: hostname = 'pun-idmqa-vm1'
AdGetSelfIdentRecord: > <
AdCvtRecToExt: opcode 60 (AD_SELFIDENT), ser 0, ex 0, errno 0
AdCvtRecToExt: opcode 4 (AD_STARTSTOP), ser 0, ex 0, errno 0
DpConvertRequest: net size = 163 bytes
NiBufSend starting
NiIWrite: write 562, 1 packs, MESG_IO, hdl 3, data complete
MsINiWrite: sent 562 bytes
send msg (len 110+452) to name -, type 4, key -
detach from message server
***LOG Q0M=> DpMsDetach, ms_detach () [dpxxdisp.c 9945]
NiBufSend starting
NiIWrite: write 110, 1 packs, MESG_IO, hdl 3, data complete
MsINiWrite: sent 110 bytes
MsIDetach: send logout to msg_server
MsIDetach: call exit function
DpMsShutdownHook called
NiSelClear: removed hdl 3 from selectset
MBUF state OFF
AdGetSelfIdentRecord: > <
AdCvtRecToExt: opcode 60 (AD_SELFIDENT), ser 0, ex 0, errno 0
AdCvtRecToExt: opcode 40 (AD_MSBUF), ser 0, ex 0, errno 0
AdCvtRecToExt: opcode 40 (AD_MSBUF), ser 0, ex 0, errno 0
blks_in_queue/wp_ca_blk_no/wp_max_no = 1/300/8
LOCK WP ca_blk 1
make DISP owner of wp_ca_blk 1
DpRqPutIntoQueue: put request into queue (reqtype 1, prio LOW, rq_id 19)
MBUF component DOWN
NiBufClose: clear extensions for hdl 3
NiBufSetStat: bufstat of hdl 3 changed from OK to OFF
NiICloseHandle: shutdown and close hdl 3 / socket 1608
MsIDetach: detach MS-system
Mon Jul 02 16:34:38 2007
EsCleanup ....
***LOG Q05=> DpHalt, DPStop ( 2492) [dpxxdisp.c 8478]
Good Bye .....
I am new to SAP EP installation. Please help me regarding this issue.
Thanks and Regards,
Smithaforgot to tell you, after that probably you will need to make the installation again.
good luck. -
Problem with displaying objects in GUI
I'm just going through a small book on Java programming and the goal is to press a button to show a shape (ie: circle) and then to press a button to hide that same shape.
My idea was to simply add it in but change the visibility to true and false. Now, I get it to show perfectly but I can't get it to hide (ie: setVisiblity to false) for some reason. The problem lies in the actionPerformed method of the CommandMain class. I'm at a loss as to why I can't simply change the visibility of the object to true and false.
I've include the relevant code below
Thanks for all your help in advance.
================= COMMANDMAIN.JAVA =================
public class CommandMain extends JFrame implements ActionListener
{ JButton circleButton = new JButton("Make Circle");
JButton squareButton = new JButton("Make Square");
JButton undoButton = new JButton("Undo Last");
JButton exitButton = new JButton("Exit");
private static Vector objectList = new Vector(); // Stores objects in order
JPanel container = new JPanel();
Button newCircle; // Used to add a Circle object to the vector
Button newSquare;
Button newShape;
Button objectToHide;
// CONSTRUCTOR
// PURPOSE: Used to set up all the buttons on our Panel
public CommandMain()
{ setSize(400,400);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
// Add interactive ability to buttons
circleButton.addActionListener(this);
squareButton.addActionListener(this);
undoButton.addActionListener(this);
exitButton.addActionListener(this);
// Add them so we can see them on the panel
this.container.add(circleButton);
this.container.add(squareButton);
this.container.add(undoButton);
this.container.add(exitButton);
setContentPane(container);
setVisible(true);
// PURPOSE: Used to create an instance of itself so we can see the frame
public static void main(String args[]) throws IOException
{ CommandMain window = new CommandMain(); }
// PURPOSE: Used to perform actions based on the button picked by the user
public void actionPerformed(ActionEvent picked)
{ Object choice = picked.getSource();
if(choice == circleButton) // CIRCLE WAS SELECTED
{ newShape = new Button("Circle");
Button newCircle = newShape.getShape();
this.container.add(newCircle); // Add it to my container
newShape.execute();
objectList.add(newShape); // Add the object to my Vector
setContentPane(container);
repaint(); // Redraw the GUI because it changed
else if(choice == undoButton) // UNDO WAS SELECTED
{ if(objectList.size() > 0) // Check to ensure we don't overstep the boundaries
{ System.out.println("UNDO Pressed");
objectToHide = (Button)objectList.elementAt(objectList.size()-1);
objectToHide.hideShape(); // <-- NOT WORKING
objectList.removeElementAt(objectList.size()-1);
setContentPane(container);
repaint();
} // End if(objectList.size() > 0)
} // End undoButton
else if(choice == exitButton) // EXIT WAS SELECTED
{ System.out.println("Goodbye: Application exiting");
dispose();
System.exit(0);
else // No idea what button was selected
{ System.out.println("ERROR: Invalid option"); }
========================== BUTTON.JAVA ==================
import java.awt.*;
import javax.swing.*;
public class Button extends JPanel
{ String objectShape;
Button()
Button(String shape)
{ this.objectShape = shape; }
public void execute()
{ setVisible(true); }
public void hideShape()
{ System.out.println("hideShape called");
super.setVisible(false);
public Button getShape()
{ if(this.objectShape.equals("Circle"))
{ System.out.println("Making a circle");
Circle newCircle = new Circle();
return newCircle;
else if(this.objectShape.equals("Square"))
{ System.out.println("Making a square");
Square newSquare = new Square();
return newSquare;
return null;This will do the job, read and learn
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class CommandMain extends JFrame implements ActionListener
Shape shape;
JPanel pan = new JPanel();
JPanel but = new JPanel();
JButton circleButton = new JButton("Make Circle");
JButton squareButton = new JButton("Make Square");
JButton undoButton = new JButton("Undo Last");
JButton exitButton = new JButton("Exit");
public CommandMain()
super();
setBounds(6,6,700,400);
addWindowListener(new WindowAdapter()
{ public void windowClosing(WindowEvent ev)
dispose();
System.exit(0);
pan.setBackground(Color.pink);
getContentPane().add("Center",pan);
but.add(circleButton);
but.add(squareButton);
but.add(undoButton);
but.add(exitButton);
circleButton.addActionListener(this);
squareButton.addActionListener(this);
undoButton.addActionListener(this);
exitButton.addActionListener(this);
getContentPane().add("South",but);
setVisible(true);
public void actionPerformed(ActionEvent a)
if (a.getSource() == circleButton)
pan.add(new Shape("Circle"));
pan.revalidate();
if (a.getSource() == squareButton)
pan.add(new Shape("Square"));
pan.revalidate();
if (a.getSource() == undoButton && pan.getComponentCount() > 0)
pan.remove(pan.getComponentCount()-1);
pan.revalidate();
pan.repaint();
if (a.getSource() == exitButton)
dispose();
System.exit(0);
public class Shape extends JComponent
String shape;
public Shape(String shape)
this.shape = shape;
setPreferredSize(new Dimension(20,20));
public void paintComponent(Graphics g)
super.paintComponent(g);
if (shape.equals("Circle"))
g.drawOval(0,0,getWidth()-1,getHeight()-1);
if (shape.equals("Square"))
g.drawRect(0,0,getWidth()-1,getHeight()-1);
public static void main (String[] args)
new CommandMain();
} Noah -
Iu00B4ve gotten Problems with my mini-sap in ABAP objects book.
Sorry geeks , but I´ve already installed the dvd that contents the sap netweaver 2004s abap trial version , but I didn´t get any link to access the envirnment in my sap logon , what are the steps that I´ve to follow in order to get any link and access ???. thnx a lot.
IVE ALREADY DONE-
-
Problem with Tcode: PT91_ATT : SAP-HR Standard to Zprogram
Hello Experts,
I have created the zreport from attendance in HR-payroll ( Tcode: PT91_ATT ). Actually I have copy the whole satandard report code (with Tcode: PT91_ATT ) to my zreport for the customized requirement. Also we have to add in selection parameter like : Projects and some more things, but I am unable to sort out such selection parameters where I should have to add in the program itself. Plz suggest where I have to make editing in program itself, If possible do suggest with program-code.
Regards,
AkgHi.,
I think i xplained clearly., k. first goto se38 enter RPMENUSTART00 and click on copy., copy every thing to zprogram say, ZRPMENUSTART00.
now enter RPTABS60 (which contains code for data declarations and selection screen and events) and click on copy., copy all including includes., to ZRPTABS60. now modify ZRPTABS60., according to ur requirement.
and in ur ZRPMENUSTART00 instead of SUBMIT (g_reportname) VIA SELECTION-SCREEN USING SELECTION-SET g_stvar. at line 33 u can directly give ZRPTABS60., or do like this., g_reportname = ZRPTABS60.
hope this helps u.,
Thanks & Regards
Kiran -
Problem with launching AWT SAP MI client
Hi,
I have installed SAP MI AWT Client SP13 on my machine.
When I click the SAP Mobile Infrastructure icon, the client is started but immediately terminated.
I have installed java 4.2 and also mentioned the home folder path in JAVA_HOME variable.
Is there any other pre requisite for SAP MI AWT client framework.
Regards
Raja Sekharhello raja,
here are the weblogs regarding multiple MI installations and
MI reconfiguration when the path was altered.
/people/sap.user72/blog/2006/03/01/how-to-concurrently-execute-multiple-mi-clients
/people/sap.user72/blog/2005/12/21/how-to-reconfigure-mi-client-when-installation-path-is-altered
regards
jo -
SAP GUI Crash and/or hung up
We have an application that emulate the user interaction with SAP application and use SAP GUI scripting (GUI for window) from VB module to interact with SAP application and perform various operations on SAP window. The operation performed during that exercise are inputting values, search a node in tree, search a value in table, input value in a table cell, click on button, send virtual keys to sap window, interacting with context menu etc etc.. Operations that need to perform on SAP GUI are organized into 'tests" and are performed in a serial fashion. A same test (sequence of operations) can be performed any number of times on a given SAP application.
Lately, we have seen that either SAP Gui crashes or become unresponsive at random when a set of operations (test) are being performed iteratively on SAP GUI. The same test executed correctly many times but at random iteration it become completely unresponsive and hung up.
Although, SAP Gui hang up occurred at a random iteration but we've noticed that if there were two sap instances on the machine then this behavior is noticed much earlier and it is almost certain to get to this sate if an ECATT is running in another sap window but still not able to establish a particular pattern and some time same tests were executed correctly in all the above mentioned scenarios. However, when problem occurred, it usually happen just after the operations that have caused SAP GUI to do a server round trip like click on button or scrolling a table etc but still it was quite random and was unable to establish a pattern.
When SAP GUI hung up then not only it becomes completely unresponsive, but it also hung up any application they tries to interact with SAP GUI scripting object. At this point, any attempt to make any references to any scripting object or even a fresh attempt to connect to scripting object model also hung up that application. The only way out at that point is to kill SAP Gui from the task manager and once SAP Gui killed then all application that was previously hang up start to resume execution!
SAP GUI for Window 7.1 patch 7 and path 11 are being used.
Any help shall be greatly appreciated.Hi Gary,
You could also reach a point where your backend ABAP instance Kernel version plus SAP-BASIS component will have problems with a unsupported SAP GUI. Your W2's will leverage an Adobe Document Server, ADS, or smart form technology. You will experience rendering issues eventually.
It's a vicious circle of Desktop Office Integration. With Microsoft 8.1 and Microsoft Office 2013 there were a lot correction's pushed out in SAP GUI 7.30.
Cheers,
Dan Mead -
Problem with BEx Web Application Designer
Hi,
we use since last week the Web Application Designer with the SAP GUI 7.2.
Now I have a big problem since last week. I can call existing templates but unfortunately not change! I make a change in the template and save it. When I viewed the template again but no change is saved!
A new template I can create and change
Does anyone know the problem? The behavior also occurs with the old Gui 7.1.
Regards
Edited by: Jana VOGL on Oct 18, 2010 10:14 AMHi Jana,
Do you get any error before opening of an existing template in WAD? Doesn't look to be a problem with the different SAP GUI versions. Maybe somethings gone wrong with the Java - ABAP config settings or Java Portal communication settings. Maybe you should check with your BASIS team on the same. Tell them what the problem is & they will run a trace to figure out.
--Priya
Maybe you are looking for
-
Standard report for issued components
Dear Experts, In my master recipe i am using a component which is also produced through the process as a co-product, the component appears in equal quantities, once with a positive and then with negative sign (for the co-product
-
Automatic EMAIL creation upon CRM_ORDER creation (SOLMAN Service Desk)
Hi All, We configured Service Desk in Solution manager and that uses CRM functionality. We created a ACTION PROFILE from copy of standard SLF00001 and created an entry for ACTION DEFINITION Z_SEND_MAIL_TEAM_ON_CREATION with all settings for automatic
-
Clicking noise from the screen moving
My Phone is making a clicking noise on the right hand side of the screen, the movement of the screen cannot be seen but it can easily be felt. ive seen this as a problem before from other questions and how most cases have been sorted, however my phon
-
Quicktime not playing .mov videos captured with my iPad2
I moved some videos that I took with my iPad to my macbook pro, but quicktime will not play them (.mov files). What's the deal?
-
hi experts ! i am trying to make some changes in xlWebApp.war but i am unable to find the appropriate war file to update. i have deployed OIM on weblogic 10.3. now there are three places where i can find this war file i.e [OIM_DIR]\oracle\xellerate\W