MySQL Boken Pipe Exception...Plz Help Me Urgently
Hello Friends....
When I shifted my Java application which has MySQL(Linux has MySQL - 4.1.21-standard version. ) as a backend on Linux Platform I encountered following exception...
com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
java.net.SocketException
MESSAGE: Broken pipe
STACKTRACE:
java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2692)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2621)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1552)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1666)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2994)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:936)
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1030)
at ServerThread.run(ServerThread.java:98)
** END NESTED EXCEPTION **
its working fine when I tested it on Windows patform with MySql 5.0 as backend.
Plz Help me. I get struck on thi sproblem from last 2 days.
//PremInd
Message was edited by:
Prem_India
Message was edited by:
Prem_India
Thanks for your response....
I'm developing chat application. In my server side code I called a thered which listen for all request for that user. The exception is occured in thread. Here is sanpshot of code...
public class ServerThread extends Thread
// Variable Declaration
public ServerThread( Server server, Socket socket, String acntName, String opratorID )
this.server = server;
this.socket = socket;
this.accName1 = acntName;
this.oprID1 = opratorID;
try
Class.forName("com.mysql.jdbc.Driver").newInstance();
con = DriverManager.getConnection("jdbc:mysql://localhost/livechatdb","root","");
catch(Exception ee)
System.out.println("Break in ServerThread Cons "+ee);
start();
public void run()
String savacc="";
try
DataInputStream din = new DataInputStream( socket.getInputStream() );
DataOutputStream dos = new DataOutputStream(socket.getOutputStream());
String message;
while (true)
System.out.println("Thread Runnnnnning..");
message = din.readUTF();
System.out.println("~~~~ "+message);
if(message.startsWith("^%%^"))
StringTokenizer stok = new StringTokenizer(message,"~");
String rmv1 = stok.nextToken();
String cID1 = stok.nextToken();
String accNm1 = stok.nextToken();
String oprID1 = stok.nextToken();
String deptNm1= stok.nextToken();
String IPAddress1 = stok.nextToken();
String oprName1 = stok.nextToken();
PreparedStatement pStmt1;
rs.close();
try
System.out.println(" Line 9999 99999 ");
pStmt1 = con.prepareStatement("Select status from Customer where custID = ? and accName= ? ");
pStmt1.setString(1,cID1);
pStmt1.setString(2,accNm1);
rs = pStmt1.executeQuery();
System.out.println(" Line 100 1000 1000000 ");
while(rs.next())
String stat = rs.getString("status");
if(stat.equals("Chat Request"))
/* set status to chatting in Cutomer table */
String strStatus = "Chatting : "+oprName1;
pStmt = con.prepareStatement("Update Customer set status = ? where custID = ? and accName= ? ");
System.out.println (" Line 107 107 107");
pStmt.setString(1,strStatus);
pStmt.setString(2,cID1);
pStmt.setString(3,accNm1);
int i = pStmt.executeUpdate();
System.out.println (" Line 112 112 112 "+i);
dos.writeUTF("^%%^"+"~"+"Y"+"~"+IPAddress1);
server.sendUpdateChatOperTbl(deptNm1,accNm1,cID1,"*",strStatus);
else
dos.writeUTF("^%%^"+"~"+"N"+"~"+IPAddress1);
catch (Exception ex)
System.out.println (" Line 131 131 131 "+ex);
else if(message.startsWith("!O!")) //chat opr connect
// other stuff
After this line exception occured System.out.println(" Line 9999 99999 "); & it catch at this line System.out.println (" Line 131 131 131 "+ex);
Thanks.
Waiting for Reply...
Similar Messages
-
Jaxrpc compilation exception(plz Help very Urgent Plz)
Hello there....
while deploying a simple webservice using deploytool i m getting this error while the application that is being deployed is not even using ejbs....
i m trying to compile the example given on the forum by Qusay H. Mahmoud, so plz help me to get out from this......
Thank u ....alll
distribute: C:\Sun\AppServer\apps\Add.war
deployment started : 0%
Deploying application in domain failed; Error while running ejbc -- Fatal Error from EJB Compiler -- jaxrpc compilation exception
; requested operation cannot be completed
!!! Operation Failed !!!
!!! With The Following Failure Messages !!!
Deploying application in domain failed; Error while running ejbc -- Fatal Error from EJB Compiler -- jaxrpc compilation exception
; requested operation cannot be completed
Error while running ejbc -- Fatal Error from EJB Compiler -- jaxrpc compilation exception
[Completed (time=24.0sec, status=13)]
**********************************************************************I had a similar problem with Sun App Server.If you can check the domain/log/Server.log.It explains a valid endpoint address is missing in the deployment.To do this open the deployment tool and click the Implementation class in the tree(Bean Shaped).
You can see a endpoint tab within which you need to configure the Endpoint address.
The deployment went fine after this.
Good Luck !!! -
Lsmw issue plz help its urgent
Hi Experts ,
i need to create a LSMW using batch input .
but the requirement is on the basis of conditions my recording need to be changed .
dat means
3127POL09 3127POL09-1 CTR 3127-1003E 100 FUL
3127POL09 3127POL09-2 WBS 3127POL01 60 FUL
for ctr i ill have to post data in screen number 200
and for wbs i ill have to post data in screen number 400 .
can we put some conditions in recording in lsmw ?
i no we can create multiple recording but how can we use them to fullfill my requirement .
plz help its urgent
thanx in advanceHi,
Within LSMW, there is an option to write our own code wherein this code can be incorporated.
This is in the Field Mapping Option...
Just go to the Menu Extras->Layout
and click on the check box Form Routines
Global Data.
Here you can define Global Variables and also perform your ABAP Coding.
Regards,
Balaji. -
Migration to an asm instance. plz help me urgent
RMAN> BACKUP AS COPY DATABASE FORMAT '+DGROUP1';
Starting backup at 20-AUG-07
Starting implicit crosscheck backup at 20-AUG-07
using target database controlfile instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=328 devtype=DISK
ORA-19501: read error on file "+DGROUP1/sravan/backupset/2007_08_03/nnsnf0_ora_asm_migration_0.260.1", blockno 1 (blocksize=512)
ORA-17507: I/O request size is not a multiple of logical block size
Crosschecked 7 objects
Finished implicit crosscheck backup at 20-AUG-07
Starting implicit crosscheck copy at 20-AUG-07
using channel ORA_DISK_1
ORA-19587: error occurred reading 8192 bytes at block number 1
ORA-17507: I/O request size 8192 is not a multiple of logical block size
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup command at 08/20/2007 16:53:21
ORA-19587: error occurred reading 8192 bytes at block number 1
ORA-17507: I/O request size 8192 is not a multiple of logical block size> plz help me urgent
Adjective
* S: (adj) pressing, urgent (compelling immediate action) "too pressing to permit of longer delay";So you are saying that your problem is a lot more important than any other person's problem on this forum?
And you're demanding a quick response from professionals that give you and others assistance here in their free time without getting a single cent compensation?
Don't you think that this "it is urgent!" statement severely lacks manners? -
JSP send mail exception,plz help
Hi,
I have written code for mail program in jsp but it gives "javax.mail.MessagingException: Exception reading response; nested exception is: java.net.SocketException: Connection reset "
what will be the reason for this plz help.
thanksrestart your machine then it s will be corrected...i mean socketexception
i have found my problem...its a problem about delaying emails like spam protection...ur mail server and and script must run on the same ip...and so my problem solved...
maybe there is a trick for delaying emails even they dont run under the same ip but i dont know..! -
Hi,
I have attached my simulation loop.In the model attached i hav eone main pump with constant rpm which drives the 5 smaller pumps and fills the tank at the same time.As soon as the tanks reach their 90% level,the valves of the five pumps close(SP1,SP2,SP3,Sp4,Sp5).After that the recirculating pumps opens for 5 secs of the first tank.As soon as the recirculation finishes,the drain valve(SV1) for tank 1 open and the volume goes to interim storage.This happens for all the remaining tanks.
My simulation works the first time,but when the second time the loop starts,it skips the recirculation pump even though i gave a time delay for 5 secs.Plz help ..I have attached the simulation.
Thanks,
Rami
Attachments:
Spatial Logic_2_Final.vi 223 KBRami,
I suspect that you have a race condition. The widespread use of local variables frequently leads to race conditions. Your subVI (Spatial Logic Sub_2.vi was not included) so I cannot run the VI. You have no way of knowing whether the subVI or the inner case structure will execute first, because there is no data dependency between them.
I think a shift register or a few and some dataflow thinking would allow you to eliminate the inner case structure, the local variables, and, probably, most of your problems.
Some of the SPi are indicators and some are controls. How are they used?
The last case of the inner loop retursn to Case 1. Would case 0 be better?
As for the second time through issue, it may be related to the Elapsed time function Auto Reset. From the help file: "Resets the start time to the value in Present (s) when the Express VI reaches the Time Target (s)." If more than 5 seconds elapses between the first time you use this and the next, it will exit immediately on the subsequent calls.
Lynn -
hi abapers. i want solution for the below task .
"The Create screen will allow user to enter Sales Organization, Distribution Channel, and Customer at the Header Level. Mandatory fields include Sales Organization, Distribution Channel, Customer, Material Number, Plant, and Valid On and Valid To Dates. Icons for Select All / Deselect All, Delete an Copy entries need to be provided. "
please help me out in saving the above mentioned data to a z-table.
And also i want transaction code for "create slap/ship record".
please kindly help me ASAP. thanks in advance.
Regards,
Sindhuthis is the problem i think u can understand..................
In bean file,
i will select 5 records from database.Then i will return the result set to first jsp page.
In first jsp page,
i will have two text box with one button.I will show first two fields in two text box.If i click that button it should goto next jsp page.
In second jsp page,
I will have three text box with one button.I will show another three fields in three text box.If i click that button it should goto first jsp page with next record(only if any records r there)..
Plz help me ya ...I am struck with that......... -
I want to delete my windows partition, but the Boot Camp Assistant is showing up a dialogue that says that my startup disk is not able to add or delete any partitions. It tells me to go to disk utility and reformat my drive as MAC OS Extended (Journaled), but it already is plz help me fix this.
You may be confusing your drive with your Mac OS Volume. Your hard drive contains one or more volumes (or partitions), one of which is named "Macintosh HD". If you open Disk Utility, don't click on "Macintosh HD". Click on the hard drive brand just above "Macintosh HD". You will then see 5 tabs in the main pane. Click on "partition". Does it show both the Macintosh HD and a Windows volume? Does it say "this disk appears to be partitioned for Boot Camp"? When you tried to remove Windows, did you use Boot Camp Assistant from an administrative account?
Do not erase your disk without making a backup! Don't try to do anything without making a backup (using Time Machine, say). But if you see the Windows partition, you might try just dragging the bottom of the Macintosh HD partition down to take over the Windows partition, and then click "Apply". Make a backup first! This particular suggestion might not work unless you use Disk Utility by booting from the Leopard DVD, and it might erase your entire disk, and not just Windows. -
Function group issue in upgrade plz help very urgent
hi gurus,
plz help me
in a big trouble.
deadline is today.
when i activated the function group i found this error in an include
LSVARCLS
and when i clicked to this field it took me to another include
LSVARTOP
here i found
data: f4_params type onf4_event_parameters_type.
FYI:
types: begin of onf4_event_parameters_type.
types: c_fieldname type lvc_fname.
types: cs_row_no type lvc_s_roid.
types: cr_event_data type ref to cl_alv_event_data.
types: ct_bad_cells type lvc_t_modi.
types: c_display type char01.
types: end of onf4_event_parameters_type.
data: f4_params type onf4_event_parameters_type.
error is :
Field "F4_PARAMS-C_FIELDNAME" is unknown. It is neither in one of the
specified tables nor defined by a "DATA" statement . . . . . . . . . .
thanks in advanceFUNCTION-POOL ZVAR MESSAGE-ID DB.
TABLES:
TADIR, " Entwicklungsklasse
TRDIR, " Reportcatalog
LDBD, " logical databases
VARID, " variant properties
RSVAVA, " Variable data in
" variants( sy-datum)
RSVAR, " new RALDB structure
RSVARDESC, " Report, Variante, Dynnr
VARIT, " variants texts
VARIS, " screennr per variant
DD23T, "
DFIES, "DD-Schnittstelle, get_field
TPARAT, "Texte zu Memory-Ids
TVARUVN, "#EC NEEDED
SSCRFIELDS,
t000.
DATA CHOOSE like sy-ucomm value 'PICK'.
DATA G_STATUS like sy-pfkey.
*Includes für Icons
INCLUDE .
Include für Symbole
INCLUDE .
*Equates für SSCR
INCLUDE RSDBCOM2.
*Typen für dynamische Selektionen, verwendet bei RS_REFRESH_...DYNAMICAL
TYPE-POOLS: RSDS, SYLDB, sydb0.
data: GS_TOOLBAR TYPE STB_BUTTON.
include lsvarcls.
Key um unnoetige Datenbankzugriffe zu vermeiden
DATA: BEGIN OF CHECK_KEY,
REPORT LIKE RSVAR-REPORT,
VARIANT LIKE RSVAR-VARIANT.
DATA: END OF CHECK_KEY.
key für get_description
*DATA: old_key LIKE check_key.
CATALOG OF VARIANTS, OLD STRUCTURE. WILL BE DELETED BY FIRST
CALL OF VARIANTS OUT OF FUNCTIONPOOL SVAR.
INFORMATION WILL BE TRANSFERED TO VARID AND VARIT.
DATA: VARCAT LIKE RSVARC OCCURS 20 WITH HEADER LINE.
TEXT (=> VARIT)
DATA: VARCATT LIKE RVART OCCURS 20 WITH HEADER LINE.
SAVE INFORMATION ABOUT VARIANTS
DATA: BEGIN OF SAVEINFO OCCURS 20,
NAME LIKE RVARI-NAME,
NUMB LIKE RVARI-NUMB,
PROTECTED LIKE RVARI-PROTECTED,
FIELDTEXT LIKE RSVAR-FIELDTEXT,
KIND LIKE RVARI-KIND,
TYPE LIKE RVARI-TYPE,
VTYPE LIKE RVARI-VTYPE,
VNAME LIKE RVARI-VNAME,
appendage I= Matchcode, C=Checkbox etc
APPENDAGE LIKE RSVAR-INVISIBLE,
VARIS(1), " TVARV, FUBAU
N= Ausgeblendet von Report,X ausgeblendet in Variante
INVISIBLE,
USER,
MEMORYID LIKE RSSCR-SPAGPA,
nur auf einem Bild vorhanden
GLOBAL,
NO_IMPORT,
SPAGPA,
NOINTERVALS,
OBLIGATORY LIKE RSVAR-OBLIGATORY,
RADIO,
END OF SAVEINFO.
DATA: BEGIN OF SAVEINFO_DYN OCCURS 10,
TABLENAME LIKE RSDSTABS-PRIM_TAB,
FIELDNAME LIKE RSDSTABS-PRIM_FNAME,
FIELDTEXT LIKE RSVAR-FIELDTEXT,
TYPE LIKE RVARI-TYPE,
VTYPE LIKE RVARI-VTYPE,
VNAME LIKE RVARI-VNAME,
VARIS(1),
PROTECTED LIKE RVARI-PROTECTED,
GLOBAL(1).
DATA: END OF SAVEINFO_DYN.
data: saveinfo_sav like saveinfo occurs 0 with header line.
data: saveinfo_dyn_sav like saveinfo_dyn occurs 0 with header line.
key for import of variants from VARI
DATA: BEGIN OF $RKEY,
REPORT LIKE RSVAR-REPORT,
VARIANT LIKE RSVAR-VARIANT,
END OF $RKEY.
vari
DATA: L_VARI LIKE RVARI OCCURS 20 WITH HEADER LINE.
%_SSCR
DATA SELCTAB LIKE RSSCR OCCURS 20 WITH HEADER LINE.
DATA GLOB_SUBMODE(2).
DATA LOC_SUBMODE(2).
screenfields
DATA: XCODE(4).
DATA: FCODE(4) TYPE C,
FUNC(4) TYPE C.
DATA: BEGIN OF INFO OCCURS 20,
FLAG,
OLENGTH TYPE X,
LINE LIKE RSVAR-INFOLINE,
END OF INFO.
DATA: VALUTAB LIKE RSPARAMSL OCCURS 40 WITH HEADER LINE.
Zur allgemeinen Verwendung
FIELD-SYMBOLS: .
DATA ILLEGAL_CHAR. " Wrong sign in variant
copy
DATA: VARIANT2 LIKE RSVAR-VARIANT,
VARIANT1 LIKE RSVAR-VARIANT.
*list of parameters and select-options, screenobjects
DATA: L_SELOP LIKE VANZ OCCURS 20 WITH HEADER LINE.
DATA: L_SELOP_NONV LIKE VANZ OCCURS 20 WITH HEADER LINE."nonv = non visi
DATA: L_PARAMS LIKE VANZ OCCURS 20 WITH HEADER LINE.
DATA: L_PARAMS_NONV LIKE VANZ OCCURS 20 WITH HEADER LINE.
DATA: SCREENOBJECTS LIKE VANZ OCCURS 20 WITH HEADER LINE.
list of all variants concerning one report
DATA: BEGIN OF VARI_LIST OCCURS 40,
MARKFIELD LIKE RSVAR-MARKFIELD,
VARIANT LIKE RSVAR-VARIANT,
TEXT LIKE RVART-VTEXT,
ENAME LIKE RSVARC-ENAME,
AENAME LIKE RSVARC-AENAME,
PROTECTED LIKE RSVARC-PROTECTED,
ENVIRONMT LIKE RSVARC-ENVIRONMT,
XFLAG1 LIKE VARID-XFLAG1.
DATA: END OF VARI_LIST.
*Variablen für das Blättern auf den Dynpros 1303 und 306.
DATA: VARI_LIST_SCROLL LIKE SY-STEPL VALUE '1'.
DATA: SAVE_OKCODE(4).
table for Dynpro 306 (delete variants)
DATA: BEGIN OF H_VARILIST OCCURS 30,
MARKFIELD LIKE RSVAR-MARKFIELD,
FLAG1 LIKE RSVAR-FLAG1,
FLAG2 LIKE RSVAR-FLAG2,
FLAG3 LIKE RSVAR-FLAG3,
VARIANT LIKE RSVAR-VARIANT.
DATA: END OF H_VARILIST.
CONSTANTS: C_PDLIST_WIDTH TYPE I VALUE '24',
C_VARILIST TYPE I VALUE '10'.
DATA: CATTOP LIKE SY-TABIX VALUE '3'. "lines top-of-page in CATALOG.
*data: listtop like sy-tabix value '3'. "lines top-of-page in Delete
"vari
DATA: PRINT_ALL_VAR. "alle Varianten drucken
DATA: PRINT_CAT_VAR. "Katalog drucken
Systemumgebung
DATA ENVIRONMENT. " S: SAP, C: Customer
Dynpro 320
DATA : TEXT0(59).
*Tables and fields for fitting variants
*table of variants which must be fitted
DATA: BEGIN OF FIT_VAR OCCURS 50,
VARIANT LIKE RSVAR-VARIANT,
FLAG(1). " flag = 'X' => Variante can't be
DATA: END OF FIT_VAR. "fitted.
DATA: BEGIN OF SINGLE_OPTIONS OCCURS 8,
OPTION(2),
TEXT(18).
DATA: END OF SINGLE_OPTIONS.
variants which contain variables
internal table, per line select-options and parameters which
use variables
DATA: BEGIN OF VARIVAR OCCURS 20,
SELNAME LIKE RSSCR-NAME,
SELTEXT LIKE RSVAR-FIELDTEXT,
KIND LIKE RVARI-KIND,
TYPE LIKE RVARI-TYPE,
VTYPE LIKE RSVAR-VTYPE,
VTEXT LIKE RSVAVA-VTEXT,
FB,
TVARV,
VNAME LIKE RSVAR-VNAME,
OPTION LIKE RSVAR-OPTION,
SIGN(1),
INFO_TABIX LIKE SY-TABIX,
DATES_TABIX LIKE SY-TABIX,
USER,
MEMORYID LIKE TPARA-PARAMID,
END OF VARIVAR.
DATA: BEGIN OF VARIVAR_DYN OCCURS 20,
TABLENAME LIKE RSDSTABS-PRIM_TAB,
FIELDNAME LIKE RSDSTABS-PRIM_FNAME,
KIND LIKE RVARI-KIND,
TYPE LIKE RVARI-TYPE,
VTYPE LIKE RSVAR-VTYPE,
VTEXT LIKE RSVAVA-VTEXT,
FB,
TVARV,
VNAME LIKE RSVAR-VNAME,
OPTION LIKE RSVAR-OPTION,
SIGN(1),
INFO_TABIX LIKE SY-TABIX,
DATES_TABIX LIKE SY-TABIX,
END OF VARIVAR_DYN.
DATA: VARIDATE_S LIKE RSVARIVAR OCCURS 20 WITH HEADER LINE.
Tabelle der möglichen Datumsberechnungen für Variablen in Varianten
Parameter
DATA: VARIDATE_P LIKE RSVARIVAR OCCURS 20 WITH HEADER LINE.
table of possible TVARV-variables (parameters)
DATA: TVARV_P LIKE TVARV OCCURS 20 WITH HEADER LINE.
table of possible TVARV-variables (select-options)
DATA: TVARV_S LIKE TVARV OCCURS 20 WITH HEADER LINE.
description of fields VARIDATES
DATA: FIDESC_DATES LIKE RSVBFIDESC OCCURS 5 WITH HEADER LINE.
description of fields TVARV
DATA: FIDESC_TVARV LIKE RSVBFIDESC OCCURS 5 WITH HEADER LINE.
description of fields OPTION
DATA: FIDESC_OPTION LIKE RSVBFIDESC OCCURS 5 WITH HEADER LINE.
description of fields OPTION
Feldtabelle für DYNP_VALUES_READ/UPDATE
DATA DYNPFIELDS LIKE DYNPREAD OCCURS 50 WITH HEADER LINE.
*desctab
DATA: DESCTAB LIKE RSBREPI OCCURS 20 WITH HEADER LINE.
*Hilfsfelder für Übergabeparameter
DATA:G_SUBRC LIKE SY-SUBRC,
L_RC LIKE SY-SUBRC.
*Hilfsfelder für Sperren
DATA: G_ENQSUB LIKE SY-SUBRC.
*Hilfsfeld für mandantenabhängiges Löschen von Varianten
DATA: DEL_ALL_VAR. "=X alle Mandanten, =' ' nur aktueller Mandant
select variant form list.
DATA: BEGIN OF VARIANT_TABLE OCCURS 30,
VARIANT LIKE RSVAR-VARIANT,
TEXT LIKE VARIT-VTEXT,
ENVIR LIKE VARID-ENVIRONMNT,
ENAME LIKE VARID-ENAME,
AENAME LIKE VARID-AENAME,
aedat like varid-aedat,
MLANGU LIKE VARID-MLANGU,
protected like varid-protected,
SELSCREEN(80). "<= 20 Bilder
DATA: END OF VARIANT_TABLE.
DATA: CALL_FLAG. "screen 305.
DATA: MODE_FLAG.
Print variants screen 308
DATA: PRINT_LIST LIKE RSREPVAR OCCURS 30 WITH HEADER LINE.
parameters in variables
DATA: BEGIN OF VARIVDAT OCCURS 5,
SELNAME LIKE RVARI-NAME.
INCLUDE STRUCTURE RSINTRANGE.
DATA: END OF VARIVDAT.
DATA: VARIVDAT_WORK LIKE VARIVDAT OCCURS 10 WITH HEADER LINE.
DATA:EXC_SUBC LIKE SY-SUBRC.
DATA: BEGIN OF LDB_VARIVAR OCCURS 10,
MARKFIELD LIKE RSVAR-MARKFIELD,
VTEXT LIKE RSVARIVAR-TEXT,
VTYPE LIKE RSVAR-VTYPE.
DATA: END OF LDB_VARIVAR.
*generate subroutinepool
DATA: BEGIN OF REPDAT_TAB OCCURS 40,
LINE(72),
END OF REPDAT_TAB.
*Tabelle zur Übergabe der alten Selektionswerte wenn sich
*Parameter oder Select-Options geändert haben.
*Wird von rs_variant_obsolet benötigt.
DATA: OLD_SELECTIONS LIKE RSPARAMSL OCCURS 20 WITH HEADER LINE.
*Flag für Aufruf aus QUERY und Report-Writer.
*Reportname auf Einstiegsbild nicht sichtbar (not_visible = x)
DATA: NOT_VISIBLE.
*Varianten für Query
DATA: QUERY_SYSVAR.
*Einstiegsbild mit anderem Titel aufrufen.
DATA: N_TITLE(40).
*F4 Hilfe RS_VARIANT_CATALOG mit anderem Titel aufrufen
DATA: G_TITLE like sy-title.
*Unterscheidung auf Listdynpro (hauptsächlich 307)
DATA: CALLER(4).
*sy-subrc Felder für Import und Export.
DATA: EXP_SUBRC LIKE SY-SUBRC,
IMP_SUBRC LIKE SY-SUBRC.
*Tabellen für dynamische Selektionen
DATA: DYNSEL_DESC LIKE RSDYNBREPI OCCURS 5 WITH HEADER LINE.
DATA: DYNS_FIELDS LIKE RSDSFIELDS OCCURS 5 WITH HEADER LINE.
DATA: DYNSEL_VALUE LIKE RSSELDYN OCCURS 5 WITH HEADER LINE.
*tabellen für matchcodeselection
DATA: BEGIN OF MC_DESC OCCURS 5,
NAME LIKE RSSCR-NAME,
ID LIKE MCPARAMS-MCID,
OBJECT(10),
S_STRING LIKE MCPARAMS-STRING,
D_TEXT LIKE DD23T-MCTEXT,
FROM LIKE VANZ-FROM,
TO LIKE VANZ-TO.
DATA: END OF MC_DESC.
*Tabelle für Umsetzung dynamische Selektionen
*flag = space -> umgesetzt
*flag = G -> Variante z.Z gesperrt
*flag = I -> Fehler beim Import
DATA: BEGIN OF CHANGED_VARIANTS OCCURS 10,
NAME LIKE RSVAR-VARIANT,
FLAG.
DATA: END OF CHANGED_VARIANTS.
*Feld für Ikonen auf Dynpros.
DATA: IKON(8).
*Konstanten für Ikonen
CONSTANTS: POP_WARNING(8) VALUE '@1A@',
POP_ERROR(8) VALUE '@1B@',
POP_INFO(8) VALUE '@19@',
POP_COPY(8) VALUE '@14@',
c_icon_enter_more(15) value 'ICON_ENTER_MORE',
C_ICON_DISPLAY_MORE(17) VALUE 'ICON_DISPLAY_MORE'.
DATA: MORE_ICON LIKE RSSELINT-OPTI_PUSH.
*Konstanten für Variante ändern, Werte oder Attribute
CONSTANTS: C_VAL VALUE 'V'.
Interne Tabelle für Transport
DATA: BEGIN OF REP_VAR OCCURS 10,
MARKFIELD.
INCLUDE STRUCTURE $RKEY.
DATA: END OF REP_VAR.
DATA: REP_VAR_CURSOR LIKE SY-INDEX VALUE 0.
Tabelle für RS_SELOPT_INFO -> BBS
DATA: DEFAULTS LIKE RSPARAMSL OCCURS 10 WITH HEADER LINE.
Tabelle für Werteanzeige Tvarv.
DATA: TVARVTAB LIKE TVARV OCCURS 10 WITH HEADER LINE.
SUBTY-Equates
INCLUDE RSDBCSTY.
Textfeld für Dynpro 317.
DATA: TEXT(4).
Konstante für Namenskonvention Systemvariante
CONSTANTS: SYS_VNAME(4) VALUE 'SAP&'.
CONSTANTS: CUS_VNAME(4) VALUE 'CUS&'.
Flag für Systemvariante gewünscht.
DATA: C_SYSVAR.
data vari_mandt like sy-mandt.
data sysvar_mandt like sy-mandt value '000'.
Check für Systemvariante
DATA: SYSVAR_FLAG.
Flag für Entwicklungsklasse , Werte Y oder N (aus get_devcalss)
DATA: NON_LOCAL VALUE 'Y'.
DATA: TABIX LIKE SY-TABIX.
*Strutur für freie Abgrenzungen.
DATA: VARIDYN LIKE RSVARIDYN OCCURS 10 WITH HEADER LINE.
DATA: VDATDYN LIKE RSVDATDYN OCCURS 10 WITH HEADER LINE.
DATA: VARIVDAT_DYN LIKE RSVDATDYN OCCURS 10 WITH HEADER LINE.
DATA: BEGIN OF VARIVDAT_DYN_WORK OCCURS 10,
TABLENAME LIKE RSVARIDYN-TABLENAME,
FIELDNAME LIKE RSVARIDYN-FIELDNAME.
INCLUDE STRUCTURE RSINTRANGE.
DATA: END OF VARIVDAT_DYN_WORK.
CONSTANTS: NO_IMPORT VALUE SPACE.
Teilt IM/EXPORT_VARIANT_STATIC mit, welche übergebeneb Objekte
im/exportiert werden sollen.
DATA: BEGIN OF IMEX,
VARI,
DYNS,
END OF IMEX.
Tabelle für Selektionsbildnummern
DATA: DYNNR LIKE RSDYNNR OCCURS 10 WITH HEADER LINE.
DATA: BEGIN OF CHOOSE_DYNNR OCCURS 10,
MARKFIELD.
INCLUDE STRUCTURE RSDYNNR.
DATA: END OF CHOOSE_DYNNR.
Sichern vom Selektionsbild, RSVAR_VARIANTT zurücksetzen
DATA: FLAG_FIRST. "#EC NEEDED
DATA: FLAG_PROTECTED. "#EC NEEDED
Daten für CALL SELECTION SCREEN Varianten
DATA: HIDE_FLAG.
DATA: LINE_NUMBER LIKE SY-TABIX.
DATA: VARISCREENS LIKE RSDYNNR OCCURS 10 WITH HEADER LINE.
data: variscreens_sav like rsdynnr occurs 10 with header line.
DATA: FLAG_1000.
DATA: DYNNR_TFILL LIKE SY-TFILL.
DATA: VARISCREENS_TFILL LIKE SY-TFILL.
DATA: DMORE_ICON(40).
DATA: BEGIN OF GLOBAL_OBJECTS OCCURS 10,
NAME LIKE RSSCR-NAME,
END OF GLOBAL_OBJECTS.
DATA: BEGIN OF DYN_TAB OCCURS 10,
DBFIELD LIKE RSSCR-DBFIELD,
END OF DYN_TAB.
CONSTANTS: C_P_COLUMN TYPE I VALUE 38,
C_I_COLUMN TYPE I VALUE 41,
C_N_COLUMN TYPE I VALUE 44,
C_S_COLUMN TYPE I VALUE 47,
C_W_COLUMN TYPE I VALUE 50,
C_M_COLUMN TYPE I VALUE 53,
C_O_COLUMN TYPE I VALUE 56,
MAX_WIDTH_ATTR TYPE I VALUE 77.
CONSTANTS: MAX_WIDTH_SELVAR TYPE I VALUE 57.
DATA: FLAG_NOIMPORT.
DATA: CURR_STATUS(4).
DATA: SCREEN_TITLES LIKE RSSCRITLE OCCURS 10 WITH HEADER LINE.
RANGES V_RANGE FOR VARID-VARIANT OCCURS 10.
DATA: FLAG_ALL_SCREENS.
CONSTANTS: C_LOW TYPE I VALUE 34,
C_HIGH TYPE I VALUE 58,
C_TO TYPE I VALUE 54,
C_OUTPUT_LENGTH TYPE I VALUE 26,
C_DISPLAY_LENGTH TYPE I VALUE 87,
C_DISPLAY_LENGTH_ATTR TYPE I VALUE 104,
C_DISPLAY_LENGTH_CAT TYPE I VALUE 118,
C_NO VALUE '0',
C_DYNNR LIKE SCREEN-NAME VALUE 'RSVAR-DYNNR',
C_ICON_MORE LIKE SCREEN-NAME VALUE 'DMORE_ICON',
C_SCREEN_1000 LIKE SY-DYNNR VALUE '1000'.
DATA: BELONGING_DYNNR LIKE RSDYNNR OCCURS 10 WITH HEADER LINE.
DATA: PREFIX(20).
DATA: D_320_TEXT(35).
DATA: OLD_VARI LIKE RSVAR-VARIANT.
DATA: L_SUBMODE LIKE GLOB_SUBMODE.
DATA: ICON_1(40), ICON_2(40), ICON_3(40).
DATA: FLAG_ICON_1, FLAG_ICON_2, FLAG_ICON_3.
DATA: FLAG_CALLED_FROM_SELSCREEN.
DATA: VARIVAR_TEXT LIKE RSVAVA-VTEXT.
DATA: VARIVAR_KIND LIKE RSSCR-KIND.
DATA: LIST_LINE LIKE SY-LILLI.
DATA: MOD_LINE LIKE SY-LILLI.
DATA: G_SP TYPE SYLDB_SP.
DATA: G_RANGE TYPE RSDS_RANGE,
G_FRANGE TYPE RSDS_FRANGE,
G_RSDSSELOPT LIKE RSDSSELOPT.
DATA: G_ILL_CHAR.
DATA: FLAG_CHANGE_VARIANT.
DATA: EXIT_FLAG.
DATA: COMP_NODI_NAME LIKE RSSCR-NAME.
DATA: EXCLUDE LIKE RSEXFCODE OCCURS 0 WITH HEADER LINE.
hidefelder für Attributebild.
DATA: HIDE(10).
Feldbeschreibung aufgeklappt oder zugeklappt
DATA: STATE(4).
DATA: NO_DISPLAY_VISIBLE TYPE BOOLEAN VALUE 'F'.
DATA: READ_LINE LIKE SY-INDEX.
CONSTANTS: C_COLLAPSE(4) VALUE 'COLL',
C_EXPAND(4) VALUE 'EXPA',
C_TRUE VALUE 'T',
C_FALSE VALUE 'F'.
CONSTANTS: CAT_LINE_SIZE TYPE I VALUE '127'.
DATA: G_EXPOREP TYPE SY-REPID.
DATA: SUBSCREENPROG LIKE SY-REPID,
SUBSCREENDYNNR LIKE SY-DYNNR.
data: g_subc like trdir-subc.
data: status_for_subscreens.
Data for subscreen processing
data: begin of g_subscreen,
ucomm type syucomm,
submode(2),
total type i,
current type i,
exclude type rsexfcode occurs 0,
rkey type rsvarkey,
variscreens type rsdynnr occurs 0,
sscr type rsscr occurs 0,
end of g_subscreen.
INCLUDE SVARSELO.
Daten für ALV-GRID
data:
GT_TOOLBAR_EXCLUDING TYPE UI_FUNCTIONS,
GRID1 TYPE REF TO CL_GUI_ALV_GRID,
GRID2 TYPE REF TO CL_GUI_ALV_GRID,
alv_fieldcat TYPE LVC_T_FCAT WITH HEADER LINE,
EVENT_RECEIVER1 TYPE REF TO CL_EVENT_RECEIVEr1,
selected value 'X',
alv_layout TYPE LVC_S_LAYO,
alv_STABLE type LVC_S_STBL,
ROW_TABLE TYPE LVC_T_ROW WITH HEADER LINE,
alv_container_1 type REF TO CL_GUI_CUSTOM_CONTAINER,
alv_container_2 type REF TO CL_GUI_CUSTOM_CONTAINER.
constants: c_search value 'S'. -
i want to original owner tel: number plz help me becouse my iphone is lock
Welcome to the user to User Technical Support Forum provided by Apple.
Syazuan wrote:
i want to original owner tel: number ...
No one here can assist you with that.
The Apple ID and Password that was Originally used to Activate the iDevice is required
If you do not have that information you will not be able to use the Device.
Activation Lock in iOS 7 > http://support.apple.com/kb/HT5818 -
i dont have credit card or money but i have to download call of duty 4 free in my mac what shoul i do plz help me urgent
Sorry but there are no free versions of Call of Duty4 available from the App Store.
-
Hi all,
i am getting value in format '123-'
i need to display in format '-123'
plz help me.
Thanks ,
GauravHi,
Check this
report ztest_46.
data: val type i value '154633-'.
write (8) val using edit mask '-________'.
aRs -
JTable problem plz help me urgent
sir
i carefully read the swing tutorial for JTable for the purpose
of rendring specially header rendring.
first u see the code
import java.awt.event.*;
import javax.swing.*;
import java.awt.*;
import javax.swing.border.*;
import java.util.*;
import javax.swing.table.*;
public class Myscrollpane extends JScrollPane
ImageIcon icon=new ImageIcon("images/beach1.jpg");
Image img;
int w,h,wi,hi;
TableColumn column = null;
/*Vector cols=new Vector();
cols.addElement("Company Code");
cols.addElement("Company Name");
String[] names = {"Company Code", "Company Name"};
DefaultTableModel model=new DefaultTableModel(names,0);
JTable table=new JTable(model);
LogoViewport vp;//custom class extends with JViewport
Myscrollpane(int width,int height)
vp= new LogoViewport(width,height);
setOpaque(false);
setMinimumSize(new Dimension(width,height));
setPreferredSize(new Dimension(width,height));
setSize(350,125);
///////////here r the table methods to control /////////////////////
table.setPreferredScrollableViewportSize(new Dimension(width,height));
table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF );
table.getTableHeader().setReorderingAllowed(false);
table.setBackground(new Color(245,235,237));
table.setForeground(Color.black);
table.setOpaque(true);
table.setEnabled(false);
table.setFont(new java.awt.Font("Dialog", Font.ITALIC, 12));
table.setGridColor(Color.pink);
table.setRowHeight(22);
table.setSelectionBackground(Color.lightGray);
DefaultTableCellRenderer renderer=new DefaultTableCellRenderer();
TableColumn code=table.getColumnModel().getColumn(0);
renderer.setBackground(Color.red);
????//if i use the setIcon method then the data comes from the database
????//is not shown because the icon paint above the data.
code.setCellRenderer(renderer);
TableCellRenderer headerRenderer = table.getTableHeade.().getDefaultRenderer();
TableColumn column1=null;
???//i use this to change the color of header column but it is not work
for (int j = 0; j < 2; j++) {
column1 = table.getColumnModel().getColumn(j);
Component comp = headerRenderer.getTableCellRendererComponent(
null, column1.getHeaderValue(),
false, false, 0, 0);
comp.setBackground(Color.red);
???//if i use following it also not work
TableCellRenderer headerRenderer = table.getTableHeader().
getDefaultRenderer();
if (headerRenderer instanceof DefaultTableCellRenderer) {
((DefaultTableCellRenderer)headerRenderer).setBackground(Color.red);}
for (int i = 0; i <=1; i++)
column = table.getColumnModel().getColumn(i);
if (i == 0) {
column.setPreferredWidth(100);
else
column.setPreferredWidth(225);
vp.setView(table);
this.setViewport(vp);
plz help me with the code.
i also want to draw the image on the table with the use of DefaultTabel
Model and data set from the data base.Initally no row is shown.
plz help me
shown(???) are the quesstion which i am unable to solve.
thanks in advance.Formatting the code makes it easier to read, which means more people may attempt to read your code and answer your questions. Click on the "Help" link at the top of the page.
import java.awt.*;
import javax.swing.*;
import javax.swing.table.*;
public class TableHeader extends JFrame
public TableHeader()
JTable table = new JTable(5, 5);
table.setPreferredScrollableViewportSize(table.getPreferredSize());
JScrollPane scrollPane = new JScrollPane( table );
getContentPane().add( scrollPane );
table.getTableHeader().setBackground( Color.red );
public static void main(String[] args)
TableHeader frame = new TableHeader();
frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
frame.pack();
frame.setLocationRelativeTo( null );
frame.setVisible(true);
} -
JTable problem plz help me urgent withDefault TableModel
sir
i carefully read the swing tutorial for JTable for the purpose
of rendring specially header rendring.
first u see the code
import java.awt.event.*;
import javax.swing.*;
import java.awt.*;
import javax.swing.border.*;
import java.util.*;
import javax.swing.table.*;
public class Myscrollpane extends JScrollPane {
ImageIcon icon=new ImageIcon("images/beach1.jpg");
Image img;
int w,h,wi,hi;
TableColumn column = null;
String[] names = {"Company Code", "Company Name"};
DefaultTableModel model=new DefaultTableModel(names,0);
JTable table=new JTable(model);
LogoViewport vp;//user class extends with JViewport
Myscrollpane(int width,int height){
vp= new LogoViewport(width,height);
setOpaque(false);
setMinimumSize(new Dimension(width,height));
setPreferredSize(new Dimension(width,height));
setSize(350,125);
///////////here r the table methods tocontrol /////////////////////
table.setPreferredScrollableViewportSize(new Dimension width,height));
table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF );
table.getTableHeader().setReorderingAllowed(false);
table.setBackground(new Color(245,235,237));
table.setForeground(Color.black);
table.setOpaque(true);
table.setEnabled(false);
table.setFont(new java.awt.Font("Dialog", Font.ITALIC, 12));
table.setGridColor(Color.pink);
table.setRowHeight(22);
table.setSelectionBackground(Color.lightGray);
DefaultTableCellRenderer renderer=new DefaultTableCellRenderer();
TableColumn code=table.getColumnModel().getColumn(0);
renderer.setBackground(Color.red);
//if i use the setIcon method then the data comes from the database is
//not shown because the icon paint above the data.Iwant to paint the
//image on the table dynamically means as table populated the image is
//paint on the table means no fix no of rows.How can i
//do.
code.setCellRenderer(renderer);
TableCellRenderer headerRenderer = table.getTableHeade.().getDefaultRenderer();
TableColumn column1=null;
//i use this to change the color and paste icon of header column
//but it is not work
for (int j = 0; j < 2; j++) {
column1 = table.getColumnModel().getColumn(j);
Component comp = headerRenderer.getTableCellRendererComponent(null, column1.getHeaderValue(), false, false, 0, 0);
comp.setBackground(Color.red);
comp.setIcon(new ImageIcon("myimage.gif")); }
//if i use following it also not work
TableCellRenderer headerRenderer = table.getTableHeader().getDefaultRenderer();
if (headerRenderer instanceof DefaultTableCellRenderer) {((DefaultTableCellRenderer)headerRenderer).setBackground(Color.red);} vp.setView(table);
this.setViewport(vp);
}plz help me with the code.
stated as above i also want to draw the image on the table with the use of DefaultTabel
Model and data set from the data base.Initally no row is shown.
plz help me
thanks in advanceimport java.awt.*;
import javax.swing.*;
import javax.swing.table.*;
public class TableHeader extends JFrame
public TableHeader()
Object[] columnNames =
new ImageIcon("copy16.gif"),
"Some Text",
new ImageIcon("add16.gif")
// Columns headings are cast to a String when created automatically.
// We want Icons, so use a special renderer and create the columns manually
JTable table = new JTable();
table.getTableHeader().setDefaultRenderer( new HeaderRenderer() );
for (int i = 0; i < columnNames.length; i++)
TableColumn newColumn = new TableColumn(i);
newColumn.setHeaderValue( columnNames[i] );
table.addColumn(newColumn);
table.setPreferredScrollableViewportSize(table.getPreferredSize());
JScrollPane scrollPane = new JScrollPane( table );
getContentPane().add( scrollPane );
class HeaderRenderer extends DefaultTableCellRenderer
public Component getTableCellRendererComponent(
JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int col)
setBorder(UIManager.getBorder("TableHeader.cellBorder"));
setHorizontalAlignment(CENTER);
// color each cell
if (col == 1)
setBackground( Color.yellow );
else
setBackground( Color.green );
// display text or icon
if (value instanceof Icon)
setIcon( (Icon)value );
setText( "" );
else
setIcon( null );
setText((value == null) ? "" : value.toString());
return this;
public static void main(String[] args)
TableHeader frame = new TableHeader();
frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
frame.pack();
frame.setLocationRelativeTo( null );
frame.setVisible(true);
} -
Goods movement on a mass scale...Plz help, its urgent.
Hi Gurus,
I need to do the goods issue to a cost centre on a mass scale. Is there any way to do it in one hit or do i need to to put all the materials manually (around 3000 materials) and then enter the qty to be transfered?
Kindly help me out, its very urgent...
Thanks,
Swati.Ask your Abaper to write a BDC Program and give all the details in EXCEL sheet
Maybe you are looking for
-
APEX application starts very slow
Hi all, I have developed a small apex application for my website. I am running this application on OracleXE. Every time I when I log in the response is extremily slow. It will take approx. 1 min before the login page appears, then it takes another 20
-
How Do I transfer my iTunes library to an External Hard Drive?
Im new here so Im not sure where to post this. I have a 5G 60GB Ipod video and Im trying to get my iTunes onto this external hard drive I bought, that way, all my files are backed up and I can transfer them to my laptop. I have about 2000 songs, 15 v
-
Editing with Mac Monitor and TV.
When I try to view a TV and monitor simultaneously for editing I do not always get a picture on the TV. Sometimes sound only. I use a Panasonic GS 400 connected between monitor and TV. In preferences I have set iMovie to playback through camera. It a
-
Problem with using graduated filters
I have used a graduated filter in a photo and it has darkened some rock that I would like to be lighter, how do I go about doing this?
-
Sending my Lumia 800 for assessment.
After owning the Lumia 800 for 6 months, I'm sending the device to a Nokia Care Centre for assessment mainly on the issue of:- a) heating up issue; and b) inability to send or receive mms. However, before i proceed. I'd like to know what are the poss