Regarding summing statement in scripts
Hi,
please give one small example code for SUMMING statement in SAP Scripts.
Thanks,
Srinivas
Hi,
/:SUMMING &NETPR& INTO V_TOTAL
loop
write form for main window
endloop.
For every time(loop pass) the value will be added to v_total ,this will be defined in script.
Regards,
Ferry Lianto
Similar Messages
-
Errow with IF statement in Scripted Calculation view
Hi Team,
I am trying to use IF statement in Scripted Calculation view.
My scenario is:-
I need to create a restricted Key figure based on input date from user.
While i am activating my view system gives "Internal deployment of object failed;Repository: Encountered an error in repository runtime extension;Internal Error:Deploy Calculation View: SQL: transaction rolled back by an internal error: Syntax Error for calculated Attribute: line 29 col 9 (at pos 1501)" error.
Below is the code i have used in my CV.
CE_CALC('IF((to_int("BUDAT") >= to_int(2013-01-01),"AMOUNT",'''')', DECIMAL(13,2)) AS "DTR"
Here, "AMOUNT" is another calculated field created using CE_CALC.
Without above IF statement my CV runs perfectly fine. The moment i include IF statement it does not activate.
Kindly provide your inputs.
Thanks & Regards,
AnupHi Lars,
I am extremely sorry about the confusion.
There was an extra parenthesis in the IF statement which was not allowing the CV to be activated. CV is now successfully activated.
But my data is not getting restricted correctly.
It is showing 0 against all the records.
Below is the sql used for calling the CV.
SELECT * FROM "_SYS_BIC"."A_123/CV_SCR_BSID_BSAD_ITEMS" ('PLACEHOLDER' = ('$$Currency$$', '''Local'''),'PLACEHOLDER' = ('$$Date_From$$','2014-01-01' ), 'PLACEHOLDER' = ('$$Date_To$$','2014-06-30' ));
Below is my updated CE_CALC function :-
CE_CALC('IF(date("BUDAT") >= date(:Date_From) and date("BUDAT") <= date(:Date_To),"AMOUNT",0)', DECIMAL(13,2)) AS "DTR"
Is there any issue while passing values here?
Regards,
Anup -
We've been getting the following error for some time now.
An error occurred on line 105 while executing script 'MOM Backward Compatibility Service State Monitoring Script'
Source: Microsoft VBScript runtime error
Description: The remote server machine does not exist or is unavailable: 'GetObject'
One or more workflows were affected by this.
Workflow name: System.Mom.BackwardCompatibility.ServiceStateMonitoring
Instance name: server.domain.local
Instance ID: {INSTANCE}
Management group: GROUP
Unfortunately the instance in question has since been decommissioned and simply does not exist any more.
We're currently on a repeat count of over 350,000 and I would REALLY like to get it stopped. I've had a look at adding an override but that points to the management server rather than the instance itself.
Does anyone have any suggestions?
thanks in advance!Hi Steven,
There are for option for us to override a monitor ot rule:
For all objects of class:
Class
When you select this option for your override, the override settings apply to all objects in the class at which the rule or monitor is targeted.
For a group
When you select this option for your override, the override settings apply only to members of the group. The rule or monitor without the override settings continues to apply to all objects in the targeted class except for those objects that are also members
of the group used for the override.
When you create a group, you save it to an unsealed management pack. However, an element in an unsealed management pack, such as an override, cannot reference an element in a different unsealed management pack, such as a group. If you are going to use a group
to limit the application of an override, you must either save the group to the same unsealed management pack as the override, or you must seal the management pack that contains the group.
For a specific object of class:
Class
When you select this option for your override, the override settings apply only to the specified object. The rule or monitor without the override settings continues to apply to all other objects in the targeted class.
For all objects of another class
When you select this option for your override, the override settings apply only to objects of a class other than the targeted class. The rule or monitor without the override settings continues to apply to all objects in the targeted class.
Did you try to override it for a specific object of class?
Regards,
Yan Li
Regards, Yan Li -
Help needed regarding SUM keyword in an ITAB loop
Hello,
I am maintaining a code as given below.
LOOP AT itab INTO totwa.
SUM.
ENDLOOP.
totwa is defined as a workarea which is needed to hold the sum totals of the fields in the itab. According to the documentation of SUM, it should calculate the sum totals and should put the totals in the workarea mentioned. But somehow its not calculating the value. Could anyone please help me in resolving this issue. Please guide me with your thoughts as to what might have gone wrong.
Note: the itab fields are of type P.
Thanks in advance
Sudha NaikHello Suha
According to the ABAP documentation the SUM statement is used in a specific situation:
<b>Syntax
SUM. </b>
<b>Effect </b>
<i>The statement SUM can only be specified within a loop starting with LOOP, and is only considered within a AT-ENDAT control structure. Prerequisites for using the statement SUM include using the addition INTO in the LOOP statement, and that the specified work area wa is compatible with the row type of the internal table. In addition, SUM cannot be used when the row type of the internal table itab contains components that are tables. </i>
<i>The statement SUM calculates the component total with the numeric data type ( i, p, f) of all rows in the current control level and assigns these to the components of the work area wa. In the control levels FIRST, LAST , and outside of an AT-ENDAT control structure, the system calculates the sum of numeric components of all rows in the internal table.</i>
I hope the following sample report will clarify the use of <b>SUM </b>and <b>COLLECT</b>.
*& Report ZUS_SDN_COLLECT
REPORT zus_sdn_collect.
TYPES: BEGIN OF ty_s_line.
TYPES: key(1) TYPE n.
TYPES: value TYPE p DECIMALS 2.
TYPES: END OF ty_s_line.
TYPES: ty_t_itab TYPE STANDARD TABLE OF ty_s_line
WITH DEFAULT KEY.
DATA:
gs_line TYPE ty_s_line,
gt_itab TYPE ty_t_itab,
gt_itab_coll TYPE ty_t_itab.
START-OF-SELECTION.
DO 3 TIMES.
gs_line-key = syst-index.
gs_line-value = syst-index * '2.3'.
APPEND gs_line TO gt_itab.
APPEND gs_line TO gt_itab.
ENDDO.
gs_line-key = 4.
gs_line-value = '5.5'.
APPEND gs_line TO gt_itab.
WRITE: / 'Initial list'.
LOOP AT gt_itab INTO gs_line.
WRITE: / gs_line-key,
gs_line-value.
ENDLOOP.
WRITE: / syst-uline.
SKIP 2.
WRITE: / 'Using SUM statement with AT END OF'.
SORT gt_itab BY key.
LOOP AT gt_itab INTO gs_line.
AT END OF key.
SUM.
WRITE: / gs_line-key,
gs_line-value.
ENDAT.
ENDLOOP.
WRITE: / syst-uline.
SKIP 2.
WRITE: / 'Using SUM statement without control structure (1)'.
SORT gt_itab BY key.
LOOP AT gt_itab INTO gs_line.
SUM.
WRITE: / gs_line-key,
gs_line-value.
ENDLOOP.
WRITE: / syst-uline.
SKIP 2.
WRITE: / 'Using SUM statement without control structure (2)'.
SORT gt_itab BY key.
LOOP AT gt_itab INTO gs_line.
SUM.
WRITE: / gs_line-key,
gs_line-value.
EXIT.
ENDLOOP.
WRITE: / syst-uline.
SKIP 2.
WRITE: / 'Using COLLECT statement'.
REFRESH: gt_itab_coll.
LOOP AT gt_itab INTO gs_line.
COLLECT gs_line INTO gt_itab_coll.
ENDLOOP.
LOOP AT gt_itab_coll INTO gs_line.
WRITE: / gs_line-key,
gs_line-value.
ENDLOOP.
WRITE: / syst-uline.
SKIP 2.
WRITE: / 'Using COLLECT statement for total sum'.
REFRESH: gt_itab_coll.
LOOP AT gt_itab INTO gs_line.
gs_line-key = 0.
COLLECT gs_line INTO gt_itab_coll.
ENDLOOP.
LOOP AT gt_itab_coll INTO gs_line.
WRITE: / gs_line-key,
gs_line-value.
ENDLOOP.
WRITE: / syst-uline.
SKIP 2.
END-OF-SELECTION.
Regards
Uwe -
HI GURU'S,
Please can anybody explains me
what is significance of using SUM statement inside the AT AND ENDAT statement.
what i understood about sum is: The statement SUM calculates the component total with the numeric data type (i, p, f)
of all rows in the current control level and assigns these to the components of the work area wa. In the control levels
FIRST, LAST, and outside of an AT-ENDAT control structure, the system calculates the sum of numeric components
of all rows in the internal table.
but in below program which i did, its not doing that</b>
TYPES: BEGIN OF companies_type,
name(30),
product(20),
sales TYPE i,
SALES1 TYPE I,
END OF companies_type.
DATA: companies TYPE STANDARD TABLE OF companies_type WITH
NON-UNIQUE DEFAULT KEY INITIAL SIZE 20,
wa_companies TYPE companies_type.
wa_companies-name = 'XYZ'.
wa_companies-product = 'SAP'.
wa_companies-sales = '1'.
wa_companies-sales1 = '1'.
APPEND wa_companies TO companies.
wa_companies-name = 'ABC'.
wa_companies-product = 'ABAP'.
wa_companies-sales = '4'.
wa_companies-sales1 = '4'.
APPEND wa_companies TO companies.
wa_companies-name = 'PQR'.
wa_companies-product = 'HR'.
wa_companies-sales = '3'.
wa_companies-sales1 = '3'.
APPEND wa_companies TO companies.
LOOP AT companies INTO wa_companies.
AT NEW name.
sum.
NEW-PAGE.
WRITE / wa_companies-name.
ENDAT.
WRITE: / wa_companies-product, wa_companies-sales,wa_companies-sales1.
AT END OF NAME.
SUM.
WRITE: / wa_companies-name, wa_companies-sales,wa_companies-sales1 .
ENDAT.
ENDLOOP.
Thanks
PriyaHi,
The control statements should be used inside a loop, the internal table should be sorted before using the control statements.
loop...
At new name.
sum.
endat.
endloop....
Sum of the numeric values will be calculated when the name changes. At new is triggered at the begining itself.
loop...
At end of name.
sum.
endat.
endloop....
Sum of the numeric values will be calculated when the name changes .
Just a simple example:
ID no Name Salary.
100 Ram 5000
100 Ravi 6000
200 Prajn 7000
In this case.
loop at itab.
At new idno.
sum
write:/ itab-idno , itab-name, itab-salaty.
Endat.
endloop.
O/p will be :
100 Ram 11000
The sum will trigger when the number idno is changing .
Similarly AT end also works.
Regards,
Vani -
SQL 4.7 Installation Error CJS-00084 SQL Statement or Script failed
Dear SAP Gurus,
pl do let me know hoe to resolve this error.......
"""CJS-00084 SQL Statement or Script failed"""
my ora_sql_results file is like that..
===========================================
2008-10-25, 16:14:44 SAPINST ORACLE start logging for
connect / as sysdba ;
@@"C:\SAPinstORACLEKERNEL/oradbusr.sql"
exit;
Output of SQL executing program:
SQL*Plus: Release 9.2.0.2.0 - Production on Sat Oct 25 16:14:44 2008
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected.
Connected.
old 3: if substr(upper('&&1'),1,5) = 'SAPR3' then
new 3: if substr(upper('SAPERP'),1,5) = 'SAPR3' then
old 6: if upper('&&2') = 'NT' then
new 6: if upper('NT') = 'NT' then
old 13: :sDomain := upper('&&3');
new 13: :sDomain := upper('ERP');
old 17: :sSchema := upper('&&1');
new 17: :sSchema := upper('SAPERP');
old 18: if upper('&&2') = 'NT' then
new 18: if upper('NT') = 'NT' then
old 25: :sDomain := upper('&&3');
new 25: :sDomain := upper('ERP');
using following Parameters:
. Oracle SID: ERP
. Oracle Version: 9.2.0.2.1
. Parametervalue os_authent_prefix: OPS$
. Database User (Schema): SAPERP
. SAP R/3 Administrator: OPS$ERP\ERPADM
. SAP R/3 Serviceuser: OPS$ERP\SAPSERVICEERP
O/S Message: No such file or directory
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.2.1 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.2.0 - Production
SAPINST: End of output of SQL executing program F:\oracle\ora92/bin/sqlplus.exe.
SAPINST found errors.
SAPINST The current process environment may be found in sapinst_ora_environment.log.
2008-10-25, 16:14:44 SAPINST ORACLE stop logging
=======================================
My SAPINST_ORA_ENVIRONMENT FIle is like that
==========================================
2008-10-25, 16:10:43 SAPINST Current process environment:
=::=::\
=C:=C:\SAPinstORACLEKERNEL
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\tanya\Application Data
CLIENTNAME=Console
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=ERP
ComSpec=C:\WINDOWS\system32\cmd.exe
DBMS_TYPE=ORA
DBS_ORA_SCHEMA=SAPERP
dbs_ora_tnsname=ERP
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\tanya
JAVA_HOME=C:\j2sdk1.4.2_09
JSERV=F:\oracle\ora92/Apache/Jserv/conf
LOGONSERVER=
ERP
NLS_LANG=AMERICAN_AMERICA.WE8DEC
NUMBER_OF_PROCESSORS=2
ORACLE_HOME=F:\oracle\ora92
ORACLE_SID=ERP
OS=Windows_NT
Path=F:\oracle\ora92\bin;$PATH$
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 23 Stepping 6, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=1706
ProgramFiles=C:\Program Files
SAPDATA_HOME=F:\oracle\ERP
SAPEXE=F:\usr\sap\ERP\SYS\exe\run
SAPLOCALHOST=ERP
SAPSYSTEMNAME=ERP
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\WINDOWS\TEMP
TMP=C:\WINDOWS\TEMP
USERDOMAIN=ERP
USERNAME=tanya
USERPROFILE=C:\Documents and Settings\tanya
windir=C:\WINDOWS
WV_GATEWAY_CFG=F:\oracle\ora92\Apache\modplsql\cfg\wdbsvr.app
SAPINST: End of current process environment.
=====================================
REgards,
AbhishekThanks, but most of the people in the industry are still using the same, and it is working on their Machine
As far as I remember 9.2.0.2 was never released, one needed to install at least 9.2.0.4 (or .5). That´s why the official installation guides tell you to install the latest patches PLUS the latest interim patches for the database.
On top of that, Oracle 9.2 is out of extended support already, I would get a new installation CD set with Oracle 10g and use that for a new installation.
why it is not working on my machine?
Because those old database versions have many bugs that are fixed with patches - so why do you want to run such an old version if one KNOWS that it´s buggy and there are patches to fix those errors?
secondly from where i will get the latest patches, as told by you. pl do let me know any website from where i can down load them
Check
Note 938986 - Oracle Database 9.2: Patches for 9.2.0
Markus -
QL statement or script failed. DIAGNOSIS: Error message: ORA-27102: out of
Dear all,
please help me4 on this
i am getting this error
FCO-00011 The step createDatabase with step key |NW_ABAP_OneHost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_OraDBCheck|ind|ind|ind|ind|0|0|NW_OraDBMain|ind|ind|ind|ind|0|0|NW_OraDBStd|ind|ind|ind|ind|3|0|NW_OraDbBuild|ind|ind|ind|ind|5|0|createDatabase was executed with status ERROR ( Last error reported by the step :Caught ESAPinstException in Modulecall: ORA-27102: out of memory
SVR4 Error: 22: Invalid argument
Disconnected
my logs are:
sapinst.log
ERROR 2011-12-18 09:40:34.550
CJS-00084 SQL statement or script failed. DIAGNOSIS: Error message: ORA-27102: out of memory
SVR4 Error: 22: Invalid argument
Disconnected
. SOLUTION: For more information, see ora_sql_results.log and the Oracle documentation.
ERROR 2011-12-18 09:40:34.558
MUT-03025 Caught ESAPinstException in Modulecall: ORA-27102: out of memory
SVR4 Error: 22: Invalid argument
Disconnected
ERROR 2011-12-18 09:40:34.717
FCO-00011 The step createDatabase with step key |NW_ABAP_OneHost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_OraDBCheck|ind|ind|ind|ind|0|0|NW_OraDBMain|ind|ind|ind|ind|0|0|NW_OraDBStd|ind|ind|ind|ind|3|0|NW_OraDbBuild|ind|ind|ind|ind|5|0|createDatabase was executed with status ERROR ( Last error reported by the step :Caught ESAPinstException in Modulecall: ORA-27102: out of memory
SVR4 Error: 22: Invalid argument
Disconnected
INFO 2011-12-18 09:57:09.852
An error occured and the user decided to stop.\n Current step "|NW_ABAP_OneHost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_OraDBCheck|ind|ind|ind|ind|0|0|NW_OraDBMain|ind|ind|ind|ind|0|0|NW_OraDBStd|ind|ind|ind|ind|3|0|NW_OraDbBuild|ind|ind|ind|ind|5|0|createDatabase".
INFO 2011-12-18 09:57:15.747
Creating file /tmp/sapinst_instdir/.lastInstallationLocation.
INFO 2011-12-18 09:57:16.545
Creating file /tmp/sapinst_instdir/ERPEhP4/AS-ABAP/ORA/CENTRAL/__instana_tmp.xml.
oracle_sql_results.log
SQL*Plus: Release 10.2.0.4.0 - Production on Sun Dec 18 09:40:34 2011
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to an idle instance.
ORA-27102: out of memory
SVR4 Error: 22: Invalid argument
Disconnected
SAPINST: End of output of SQL executing program /oracle/PRD/102_64/bin/sqlplus.
SAPINST found errors.
SAPINST The current process environment may be found in sapinst_ora_environment.log.
2011-12-18, 09:40:34 SAPINST ORACLE stop logging
alert_prd.log
Sun Dec 18 09:40:34 2011
Starting ORACLE instance (normal)
Sun Dec 18 09:40:34 2011
WARNING: EINVAL creating segment of size 0x000000d8001b2000
fix shm parameters in /etc/system or equivalent
please sujest the solution very urjent pz........Dear deepak
itried to start the database manually
but it is not working.
SQL> startup
ORA-27102: out of memory
SVR4 Error: 22: Invalid argument
SQL>
and my shm parametrs for the Solaris ACCORDING TO NOTE 724713 are
projadd -p 333 -c "SAP System PRD" \
-U prdadm,oraprd \
-K "process.max-file-descriptor=(basic,65536,deny)" \
-K "process.max-sem-nsems=(priv,2048,deny)" \
-K "project.max-sem-ids=(priv,1024,deny)" \
-K "project.max-shm-ids=(priv,256,deny)" \
-K "project.max-shm-memory=(priv,18446744073709551615,deny)" \
dr
projmod -s \
-K "process.max-file-descriptor=(basic,65536,deny)" \
-K "process.max-sem-nsems=(priv,2048,deny)" \
-K "project.max-sem-ids=(priv,1024,deny)" \
-K "project.max-shm-ids=(priv,256,deny)" \
-K "project.max-shm-memory=(priv,18446744073709551615,deny)" \
user.root
prdadm::::project=dr;oraprd::::project=dr
thanks & Regards
k.Phani Krishna -
Regarding case statement and decode function
Hi Experts,
I have question.....regarding case statement and decode statement....
Can you please explain me that which one will be efficient,to place in insert statement...
insert statement(
(case when ........then
case when ....then
else
end)
else
end)
or
insert statement(
case when.....then
decode(....)
else
end)
Can you people explain me which one is more efficient method?
Thanks in advance.......The are major differences to talk about in case of CASE vs DECODE, but performance wise both are pretty much the same.
Have a look at Tom's thread
Ask Tom &quot;better performance - case or decode&quot;
I would suggest to use CASE whenever possible. Don't worry about the performance part. -
CJS-00084 SQL Statement or Script failed. Error Message: Executable
Hello
Hello
I am facing one problem at the time of installing 4.7 IDES can you please guide me on that. Do I need to reinstall system ageing or it can be sort it out in this stage.
ERROR AT THE TIME OF INSTALLING SAP 4.7 IDES ARE
1. CJS-00084 SQL Statement or Script failed. Error Message: Executable
C:\oracle\ora92/bin/sqlplus.exe returns 3.
2. FJS-00012 Error when executing script.
Complete error log :--
INFO 2000-06-15 20:56:57
Moving file C:/SAPinst ORACLE KERNEL/changed_init_ora_tmp.txt to: C:\oracle\ora92\database\initGOD.ora.
INFO 2000-06-15 20:56:57
Removing file C:/SAPinst ORACLE KERNEL/orig_init_ora_tmp.txt.
INFO 2000-06-15 20:56:57
Creating file C:\SAPinst ORACLE KERNEL\lsnrctl.log.
INFO 2000-06-15 20:56:58
See 'C:\oracle\ora92/bin/lsnrctl stat' output in 'C:\SAPinst ORACLE KERNEL\lsnrctl.log'.
INFO 2000-06-15 20:56:58
'C:\oracle\ora92/bin/lsnrctl stat' returned with '3'.
INFO 2000-06-15 20:56:58
Creating file C:\SAPinst ORACLE KERNEL\lsnrctl.log.
INFO 2000-06-15 20:56:58
See 'C:\oracle\ora92/bin/lsnrctl start' output in 'C:\SAPinst ORACLE KERNEL\lsnrctl.log'.
INFO 2000-06-15 20:56:58
'C:\oracle\ora92/bin/lsnrctl start' returned with '0'.
INFO 2000-06-15 20:56:58
Copying file D:/SAP_DUMP/CD1/KERNEL/NT/COMMON/INSTALL/ORADBUSR.SQL to: ./oradbusr.sql.
INFO 2000-06-15 20:56:58
Creating file C:\SAPinst ORACLE KERNEL\oradbusr.sql.
INFO 2000-06-15 20:56:59
Changed working directory to C:\SAPinst ORACLE KERNEL.
INFO 2000-06-15 20:56:59
Changed working directory to C:\SAPinst ORACLE KERNEL.
ERROR 2000-06-15 20:57:00
CJS-00084 SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
ERROR 2000-06-15 20:57:00
FJS-00012 Error when executing script.
INFO 2000-06-15 20:56:57
Moving file C:/SAPinst ORACLE KERNEL/changed_init_ora_tmp.txt to: C:\oracle\ora92\database\initGOD.ora.
INFO 2000-06-15 20:56:57
Removing file C:/SAPinst ORACLE KERNEL/orig_init_ora_tmp.txt.
INFO 2000-06-15 20:56:57
Creating file C:\SAPinst ORACLE KERNEL\lsnrctl.log.
INFO 2000-06-15 20:56:58
See 'C:\oracle\ora92/bin/lsnrctl stat' output in 'C:\SAPinst ORACLE KERNEL\lsnrctl.log'.
INFO 2000-06-15 20:56:58
'C:\oracle\ora92/bin/lsnrctl stat' returned with '3'.
INFO 2000-06-15 20:56:58
Creating file C:\SAPinst ORACLE KERNEL\lsnrctl.log.
INFO 2000-06-15 20:56:58
See 'C:\oracle\ora92/bin/lsnrctl start' output in 'C:\SAPinst ORACLE KERNEL\lsnrctl.log'.
INFO 2000-06-15 20:56:58
'C:\oracle\ora92/bin/lsnrctl start' returned with '0'.
INFO 2000-06-15 20:56:58
Copying file D:/SAP_DUMP/CD1/KERNEL/NT/COMMON/INSTALL/ORADBUSR.SQL to: ./oradbusr.sql.
INFO 2000-06-15 20:56:58
Creating file C:\SAPinst ORACLE KERNEL\oradbusr.sql.
INFO 2000-06-15 20:56:59
Changed working directory to C:\SAPinst ORACLE KERNEL.
INFO 2000-06-15 20:56:59
Changed working directory to C:\SAPinst ORACLE KERNEL.
ERROR 2000-06-15 20:57:00
CJS-00084 SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
ERROR 2000-06-15 20:57:00
FJS-00012 Error when executing script.
INFO 2000-06-15 21:04:28
Changed working directory to C:\SAPinst ORACLE KERNEL.
INFO 2000-06-15 21:04:28
Changed working directory to C:\SAPinst ORACLE KERNEL.
ERROR 2000-06-15 21:04:29
CJS-00084 SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
ERROR 2000-06-15 21:04:29
FJS-00012 Error when executing script.
INFO 2000-06-15 21:04:37
Changed working directory to C:\SAPinst ORACLE KERNEL.
INFO 2000-06-15 21:04:37
Changed working directory to C:\SAPinst ORACLE KERNEL.
ERROR 2000-06-15 21:04:37
CJS-00084 SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
ERROR 2000-06-15 21:04:37
FJS-00012 Error when executing script.
INFO 2000-06-15 21:04:51
Changed working directory to C:\SAPinst ORACLE KERNEL.
INFO 2000-06-15 21:04:51
Changed working directory to C:\SAPinst ORACLE KERNEL.
ERROR 2000-06-15 21:04:51
CJS-00084 SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
ERROR 2000-06-15 21:04:51
FJS-00012 Error when executing script.
WARNING 2000-06-15 21:07:00
Error 2 (The system cannot find the file specified.
) in execution of a 'CreateProcess' function, line (276), with parameter (C:\oracle\ora92/bin/sqlplus.exe /NOLOG @ora_scr_tmp.sql).
ERROR 2000-06-15 21:07:00
MDB-06029 Caught exception while trying to start script executing application: [C:\oracle\ora92/bin/sqlplus.exe].
ERROR 2000-06-15 21:07:00
MDB-06030 A call to the system library failed. System error message: [No such file or directory].
ERROR 2000-06-15 21:07:00
MUT-02011 Internal error: A call to syslib failed. System error message: No such file or directory.
ERROR 2000-06-15 21:07:00
FJS-00012 Error when executing script.
WARNING 2000-06-15 21:11:52
Error 1326 (Logon failure: unknown user name or bad password.
) in execution of a 'LogonUser' function, line (537), with parameter (SAPTRANSHOST\godadm).
ERROR 2000-06-15 21:11:52
MDB-06029 Caught exception while trying to start script executing application: [C:\oracle\ora92/bin/sqlplus.exe].
ERROR 2000-06-15 21:11:52
MDB-06030 A call to the system library failed. System error message: [Unknown error].
ERROR 2000-06-15 21:11:52
MUT-02011 Internal error: A call to syslib failed. System error message: Unknown error.
ERROR 2000-06-15 21:11:52
FJS-00012 Error when executing script.
INFO 2000-06-15 21:11:53
Changed working directory to C:\SAPinst ORACLE KERNEL.
INFO 2000-06-15 21:11:54
Changed working directory to C:\SAPinst ORACLE KERNEL.
ERROR 2000-06-15 21:11:54
CJS-00084 SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
ERROR 2000-06-15 21:11:54
FJS-00012 Error when executing script.
INFO 2000-06-15 21:13:42
Changed working directory to C:\SAPinst ORACLE KERNEL.
INFO 2000-06-15 21:13:42
Changed working directory to C:\SAPinst ORACLE KERNEL.
ERROR 2000-06-15 21:13:42
CJS-00084 SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
ERROR 2000-06-15 21:13:42
FJS-00012 Error when executing script.
INFO 2000-06-16 02:00:06
Changed working directory to C:\SAPinst ORACLE KERNEL.
INFO 2000-06-16 02:00:07
Changed working directory to C:\SAPinst ORACLE KERNEL.
ERROR 2000-06-16 02:00:07
CJS-00084 SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
ERROR 2000-06-16 02:00:07
FJS-00012 Error when executing script.
INFO 2000-06-16 02:08:16
Changed working directory to C:\SAPinst ORACLE KERNEL.
INFO 2000-06-16 02:08:16
Changed working directory to C:\SAPinst ORACLE KERNEL.
ERROR 2000-06-16 02:08:18
CJS-00084 SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
ERROR 2000-06-16 02:08:18
FJS-00012 Error when executing script.
INFO 2000-06-16 02:09:48
Changed working directory to C:\SAPinst ORACLE KERNEL.
INFO 2000-06-16 02:09:49
Changed working directory to C:\SAPinst ORACLE KERNEL.
ERROR 2000-06-16 02:09:49
CJS-00084 SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
ERROR 2000-06-16 02:09:49
FJS-00012 Error when executing script.
INFO 2000-06-16 02:14:33
Changed working directory to C:\SAPinst ORACLE KERNEL.
INFO 2000-06-16 02:14:33
Changed working directory to C:\SAPinst ORACLE KERNEL.
ERROR 2000-06-16 02:14:33
CJS-00084 SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
ERROR 2000-06-16 02:14:33
FJS-00012 Error when executing script.> WARNING 2000-06-15 21:07:00
> Error 2 (The system cannot find the file specified.
> ) in execution of a 'CreateProcess' function, line
> (276), with parameter
> (C:\oracle\ora92/bin/sqlplus.exe /NOLOG
> @ora_scr_tmp.sql).
> ERROR 2000-06-15 21:07:00
> MDB-06029 Caught exception while trying to start
> script executing application:
> [C:\oracle\ora92/bin/sqlplus.exe].
> ERROR 2000-06-15 21:07:00
> MDB-06030 A call to the system library failed.
> System error message: [No such file or directory].
> ERROR 2000-06-15 21:07:00
> MUT-02011 Internal error: A call to syslib failed.
> System error message: No such file or directory.
> ERROR 2000-06-15 21:07:00
> FJS-00012 Error when executing script.
> WARNING 2000-06-15 21:11:52
> Error 1326 (Logon failure: unknown user name or bad
> password.
> ) in execution of a 'LogonUser' function, line (537),
> with parameter (SAPTRANSHOST\godadm).
> ERROR 2000-06-15 21:11:52
> MDB-06029 Caught exception while trying to start
> script executing application:
> [C:\oracle\ora92/bin/sqlplus.exe].
is that file there (sqlplus)?
as which user are you installing?
Markus -
hi experts,
anybody knows how to use summing command in script.
pl explain with an example.
Thanks!
Edited by: Ranganayahi Chandirasekaran on Mar 6, 2008 12:58 PMHi Chandirasekaran,
Try the following link,
Link: [http://help.sap.com/saphelp_47x200/helpdata/en/d2/cb3d07455611d189710000e8322d00/frameset.htm]
Reward if helpful. -
Getting error CJS-00084 SQL Statement or script failed while creating a DB
Hi All,
I ma trying to install IDES CRM 4.0 with Oracle DB and process went fine till the point of central instance installation. I am at the final step of installing the database instance and got an error while it is performing different steps of it.
At the step CREATE ORACLE DATABASE, i got the below error message:
CJS-00084 SQL statement or script failed. DIAGNOSIS: Error message: ORA-01092: ORACLE instance terminated. Disconnection forced
Can someone help me to resolve this?
Thanks
Vijay-> did you follow all steps correctly? for example did you say NO when runinstaller asks for database creation?
-> which operating system are you on?
GreetZ, AH -
Hi everyone
I need to calculate some totals in an itab and have discivered the SUM statement, which seems a very easy way to achieve this. However, being a cynical chap I was wondering if this carries a large overhead and will be less efficient than just storing a running total in a variable i.e x = x + y.
I anybody able to shed any light...?
Thanks
AndySUM.
Effect
When processing an internal table in a block starting with LOOP and concluded by ENDLOOP , SUM calculates the control totals of all fields of type I , F and P (see also ABAP/4 number types ) and places them in the LOOP output area (header line of the internal table or an explicitly specified work area).
Sum statement in report is basically used in Control Break Processing.
After you fill an internal table with data, you often need to write the data out. This output will frequently contain summary information(uch as totals) at the top or bottom of the report.There might also be interim situations (such as subtotals ) within the body of report.
To do this , you can read the data into an internal table and then, within loop at , use the following statements:
1. at first / endat
2.at last / endat
3.at new / endat
4.at end of / endat
5.sum
6.on change of / endon.
The first statement of each of these pairs - except for Sum - controls when the code lies between them is executed.This type of control is called a control break.Their purpose is to ececute the code between them whenever a specific condition in the data is detected during the processing of the loop.
Using the Sum statement :
syntax :
at first/last/new/end of.
sum
endat.
where :
... represents any number of lines of code.
Sum calculates a total for the current value of the control level that contains it.
It finds all rows that have the same values within the control level field and all fields of the left of it.
It sums each numeric column to the right of the control level.
It places the totals in the corresponding fields of the work area. -
Control break statements in Scripts
Hi All
Please help me.
What are the control break statements are possible in SAP Scripts for Main Window.
Regards
PraveenThis gives over view of almost all control commands.
ADDRESS Formatting of addresses
BOTTOM, ENDBOTTOM Define footer text in a window
BOX, POSITION, SIZE Boxes, lines and shading
CASE, ENDCASE Case distinction
DEFINE Value assignment to text symbols
HEX, ENDHEX Hexadecimal values
IF, ENDIF Conditional text output
INCLUDE Include other texts
NEW-PAGE Explicit forms feed
NEW-WINDOW Next window MAIN
PRINT-CONTROL Insert print control character
PROTECT, ENDPROTECT Protect from page break
RESET Initialize outline paragraphs
SET COUNTRY Country-specific formatting
SET DATE MASK Formatting of date fields
SET SIGN Position of +/- sign
SET TIME MASK Formatting of time fields
STYLE Change style
SUMMING Summing variables
TOP Set header text in window MAIN -
Length of if statement in script editor is more than two lines
dear friends
when i am modifying the purchase order with new purchase organisations in script editor , i found that the line continued to both left and right pages, if i want to extend the line there is no 3 rd page. how can i extend the if statement.
regards,
k.srinivas.Hi,
After complete of line , Please Enter Shift+F8.
Regards
jana -
How to write select statement into SCRIPT editor
hello,
i build a sap script for purchase order printing for exporting.
now after all po order print fine then our client want some more should be print into layout regarding po header.
At the soul my q is can i write select query into script editor itself.
thanks and regards
amit.You cannot write your select statement inside your SAPscript, to overcome this SAP has provided us an option of calling sub-routines.. go through the below example
Go through this example
Ex. SAPSCRIPT
/: PERFORM <Subroutine name> IN PROGRAM <subroutine prog name>
/:USING &<field name>&
/:CHANGING &<field name1& "It will be returned back from sub-routine
/:ENDPERFORM
Then create subroutine pool program(of your own name) and you have to write the code.
FORM ><subroutine name> tables int_cond structure itcsy
outt_cond structure itcsy.
data : value(20), value1(20). "do your own declarations
Read int_cond table index 1.
value = int_cond-value.
value1 = value1 + value.
*****Write your select statement
Read outt_cond table index 1.
outt_cond-value = value1.
Modify outt_cond index 1.
ENDFORM.
Just rough idea given above.
Regards,
SaiRam
Maybe you are looking for
-
[votproductions@Arch ~]$ sudo uname -a Linux Arch 3.3.7-1-ck #1 SMP PREEMPT Mon May 21 21:50:24 EDT 2012 x86_64 GNU/Linux I think one of my disks are failing, /dev/sdb at ata4.0. Here's an extract from dmesg: [ 3210.426363] ata4: lost interrupt (Stat
-
Unknown error -50 in Store ?
Hello, I'm working in a radio company and I installed iTunes 7 in my pc but doesn't work correctly. I have a problem in my iTunes Store: "unknown error -50". Therefore I can't buy anything in the store. The search is ok! At home everything is ok. Whe
-
Process Spaces - SOA/BPM Integration
Hello, Has anyone tried to import the Process Spaces Workspace in the new release (11.1.1.5) ? I ran the script smoothly, but I cand find the Process Spaces inside the WC Spaces portal!!! The screenshots on the documentation seem to be pointing to an
-
Hi, I've had my iPod Touch for over a year now. It's a 1st generation and my wifi used to work but now it just stopped. Sometimes it will just gray out and say No WiFi even though I'm using it here so i dont understand that. Sometimes the wifi will s
-
SQL syntax for expert little help Access 2013
Hi working example SQL local machine strData= "SELECT DISTINCT Detail, FamCode as Fam FROM Mat_Family ORDER BY FamCode" cmbMatFam.RowSource=strData