SUMIT PARKASH - WARNING!!
Dear moderators and users,
I can see that this Sumit is trying to misuse this Forum. I guess he's preparing for an interview and is trying to gather information for all his questions.
1) All the questions he's asking are already answered in some threads earlier. Instead of searching for them, he creates new threads.
2) The following are the threads raised by him today alone.
smartform
ABAP Development » ABAP, General, Apr 11, 2007 1:32 AM
what is diff between table and template in smartform?
smartform
ABAP Development » ABAP, General, Apr 11, 2007 1:30 AM
in smartform i want to transfer the data from printprogram to smartform?how can i do?
call transaction
ABAP Development » ABAP, General, Apr 11, 2007 1:27 AM
how we can know the data is updated in call transaction?
lsmw
ABAP Development » ABAP, General, Apr 11, 2007 1:13 AM
plzz tell me the techniques in lsmw
updation
ABAP Development » ABAP, General, Apr 11, 2007 1:12 AM
how can i know the updation is sucessfull?
call transaction
ABAP Development » ABAP, General, Apr 11, 2007 1:11 AM
how we can handle errors in call transaction? could u plzz tell me?
alv report
ABAP Development » ABAP, General, Apr 11, 2007 1:03 AM
how can i handle a button in alv report ,like in which event? could u plzz tell me?
event
ABAP Development » ABAP, General, Apr 11, 2007 1:01 AM
what is the use of at-selection screen output,at-selection screen on field and at selection?could u ...
Though many members have sincerely answered the questions, he has not closed the thread or awarded points to them. This sends out a wrong signal that none of the answers are correct.
3) He opens new threads for the same question again and again.
e.g.
smartform
ABAP Development » ABAP, General, Apr 11, 2007 1:32 AM
smartform
ABAP Development » ABAP, General, Apr 11, 2007 1:30 AM
If he continues this, then we must start ignoring his questions.
Moderators, please make a note of this.
Thanks,
Sam
I think Sumit is now 'sheik rahimul' .
Similar Messages
-
Discoverer report does not sum up the column
Hi All,
I am running the discoverer report from discoverer desktop and was
trying to use the sum function to sum the total amount of the report.
The sum function does not work and it only display Cell
Sum: (blank) with no actual data.
When i checked the report details some columns are calculated based on the columns which i want to sum up.
Any ideas please share with me
Thanks in advance.b) What is the difference between sum and cell sum? Well, I certainly won't claim to be a Discoverer guru. From what little I have seen, the practical result is not any difference really between the two. SUM of a calculated row is adding up the calculation to the total. Whereas cell sum is like adding up the individual values behind the calculation you see. The distinction makes more sense when you have SUM DISTINCT and CELL SUM DISTINCT being involved. Then you will see a difference in the calculated total. But for SUM and CELL SUM itself, I have not seen any difference between the two, but I am still pretty new to Discoverer.
e) Aggregate field from a folder. Well, this may be one where you have to play around with your own data to understand. Let me try to give you a simple example. Let's say you have a sales table with 100 rows. You have sales data for 5 cities, and each city has 20 rows of sales history. If you pick Sales Dollars Detail and City Name for your workbook and run, you will get 100 rows in your result (complete detail listing). So that is what happens with no aggregation. Now, instead of doing Sales Dollars Detail, you pick Sales Dollars Sum (the same thing as saying SUM(Sales Dollars) in an SQL statement). Run the workbook. You will now get 5 rows of data, instead of 100 rows of data. You will get one row for each city. If you look at the SQL that Discoverer generates, you will see that it has now done a GROUP BY in the SQL statement. Notice I have not said anything about DISTINCT (just trying to keep things simple).
Now, lets say you do a workbook for City, Part Number, and Sales Dollars Sum. Run the workbook. You get a summarized result (say maybe 10 rows of summary data this time). If you look at the Discoverer SQL, the GROUP BY is now by city and part number, automatically doing that because you picked the SUM version of sales dollars.
Now lets say you add Sales Units Detail to the workbook. Discoverer will give you a warning message that you are have both an aggregate and a non-aggregate and that you may end up with unpredictable results. Run the workbook. You will be back to 100 rows, because you specified sales units in detail.
Most of the time I do not want to see detail rows in a workbook. So most of the time I am picking the SUM aggregate for an amount item.
Hope this explains things a bit. Sounds like maybe you need to take the Discoverer Create Queries and Reports class. Would help you understand these things better. Good luck.
John Dickey -
Connection loss SUM GUI to SL Controller
Hi experts,
I am experiencing an issue that I need to resolve. It is that I lose the connection from SUM GUI (locally) to the SL Controller running on the remote server.
Currently I am doing an upgrade and after some time, e.g. when I have an error and don't notice it immediately, I get a warning message.
"The connection to the SL Controller is down.
The SDT GUI will reestablish the connection, when possible."
On the server I get the following error message:
May 26, 2014 7:49:47 AM [Error]: com.sap.sdt.engine.core.communication.FactoryAlreadyRegisteredException: Factory for key 'com.sap.sdt.engine.core.com
munication.FactoryKey@13c2c5f4' is already registered.
May 26, 2014 7:49:47 AM [Error]: com.sap.sdt.engine.core.communication.FactoryAlreadyRegisteredException: Factory for key 'com.sap.sdt.engine.core.com
munication.FactoryKey@13c2c5f4' is already registered.
May 26, 2014 7:49:47 AM [Error]: com.sap.sdt.server.core.ServerException
May 26, 2014 7:49:51 AM [Warning]: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Broken pipe
May 26, 2014 7:49:51 AM [Warning]: Error while closing connection.
May 26, 2014 7:49:51 AM [Error]: com.sap.sdt.engine.core.communication.SendException: Error while sending data.
Network input/output exception has occurred: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Broken pipe
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Broken pipe
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Broken pipe
javax.net.ssl.SSLException: java.net.SocketException: Broken pipe
java.net.SocketException: Broken pipe
May 26, 2014 7:49:51 AM [Error]: com.sap.sdt.engine.core.communication.SendException: Error while sending data.
Network input/output exception has occurred: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Broken pipe
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Broken pipe
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Broken pipe
javax.net.ssl.SSLException: java.net.SocketException: Broken pipe
java.net.SocketException: Broken pipe
My current assumption is that the firewall drops the connection due to inactivity.
The main issue then is:
although I restart my local SUM GUI and reconnect to the server I can't continue the upgrade because the Buttons are "unclickable" (grey).
Currently I always had to restart SUM including the services on ther server (SL controller).
My question is:
what can I do to avoid this connection loss?
Is there a option to set a "keep alive" to the network connection?
so that the firewall does not validate the connection as idle and drops?
Unfortunately we can't do much about the firewall settings due to security restrictions.
I would be glad to hear from you.
Kind regards,
NiklasHi Mathias,
I got an answer from SAP. There is no option that can be executed with STARTUP to solve this.
I already proposed to forward this request to the dev team at SAP
What I am currently doing is:
Start the GUI and keep it open only if I know if there is are Actions coming next, otherwise I close it (only the GUI) and when some time has passed by I logon again to check.
This is a really bad solution, but currently the only one.
Regards,
Niklas -
Hi all,
I'v set the Unlimited Overdelivery Allowed indicator at the PO.
As client requirement, at the reception, I need to give a warning message in order to warn the user that he's receiving more than it's set on the PO.
Can you give me a help on this?
Many thanks,
Afonso Pereirayou need to take help of your technical team member (ABAP)
During MIGO your code will fist validate if EKPO-UEBTK = X then
If it is a first GR:-
your Abaper need to validate EKPO-MENGE with GR Qty.
If GR Qty is Greater than EKPO-MENGE then it should display Warning Message
If you have already posted few Partial GR and creating another new one
then (Sum of EKPO-WEMNG + MIGO Qty) is greater than EKPO-MENGE then system should give Warning Message
Hope this helps you -
SUM issue at phase specify Credentials on PI7.4 dual STACK
Hello SAP,
We are planning to apply SFTP addon using SUM .
We are getting error at phase - specify Credentials
Pls check the below error log.
An error has occurred during the execution of the Determine system release step.
You can find more information in the file
To troubleshoot the problem use the provided information. An SAP Note may provide a solution to this problem. Search for SAP Notes with the following keywords:
DETECT input_credentials input-credentials-dialog determine-engine-release com.sap.sdt.j2ee.services.servicesimpl.EngineInfoService class com.sap.sdt.j2ee.tools.releasedetection.EngineReleaseDetectionException
VERSION_ACTION_VERSION_NULL_16.ERR:
/usr/sap/SID/DVEBMGS00/j2ee/cluster/bootstrap/scripts/version.sh[10]: /usr/sap/SID/DVEBMGS00/j2ee/cluster/bootstrap/scripts/launcher.sh: cannot execute
TroubleTicket_16.txt:
Trouble Ticket Report
Update to n/a
SID................: n/a
Hostname...........: n/a
Install directory..: /usr/sap/SID
SUM directory......: /SUM/sdt
Database...........: n/a
Operating System...: UNX
JDK version........: 1.6.0_81 SAP AG
SUM version........: 1.0.11.1
Source release.....: n/a
Target release.....: n/a
ABAP stack present.: true
An error has occurred during the execution of the Determine system release step with action input_credentials. Service com.sap.sdt.j2ee.services.servicesimpl.EngineInfoService failed with the following message:
Could not detect AS Java release.
You can find more information in the files /SUM/sdt/log/SUM/DETERMINE-ENGINE-RELEASE_16.LOG and ProcessOverview.html.
Use the information provided to trouble-shoot the problem. There might be an OSS note providing a solution to this problem. Search for OSS notes with the following search terms:
DETECT,input_credentials,input-credentials-dialog,determine-engine-release,com.sap.sdt.j2ee.services.servicesimpl.EngineInfoService,class com.sap.sdt.j2ee.tools.releasedetection.EngineReleaseDetectionException
DETERMINE-ENGINE-RELEASE_16.LOG:
<!--LOGHEADER[START]/-->
<!--HELP[Manual modification of the header may cause parsing problem!]/-->
<!--LOGGINGVERSION[2.0.7.1006]/-->
<!--NAME[/SUM/sdt/log/SUM/DETERMINE-ENGINE-RELEASE_16.LOG]/-->
<!--PATTERN[DETERMINE-ENGINE-RELEASE_16.LOG]/-->
<!--FORMATTER[com.sap.tc.logging.TraceFormatter(%d [%6s]: %m)]/-->
<!--ENCODING[UTF8]/-->
<!--LOGHEADER[END]/-->
Jul 31, 2014 12:18:05 AM [Info ]: Checking AS Java release using version command.
Jul 31, 2014 12:18:05 AM [Info ]: The tool have been found in location /usr/sap/SID/DVEBMGS00/j2ee/cluster/bootstrap/scripts/version.sh.
Jul 31, 2014 12:18:05 AM [Info ]: Process ID 339, name /usr/sap/SID/DVEBMGS00/j2ee/cluster/bootstrap/scripts/version.sh has been started.
Jul 31, 2014 12:18:05 AM [Info ]: Command line: /usr/sap/SID/DVEBMGS00/j2ee/cluster/bootstrap/scripts/version.sh
Jul 31, 2014 12:18:05 AM [Info ]: Standard out: /SUM/sdt/log/SUM/VERSION_ACTION_VERSION_NULL_16.OUT
Jul 31, 2014 12:18:05 AM [Info ]: Process ID 339 has been started.
Jul 31, 2014 12:18:05 AM [Info ]: Waiting for process ID 339, name /usr/sap/SID/DVEBMGS00/j2ee/cluster/bootstrap/scripts/version.sh to finish.
Jul 31, 2014 12:18:05 AM [Info ]: Process ID 339, name /usr/sap/SID/DVEBMGS00/j2ee/cluster/bootstrap/scripts/version.sh has been finished, exit code 126.
Jul 31, 2014 12:18:05 AM [Error ]: The following problem has occurred during step execution: com.sap.sdt.j2ee.tools.releasedetection.EngineReleaseDetectionException: Could not detect AS Java release.
Return code condition success evaluated to false for process /usr/sap/SID/DVEBMGS00/j2ee/cluster/bootstrap/scripts/version.sh for action ACTION_VERSION.This is part one from the above note:
I. Change configuration for web methods protection to DEFAULT and restart:
1. Open for edit DEAFULT.PLF file from /usr/sap/(SID)/SYS/profile and set configuration:
service/protectedwebmethods = DEFAULT
2. Restart the cluster including sapstartsrv OS service:
2.1. For windows you can execute with administrator privileges following command to stop the services:
c:\> sc stop SAP[SID]_[Instance_Number]
c:\> sc stop SAP[SID]_[SCS_Instance_Number]
c:\> sc start SAP[SID]_[SCS_Instance_Number]
c:\> sc start SAP[SID]_[Instance_Number]
(SAP MMC could automatically start the services, in this case start command will produce warning "An instance of the service is already running.")
2.2. For Linux/Unix you can use stopsap/startsap commands without parameters (more info is available here : http://help.sap.com/saphelp_nwpi71/helpdata/en/47/1d6feeff6e0d46e10000000a155369/content.htm).
3. Retry update procedure step.
4. After upgrade has finished you can restore the settings in the DEFAULT.PFL profile and restart the instance and services
.Set service/protectedwebmethods = DEFAULT in default profile
stopsap -i DVEBMGS<nn>
stopsap -i SCS<nn>
startsap -i SCS<nn>
startsap -i DVEBMGS<nn>
where <nn> is your instance number
Retry failed step again.
Divyanshu -
Post Author: skootsu
CA Forum: Formula
Hello all. I'm dealing with a huge report request that is to be output to excel. It pulls from a inventory transaction table with tons of records. I have grouped by transaction type then summed and counted. I need to take these sums and counts of each transaction type (3 types) then use these figures in other formulas. My finished report will have 29 columns, 16 are formulas, 10 are based off these first 6 (sums&counts), the rest of the fields are flat data off the part records(like part #, description, last cost, productcode). I'm thinking I can get all the data into one report (I was able to create a crosstab with the totals), however it will be huge and I only want to pull over the minimum needed data into the excel sheet. Being new to Crystal Reports, I was wondering if a subreport is what might be what I need here or if I just some how can get the totals, like they appear in the crosstab, to come over so they can be used in new (summary) report? I saw something about shared variable as well but my knowledge is limited to what I have picked up hands on.
Any tips or hints are greatly appreciated. This is the largest report I have had to create. My past experience is with db2, query400 and what I would normally use to accomplish this task, rpg. I have CR9& Oracle.Post Author: GraemeG
CA Forum: Formula
My past experience is with db2, query400 and what I would normally use to accomplish this task, rpg
Ahhh, a man after my own heart!
Just a quick warning, if you're pulling tons of data, doing loads of joins, making lots of clever calculations and summarising in all manner of ways, you may find that your report runs like a pig! The SQL Crystal generates is very clunky for starters and adding all the other bits will make developing, testing and running it quite tedious - particularly if you're new the the 'Crystal Way'. If I were you, I'd use a SQL client to figure out a cunning SQL statement that extracts and formats the data and does as many of the calculations and summaries as possible. Once you have this, use the 'Add command' bit in database expert to insert your own clean, quick and non-psychotic SQL code. This will give you something that looks like a file but contains your formatted data.
I may be shouted down for suggesting this but by doing this, I reduced the run-time for a huge extract/calculate/export-to-excel report from 12 minutes down to 18 seconds and made a bunch of the other reports acceptable in the users eyes by reducing the run-speeds dramatically.
Fair enough, the SQL statements are not simple but they run quickly and accurately and thats what counts. If you do decide to give this a try and need a hand, let me know.
BTW, why wouldn't you use RPG to do this? -
Make warning messages persistant in an order
Hi.
I want to know if there is a way to save the warning messages in the BAL log of an order ?
I'm using the class cl_bsp_wd_message_service=>add_message( ).
Thanks for your suggestions.
RegardsHi,
Try with the different value of importing parameter 'message level" of add_message method. Default value is '1' you can make it persistent by giving different message level. Hope this will help.
Cheers,
Sumit Mittal -
VK34, problem of warning issued upon new condition:Reason codes inconsist
Hello,
The Scenario is :
for a given material/sales organisation
1- I create a ZP00 condition value =100$ valid from 01.09.2009 to 31.12.2009
2- I create new ZP00 condition value= 160$ valid from 01.01.2010 to 31.12.2999
To day, I decide to change the ZP00 condition value,
3- I created a new ZP00 condition with value=160$ valid from 11.09.2009 to 31.12.2009
The system doesn't issue any warning message to tel me that there is a gap in value between the new condition and the old condition valid for the same period
In fact the system compare the new condition value with the last created condition, hence it doesn't find any difference, and as consequence no warning is issued.
I expect that system compares the new condition value to the condition value valid for the same period and not the last condition
==> Shall I post an OSS for this problem ??
For more details, hereafter the sap code, include MV13AF0K
* Get the Original value (from database) of ZP00 or ZPI1 condition
CLEAR: lv_old_zp00, lv_knumh.
CLEAR: lv_new_zp00, lv_sum_z0xx.
SELECT MAX( knumh ) INTO lv_knumh===> *system looks for the last condition created, it doesn't take care*
FROM konh *whether the condition is valide or not*
WHERE kappl = 'V'
AND kschl = xkonh-kschl
AND vakey = xkonh-vakey.
IF sy-subrc EQ 0.
* Item data
SELECT kbetr INTO lv_old_zp00
UP TO 1 ROWS
FROM konp
WHERE knumh = lv_knumh
AND kschl = xkonh-kschl.
ENDSELECT.
ENDIF.
* If no old value --> continue the processing without checking the gap
IF NOT lv_old_zp00 IS INITIAL.
* Calculation of Z0xx conditions sum
LOOP AT xkonp where knumh = xkonh-knumh AND loevm_ko = space.
CASE xkonp-kschl.
WHEN 'ZP00' OR 'ZPI1'.
MOVE xkonp-kbetr TO lv_new_zp00.
WHEN 'Z006' OR 'Z008'.
*********Exclusion mode to be defined***********
WHEN OTHERS.
IF xkonp-kschl(2) = 'Z0'.
ADD xkonp-kbetr TO lv_sum_z0xx.
ENDIF.
ENDCASE.
ENDLOOP.
* Calculation of the gap between the old and the new price
lv_gap = lv_new_zp00 - lv_old_zp00.
* If the gap do not correspond to the sum of condition z0xx
* -> warning popup
IF lv_gap NE lv_sum_z0xx.
lv_diff_flag = 'X'. "Set Difference flag
lv_diff = lv_gap - lv_sum_z0xx.
For more detavery bad layout, I try to enhance it
The Scenario is :
for a given material/sales organisation
1- I create a ZP00 condition value =100$ valid from 01.09.2009 to 31.12.2009
2- I create new ZP00 condition value= 160$ valid from 01.01.2010 to 31.12.2999
To day, I decide to change the ZP00 condition value,
3- I created a new ZP00 condition with value=160$ valid from 11.09.2009 to 31.12.2009
The system doesn't issue any warning message to tel me that there is a gap in value between the new condition and the old condition valid for the same period.
In fact the system compare the new condition value with the last created condition, hence it doesn't find any difference, and as consequence no warning is issued. I expect that system compares the new condition value to the condition value valid for the same period and not the last condition
==> Shall I post an OSS for this problem ??
For more details, hereafter the sap code, include MV13AF0K
CLEAR: lv_old_zp00, lv_knumh.
CLEAR: lv_new_zp00, lv_sum_z0xx.
SELECT MAX( knumh ) INTO lv_knumh
FROM konh
WHERE kappl = 'V'
AND kschl = xkonh-kschl
AND vakey = xkonh-vakey
lv_gap = lv_new_zp00 - lv_old_zp00.
If the gap do not correspond to the sum of condition z0xx
-> warning popup -
Good morning
To implement the following procedure from Oracle XE not me taking the last block, which shows me the following error at line 22 -> Warning (22,14): PLW-07204: may not be the conversion of column type will result in a suboptimal query plan
create or replace Procedure Parse_EAN( pi_EAN In Number
, pi_Banco In Number
, pi_Num_Cuenta In Number )
As
v1 utl_file.file_type;
v2 varchar2(100);
Begin
v1 := utl_file.fopen('PUBLIC_ACCESS','prueb' || to_char(sysdate, 'yyyymmdd') || '.dba', 'w');
v2 := '01' || LPAD(pi_EAN, 13, 0) || TO_CHAR(TRUNC(SYSDATE), 'YYYYMMDD') ||
LPAD(pi_Banco, 3, 0) || LPAD(pi_Num_Cuenta, 15, 0) || ' ';
utl_file.put_line(v1, v2);
For rec in (SELECT '02' || LPAD(PG.CODIGO_CUENTA, 25, 0) || LPAD(PG.VALOR_PAGO, 13, 0) ||
LPAD(PG.COD_PROCEDENCIA, 2, 0) || LPAD(ROWNUM + 1, 7, 0) || ' ' cuerpo
FROM PAGOS PG
WHERE PG.EAN = pi_EAN) Loop
utl_file.put_line(v1, rec.cuerpo);
End Loop;
For rec in _(SELECT '09' || LPAD(COUNT(PG.CODIGO_CUENTA), 9, 0) ||_
LPAD(SUM(PG.VALOR_PAGO), 18, 0) || ' ' final1
FROM PAGOS PG
WHERE PG.FECHA_PAGO = (SELECT TO_CHAR(SYSDATE,'DD/MM/YYYY') FROM DUAL)
AND PG.EAN = pi_EAN) Loop
utl_file.put_line(v1, rec.final1);
End Loop;
utl_file.fclose(v1);
Exception
when others then
dbms_output.put_line(sqlerrm);
End;
What should I do to run the whole procedure?
tables...
CREATE TABLE "PAGOS"
( "ID_PAGOS" NUMBER NOT NULL ENABLE,
"CODIGO_BARRAS" VARCHAR2(62),
"EAN" NUMBER(13,0),
"CODIGO_CUENTA" NUMBER(18,0) NOT NULL ENABLE,
"VALOR_PAGO" NUMBER(13,0) NOT NULL ENABLE,
"FECHA_PAGO" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"NUM_LOTE" NUMBER DEFAULT NULL NOT NULL ENABLE,
"COD_PROCEDENCIA" NUMBER DEFAULT 1 NOT NULL ENABLE,
"FECHA_MODIFICACION" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"MODIFICADO_POR" VARCHAR2(50) DEFAULT USER NOT NULL ENABLE,
"NRO_DOCUMENTO" NUMBER(9,0) NOT NULL ENABLE,
CONSTRAINT "PAGOS_PK" PRIMARY KEY ("ID_PAGOS") ENABLE,
CONSTRAINT "PAGOS_UK2" UNIQUE ("CODIGO_CUENTA", "NUM_LOTE", "FECHA_PAGO", "VALOR_PAGO") ENABLE,
CONSTRAINT "PAGOS_UK1" UNIQUE ("CODIGO_BARRAS", "FECHA_PAGO") ENABLE
ALTER TABLE "PAGOS" ADD CONSTRAINT "PAGOS_PROCEDENCIA_PAGO_FK1" FOREIGN KEY ("COD_PROCEDENCIA")
REFERENCES "PROCEDENCIA_PAGO" ("ID_PROC_PAGOS") ENABLE
and...
CREATE TABLE "PROCEDENCIA_PAGO"
( "ID_PROC_PAGOS" NUMBER NOT NULL ENABLE,
"DESCRIPCION_PAGO" VARCHAR2(80) NOT NULL ENABLE,
"FECHA_MODIFICACION" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"MODIFICADO_POR" VARCHAR2(60) DEFAULT USER NOT NULL ENABLE,
CONSTRAINT "PROCEDENCIA_PAGO_PK" PRIMARY KEY ("ID_PROC_PAGOS") ENABLE,
CONSTRAINT "PROCEDENCIA_PAGO_UK1" UNIQUE ("ID_PROC_PAGOS", "DESCRIPCION_PAGO") ENABLE,
CONSTRAINT "PROCEDENCIA_PAGO_UK2" UNIQUE ("DESCRIPCION_PAGO") ENABLE
CREATE OR REPLACE TRIGGER "PROCEDENCIA_PAGO_TRG"
before insert on PROCEDENCIA_PAGO
for each row
BEGIN
SELECT PROCEDENCIA_PAGO_SEQ.NEXTVAL INTO :NEW.ID_PROC_PAGOS FROM DUAL;
END;
ALTER TRIGGER "PROCEDENCIA_PAGO_TRG" ENABLE
Thank you very much for your cooperation_
GOOD DAY ..._this is my solution
trunc (pi_Fecha) the variable
truncated variable that goes into the procedure trunc (variable) Parse_ean (x, y, z, variable)
in this case the variable that enters pi_Fecha
create or replace
Procedure Parse_EAN( pi_EAN In Number
, pi_Banco In Number
, pi_Num_Cuenta In Number
, pi_Fecha In Date)
As
v1 utl_file.file_type;
v2 varchar2(100);
fecha varchar2(8);
Begin
-- Aqui inicia el bloque de proceso que generar el archivo de Acuavalle.
IF (pi_Ean = 7709998001589) then
v1 := utl_file.fopen('PUBLIC_ACCESS','0'|| LPAD(pi_Banco,3,0)
|| to_char(pi_Fecha, 'yyyymmdd') || '.dba', 'w');
v2 := '01' || LPAD(pi_EAN, 13, 0) || TO_CHAR(TRUNC(pi_Fecha), 'YYYYMMDD')
|| LPAD(pi_Banco, 3, 0) || LPAD(pi_Num_Cuenta, 15, 0)
|| ' ';
utl_file.put_line(v1, v2);
For rec in (SELECT '02' || LPAD((PG.CODIGO_CUENTA)||(NRO_DOCUMENTO), 25, 0)
|| LPAD(PG.VALOR_PAGO, 13, 0) || LPAD(PG.COD_PROCEDENCIA, 2, 0)
|| LPAD(ROWNUM + 1, 7, 0) || ' ' cuerpo
FROM PAGOS PG
WHERE PG.EAN = pi_EAN) Loop
utl_file.put_line(v1, rec.cuerpo);
End Loop;
select to_char(sysdate,'DD/MM/RR')
into Fecha
from dual;
For rec in (Select '09'
|| LPAD(COUNT(VALOR_PAGO), 9, 0)
|| lpad(sum(PG.VALOR_PAGO), 18,0)
||' ' final1
From pagos PG
Where PG.FECHA_PAGO = pi_Fecha
AND PG.EAN = pi_EAN) Loop
utl_file.put_line(v1, rec.final1);
End Loop;
utl_file.fclose(v1);
end if;
-- Aqui termina el bloque de proceso que generar el archivo de Acuavalle.
Exception
when others then
dbms_output.put_line(sqlerrm);
End;
Edited by: Rey-user6318244 on 24/03/2009 11:47 PM -
Enter a true account assignment object with revenues - WARNING MESSAGE
Hi All Experts,
I am configuring PCA. Where my GL balances are not getting updated with having assignment of Profit Center. I am getting this below warning message :
Enter a true account assignment object with revenues
Message no. KI166
Diagnosis
You made an account assignment for 410000, a revenue element, in controlling area 8000 to a cost center or profit center.
System Response
Cost centers and profit centers can carry revenues in the SAP system as statistics only. To ensure reconciliation between FI and CO for revenue element 410000, a CO account assignment object must record the revenues as a real value. This object type is used for updating to the reconciliation ledger.
In principle, it is possible for the SAP system to automatically derive this CO account assignment object, the reconciliation object. However, all postings made in CO for costing-based Profitability Analysis are logged in the reconciliation ledger under "reconciliation object". In this manner, the reconciliation ledger identifies the exact values flowing into the operating profit. If you post reconciliation objects during revenue postings to cost centers or profit centers, you must do so while keeping the interpretation of the reconciliation ledger reports in mind. The sums of revenue postings to profitability segments, cost centers, and profit centers cannot be broken down further.
Procedure
To avoid posting to reconciliation objects, make account assignments to a real CO account assignment object.
If you want to post to reconciliation objects, you can change this message to a warning or a note for future users, or deactivate the message entirely. Use the Implementation Guide under "Controlling: General" and choose Change message control. Enter area KI and message number 166. If you do not enter an individual user here, the change is valid for all users.
I dont understand when I am giving PC as CO Object assignment which is I think true assignment for revenue collecting over. Still system showing this warning message. I know this can be supressed by just pressing ENTER and I can save. By posting in this way document even , I am not able to draw any report based on PC, neither KE5Z or F.01. All says No data found.
What configuration piece I am missing ? Can any expert guide ?
Regards,
Revati Joshi.Just go to OKB9 and check the Cost Element, whether any default cost center or Profitability segment have been been assigned or
not.
If not, check if the Cost element is Revenue related, assign Profitability analisys. If not, check with settings of PCA.
You shoukd never assign PC to a cost element ntil unless it is a Revenue element.
Hope it helps
Thanks -
Display yellow warning message in Web ADI
Hello, I was wondering if there was a way to return a warning message back to a WebADI. I thought I had seen it a seeded ADI but I'm not sure.
So what I'm looking for is for a record to post to the database but return a Message back to the excel form and display a Yellow smiley face (instead of the green success face or the red error face). The functionality requested by the business is that we run a sum on a column before inserting records and if they break a certain threshold to still post the records but return a warning message saying the threshold was broken.
Please let me know if this is possible.
Thanks,
RyanDoes anyone have any ideas on how to do this? If it can't be done, please let me know.
Thanks! -
Sum of values exceeds the allowed maximum value per service line
Hi Guys,
While creating PO wrt to contract : I get error msg : Sum of values exceeds the allowed maximum value per service line Message no. SE402. Can I change it to warning or should I bifurcate one line into two , as the value is very big. Totalling to 11 characters excluding decimal. Its like xxx,xxx,xxx.xx inr.
Regards,
SKHi,
For service line items, the maximum allowed limit is 999999999.99 (total 11 digits including 2 decimals) as per design. If you want more than that, you may split the service in to two line items.
The note: 1810281 - System does not issue error message SE 402 explains the logic.
Regards,
AKPT -
Shadow Instance Left Behind in SLD After Using SUM
Hello,
Is there a standard procedure for removing the SLD information left behind by the creation of shadow ABAP instances when using SUM to update or upgrade systems? Should SUM have some final step for this built in, or should the update instructions include a step to go into SLD and delete the shadow instance information manually?
My situation is as follows. I recently updated the support package stack for my Solution Manager 7.1 system from sps4 to sps12 using SUM (this was for a new installation of Solution Manager). Afterwards, I used SOLMAN_SETUP to perform the System Preparation and Basic Configuration steps, and now I have progressed to Managed System Configuration. The first managed system to configure is Solution Manager itself, and in working on the SolMan ABAP instance, in step 6, 'Enter Landscape Parameters,' I noticed that there is an extra ABAP instance, DVEBMGS03, showing up as a landscape object node. I was puzzled for a bit about this, as there is no instance 03 in my SolMan system, only 00, 01, and 02. Eventually I figured out that SOLMAN_SETUP gets this landscape information from the obvious place, LMDB, which in turn gets it from SLD, and sure enough in LMDB and SLD I can find the "AppServer 03" instance defined.
That's when the light bulb hit. SUM creates a shadow ABAP instance when updating the support package stack (unlike using SPAM), similar to as it does during an upgrade. It deletes the shadow instance at the end of the update, but in the meantime the system has synchronized itself to SLD, and now SLD has a definition for that shadow instance that doesn't go away when the instance is deleted.
It's easy enough to manually delete it in SLD, of course, but that leads me to wonder if there's a preferred option for handling this other than manual manipulation of SLD data.
The version of SUM I used was 1.0 sp11 pl9.
Regards,
MattThat's right, although for a support pack update, I'm not sure if the jobs even get suspended. In the past, when doing this with SPAM, there was no shadow instance to worry about, so it wasn't an issue. In upgrades, when there typically is a shadow instance, things are much more "shut down" in the system (jobs suspended, etc) than is often the case with support pack updates (though perhaps those should be just as much "shut down").
So in future I will definitely keep an eye out for it. Stopping the data supplier should be added to the tool and/or listed as a manual step in the guide to prevent inconsistent landscape and software component data from being replicated (or perhaps it already is and I missed it). I'm going to tag Boris Rubarth to get his take on it, as he is a key player in the development and maintenance of the SUM tool.
Deleting the extra instance in SLD was very easy, and I watched it replicate to LMDB very quickly, and it immediately disappeared upon refresh from the managed system configuration tool. However, it later showed up in diagnostics agent administration, as well, as a warning about a system path not being reachable by the agent (it was trying to reach \usr\sap\SID\DVEBMGS03, which doesn't exist), and so I had to edit the agent landscape paths to remove that as well).
Although the problem is long since solved in my system, as described above, I will keep the question open for a few more hours to see what Boris or others may have to add.
Regards,
Matt -
In below table, the light blue rows, represents the subgroup I am trying to sum up.
The value in the "Inventory Value" contains the latest inventory value for said inventory.
Light green row is grouped by Store name, Light blue is grouped by inventory name. the expression in Inventory row for the inventory value column is =First(Fields!InventoryValue.Value).
Doing a store summation, sums up all detailed values. For example in Store A, instead of 70K, the sum would be 130K... double summing the toy soldiers and cute dolls inventory. Is there a way to do the "correct" summation or a different approach to this? Thanks!
STORE
TOTAL STORE INVENTORY VALUE
INVENTORY
% OF STORE INVENTORY
INVENTORY VALUE
WARNING DATE
STORE A
1,000,000.00
TOY SOLDIERS
2.00%
20,000.00
20,000.00
11/5/2007
20,000.00
11/2/2007
PLUSH TOYS
1.00%
10,000.00
10,000.00
11/5/2007
CUTE DOLLS
4.00%
40,000.00
40,000.00
11/2/2007
40,000.00
10/31/2007
1,000,000.00
7.00%
70,000.00
STORE B
10,000,000.00
TOY SOLDIERS
0.20%
20,000.00
20,000.00
11/5/2007
20,000.00
11/2/2007
PLUSH TOYS
0.10%
10,000.00
10,000.00
11/5/2007
CUTE DOLLS
0.40%
40,000.00
40,000.00
11/2/2007
40,000.00
10/31/2007
10,000,000.00
0.70%
70,000.00Tried the following approaches so far:
=Sum(ReportItems!InventoryValue.Value)
-- Errors out
=Sum(Fields!InventoryValue.Value,"dsSummary")
-- Created a new data set which only has the data from Light Green and Light Blue Rows (ommitted detailed rows)
Returns ungrouped sums, meaning the total sum for all stores for Inventory Value
=Sum(Fields!InventoryValue.Value)
-- Double sums inventory values (sums up the inventory values from the detailed history) -
Hello. My computer has been incredibly slow and I have continuously been getting a pop up which states "Warning! You have excessive popups. Windows may have been infected. Please call 1-855-412-1786 for immediate support!" I have done some research and it seems like it is some type of trojan? I am a college student and really don't have the money to take my computer in, does anyone know how I can fix this? Thank you!
1. This procedure is a diagnostic test. It changes nothing, for better or worse, and therefore will not, in itself, solve the problem. But with the aid of the test results, the solution may take a few minutes, instead of hours or days.
Don't be put off merely by the seeming complexity of these instructions. The process is much less complicated than the description. You do harder tasks with the computer all the time.
2. If you don't already have a current backup, back up all data before doing anything else. The backup is necessary on general principle, not because of anything in the test procedure. Backup is always a must, and when you're having any kind of trouble with the computer, you may be at higher than usual risk of losing data, whether you follow these instructions or not.
There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
3. Below are instructions to run a UNIX shell script, a type of program. All it does is to collect information about the state of the computer. That information goes nowhere unless you choose to share it. However, you should be cautious about running any kind of program (not just a shell script) at the behest of a stranger. If you have doubts, search this site for other discussions in which this procedure has been followed without any report of ill effects. If you can't satisfy yourself that the instructions are safe, don't follow them. Ask for other options.
Here's a summary of what you need to do, if you choose to proceed:
Copy a line of text in this window to the Clipboard.
Paste into the window of another application.
Wait for the test to run. It usually takes a few minutes.
Paste the results, which will have been copied automatically, back into a reply on this page.
The sequence is: copy, paste, wait, paste again. You don't need to copy a second time. Details follow.
4. You may have started the computer in "safe" mode. Preferably, these steps should be taken in “normal” mode, under the conditions in which the problem is reproduced. If the system is now in safe mode and works well enough in normal mode to run the test, restart as usual. If you can only test in safe mode, do that.
5. If you have more than one user, and the one affected by the problem is not an administrator, then please run the test twice: once while logged in as the affected user, and once as an administrator. The results may be different. The user that is created automatically on a new computer when you start it for the first time is an administrator. If you can't log in as an administrator, test as the affected user. Most personal Macs have only one user, and in that case this section doesn’t apply. Don't log in as root.
6. The script is a single long line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, though you may not see all of it in the browser window, and you can then copy it. If you try to select the line by dragging across the part you can see, you won't get all of it.
Triple-click anywhere in the line of text below on this page to select it:
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/libexec;clear;cd;p=(Software Hardware Memory Diagnostics Power FireWire Thunderbolt USB Fonts 51 4 1000 25 5120 KiB/s 1024 85 \\b%% 20480 1 MB/s 25000 ports ' \*AutoCad \*dropbox \*GoogleDr\* vidinst\* ' DYLD_INSERT_LIBRARIES\ DYLD_LIBRARY_PATH -86 ` route -n get default|awk '/e:/{print $2}' ` 25 N\\/A down up 102400 25600 recvfrom sendto CFBundleIdentifier 25 25 25 1000 MB com.apple.AirPortBaseStationAgent 464843899 );N5=${#p[@]};p[N5]=` networksetup -listnetworkserviceorder|awk ' NR>1 { sub(/^\([0-9]+\) /,"");n=$0;getline;} $NF=="'${p[26]}')" { sub(/.$/,"",$NF);print n;exit;} ' `;f=('\n%s: %s\n' '\n%s\n\n%s\n' '\nRAM details\n%s\n' %s\ %s '%s\n-\t%s\n' );S0() { echo ' { q=$NF+0;$NF="";u=$(NF-1);$(NF-1)="";gsub(/^ +| +$/,"");if(q>='${p[$1]}') printf("%s (UID %s) is using %s '${p[$2]}'",$0,u,q);} ';};s=(' /^ *$|CSConfigDot/d;s/^ */ /;s/[-0-9A-Fa-f]{22,}/UUID/g;s/(ochat)\.[^.]+(\..+)/\1\2/;/Shared/!s/\/Users\/[^/]+/~/g ' ' s/^ +//;5p;6p;8p;12p;' ' {sub(/^ +/,"")};NR==6;NR==13&&$2<'${p[10]} ' 1s/://;3,6d;/[my].+:/d;s/^ {4}//;H;${ g;s/\n$//;/s: [^EO]|x([^08]|02[^F]|8[^0])/p;} ' ' 5h;6{ H;g;/P/!p;} ' ' ($1~/^Cy/&&$3>'${p[11]}')||($1~/^Cond/&&$2!~/^N/) ' ' /:$/{ N;/:.+:/d;s/ *://;b0'$'\n'' };/^ *(V.+ [0N]|Man).+ /{ s/ 0x.... //;s/[()]//g;s/(.+: )(.+)/ (\2)/;H;};$b0'$'\n'' d;:0'$'\n'' x;s/\n\n//;/Apple[ ,]|Intel|SMSC/d;s/\n.*//;/\)$/p;' ' s/^.*C/C/;H;${ g;/No th|pms/!p;} ' '/= [^GO]/p' '{$1=""};1' ' /Of/!{ s/^.+is |\.//g;p;} ' ' $0&&!/ / { n++;print;} END { if(n<200) print "com.apple.";} ' ' $3~/[0-9]:[0-9]{2}$/ { gsub(/:[0-9:a-f]{14}/,"");} { print|"tail -n'${p[12]}'";} ' ' NR==2&&$4<='${p[13]}' { print $4;} ' ' END { $2/=256;if($2>='${p[15]}') print int($2) } ' ' NR!=13{next};{sub(/[+-]$/,"",$NF)};'"`S0 21 22`" 'NR!=2{next}'"`S0 37 17`" ' NR!=5||$8!~/[RW]/{next};{ $(NF-1)=$1;$NF=int($NF/10000000);for(i=1;i<=3;i++){$i="";$(NF-1-i)="";};};'"`S0 19 20`" 's:^:/:p' '/\.kext\/(Contents\/)?Info\.plist$/p' 's/^.{52}(.+) <.+/\1/p' ' /Launch[AD].+\.plist$/ { n++;print;} END { print "'${p[41]}'";if(n<200) print "/System/";} ' '/\.xpc\/(Contents\/)?Info\.plist$/p' ' NR>1&&!/0x|\.[0-9]+$|com\.apple\.launchctl\.(Aqua|Background|System)$|'${p[41]}'/ { print $3;} ' ' /\.(framew|lproj)|\):/d;/plist:|:.+(Mach|scrip)/s/:[^:]+//p ' '/root/p' ' !/\/Contents\/.+\/Contents|Applic|Autom|Frameworks/&&/Lib.+\/Info.plist$/ { n++;print;} END { if(n<1000) print "/System/";} ' '/^\/usr\/lib\/.+dylib$/p' ' /Temp|emac/ { next;} /(etc|Preferences|Launch[AD].+)\// { sub(".(/private)?","");n++;print;} END { print "'${p[41]}'.plist\t'${p[42]}'";if(n<500) print "Launch";} ' ' /\/(Contents\/.+\/Contents|Frameworks)\/|\.wdgt\/.+\.([bw]|plu)/d;p;' 's/\/(Contents\/)?Info.plist$//;p' ' { gsub("^| |\n","\\|\\|kMDItem'${p[35]}'=");sub("^...."," ") };1 ' p '{print $3"\t"$1}' 's/\'$'\t''.+//p' 's/1/On/p' '/Prox.+: [^0]/p' '$2>'${p[9]}'{$2=$2-1;print}' ' BEGIN { i="'${p[26]}'";M1='${p[16]}';M2='${p[18]}';M3='${p[31]}';M4='${p[32]}';} !/^A/ { next;} /%/ { getline;if($5<M1) a="user "$2"%, system "$4"%";} /disk0/&&$4>M2 { b=$3" ops/s, "$4" blocks/s";} $2==i { if(c) { d=$3+$4+$5+$6;next;};if($4>M3||$6>M4) c=int($4/1024)" in, "int($6/1024)" out";} END { if(a) print "CPU: "a;if(b) print "I/O: "b;if(c) print "Net: "c" (KiB/s)";if(d) print "Net errors: "d" packets/s";} ' ' /r\[0\] /&&$NF!~/^1(0|72\.(1[6-9]|2[0-9]|3[0-1])|92\.168)\./ { print $NF;exit;} ' ' !/^T/ { printf "(static)";exit;} ' '/apsd|OpenD/!s/:.+//p' ' (/k:/&&$3!~/(255\.){3}0/ )||(/v6:/&&$2!~/A/ ) ' ' $1~"lR"&&$2<='${p[25]}';$1~"li"&&$3!~"wpa2";' ' BEGIN { FS=":";} { n=split($3,a,".");sub(/_2[01].+/,"",$3);print $2" "$3" "a[n]" "$1;b=b$1;} END { if(b) print("\n\t* Code injection");} ' ' NR!=4{next} {$NF/=10240} '"`S0 27 14`" ' END { if($3~/[0-9]/)print$3;} ' ' BEGIN { L='${p[36]}';} !/^[[:space:]]*(#.*)?$/ { l++;if(l<=L) f=f"\n "$0;} END { F=FILENAME;if(!F) exit;if(!f) f="\n [N/A]";"file -b "F|getline T;if(T!~/^(AS.+ (En.+ )?text$|POSIX sh.+ text ex)/) F=F" ("T")";printf("\nContents of %s\n%s\n",F,f);if(l>L) printf("\n ...and %s more line(s)\n",l-L);} ' ' /^ +[NP].+ =/h;/^( +D.+[{]|[}])/{ g;s/.+= //p;};' ' /^ +B/{ s/.+= |(-[0-9]+)?\.s.+//g;p;} ' ' END{print NR} ' ' /id: N|te: Y/{i++} END{print i} ' ' / / { print "'"${p[28]}"'";exit;};1;' '/ en/!s/\.//p' ' NR!=13{next};{sub(/[+-M]$/,"",$NF)};'"`S0 39 40`" ' $10~/\(L/&&$9!~"localhost" { sub(/.+:/,"",$9);print $1": "$9;} ' '/^ +r/s/.+"(.+)".+/\1/p' 's/(.+\.wdgt)\/(Contents\/)?Info\.plist$/\1/p' 's/^.+\/(.+)\.wdgt$/\1/p' 's/0/Off/p' );c1=(system_profiler pmset\ -g nvram fdesetup find syslog df vm_stat sar ps sudo\ crontab sudo\ iotop top pkgutil PlistBuddy whoami cksum kextstat launchctl sudo\ launchctl crontab 'sudo defaults read' stat lsbom mdfind ' for i in ${p[24]};do ${c1[18]} ${c2[27]} $i;done;' defaults\ read scutil sudo\ dtrace sudo\ profiles sed\ -En awk /S*/*/P*/*/*/C*/*/airport networksetup mdutil sudo\ lsof test );c2=(com.apple.loginwindow\ LoginHook '-c Print /L*/P*/loginw*' '-c Print L*/P*/*loginit*' '-c Print L*/Saf*/*/E*.plist' '~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 \)' '.??* -path .Trash -prune -o -type d -name *.app -print -prune' '-c Print\ :'${p[35]}' 2>&1' '-c Print\ :Label 2>&1' '{/,}L*/{Con,Pref}* -type f ! -size 0 -name *.plist -exec plutil -s {} \;' "-f'%N: %l' Desktop L*/Keyc*" therm sysload boot-args status " -F '\$Time \$Message' -k Sender kernel -k Message Req 'bad |Beac|caug|dead[^bl]|FAIL|fail|GPU |hfs: Ru|inval|jnl:|last value [1-9]|n Cause: -|NVDA\(|pagin|proc: t|Roamed|rror|ssert|Thrott|tim(ed? ?|ing )o|WARN' -k Message Rne 'Goog|ksadm|SMC:' -o -k Sender fseventsd -k Message Req 'SL' " '-du -n DEV -n EDEV 1 10' 'acrx -o comm,ruid,%cpu' '-t1 10 1' '-f -pfc /var/db/r*/com.apple.*.{BS,Bas,Es,J,OSXU,Rem,up}*.bom' '{/,}L*/Lo*/Diag* -type f -regex .\*[cgh] ! -name *ag \( -exec grep -lq "^Thread c" {} \; -exec printf \* \; -o -true \) -execdir stat -f:%Sc:%N -t%F {} \;|sort -t: -k2 |tail -n'${p[38]} '-L {/{S*/,},}L*/Lau* -type f' '-L /{S*/,}L*/StartupItems -type f -exec file {} +' '-L /S*/L*/{C*/Sec*A,E}* {/,}L*/{A*d,Ca*/*/Ex,Compon,Ex,In,iTu,Keyb,Mail/B,P*P,Qu*T,Scripti,Sec,Servi,Spo,Widg}* -type f -name Info.plist' '/usr/lib -type f -name *.dylib' `awk "${s[31]}"<<<${p[23]}` "/e*/{auto,{cron,fs}tab,hosts,{[lp],sy}*.conf,pam.d/*,ssh{,d}_config,*.local} {,/usr/local}/etc/periodic/*/* /L*/P*{,/*}/com.a*.{Bo,sec*.ap}*t /S*/L*/Lau*/*t .launchd.conf" list getenv /Library/Preferences/com.apple.alf\ globalstate --proxy '-n get default' -I --dns -getdnsservers\ "${p[N5]}" -getinfo\ "${p[N5]}" -P -m\ / '' -n1 '-R -l1 -n1 -o prt -stats command,uid,prt' '--regexp --only-files --files com.apple.pkg.*|sort|uniq' -kl -l -s\ / '-R -l1 -n1 -o mem -stats command,uid,mem' -i4TCP:0-1023 com.apple.dashboard\ layer-gadgets '-d /L*/Mana*/$USER&&echo On' '-app Safari WebKitDNSPrefetchingEnabled' );N1=${#c2[@]};for j in {0..8};do c2[N1+j]=SP${p[j]}DataType;done;N2=${#c2[@]};for j in 0 1;do c2[N2+j]="-n ' syscall::'${p[33+j]}':return { @out[execname,uid]=sum(arg0) } tick-10sec { trunc(@out,1);exit(0);} '";done;l=(Restricted\ files Hidden\ apps 'Elapsed time (s)' POST Battery Safari\ extensions Bad\ plists 'High file counts' User Heat System\ load boot\ args FileVault Diagnostic\ reports Log 'Free space (MiB)' 'Swap (MiB)' Activity 'CPU per process' Login\ hook 'I/O per process' Mach\ ports kexts Daemons Agents launchd Startup\ items Admin\ access Root\ access Bundles dylibs Apps Font\ issues Inserted\ dylibs Firewall Proxies DNS TCP/IP Wi-Fi Profiles Root\ crontab User\ crontab 'Global login items' 'User login items' Spotlight Memory Listeners Widgets Parental\ Controls Prefetching );N3=${#l[@]};for i in 0 1 2;do l[N3+i]=${p[5+i]};done;N4=${#l[@]};for j in 0 1;do l[N4+j]="Current ${p[29+j]}stream data";done;A0() { id -G|grep -qw 80;v[1]=$?;((v[1]==0))&&sudo true;v[2]=$?;v[3]=`date +%s`;clear >&-;date '+Start time: %T %D%n';};for i in 0 1;do eval ' A'$((1+i))'() { v=` eval "${c1[$1]} ${c2[$2]}"|'${c1[30+i]}' "${s[$3]}" `;[[ "$v" ]];};A'$((3+i))'() { v=` while read i;do [[ "$i" ]]&&eval "${c1[$1]} ${c2[$2]}" \"$i\"|'${c1[30+i]}' "${s[$3]}";done<<<"${v[$4]}" `;[[ "$v" ]];};A'$((5+i))'() { v=` while read i;do '${c1[30+i]}' "${s[$1]}" "$i";done<<<"${v[$2]}" `;[[ "$v" ]];};';done;A7(){ v=$((`date +%s`-v[3]));};B2(){ v[$1]="$v";};for i in 0 1;do eval ' B'$i'() { v=;((v['$((i+1))']==0))||{ v=No;false;};};B'$((3+i))'() { v[$2]=`'${c1[30+i]}' "${s[$3]}"<<<"${v[$1]}"`;} ';done;B5(){ v[$1]="${v[$1]}"$'\n'"${v[$2]}";};B6() { v=` paste -d: <(printf "${v[$1]}") <(printf "${v[$2]}")|awk -F: ' {printf("'"${f[$3]}"'",$1,$2)} ' `;};B7(){ v=`grep -Fv "${v[$1]}"<<<"$v"`;};C0(){ [[ "$v" ]]&&echo "$v";};C1() { [[ "$v" ]]&&printf "${f[$1]}" "${l[$2]}" "$v";};C2() { v=`echo $v`;[[ "$v" != 0 ]]&&C1 0 $1;};C3() { v=`sed -E "$s"<<<"$v"`&&C1 1 $1;};for i in 1 2;do for j in 2 3;do eval D$i$j'(){ A'$i' $1 $2 $3; C'$j' $4;};';done;done;{ A0;A2 0 $((N1+1)) 2;C0;A1 0 $N1 1;C0;B0;C2 27;B0&&! B1&&C2 28;D12 15 37 25 8;A1 0 $((N1+2)) 3;C0;D13 0 $((N1+3)) 4 3;D23 0 $((N1+4)) 5 4;for i in 0 1 2;do D13 0 $((N1+5+i)) 6 $((N3+i));done;D13 1 10 7 9;D13 1 11 8 10;D22 2 12 9 11;D12 3 13 10 12;D23 4 19 44 13;D23 5 14 12 14;D22 6 36 13 15;D22 7 37 14 16;D23 8 15 38 17;D22 9 16 16 18;B1&&{ D22 11 17 17 20;for i in 0 1;do D22 28 $((N2+i)) 45 $((N4+i));done;};D22 12 44 54 45;D22 12 39 15 21;A1 13 40 18;B2 4;B3 4 0 19;A3 14 6 32 0;B4 0 5 11;A1 17 41 20;B7 5;C3 22;B4 4 6 21;A3 14 7 32 6;B4 0 7 11;B3 4 0 22;A3 14 6 32 0;B4 0 8 11;B5 7 8;B1&&{ A2 19 26 23;B7 7;C3 23;};A2 18 26 23;B7 7;C3 24;A2 4 20 21;B7 6;B2 9;A4 14 7 52 9;B2 10;B6 9 10 4;C3 25;D13 4 21 24 26;B4 4 12 26;B3 4 13 27;A1 4 22 29;B7 12;B2 14;A4 14 6 52 14;B2 15;B6 14 15 4;B3 0 0 30;C3 29;A1 4 23 27;B7 13;C3 30;D13 24 24 32 31;D13 25 37 32 33;A2 23 18 28;B2 16;A2 16 25 33;B7 16;B3 0 0 34;B2 21;A6 47 21&&C0;B1&&{ D13 21 0 32 19;D13 10 42 32 40;D22 29 35 46 39;};D13 14 1 48 42;D12 34 43 53 44;D22 0 $((N1+8)) 51 32;D13 4 8 41 6;D12 26 28 35 34;D13 27 29 36 35;A2 27 32 39&&{ B2 19;A2 33 33 40;B2 20;B6 19 20 3;};C2 36;D23 33 34 42 37;B1&&D23 35 45 55 46;D23 32 31 43 38;D12 36 47 32 48;D13 20 42 32 41;D13 14 2 48 43;D13 4 5 32 1;D22 4 4 50 0;D13 14 3 49 5;D12 26 48 59 49;B3 4 22 57;A1 26 46 56;B7 22;B3 0 0 58;C3 47;D23 22 9 37 7;A7;C2 2;} 2>/dev/null|pbcopy;exit 2>&-
Copy the selected text to the Clipboard by pressing the key combination command-C.
7. Launch the built-in Terminal application in any of the following ways:
Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
Open LaunchPad. Click Utilities, then Terminal in the icon grid.
Click anywhere in the Terminal window and paste by pressing command-V. The text you pasted should vanish immediately. If it doesn't, press the return key.
8. If you see an error message in the Terminal window such as "Syntax error" or "Event not found," enter
exec bash
and press return. Then paste the script again.
9. If you're logged in as an administrator, you'll be prompted for your login password. Nothing will be displayed when you type it. You will not see the usual dots in place of typed characters. Make sure caps lock is off. Type carefully and then press return. You may get a one-time warning to be careful. If you make three failed attempts to enter the password, the test will run anyway, but it will produce less information. In most cases, the difference is not important. If you don't know the password, or if you prefer not to enter it, press the key combination control-C or just press return three times at the password prompt. Again, the script will still run.
If you're not logged in as an administrator, you won't be prompted for a password. The test will still run. It just won't do anything that requires administrator privileges.
10. The test may take a few minutes to run, depending on how many files you have and the speed of the computer. A computer that's abnormally slow may take longer to run the test. While it's running, there will be nothing in the Terminal window and no indication of progress. Wait for the line
[Process completed]
to appear. If you don't see it within half an hour or so, the test probably won't complete in a reasonable time. In that case, close the Terminal window and report the results. No harm will be done.
11. When the test is complete, quit Terminal. The results will have been copied to the Clipboard automatically. They are not shown in the Terminal window. Please don't copy anything from there. All you have to do is start a reply to this comment and then paste by pressing command-V again.
At the top of the results, there will be a line that begins with the words "Start Time." If you don't see that, but instead see a mass of gibberish, you didn't wait for the "Process completed" message to appear in the Terminal window. Please wait for it and try again.
If any private information, such as your name or email address, appears in the results, anonymize it before posting. Usually that won't be necessary.
12. When you post the results, you might see the message, "You have included content in your post that is not permitted." It means that the forum software has misidentified something in the post as a violation of the rules. If that happens, please post the test results on Pastebin, then post a link here to the page you created.
Note: This is a public forum, and others may give you advice based on the results of the test. They speak only for themselves, and I don't necessarily agree with them.
Copyright © 2014 by Linc Davis. As the sole author of this work, I reserve all rights to it except as provided in the Use Agreement for the Apple Support Communities website ("ASC"). Readers of ASC may copy it for their own personal use. Neither the whole nor any part may be redistributed.
Maybe you are looking for
-
Display dates with zeros for month, day, year.
I have a date coming from a database as an int (20021215 means 12/15/2002). If the database gives me a "0", meaning no date value is assigned, then it should be displayed as "00/00/0000". The following code snippet works for the non-zero int database
-
How do I highlight/add comments on a PDF document in IPages on IPad Air?
How do I highlight/add comments on a PDF document in IPages on IPad Air?
-
Retreiving the file names from directory inside another directory from application server
Hi, I had a problem in retreiving the file names from a directory inside another directory. I tried using the FM's SUBST_GET_FILE_LIST, RZL_READ_DIR_LOCAL and EPS_GET_DIRECTORY_LISTING But here I am getting only one directory details. Actually my fi
-
Why won't flash video's work on my iBook anymore?
so, previously i didn't have a problem watching flash video on my iBook. whne i say previoulsy i mean that serveral month ago i change the OS to 5.8. how i have problem's somehow relating to the flash players on sites. i don't think it effects YouTub
-
My system preferences keeps freezing
every time i click system preference it opens then the spinning colorful ball comes up and if i leave it and come back to it the ball is still spinning which just causes me to "force quit" therefore i'm not able to do anything in system preference ca