Problem with F4 option for one field
Hi,
While creating pricing condition records (VK11), one field is not having F4 option. That field is KGKG1 (Condition group1).
Ihave created one table with s.org, dist.channel and condition group1 (KDKG1).
While creating onle this problem. While changing and displaying the F4 option (i am able to select the values from list) available.
What would be the reason. Is it require to change in table like domain, fields.
Please help me to solveit out.
Regards
Lakshmikanth
Hi,
you can create new condition groups here.
IMG>Logistics - General>Business Partner>Customers>Control>Define Condition Groups.
Goto Customer master maintain condition groups.
XD01/02. goto general data , In Menu select Extras and choose additional data. maintain condition group for customer.
Regards,
Chandra
Similar Messages
-
Problem with 'BACK' option for ALV grid
Hi Friends,
I'm using FM, REUSE_ALV_GRID_DISPLAY in my report.
Once I got an ALV output, when I press the BACK button,
it's going to blank sceen again when I press BACK am getting selection screen.
From output am not able to goto the selection screen. Kindly suggest on this issue.
Thanks in advance.
Regards,
Bharat.Hi,
I don't have write statement anywhere in my prog.
pls refer to the code.
REPORT ZCDC_TRACKING_REPORT no standard page heading message-id zz1
tables:vbak,
vbap,
vbkd,
vtfa,
vbfa,
vtrkh,
vttk.
TYPE-POOLS: SLIS. "Field catalog structure
DATA: FCATALOG TYPE SLIS_FIELDCAT_ALV OCCURS 30.
DATA: FZEILE TYPE SLIS_FIELDCAT_ALV OCCURS 30 with header line.
data:w_disp_variant TYPE disvariant,
s_alv_layout type slis_layout_alv.
DATA: W_REPID LIKE SY-REPID,
W_SUBRC LIKE SY-SUBRC,
W_LOOPCOUNT LIKE SY-TABIX,
W_LINES TYPE I,
IS_VARIANT LIKE DISVARIANT,
GS_LAYOUT TYPE SLIS_LAYOUT_ALV.
*Internal table declaration.
data: begin of i_vbak occurs 0,
vbeln like vbak-vbeln,
kunnr like vbak-kunnr,
bstnk like vbak-bstnk,
end of i_vbak.
data: begin of i_vbfa occurs 0,
vbeln like vbfa-vbeln,
vbelv like vbfa-vbelv,
end of i_vbfa.
data: begin of i_vtfa occurs 0,
tknum like vtfa-tknum,
vbeln like vbak-vbeln,
end of i_vtfa.
data: begin of i_vttp occurs 0,
tknum like vtfa-tknum,
vbeln like vbak-vbeln,
end of i_vttp.
data: begin of i_vttk occurs 0,
tknum like vtfa-tknum,
vsart like vttk-vsart,
dtabf like vttk-dtabf,
tdlnr like vttk-tdlnr,
TNDR_TRKID like vttk-TNDR_TRKID,
end of i_vttk.
data: begin of i_final occurs 0,
kunnr like vbak-kunnr,
name1 like kna1-name1,
vbeln like vbak-vbeln,
bstkd like vbkd-bstkd,
dtabf like vttk-dtabf,
tdlnr like vttk-tdlnr,
TNDR_TRKID like vttk-TNDR_TRKID,
end of i_final,
wa_final like i_final.
data: v_name1 like kna1-name1,
v_trackno like vtrkh-trackn.
**selection-screen.
SELECTION-SCREEN begin of block b1 with frame.
parameters: R1 RADIOBUTTON GROUP rad1 DEFAULT 'X'.
parameters: p_vbeln like vbak-vbeln,
p_bstkd like vbkd-bstkd.
SKIP.
SKIP.
*SELECTION-SCREEN end of block b1.
*SELECTION-SCREEN begin of block b2.
parameters: R2 RADIOBUTTON GROUP rad1.
select-options: s_kunnr for vbak-kunnr.
select-options: s_dtabf for VTTK-DTABF.
SELECTION-SCREEN end of block b1.
SELECTION-SCREEN begin of block b2 with frame.
parameters: P_track RADIOBUTTON GROUP rad2 default 'X',
P_car RADIOBUTTON GROUP rad2,
P_both RADIOBUTTON GROUP rad2.
SELECTION-SCREEN end of block b2.
**Initialization.
Initialization.
MOVE SY-REPID TO W_REPID.
*At selection-screen.
At selection-screen.
if R1 eq 'X'.
if p_vbeln eq ' ' and p_bstkd eq ' '.
message e000(zz1) with 'Please enter either PO # or SO #'.
endif.
elseif R2 eq 'X'.
if ( s_kunnr-low is initial and s_kunnr-high is initial ) and
( s_dtabf-low is initial and s_dtabf-high is initial ) .
message e000(zz1) with 'Please limit your selection criteria, this'
'cannot run without a Customer # & Date range'.
endif.
endif.
**start-of-selection.
start-of-selection.
**if option foreground is selected
IF R1 eq 'X'.
**step1 select data from VBAK,VBKD
**step2 select data from VTTK
perform get_data_foreground.
Perform process_data.
elseif R2 eq 'X'.
**if option Batch processing selected
**select data from KNA1,VBAK,VTTKelseif R2 eq 'X'.
perform get_data_batch_processing.
endif.
Perform process_data.
end-of-selection.
*& Form get_data_foreground
text
--> p1 text
<-- p2 text
form get_data_foreground .
if p_vbeln ne ' ' and p_bstkd ne ' '.
select vbeln
kunnr
bstnk
from vbak into table i_vbak
where vbeln eq p_vbeln
and bstnk eq p_bstkd.
elseif p_vbeln eq ' ' .
select vbeln
kunnr
bstnk
from vbak into table i_vbak
where bstnk eq p_bstkd.
elseif p_bstkd eq ' '.
select vbeln
kunnr
bstnk
from vbak into table i_vbak
where vbeln eq p_vbeln.
endif.
**Get data from VBFA
if not i_vbak[] is initial.
select vbeln
vbelv from VBFA into table i_vbfa
for all entries in i_vbak
where vbelv = i_vbak-vbeln
and vbtyp_n = 'J'.
endif.
**select data from VTTP
if not i_vbfa[] is initial.
select tknum
vbeln
from vttp into table i_vttp
for all entries in i_vbfa
where vbeln = i_vbfa-vbeln.
endif.
*select data from VTTK
if not i_vttp[] is initial.
select tknum
vsart
dtabf
tdlnr
TNDR_TRKID from vttk into table i_vttk
for all entries in i_vttp
where tknum eq i_vttp-tknum.
endif.
**select data from VTFA
if not i_vbak[] is initial.
select tknum
vbeln
from vtfa into table i_vtfa
for all entries in i_vbak
where vbeln = i_vbak-vbeln.
endif.
*select data from VTTK
if not i_vtfa[] is initial.
select tknum
dtabf
tdlnr
TNDR_TRKID from vttk into table i_vttk
for all entries in i_vtfa
where tknum eq i_vtfa-tknum.
endif.
endform. " get_data_foreground
*& Form get_data_batch_processing
text
--> p1 text
<-- p2 text
form get_data_batch_processing .
select vbeln
kunnr
bstnk
from vbak into table i_vbak
where kunnr in s_kunnr.
**Get data from VBFA
if not i_vbak[] is initial.
select vbeln from VBFA into table i_vbfa
for all entries in i_vbak
where vbelv = i_vbak-vbeln
and vbtyp_n = 'J'.
endif.
**select data from VTTP
if not i_vbfa[] is initial.
select tknum
vbeln
from vttp into table i_vttp
for all entries in i_vbfa
where vbeln = i_vbfa-vbeln.
endif.
*select data from VTTK
if not i_vttp[] is initial.
select tknum
vsart
dtabf
tdlnr
TNDR_TRKID from vttk into table i_vttk
for all entries in i_vttp
where tknum eq i_vttp-tknum
and dtabf eq s_dtabf.
endif.
**select data from VTFA
if not i_vbak[] is initial.
select tknum
vbeln
from vtfa into table i_vtfa
for all entries in i_vbak
where vbeln = i_vbak-vbeln.
endif.
**select data from VTTK
if not i_vtfa[] is initial.
select tknum
dtabf
tdlnr
TNDR_TRKID from vttk into table i_vttk
for all entries in i_vtfa
where tknum eq i_vtfa-tknum
and dtabf eq s_dtabf.
endif.
endform. " get_data_batch_processing
*& Form process_data
text
--> p1 text
<-- p2 text
form process_data .
**loop processing
loop at i_vbak.
wa_final-vbeln = i_vbak-vbeln.
wa_final-bstkd = i_vbak-bstnk.
wa_final-kunnr = i_vbak-kunnr.
select single name1 into v_name1
from kna1
where kunnr eq wa_final-kunnr.
if sy-subrc eq 0.
wa_final-name1 = v_name1.
endif.
read table i_vbfa with key vbelv = i_vbak-vbeln.
if sy-subrc eq 0.
read table i_vttp with key vbeln = i_vbfa-vbeln.
if sy-subrc eq 0.
read table i_vttk with key tknum = i_vttp-tknum.
if sy-subrc eq 0.
wa_final-dtabf = i_vttk-dtabf.
if p_track eq 'X'.
if i_vttk-vsart = 'LTL'.
wa_final-TNDR_TRKID = i_vttk-TNDR_TRKID.
else.
select single trackn from VTRKH into v_trackno
where uevbeln = i_vbfa-vbeln
and uevbtyp = 'J'
and vbtyp = 'X'.
if sy-subrc eq 0.
wa_final-TNDR_TRKID = v_trackno.
endif.
endif.
elseif P_car eq 'X'.
wa_final-tdlnr = i_vttk-tdlnr.
else.
wa_final-tdlnr = i_vttk-tdlnr.
if i_vttk-vsart = 'LTL'.
wa_final-TNDR_TRKID = i_vttk-TNDR_TRKID.
else.
select single trackn from VTRKH into v_trackno
where uevbeln = i_vbfa-vbeln
and uevbtyp = 'J'
and vbtyp = 'X'.
if sy-subrc eq 0.
wa_final-TNDR_TRKID = v_trackno.
endif.
endif.
endif.
endif.
endif.
endif.
append wa_final to i_final.
clear : i_final, wa_final,i_vbak,i_vbfa,i_vttp, i_vttk,v_name1.
endloop.
IF R1 eq 'X'.
PERFORM FIELDCATALOG.
PERFORM LAYOUT_BUILD CHANGING GS_LAYOUT.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = W_REPID
IS_LAYOUT = GS_LAYOUT
IT_FIELDCAT = FCATALOG
TABLES
T_OUTTAB = i_final
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
else.
PERFORM BACKGROUND_JOB.
**Transfer of data into Application server
OPEN DATASET P_PFILE for output IN TEXT MODE encoding DEFAULT .
if sy-subrc eq 0.
loop at itab.
transfer itab to p_pfile.
endloop.
else.
message e000(zz1) with p_pfile.
endif.
CLOSE dataset p_pfile.
endif.
endform. " process_data
*& Form FIELDCATALOG
text
--> p1 text
<-- p2 text
form FIELDCATALOG .
DATA: L_FIELDNO LIKE SY-TABIX.
L_FIELDNO = 1.
**Cust. Number
CLEAR FZEILE.
FZEILE-COL_POS = L_FIELDNO.
L_FIELDNO = L_FIELDNO + 1.
FZEILE-FIELDNAME = 'KUNNR'.
FZEILE-DATATYPE = 'CHAR'.
FZEILE-OUTPUTLEN = 15.
FZEILE-SELTEXT_L = 'Customer' .
FZEILE-LOWERCASE = 'X'.
FZEILE-SP_GROUP = 'A'.
FZEILE-KEY = 'X'.
FZEILE-DDICTXT = 'M'. " medium text
APPEND FZEILE TO FCATALOG.
**Customer name
CLEAR FZEILE.
FZEILE-COL_POS = L_FIELDNO.
L_FIELDNO = L_FIELDNO + 1.
FZEILE-FIELDNAME = 'NAME1'.
FZEILE-DATATYPE = 'CHAR'.
FZEILE-OUTPUTLEN = 35.
FZEILE-SELTEXT_L = 'Customer Name' .
FZEILE-LOWERCASE = 'X'.
FZEILE-SP_GROUP = 'A'.
FZEILE-KEY = 'X'.
FZEILE-DDICTXT = 'M'. " medium text
APPEND FZEILE TO FCATALOG.
**Sales order
CLEAR FZEILE.
FZEILE-COL_POS = L_FIELDNO.
L_FIELDNO = L_FIELDNO + 1.
FZEILE-FIELDNAME = 'VBELN'.
FZEILE-DATATYPE = 'CHAR'.
FZEILE-OUTPUTLEN = 10.
FZEILE-SELTEXT_L = 'Sales order' .
FZEILE-LOWERCASE = 'X'.
FZEILE-SP_GROUP = 'A'.
FZEILE-KEY = 'X'.
FZEILE-DDICTXT = 'M'. " medium text
APPEND FZEILE TO FCATALOG.
**Custmoer PO
CLEAR FZEILE.
FZEILE-COL_POS = L_FIELDNO.
L_FIELDNO = L_FIELDNO + 1.
FZEILE-FIELDNAME = 'BSTKD'.
FZEILE-DATATYPE = 'CHAR'.
FZEILE-OUTPUTLEN = 30.
FZEILE-SELTEXT_L = 'Custmoer PO' .
FZEILE-LOWERCASE = 'X'.
FZEILE-SP_GROUP = 'A'.
FZEILE-KEY = 'X'.
FZEILE-DDICTXT = 'M'. " medium text
APPEND FZEILE TO FCATALOG.
**Date shipped
CLEAR FZEILE.
FZEILE-COL_POS = L_FIELDNO.
L_FIELDNO = L_FIELDNO + 1.
FZEILE-FIELDNAME = 'DTABF'.
FZEILE-DATATYPE = 'CHAR'.
FZEILE-OUTPUTLEN = 15.
FZEILE-SELTEXT_L = 'Date shipped' .
FZEILE-LOWERCASE = 'X'.
FZEILE-SP_GROUP = 'A'.
FZEILE-KEY = 'X'.
FZEILE-DDICTXT = 'M'. " medium text
APPEND FZEILE TO FCATALOG.
**Carrier
CLEAR FZEILE.
FZEILE-COL_POS = L_FIELDNO.
L_FIELDNO = L_FIELDNO + 1.
FZEILE-FIELDNAME = 'TDLNR'.
FZEILE-DATATYPE = 'CHAR'.
FZEILE-OUTPUTLEN = 15.
FZEILE-SELTEXT_L = 'Carrier' .
FZEILE-LOWERCASE = 'X'.
FZEILE-SP_GROUP = 'A'.
FZEILE-KEY = 'X'.
FZEILE-DDICTXT = 'M'. " medium text
APPEND FZEILE TO FCATALOG.
**Tracking/Pro #
CLEAR FZEILE.
FZEILE-COL_POS = L_FIELDNO.
L_FIELDNO = L_FIELDNO + 1.
FZEILE-FIELDNAME = 'TNDR_TRKID'.
FZEILE-DATATYPE = 'CHAR'.
FZEILE-OUTPUTLEN = 15.
FZEILE-SELTEXT_L = 'Tracking/Pro#' .
FZEILE-LOWERCASE = 'X'.
FZEILE-SP_GROUP = 'A'.
FZEILE-KEY = 'X'.
FZEILE-DDICTXT = 'M'. " medium text
APPEND FZEILE TO FCATALOG.
CLEAR FZEILE.
endform. " FIELDCATALOG
*& Form LAYOUT_BUILD
text
<--P_GS_LAYOUT text
form LAYOUT_BUILD changing p_gs_layout TYPE SLIS_LAYOUT_ALV.
CLEAR P_GS_LAYOUT.
P_GS_LAYOUT-ZEBRA = 'X'.
P_GS_LAYOUT-BOX_FIELDNAME = SPACE.
P_GS_LAYOUT-MAX_LINESIZE = 250.
endform. " LAYOUT_BUILD
*& Form BACKGROUND_JOB
text
--> p1 text
<-- p2 text
form BACKGROUND_JOB .
DATA: JOB_NAME LIKE TBTCO-JOBNAME,
JOB_NR LIKE TBTCO-JOBCOUNT,
JOB_RELEASED TYPE C,
JOB_START_SOFORT TYPE C.
DATA: TITEL(15) TYPE C,
TEXT1(35) TYPE C,
TEXT2(40) TYPE C,
ANSWER TYPE C.
DATA: PARAMS LIKE PRI_PARAMS,
VALID TYPE C.
JOB_NAME = SYST-REPID.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
JOBNAME = JOB_NAME
IMPORTING
JOBCOUNT = JOB_NR
EXCEPTIONS
CANT_CREATE_JOB = 1
INVALID_JOB_DATA = 2
JOBNAME_MISSING = 3
OTHERS = 4.
IF SYST-SUBRC NE 0.
MESSAGE I162(00) WITH
'An error occured while creating the background job.'.
STOP.
ELSE.
*set print parameters to output any errors to spool...
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
IMMEDIATELY = ' '
MODE = 'BATCH'
NO_DIALOG = 'X'
RELEASE = 'X'
NEW_LIST_ID = 'X'
LINE_SIZE = SY-LINSZ
*LIST_NAME = 'RBE'
LIST_TEXT = 'Extract Results'
IMPORTING
OUT_PARAMETERS = PARAMS
VALID = VALID
EXCEPTIONS
ARCHIVE_INFO_NOT_FOUND = 1
INVALID_PRINT_PARAMS = 2
INVALID_ARCHIVE_PARAMS = 3
OTHERS = 4.
IF VALID NE SPACE.
*submit job with all the selection screen params...
SUBMIT (JOB_NAME) USER SYST-UNAME
VIA JOB JOB_NAME NUMBER JOB_NR
*WITH CLIENT = CLIENT
*WITH MONIFROM = MONIFROM
*WITH MONI_TO = MONI_TO
*WITH TQ_FROM = TQ_FROM
*WITH TQ_TO = TQ_TO
*WITH WORKLOAD = WORKLOAD
*WITH ALL = ALL
*WITH SPL1 = SPL1
*WITH APPSERV1 = APPSERV1
*WITH SPOOLNR = SPOOLNR
*WITH APPPATH1 = APPPATH1
*WITH PCPATH = PCPATH
*WITH SPL2 = SPL2
*WITH APPSERV2 = APPSERV2
TO SAP-SPOOL SPOOL PARAMETERS PARAMS
WITHOUT SPOOL DYNPRO
AND RETURN.
IF SYST-SUBRC <> 0.
CASE SYST-SUBRC.
WHEN 4.
MESSAGE I162(00) WITH
'Error defining background job!'
' Background job canceled by User.'.
WHEN 8.
MESSAGE I162(00) WITH
'Error defining background job!'
' Error in job scheduling (JOB_SUBMIT)'.
WHEN 12.
MESSAGE I162(00) WITH
'Error defining background job!'
' Error in internal number assignment'.
ENDCASE.
ENDIF.
endif.
endif.
endform. " BACKGROUND_JOB -
Problem with differetn phases for one maintenance cycle
Dear Solman Gurus.
It has happened several times, tha while working with maintenance cycle from 2 different places - from activity Maintenance cycle and form Task list, that system shows different phases. For example in task list is phase TEST in activity Maintenance cycle is phase Development wit release. And you are not able to correct it. Or at least we do not know how to do it. So we can only close the whole maitenance and start all over again.
Please help us how to prevent this situation or how to correct it.
Regards,
PetrHi Petr,
You should have a look to SAP Note 933705 that helps with your problem.
Best regards,
Stéphane. -
Problem with Edit option for a role created in GRC 10.0
Hello Experts,
I created a role in GRC 10.0 , I see my newly created role in the list of roles . If I want to Edit the role I select the row and click " OPEN" and edit the role.
But when I click the role directly and enter the role , the "EDIT" button is disabled and even maintain authorization button is disabled.
Did SAP defined in such a way that we should selct the role and click OPEN then only we can Edit or is this a Bug??
Please let me know if any one of you faced the same problem.
Regards,
Jagadish BhandaruHi,
Sabita is correct.
Here is the link to the documentation
SAP Access Control 10.0
Simon -
IDOC: Problem with data filter for IDOC extension field
Hallo!
I've created an idoc extension for the basic type DEBMAS06 that works fine. Now I want to use a data filter for one field ( company code ) of my segment. Every segment with a company code different from 100 should be filtered and not send to the other client. But what happend is that for all customers that have at least one company code different from 100, all segments including the one with cc 100 were deleted and a error "Segment ... does not exist for message type DEBMAS" appeared on the screen.
Does anyone have any ideas about this problem?Not sure about changes to be made at the filtering options.
An alternative would be sending the data to XI as it is and perform the mapping to remove the unnecessary segments.
Disadvantage: Unnecessary processing of segment would be done at XI.
Advantage: The integration logic would be completely handled by XI.
Regards,
Prateek -
I have been a loyal customer for years and have a hot spot because internet options are very limited in our rural area. I have stayed with 10G since the beginning. Most months I don't use the 10G. Verizon has no problem with me paying for Data I don't use. This month my daughter comes home from College and she accidentally uses 24G.....14 over get blind sided with $140.00 in overages. I called Verizon today......stopped in to the store today......My neighbor told me they waved charges for her one time. Lots of charges.....But I'm am getting no help. Not even an offer of a payment plan to help me out. I went back just 6 months and I have over paid for 19G.....Seems like they would like to help out their loyal customers!!!! Does anybody have any suggestions on how to deal with them? We are not wealthy....or I would just pay this and walk away......
There is a big misconception in what customers believe a cell carrier is obligated to do.
You pay a set price to use up to that amount of xx data. It makes no difference if you use it to the paid limit or way under. Its like peace of mind when you don't have to worry about a data counter.
Your daughter used the data, your plan is quite clear of what overage charges are. Why should or would Verizon wireless just forgive the charges because you are a customer? Your daughter used the data, get the money from her. That is the responsible thing to do.
There is no "I have been a loyal customer so please remove the $120, or $250, or $2,000.00 since I did not mean to use it"
Your electric company, or gas company or any other company does not remove valid charges. Why should Verizon wireless?
Just pay the invoice and don't think you are being mistreated because Verizon is a business and not a charity.
Good Luck -
Facing problem with the code for sending an .xls attachment via email, a field value contains leading zeros but excel automatically removes these from display i.e. (00444 with be displayed as 444).kindly guide .
Hi Chhayank,
the problem is not the exported xls. If you have a look inside with Notepad or something like that, you will see that your leading zeros are exported correct.Excel-settings occurs this problem, it is all about how to open the document. If you use the import-assistant you will have no problems because there are options available how to handle the different columns.
Another solution might be to get familiar with ABAP2XLS-Project. I got in my mind, that there is a method implemented, that will help you solving this problem. But that is not a five minute job
~Florian -
Problems with multiple idocs in one file ( Inbound file )
HI,
Thanks in Advance for your suggestions.. Highly appreciated.
We have problems with multiple IDocs in one file.
We are using XIB ( Amtrix ) as Middleware to receive the files.
Curretenly When the file contains one IDoc then there is no problem. IDoc is created and everything is ok.
If file contains two IDocs ( for example two messages ORDERS and DELVERY ) then it is creating two IDocs but both IDocs contains ORDERS plus DELIVERY segements information. That is the problem. Some how SAP unable to differentiate the IDocs in the file.. But it knows that how many idocs are there in the file..because it is creating exact number of idocs.
We are using TRFC port ... Do I need to change it to File port..
When we have more than one idoc do we need set any parameter in the file ...Thanks for the swift response. Always ideas are useful.
As of now , Middleware cannot split the file.
Thing is SAP is creating two Idocs with different message types. Problem is First IDoc contains ORDERS message type but also DELIVERY segments as well. Second IDoc with DELIVERY message tyoe but ORDERS segments as well... This is the problem... I think we are missing some field activation in file for EDIDC record.
As far as I know file port supports the number of IDocs in one file.. Hope TRFC port also supports that -
How to keep drop down option to one field in a ztable
hi all,
i created one ztable in this table i have two fields
fieldnames are matnr and indicator.
now my requirement is i have to keep drop down option for indicator field. when i click on this field it has to show three vales 'X' OR 'Y' OR 'Z'.
anybody can tell me how to do this.
thanks,
maheedharHi Maheedhar,
Declare the field value on the selection screen as shown below.
PARAMETERS: p_matnr LIKE ztable-field AS LISTBOX VISIBLE LENGTH 10.
and maintain those 3 values(X,Y and Z) at the domain level in that field of the Ztable.
If Problem solved REWARD points and close the thread otherwise reply.
Regards,
Mukesh Kumar
Message was edited by:
mukesh kumar -
How to use select statement for one field
I want to fetch the data from table and only one field , the below code i written is correct or not , because only for one field i used endselct if i am not giving endselect it is showing error. Please suggest me.
DATA : SBELN TYPE VBAK-VBELN.
parameters : s_vbeln type vbak-vbeln.
select vbeln from vbak into sbeln
where vbeln = P_VBELN.
endselect.Hi ,
As because you want single field but not single record so SELECT SINGLE is not correct .
You need to create a internal table with the field of VBELN.
Then you need to fetch the records from the VBELN field of table VBAK.
Try this code --
DATA : t_itab like table of VBAK-VBELN.
parameters : s_vbeln type vbak-vbeln.
select vbeln from vbak into table t_itab
where vbeln = s_VBELN.
Regards
Pinaki -
Problem with depreciation posting for an asset with a '0' net book value.
Hi,
I have a problem with depreciation posting on one asset. I think it should not be calculated and posted at all.
On 1st November 2010 (our Fiscal year starts on 1st November) there was acquisition posted to an asset and then it was reversed on the same day - so the net book value was '0'.
In AFAB depreciation run for April 2011 - it posted depreciatoion of 0.01 Euro, so now the book value is -0.01.
Do you know how this could have happened and what can I do to get the value of this asset back to 0?
Thank you,
KarolHi Murlidhar,
Thank you for your reply.
I just have one doubt - as depreciation of 0.01 Eur was posted in previous period leaving net value of asset equal to -0.01 Eur.
Shouldn't I get ritd of this asset value before I proceed with the steps you suggested?
I think it is not possible to reverse the depreciation - so I struggle to find a way to bring asset value back to zero.
Thank you,
Karol -
Problem with printing more than one page (ghostscript broken?)
Hello,
since one of the last package updates I have problems with printing more than one page. The print problems occurs as well with pdf files as well with printing websites. I use an actual KDE system with commercial turboprint printer driver. The first page always prints fine, but all consecutive pages are corrupted. As from a similar problem some months ago, I assume a broken ghostscript package. I tried to downgrade ghostscript to check that, but I get depency problems:
root@arch32 dieter]# ls -l /var/cache/pacman/pkg/ghostscript-*
-rw-r--r-- 1 root root 9906288 21. Mär 2010 /var/cache/pacman/pkg/ghostscript-8.71-3-i686.pkg.tar.xz
-rw-r--r-- 1 root root 11402624 8. Okt 22:44 /var/cache/pacman/pkg/ghostscript-9.00-1-i686.pkg.tar.xz
[root@arch32 dieter]# pacman -U /var/cache/pacman/pkg/ghostscript-8.71-3-i686.pkg.tar.xz
Löse Abhängigkeiten auf...
Suche nach Zwischen-Konflikten...
Fehler: Konnte den Vorgang (Kann Abhängigkeiten nicht erfüllen) nicht vorbereiten
:: libspectre: benötigt ghostscript>=9.00
[root@arch32 dieter]#
Anyone else having printing problems or a solution for my problem?
Thanks, DieterThis may not be related but I had a problem printing a pdf today whereby the second page got corrupted. The same pdf had printed fine several months ago. I realised that (long story) for some reason I had switched drivers (HP printer) from hpijs to hpcups. I installed the printer again as a "new" printer using the hpijs driver and it printed properly this time.
So it may be that the bug causes issues with some drivers. You could try an alternative driver for the printer as temporary workaround? -
Problem in MARA table for the field PSTAT
Dear all,
I am facing a problem with mara table , for a material it is showing "C" Classification status in MARA table in field PSTAT
But if im going to Transaction MM03 with the same material im not able to find any Classification view there(mm03).
Please help me why is this happening and what is the possible solution for this .
Many Thanks!!!
rewards will be given....Hi,
In relation to the issue, there are a number of reasons why the
classification view may not be displaying in MM02/MM03:
1. OMS2 customising settings for material type
2. OMT3 customising settings for the screen sequence
3. Authorisation object M_MATE_STA
If these settings are correct, kindly refer to the note 113966.
If there are inconsistencies in the material status in MARA and MARC
then report ZRMMMSTAT outlined in this note should resolve the issue.
Best regards
Erika -
Problems with Sybase Database for Collection Manager in SCE2020
We have problems with Sybase Database for Collection Manager in a SCE2020. The status is:
[root@btl-sce-cm log]# ~scmscm/setup/alive.sh STATUS OK [root@btl-sce-cm monitor]# ./monitor.sh -a -d Test: 01db_up.sh. Status: FAIL. Message: DB is not running Test: 02cm_up.sh. Status: PASS. Message: CM is running Test: 03free_db.sh. Status: PASS. Message: 99% free space in data db Test: 04free_log.sh. Status: PASS. Message: 99% free space in log db Test: 05cm_persistent_buffers.sh. Status: FAIL. Message: The following directory/ies have more than 500 files in them - JDBCAdapter TAAdapter [root@btl-sce-cm monitor]# ~scmscm/scripts/dbtables.sh /home/scmscm/scripts/common.sh: line 43: /root/cm/bin/cm: is a directory Executing query ... /home/scmscm/scripts/dbtables.sh: line 83: /root/cm/bin/cm: is a directory [root@btl-sce-cm monitor]# df -k Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/VolGroup00-LogVol00 149559596 138280700 3681636 98% / /dev/sda1 101086 20685 75182 22% /boot none 1036624 0 1036624 0% /dev/shm
We restored the Sybase database, but we have problems to access the database from Collection Manager and we can't obtain reports from SCE 2020.
Here is the info:
Problem Details: The SCA Reporter cannot generate Reports, the CM diagnostics show the following:
[root@btl-sce-cm ~]# ~scmscm/setup/alive.sh STATUS OK
[root@btl-sce-cm ~]# ~scmscm/scripts/dbfree.sh
Name % Data Free % Log Free
Database 55 99
[root@btl-sce-cm ~]# ~scmscm/scripts/dbtables.sh
/home/scmscm/scripts/common.sh: line 43: /root/cm/bin/cm: No such file or directory Executing query ...
/home/scmscm/scripts/dbtables.sh: line 83: /root/cm/bin/cm: No such file or directory
[root@btl-sce-cm ~]# ~scmscm/setup/monitor/monitor.sh -d -a
Test: 01db_up.sh. Status: FAIL. Message: DB is not running
Test: 02cm_up.sh. Status: PASS. Message: CM is running
Test: 03free_db.sh. Status: PASS. Message: 55% free space in data db
Test: 04free_log.sh. Status: PASS. Message: 99% free space in log db
Test: 05cm_persistent_buffers.sh. Status: FAIL. Message: The following directory/ies have more than 500 files in them - JDBCAdapter
Message was edited by: EMILIO MENCIATomo:
we have problems with our reports in Collection Manager again. We reboot the CM, but the problems continue.
This is the log of the CM. What can be the problem? Thanks tomo
Nov 3 11:49:18 localhost sybase_init: 00:00000:00012:2011/11/03 11:49:18.00 server Maximum number of User Accounts during current sample period: 3.
Nov 3 11:49:18 localhost sybase_init: 00:00000:00012:2011/11/03 11:49:18.00 server Maximum number of User Accounts since startup: 3.
Nov 3 11:49:18 localhost sybase_init: 00:00000:00012:2011/11/03 11:49:18.00 server Maximum Configured Number of User Connections during current sample period: 200.
Nov 3 11:49:18 localhost sybase_init: 00:00000:00012:2011/11/03 11:49:18.00 server Maximum Configured Number of User Connections since startup: 200.
Nov 3 11:49:18 localhost sybase_init: 00:00000:00012:2011/11/03 11:49:18.00 server Maximum Number of User Connections during current sample period: 15.
Nov 3 11:49:18 localhost sybase_init: 00:00000:00012:2011/11/03 11:49:18.00 server Maximum Number of User Connections since startup: 18.
Nov 3 11:49:18 localhost sybase_init: 00:00000:00012:2011/11/03 11:49:18.00 server Maximum number of user seat licenses used during current sample period: 1.
Nov 3 11:49:18 localhost sybase_init: 00:00000:00012:2011/11/03 11:49:18.00 server Maximum number of user seat licenses used since startup: 3.
Nov 9 19:21:49 localhost sybase_init: 00:00000:00069:2011/11/09 19:21:49.78 kernel Cannot send, host process disconnected: btllt0012 suid: 3
Nov 9 19:21:49 localhost sybase_init: 00:00000:00069:2011/11/09 19:21:49.86 kernel Cannot send, host process disconnected: btllt0012 suid: 3
Nov 9 19:21:49 localhost sybase_init: 00:00000:00069:2011/11/09 19:21:49.92 server Error: 1608, Severity: 18, State: 4
Nov 9 19:21:49 localhost sybase_init: 00:00000:00069:2011/11/09 19:21:49.94 server A client process exited abnormally, or a network error was encountered. Unless other errors occurred, continue processing normally.
Nov 9 19:21:49 localhost sybase_init: 00:00000:00069:2011/11/09 19:21:49.94 kernel extended error information: hostname: btllt0012 login: pqb_admin
Nov 9 19:41:10 localhost sybase_init: 00:00000:00086:2011/11/09 19:41:10.01 kernel Cannot send, host process disconnected: btllt0012 suid: 3
Nov 9 19:41:10 localhost sybase_init: 00:00000:00086:2011/11/09 19:41:10.01 kernel Cannot send, host process disconnected: btllt0012 suid: 3
Nov 9 19:41:10 localhost sybase_init: 00:00000:00086:2011/11/09 19:41:10.01 server Error: 1608, Severity: 18, State: 4
Nov 9 19:41:10 localhost sybase_init: 00:00000:00086:2011/11/09 19:41:10.01 server A client process exited abnormally, or a network error was encountered. Unless other errors occurred, continue processing normally.
Nov 9 19:41:10 localhost sybase_init: 00:00000:00086:2011/11/09 19:41:10.01 kernel extended error information: hostname: btllt0012 login: pqb_admin
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.16 server Error: 632, Severity: 20, State: 2
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.16 server Attempt to move memory with an incorrect length
of -794444483. Maximum allowed length is 16384.
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.16 kernel ************************************
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.16 kernel SQL causing error : =
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.16 kernel ************************************
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.16 kernel curdb = 4 tempdb = 2 pstat = 0x10000
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.16 kernel lasterror = 632 preverror = 0 transtate = 3
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.16 kernel curcmd = 0 program =
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.16 kernel extended error information: hostname: btl-sce-cm login: pqb_admin
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.25 kernel pc: 0x08d40ca3 pcstkwalk+0x31b(0x9a78fdbc, 0x9a78fb6c, 0x0000270f, 0x00000002, 0x9a78fb6c)
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.25 kernel pc: 0x08d40832 ucstkgentrace+0x13a(0x68a4006f, 0x00000002, 0x0000270f, (nil), (nil))
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.25 kernel pc: 0x08ce346d ucbacktrace+0x5d((nil), 0x00000001, (nil), 0x00000003, 0x20202020)
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.25 kernel pc: 0x082f19b8 terminate_process+0xa5c((nil), 0xffffffff, 0x9a7904c4, 0x08349a96, 0x00000278)
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.25 kernel pc: 0x08349acb close_network+0xf(0x00000002, 0x9ced1ea0, 0x9a790544, 0x0834902e, 0x00000006)
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.25 kernel pc: 0x08349aad hdl_default+0x45(0x00000006, 0x00000020, 0x00000014, 0x00000002, 0x9a7904fc)
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.25 kernel pc: 0x0834902e ex_raise+0x18a(0x00000006, 0x00000020, 0x00000014, 0x00000002, 0xd0a5bd3d)
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.25 kernel pc: 0x08357c9b memmove_error+0x27(0xd0a5bd3d, 0x00004000, 0xffffffff, 0x0896b8a4, 0x9e3d7cfc)
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.25 kernel pc: 0x0833e54e recvhost+0xbe(0x9a7909ec, 0xd0a5bd3d, 0x00000018, 0x9e44d5d8, 0x9e44d52c)
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.25 kernel pc: 0x08339160 recvchars+0x74(0x9ced2a1c, 0xd0a5bd3d, 0x9a7909ec, 0x000000ff, (nil))
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.25 kernel pc: 0x0831e237 tdsrecv_declare+0x207(0x00000010, 0x9cecb914, 0x9a7911b4, 0x0832dd5f, (nil))
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.25 kernel [Handler pc: 0x0x0863eca4 ut_handle installed by the following function:-]
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.25 kernel pc: 0x0832e3a9 conn_hdlr+0xe49(0x00000030, 0x9a7911c8, 0x895eed31, (nil), (nil))
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.25 kernel pc: 0x08d33984 kpexit((nil), (nil), (nil), 0x9a020900, 0x00000070)
Nov 23 08:35:23 localhost sybase_init: 00:00000:00011:2011/11/23 08:35:23.25 kernel end of stack trace, spid 11, kpid 1755578479, suid 3
AFTER RESTART
ov 28 09:19:06 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:06.50 kernel SySAM: Checked out license for 1 ASE_CORE (2010.04040/permanent/148F 853E 92A9 E302).
Nov 28 09:19:06 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:06.50 kernel This product is licensed to: CISCO SYSTEMS, and OEM license from Sybase, Inc.
Nov 28 09:19:06 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:06.50 kernel Checked out license ASE_CORENov 28 09:19:06 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:06.50 kernel Adaptive Server Enterprise (Small Business Edition)
Nov 28 09:19:07 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.02 kernel Using config area from primary master device.
Nov 28 09:19:07 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.17 kernel Locking shared memory into physical memory.
Nov 28 09:19:07 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.22 kernel Internal run-time model set for Linux - Native
Nov 28 09:19:07 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.26 kernel Using 1024 file descriptors.
Nov 28 09:19:07 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.26 kernel Adaptive Server Enterprise/15.0.2/EBF 14331/P/Linux Intel/Linux 2.4.21-47.ELsmp i686/ase1502/2486/32-bit/FBO/Thu May 24 08:15:50 2007
Nov 28 09:19:07 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.26 kernel Confidential property of Sybase, Inc.Nov 28 09:19:07 localhost messagebus: messagebus startup succeeded
Nov 28 09:19:07 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.26 kernel Copyright 1987, 2007
Nov 28 09:19:08 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.26 kernel Sybase, Inc. All rights reserved.
Nov 28 09:19:08 localhost rhnsd: Red Hat Network Services Daemon running with check_in interval set to 240 minutes.
Nov 28 09:19:08 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.26 kernel Unpublished rights reserved under U.S. copyright laws.
Nov 28 09:19:08 localhost rhnsd: Red Hat Network Services Daemon running with check_in interval set to 240 minutes.
Nov 28 09:19:08 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.26 kernel
Nov 28 09:19:08 localhost rhnsd[27742]: Red Hat Network Services Daemon starting up.
Nov 28 09:19:08 localhost rhnsd: rhnsd startup succeeded
Nov 28 09:19:08 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.26 kernel This software contains confidential and trade secret information of Sybase,
Nov 28 09:19:09 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.26 kernel Inc. Use, duplication or disclosure of the software and documentation by
Nov 28 09:19:09 localhost cups-config-daemon: cups-config-daemon startup succeeded
Nov 28 09:19:09 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.26 kernel the U.S. Government is subject to restrictions set forth in a license
Nov 28 09:19:09 localhost haldaemon: haldaemon startup succeeded
Nov 28 09:19:09 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.26 kernel agreement between the Government and Sybase, Inc. or other written
Nov 28 09:19:09 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.26 kernel agreement specifying the Government's rights to use the software and any
Nov 28 09:19:10 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.26 kernel applicable FAR provisions, for example, FAR 52.227-19.
Nov 28 09:19:10 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.26 kernel Sybase, Inc. One Sybase Drive, Dublin, CA 94568, USA
Nov 28 09:19:10 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.26 kernel Using /opt/sybase as the 'SYBASE' environment variable, found during startup.
Nov 28 09:19:10 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.26 kernel Using OCS-15_0 as the 'SYBASE_OCS' environment variable, found during startup.
Nov 28 09:19:10 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.29 kernel ASE booted on Linux release 2.6.9-78.0.13.ELsmp version #1 SMP Wed Jan 7 17:52:47 EST 2009.
Nov 28 09:19:10 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.29 kernel Using '/opt/sybase/ASE-15_0/pqbsyb1.cfg' for configuration information.
Nov 28 09:19:11 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.29 kernel Logging ASE messages in file '/opt/sybase/ASE-15_0/install/pqbsyb1.log'.
Nov 28 09:19:11 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.29 kernel Platform TCP network is forced to IPv4-only.
Nov 28 09:19:11 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.32 kernel ASE booted with TCP_NODELAY enabled.
Nov 28 09:19:11 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.35 kernel SSL Plus v5.0.4 security modules loaded successfully.
Nov 28 09:19:11 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.35 kernel Network and device connection limit is 1009.
Nov 28 09:19:11 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.65 server Number of blocks left for proc headers: 12760.
Nov 28 09:19:11 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:07.65 server Proc header memory allocated 2552 pages for each per engine cache
Nov 28 09:19:11 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:08.16 server Size of the 16K memory pool: 307200 Kb
Nov 28 09:19:11 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:08.16 server Memory allocated for the default data cache cachelet 1: 307200 Kb
Nov 28 09:19:12 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:08.16 kernel Enabling Linux Native Kernel asynchronous disk I/O strategy.
Nov 28 09:19:12 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:08.16 kernel Initializing virtual device 0, '/opt/sybase/data/master.dat' with dsync 'on'.
Nov 28 09:19:12 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:08.16 kernel Virtual device 0 started using asynchronous i/o.
Nov 28 09:19:12 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:08.17 server Loaded default Unilib conversion handle.
Nov 28 09:19:12 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:08.56 kernel Worker Thread Manager is not enabled for use in ASE.
Nov 28 09:19:12 localhost fstab-sync[28568]: removed all generated mount points
Nov 28 09:19:12 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:08.58 kernel Either the config parameter 'use security services' is set to 0, or ASE does not support use of external security mechanisms on this platform. The Security Control Layer will not be initialized. No external security mechanisms will be supported.
Nov 28 09:19:13 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:08.58 kernel Unix interval timer enabled for sysclk interrupts.
Nov 28 09:19:13 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:08.85 kernel Begin processing to generate RSA keypair.
Nov 28 09:19:13 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:08.94 kernel Completed processing to generate RSA keypair.
Nov 28 09:19:13 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:08.94 kernel Encryption provider initialization succeeded on engine 0.
Nov 28 09:19:13 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:08.94 kernel engine 0, os pid 27618 online
Nov 28 09:19:13 localhost sybase_init: 00:00000:00000:2011/11/28 09:19:08.94 server No active traceflags
Nov 28 09:19:13 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:09.08 kernel libomni1 - Component Integration Services: usin
g 'Sybase Client-Library/15.0/P-EBF14165 ESD #7/DRV.15.0.3/Linux Intel/Linux 2.4.21-47.0.1.ELsmp i686/BUILD1500-093/OPT/Wed Dec 13 21:46:44 2006'
Nov 28 09:19:13 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:09.10 server Opening Master Database ...
Nov 28 09:19:14 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:09.66 server Loading ASE's default sort order and character set
Nov 28 09:19:14 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:09.83 server Recovering database 'master'.
Nov 28 09:19:14 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:09.92 server Started estimating recovery log boundaries for database 'master'.
Nov 28 09:19:14 localhost kernel: mtrr: type mismatch for d8000000,2000000 old: uncachable new: write-combining
Nov 28 09:19:14 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:09.96 server Database 'master', checkpoint=(1831, 20), first=(1831, 20), last=(1831, 32).
Nov 28 09:19:14 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:09.96 server Completed estimating recovery log boundaries for database 'master'.
Nov 28 09:19:14 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:09.96 server Started ANALYSIS pass for database 'master'.
Nov 28 09:19:14 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:09.96 server Completed ANALYSIS pass for database 'master'.
Nov 28 09:19:14 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:09.96 server Log contains all committed transactions until 2011/11/27 13:28:54.20 for database master.
Nov 28 09:19:14 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:09.96 server Started REDO pass for database 'master'. The total number of log records to process is 13.
Nov 28 09:19:14 localhost fstab-sync[28716]: added mount point /media/cdrecorder for /dev/scd0
Nov 28 09:19:14 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:10.12 server Redo pass of recovery has processed 4 committed and 0 aborted transactions.
Nov 28 09:19:14 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:10.12 server Completed REDO pass for database 'master'.
Nov 28 09:19:14 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:10.12 server Recovery of database 'master' will undo incomplete nested top actions.
Nov 28 09:19:14 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:10.12 server Started recovery checkpoint for database 'master'.
Nov 28 09:19:15 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:10.38 server Completed recovery checkpoint for database 'master'.
Nov 28 09:19:15 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:10.56 server Started filling free space info for database 'master'.
Nov 28 09:19:15 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:11.24 server Completed filling free space info for database 'master'.
Nov 28 09:19:15 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:11.26 server Started cleaning up the default data cache for database 'master'.
Nov 28 09:19:15 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:11.26 server Completed cleaning up the default data cache for database 'master'.
Nov 28 09:19:15 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:11.42 server Checking external objects.
Nov 28 09:19:15 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:12.40 server Database 'master' is now online.
Nov 28 09:19:15 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:12.40 server The transaction log in the database 'master' will use I/O size of 16 Kb.
Nov 28 09:19:15 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:12.67 server Warning: ASE_HA has no valid license and therefore is not initialized.
Nov 28 09:19:15 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:12.73 server server name is 'pqbsyb1'
Nov 28 09:19:15 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:12.90 server Activating disk 'sysprocsdev' of size 126976 KB.
Nov 28 09:19:15 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:12.95 kernel Initializing virtual device 1, '/opt/sybase/data/sysprocs.dat' with dsync 'on'.
Nov 28 09:19:16 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:12.95 kernel Virtual device 1 started using asynchronous i/o.
Nov 28 09:19:16 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:12.95 server Activating disk 'systemdbdev' of size 49152 KB.
Nov 28 09:19:16 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:12.99 kernel Initializing virtual device 2, '/opt/sybase/data/sybsysdb.dat' with dsync 'on'.
Nov 28 09:19:16 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:12.99 kernel Virtual device 2 started using asynchronous i/o.
Nov 28 09:19:16 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:12.99 server Activating disk 'apricot_data1' of size 35082660 KB.
Nov 28 09:19:16 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.02 kernel Initializing virtual device 3, '/opt/sybase_data/apticotdata.dat' with dsync 'off'.
Nov 28 09:19:16 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.02 kernel Virtual device 3 started using asynchronous (with DIRECTIO) i/o.
Nov 28 09:19:16 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.02 server Activating disk 'apricot_log1' of size 2980002 KB.
Nov 28 09:19:17 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.04 kernel Initializing virtual device 4, '/opt/sybase_data/apricotlog.dat' with dsync 'off'.
Nov 28 09:19:17 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.04 kernel Virtual device 4 started using asynchronous (with DIRECTIO) i/o.
Nov 28 09:19:17 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.04 server Activating disk 'tempdb_dev' of size 1048576 KB.
Nov 28 09:19:17 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.09 kernel Initializing virtual device 5, '/opt/sybase_data/tempdb.dat' with dsync 'off'.
Nov 28 09:19:17 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.09 kernel Virtual device 5 started using asynchronous i/o.
Nov 28 09:19:18 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.30 server Recovering database 'sybsystemdb'.
Nov 28 09:19:18 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.32 server Started estimating recovery log boundaries for database 'sybsystemdb'.
Nov 28 09:19:18 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.40 server Database 'sybsystemdb', checkpoint=(843, 106), first=(843, 106), last=(843, 106).
Nov 28 09:19:18 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.40 server Completed estimating recovery log boundaries for database 'sybsystemdb'.
Nov 28 09:19:19 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.40 server Started ANALYSIS pass for database 'sybsystemdb'.
Nov 28 09:19:19 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.40 server Completed ANALYSIS pass for database 'sybsystemdb'.
Nov 28 09:19:19 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.40 server Log contains all committed transactions until 2011/10/25 09:55:36.72 for database sybsystemdb.
Nov 28 09:19:20 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.40 server Started REDO pass for database 'sybsystemdb'. The total number of log records to process is 1.
Nov 28 09:19:20 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.41 server Completed REDO pass for database 'sybsystemdb'.
Nov 28 09:19:20 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.41 server Recovery of database 'sybsystemdb' will undo incomplete nested top actions.
Nov 28 09:19:20 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.41 server Started recovery checkpoint for database 'sybsystemdb'.
Nov 28 09:19:21 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.46 server Completed recovery checkpoint for database 'sybsystemdb'.
Nov 28 09:19:21 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.58 server Started filling free space info for database 'sybsystemdb'.
Nov 28 09:19:21 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.69 server Completed filling free space info for database 'sybsystemdb'.
Nov 28 09:19:21 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.70 server Started cleaning up the default data cache for database 'sybsystemdb'.
Nov 28 09:19:21 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.70 server Completed cleaning up the default data cache for database 'sybsystemdb'.
Nov 28 09:19:22 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.70 server Boot Count: 13
Nov 28 09:19:22 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:13.81 server Checking external objects.
Nov 28 09:19:22 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:14.18 server The transaction log in the database 'sybsystemdb' will use I/O size of 16 Kb.
Nov 28 09:19:22 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:15.59 server Completed recovery checkpoint for database 'model'.
Nov 28 09:19:22 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:15.70 server Started filling free space info for database 'model'.
Nov 28 09:19:23 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:15.72 server Completed filling free space info for database 'model'.
Nov 28 09:19:23 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:15.74 server Started cleaning up the default data cache for database 'model'.
Nov 28 09:19:23 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:15.74 server Completed cleaning up the default data cache for database 'model'.
Nov 28 09:19:23 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:15.77 server Checking external objects.
Nov 28 09:19:23 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:16.07 server The transaction log in the database 'model' will use I/O size of 16 Kb.
Nov 28 09:19:24 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:16.08 server Database 'model' is now online.
Nov 28 09:19:24 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:16.08 server The logical pagesize of the server is 16 Kb.
Nov 28 09:19:24 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:16.08 server 0 dump conditions detected at boot time
Nov 28 09:19:24 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:16.08 server Clearing temp db
Nov 28 09:19:24 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:18.37 server Processed 27 allocation unit(s) out of 262 units (allocation page 6656). 10% completed.
Nov 28 09:19:25 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:19.51 server Processed 53 allocation unit(s) out of 262 units (allocation page 13312). 20% completed.
Nov 28 09:19:25 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:20.81 server Processed 79 allocation unit(s) out of 262 units (allocation page 19968). 30% completed.
Nov 28 09:19:25 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:22.19 server Processed 105 allocation unit(s) out of 262 units (allocation page 26624). 40% completed.
Nov 28 09:19:25 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:23.52 server Processed 131 allocation unit(s) out of 262 units (allocation page 33280). 50% completed.
Nov 28 09:19:25 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:24.96 server Processed 158 allocation unit(s) out of 262 units (allocation page 40192). 60% completed.
Nov 28 09:19:27 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:27.08 server Processed 184 allocation unit(s) out of 262 units (allocation page 46848). 70% completed.
Nov 28 09:19:29 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:29.94 server Processed 210 allocation unit(s) out of 262 units (allocation page 53504). 80% completed.
Nov 28 09:19:32 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:32.01 server Processed 236 allocation unit(s) out of 262 units (allocation page 60160). 90% completed.
Nov 28 09:19:32 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:32.57 server Processed 262 allocation unit(s) out of 262 units (allocation page 66816). 100% completed.
Nov 28 09:19:32 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:32.84 server The transaction log in the database 'tempdb' will use I/O size of 16 Kb.
Nov 28 09:19:32 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:32.86 server Database 'tempdb' is now online.
Nov 28 09:19:33 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:33.06 server Recovering database 'sybsystemprocs'.
Nov 28 09:19:33 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:33.08 server Started estimating recovery log boundaries for database 'sybsystemprocs'.
Nov 28 09:19:33 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:33.14 server Database 'sybsystemprocs', checkpoint=(6333, 93), first=(6333, 93), last=(6333, 93).
Nov 28 09:19:33 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:33.14 server Completed estimating recovery log boundaries for database 'sybsystemprocs'.
Nov 28 09:19:33 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:33.14 server Started ANALYSIS pass for database 'sybsystemprocs'.
Nov 28 09:19:33 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:33.14 server Completed ANALYSIS pass for database 'sybsystemprocs'.
Nov 28 09:19:33 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:33.14 server Log contains all committed transactions until 2011/10/25 09:55:36.72 for database sybsystemprocs.
Nov 28 09:19:33 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:33.14 server Started REDO pass for database 'sybsystemprocs'. The total number of log records to process is 1.
Nov 28 09:19:33 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:33.14 server Completed REDO pass for database 'sybsystemprocs'.
Nov 28 09:19:33 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:33.14 server Recovery of database 'sybsystemprocs' will undo incomplete nested top actions.
Nov 28 09:19:33 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:33.14 server Started recovery checkpoint for database 'sybsystemprocs'.
Nov 28 09:19:33 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:33.18 server Completed recovery checkpoint for database 'sybsystemprocs'.
Nov 28 09:19:33 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:33.20 server Started filling free space info for database 'sybsystemprocs'.
Nov 28 09:19:33 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:33.39 server Completed filling free space info for database 'sybsystemprocs'.
Nov 28 09:19:33 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:33.40 server Started cleaning up the default data cache for database 'sybsystemprocs'.
Nov 28 09:19:33 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:33.40 server Completed cleaning up the default data cache for database 'sybsystemprocs'.
Nov 28 09:19:33 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:33.41 server Checking external objects.
Nov 28 09:19:34 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:34.04 server The transaction log in the database 'sybsystemprocs' will use I/O size of 16 Kb.
Nov 28 09:19:34 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:34.09 server Database 'sybsystemprocs' is now online.
Nov 28 09:19:34 localhost sybase_init: 00:00000:00008:2011/11/28 09:19:34.23 kernel network name localhost.localdomain, interface IPv4, address 10.1.1.33, type tcp, port 4100, filter NONE
Nov 28 09:19:34 localhost sybase_init: 00:00000:00008:2011/11/28 09:19:34.23 kernel network name localhost.localdomain, interface IPv4, address 127.0.0.1, type tcp, port 4100, filter NONE
Nov 28 09:19:34 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:34.74 server Recovery has tuned the size of '128K' pool in 'default data cache' to benefit recovery performance. The original configuration will be restored at the end of recovery.
Nov 28 09:19:34 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:34.74 server Recovery has tuned the size of '16K' pool in 'default data cache' to benefit recovery performance. The original configuration will be restored at the end of recovery.
Nov 28 09:19:34 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:34.74 server Recovery has tuned the '128K' pool in 'default data cache' by changing its 'local async prefetch limit' from 10 to 80. The original configuration will be restored at the end of recovery.
Nov 28 09:19:34 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:34.74 server Recovery has tuned the '16K' pool in 'default data cache' by changing its 'local async prefetch limit' from 10 to 80. The original configuration will be restored at the end of recovery.
Nov 28 09:19:34 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:34.74 server The server will recover databases serially.
Nov 28 09:19:34 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:34.81 server Recovering database 'apricot'.
Nov 28 09:19:34 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:34.82 server Started estimating recovery log boundaries for database 'apricot'.
Nov 28 09:19:34 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:34.89 server Database 'apricot', checkpoint=(2358271, 12), first=(2358271, 11), last=(2358275, 172).
Nov 28 09:19:34 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:34.89 server Completed estimating recovery log boundaries for database 'apricot'.
Nov 28 09:19:34 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:34.89 server Started ANALYSIS pass for database 'apricot'.
Nov 28 09:19:34 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:34.89 server Completed ANALYSIS pass for database 'apricot'.
Nov 28 09:19:34 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:34.89 server Log contains all committed transactions until 2011/11/28 09:16:20.68 for database apricot.
Nov 28 09:19:34 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:34.89 server Started REDO pass for database 'apricot'. The total number of log records to process is 846.
Nov 28 09:19:35 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:35.10 server Redo pass of recovery has processed 2 committed and 138 aborted transactions.
Nov 28 09:19:35 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:35.10 server Completed REDO pass for database 'apricot'.
Nov 28 09:19:35 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:35.11 server Recovery of database 'apricot' will undo incomplete nested top actions.
Nov 28 09:19:35 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:35.11 server Started recovery checkpoint for database 'apricot'.
Nov 28 09:19:35 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:35.29 server Completed recovery checkpoint for database 'apricot'.
Nov 28 09:19:35 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:35.35 server Started filling free space info for database 'apricot'.
Nov 28 09:19:35 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:35.47 server Completed filling free space info for database 'apricot'.
Nov 28 09:19:35 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:35.51 server Started cleaning up the default data cache for database 'apricot'.
Nov 28 09:19:35 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:35.51 server Completed cleaning up the default data cache for database 'apricot'.
Nov 28 09:19:35 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:35.55 server Checking external objects.
Nov 28 09:19:36 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:36.30 server The transaction log in the database 'apricot' will use I/O size of 16 Kb.
Nov 28 09:19:36 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:36.31 server Database 'apricot' is now online.
Nov 28 09:19:36 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:36.34 server Recovery has restored the value of 'local async prefetch limit' for '128K' pool in 'default data cache' from '80' to 'DEFAULT'.
Nov 28 09:19:36 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:36.34 server Recovery has restored the value of 'local async prefetch limit' for '16K' pool in 'default data cache' from '80' to 'DEFAULT'.
Nov 28 09:19:36 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:36.40 server Recovery has restored the original size for '128K' pool and '16K' pool in 'default data cache'.
Nov 28 09:19:36 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:36.44 server Recovery complete.
Nov 28 09:19:36 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:36.46 server ASE's default unicode sort order is 'binary'.
Nov 28 09:19:36 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:36.46 server ASE's default sort order is:
Nov 28 09:19:36 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:36.46 server 'bin_iso_1' (ID = 50)
Nov 28 09:19:36 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:36.46 server on top of default character set:
Nov 28 09:19:36 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:36.46 server 'iso_1' (ID = 1).
Nov 28 09:19:36 localhost sybase_init: 00:00000:00001:2011/11/28 09:19:36.46 server Master device size: 240 megabytes, or 122880 virtual pages. (A virtual page is 2048 bytes.)
Nov 28 09:34:40 localhost sybase_init: 00:00000:00109:2011/11/28 09:34:40.95 kernel Cannot send, host process disconnected: btl-sce-cm suid: 3
Nov 28 09:34:40 localhost sybase_init: 00:00000:00109:2011/11/28 09:34:40.95 server Error: 1608, Severity: 18, State: 3
Nov 28 09:34:40 localhost sybase_init: 00:00000:00109:2011/11/28 09:34:40.95 server A client process exited abnormally, or a network error was encountered. Unless other errors occurred, continue processing normally.
Nov 28 09:34:40 localhost sybase_init: 00:00000:00109:2011/11/28 09:34:40.95 kernel extended error information: hostname: btl-sce-cm login: pqb_admin
Nov 28 09:38:27 localhost sshd(pam_unix)[29201]: session opened for user root by (uid=0) -
Problem with starting more than one SwingWorker
Hello
I wonder if anyone could tell me if there are known problems with starting more than one SwingWorker thread at once?
In response to an action the user performs, I need to obtain several lists of things from the server. This includes a couple of server-calls, and I want to do the server calls in a thread outside the awt-event thread. So I start a couple of SwingWorker-threads. This works fine sometimes, but not always. Sometimes code in some of the SwingWorkers finished method does not update the ui. I can see that the correct calls are made, but the ui is still not updated correctly. The problem seems to be related to the sequence of when the different thread are finished. For instance, if the sequence is like this:
SwingWorker1.construct
SwingWorker2.construct
SwingWorker1.finished
SwingWorker2.finished
Things go fine, but if the sequence is:
SwingWorker1.construct
SwingWorker1.finished
SwingWorker2.construct
SwingWorker2.finished
the ui-updates in SwingWorker1.finished is not done correctly.
Can anyone help me with this?This is the point:
In one SwingWorker thread you have 1 construct method, and 1 finish method - which are both invoked once.
Therefore you only have one opportunity to update the gui in that thread. This forces you to use many threads if you want regular updates, which I try to avoid.
Therefore, the solution!
Have a loop in the construct method that executes the algorithm accordingly, updating the gui accordingly at regular times, maintaining just the 1 thread - becomes easier and nicer for the programmer and the JVM.
The finish method in this case is to update the gui when all iterations are finished.
There is nothing wrong with this. Just because you have a finish method that is called in the event-dispatching thread doesn't mean that all your update code must be in there.
What you MUST ensure is that ALL your update code is executed in the event-dispatching thread, that is the most important thing. After all, SwingWorker is just a helper class, not the gospel template of how to update a gui.
Maybe you are looking for
-
HP Envy M7-J020DX (17inch Touchsmart​) touchpad is too sensitive
I prefer to use the touchpad when sitting with the pc. This is a new one, purchased yesterday. It is handy to be able to tap the touchpad to select what the arrow is on....even more so with this new pc. With only "clicking" selected in propertie
-
Help with read only text field
trying to refine a KW form I don't want user to enter value in a box so I made it read only. $<input name="proptax" type="text" size="10" readonly="true"> Validation says: "true" is not valid value for the "readonly" attribute in any of the currentl
-
Hi, I have 2 questions 1) Can I adjust the brightness of my 2710 display? 2) How can I stop the display from turning off, especially when I am trying to read a long SMS or a text file. It gets very annoying if I have to turn it on again (and again, a
-
No audio on my videos???
I just bought two music videos from iTunes and both skip horribly and neither have any audio. They're from the American Idol Gives Back, and I'm just trying to play them directly on the computer. Is anyone else having this problem/knows how to fix it
-
Hi all, When calling the OCIColAppend function, I get an error. OCIErrorGet and OCIExtProcRaiseExcp tell me that the error is ORA-21500: internal error code, arguments: [], [], [], [], [], [], [], [] The error reference tells me Cause: This is the ge