Error on Adding AR Invoice
Hi Experts,
We have error on adding AR invoice (AR), Delivery (AR), Goods Receipt PO (AP), AP Invoice (AP). Please help on this error..
below is the error message:
[microsoft] [SQL Native Client] [SQL Server] Conversion failed when converting the nvarchar value '65002 0' to data type int. (CINF)
Thanks,
John
Hi Jon,
What Rahul meant was, if you have certain user defined fields or tables in SAP B1, these user defined fields can have some data or queries. This data or data returned by queries may have some strange characters in them. So he asked you to disable all your FMS fields and then test to ensure the error.
I found one more link, they have similar problems as yours due to Store Procedures they had and migrated from 2007A to 8.8. Could this be your situation? Please read through this link - [Microsoft][SQL Native Client][SQL Server]Conversion failed when converting and note the SAP B1 notes.
Similar Messages
-
DI API error while adding AP Invoice (Using serial Nos.)
Hi,
Im getting the following DI API error when adding an AP Invoice which has serial numbers and i cant seem to find any logical fault in the code.
" [PCH1.WhsCode][line: 4] , 'This entry already exists in the following tables (ODBC -2035) "
If anybody has encountered this error and found a solution kindly let me know.Hi Vivek,
Are you trying to add same document number, serial number or so on?
"entry exist " means like "duplicate key problem", I guess.
Basically, whscode column in PCH1 table allows duplicating.
So, I think serial number is duplicated among same item code.
Hope this useful for you.
Regards,
Hyunil Choi. -
Dear All,
I find an error appears when adding AP invoice, the error message is:
there is a different between document total and its components[A/P invoice - Rows - Warehouse code][line : 0][message 439 - 138]. I could not add the AP invoice because of this error. Please give advice. Thanks
Rgds,Hello,
I am trying to replicate your problem but fails. Maybe you could try to duplicate the row line that the components exist by right click --> duplicate and then delete the old row where it has been used to add AP invoice previously.
IF the problem still persists, just contact SAP support.
Rgds, -
Dear all,
I get the error below whenever i add an A/R Invoice copied from a Sales Order.
[Microsoft][SQL Server Native Client 10.0][SQL Server]Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression. (CINF)
My G/l account are set per item group. I have no Transaction notifications on my database, neither do i have formatted searches.
I run a query on the CINF table of the database, and below is what i got.
Version
CompnyName
Flags
InfoL1
InfoL2
InfoA1
InfoA2
ACTStamp
ADMStamp
RTTStamp
CINFStamp
LawsSet
EnblVatGrp
EnblVTGPmn
VatOOS_O
VatOOS_I
VatStnd_O
VatStnd_I
VatExmpt_O
VatExmpt_I
VatHalf_O
VatHalf_I
VatZrRt_O
VatZrRt_I
MaxActGrps
EnblDctSrc
EnblRCN
EnblCorINV
EnblCshRep
EnblIRTRep
EnblTrnRep
EnblVPMRep
EnblACTRep
EnblFTZ
EnblSlfPCH
EnblPCHUpd
EnblRsvINV
EnblRTDnld
RTTDnldAdr
ZPrcCode
EnblExpns
EnblRtrRep
IsEC
EnblCshDsc
EnblLostCD
NumActLvls
EnblRealRD
EnblVTGNoD
EnblGLManP
EnblOptVIP
EnblActCrC
EnblFrnAct
EnblECAct
EnblECRpt
EnblRound
EnblPrVatS
EnblYrTrns
EnblActTtl
EnblDocWrn
ActSegNum
EnbSgmnAct
SizeOfSeg0
SizeOfSeg1
SizeOfSeg2
SizeOfSeg3
SizeOfSeg4
SizeOfSeg5
SizeOfSeg6
SizeOfSeg7
SizeOfSeg8
SizeOfSeg9
Rprt1099
MultiAddss
EnbDunning
EnbQtyEDln
Itw1Date
Itw1Time
Itw1Count
EnbPayRef
EnblDfrTax
EnblClsPr
EnblTaxEL
EnableBOE
EnableWHT
EnblEquVat
EnblFAsset
EnblDoubt
RateBase
BOEStatClo
ARDocsInWT
BISBnkCnt
BISRBnkCd
BISRBnkAc
BISRBranch
EnblBPConn
EnblVATDat
EnblStAgRp
EnblCARepo
EnblMatRev
EnblMBPRec
CshDscGros
EnblTaxInv
EnblCorAct
EnblRuDIP
EnblCurDec
EnblPayMtd
EnblBaseUn
EnblVATAna
EnblExREnh
VATGrpCal
MaxChoose
EnblInfla
EnblLAWHT
EnblRTWHT
ChkQunty
SriMngSys
BtchMngSys
SriCreatIn
EnblFolio
EnblDocSbT
IepsPayer
DaysOrdCnc
EnblLATaxS
PercOfAcq
MinBaseDoc
EnblDpmJdt
EnblDownP
EnblNDdctC
DocNmMtd
DoFilter
EnblOnPDCh
EnblOnWnCr
EnblDefInx
EnblMxComm
EnblIndxOp
EnblSbtCVo
MinAmntOAP
CredSumm
PostdChk
PostdCred
CredVend
WkoStatus
DispTrByDf
stampTax
MinAmntAL
BlockZeroQ
AutoCrIns
EnbRepomo
RFCValidat
MxDcsInPmt
RelStkNoPr
CashDisc
EnableSMS
EnblIndic
EnbFedTax
EnblCounty
Language
ChkIntgUpd
ChkIntgCre
BisBnkAcKy
EnbZeroDec
EnbDecWord
ChkWrdOnly
EnBnkStmnt
CalcVatGrp
TaxSysType
ESEnabled
RateTotal
CompanyHis
EnblAssVal
CompanySta
eFRTActLvs
TaxGrpType
InstallNo
IsOldPA
EnbNegDoc
Algo
ArcComp
UpdatedTF
DARDBGUID
NegStoLv
SPNEnabled
PrsWkCntEb
DashbdEb
BoxEffDate
LogInstanc
UpdateDate
UserSign2
SnapShotId
CreatedBy
B1SgtEb
IsHConEnv
B1BuzzEb
IMCEEnable
DKeyId
ResetDData
ConvDifAct
BasEffDate
oldFxAss
EnblSPEDUF
DpmAffTot
AliasUpd
TrailDays
TestComp
900059
CONSULTANTS THRIFT SHOP
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
NULL
NULL
NULL
NULL
0
0
0
0
GB
L
Y
X0
X1
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
8
N
N
N
N
N
N
N
N
N
N
N
Y
N
NULL
Centr_z
N
NULL
Y
V
NULL
5
Y
Y
NULL
NULL
Y
Y
Y
NULL
Y
Y
N
NULL
NULL
0
N
0
0
0
0
0
0
0
0
0
0
N
NULL
Y
NULL
NULL
NULL
NULL
NULL
N
NULL
NULL
N
Y
N
NULL
Y
P
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
N
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
0
NULL
NULL
NULL
Y
A
R
N
NULL
NULL
N
30
NULL
0.000000
0.000000
Y
Y
NULL
NULL
N
Y
Y
Y
Y
Y
Y
0.000000
Y
Y
Y
Y
N
Y
NULL
0.000000
Y
N
NULL
NULL
0
N
Y
NULL
NULL
NULL
NULL
8
Y
Y
NULL
N
N
Y
Y
Y
C
Y
N
WLmoDoOSCMGhoQ0p5Je2VAuNuIsxs+xwkjJ00iqy26uhiWnqPsyY+k2y+UmG7nO3byikDfh5owQFqeE4luz3EY+wnL2U/4klc8WP9Wt0fLhV/MRbHHlzF3AWWr1A1uvApg2LE/WvPXA+PLNE054RPBM7c6tR9aVxe97Iz/WxgWWnTCQtDjrh1/nNznSyWDz7VEYCEIVNR6yIvONUcxXZ+a1645XBXnDSTpfAnmTwTqldT7DQrYspoXF6/E2jiAF9gbsZhIVsgPMqPFrau7TiBVG9SZQVcGL9YpJPdUTv32AxKwcqOmEM1xwjjRQpXyRjMw4LXwtH7jixO1d82HTNl60HoEnjiUQ8AaoKyo77vlXoqi7QZwQQzTFhPJ0M8she2KMYh++m1k5nNDwsgjEy9vh979EZHETvMbVzMecAAMBZPXSVN/4YdBaXDi0zcsZonEeYJcX8FuzHUWS1r389szsaHCrnEjyg2DImITit4H9dQP9AtMxqvyz5ItzbRjMFoFIoYOHzf6kD89EDiNA7ZMa0qyNiSs/KZ/qQJvfkbvNUwseWsW5H2l1rctA+sHOSJUXmBb7aJPOQBT4YquTQvj+qtd/15NkahbDiECZMRPgjzA4nLrLRGD4P/0RFPMHOY9A1KTLIy5jyi5xwz9HSJM6nJvtwDacdli9etIgAngySHOAk5vbA9u4645iAc+GlUN5RzJ0AsjsKb676NPGiN9hqrhH47s9tyGjWHTT1m35mPwEaUesmnfxnqgK2QZpHRApFDwPTkOXDT1sihc/fyWAQAUSJ+NVN
N
V
NULL
C
0020499568
N
Y
2
N
N
NULL
I
Y
N
N
NULL
0
NULL
NULL
0
N
Y
N
N
N
N
Y
NULL
N
N
Y
ccZ4OznhLdCkLrrBZhhrLiWoR0Di2TmV0CmEQ+FlmlOfwvBRPMXpUw==
NULL
N
I am using SAP 9.0 PL 07
Please advice furtherHi,
As per above query, sure it will return more than one value. Modify your query if needed,
SELECT Version FROM Cinf
Please refer SAP note:
1988426 - The Formatted Search triggers on a field with no
updates
Thanks & Regards,
Nagarajan -
Error on adding A/P Invoice
Hi Experts,
I have encountered some problem on adding A/P Invoice (copy from Goods Receipt-PO). The error is u201CInventory Account is not defined, u2018ITEM001u2019 [Message 173-77]. This item 'ITEM001' is Set by GL Account by ITEMGROUP (at ITEM Master). I have already checked the Item Group that attached on this item and we don't see anything wrong on our configuration. And this specific item only have problem on adding AP Invoice.
The ItemGroup that attached on item ITEM001 have Inventory Account and Allocation Account entry already. Please help me guys how to solve this issue....
Thank You So Much.
JonHi Jon,
Check also in
1. Administration->Setup-> Financial->G/L Account Determination
2. Administration->Setup-> Inventory->Warehouses-> Accounting Tab (your selected warehouse in transaction)
3. Administration->Setup-> Inventory->Item Groups-> Accounting Tab
Thanks
Sachin -
Error While Adding Service A\P Invoice
Hi Expert,
I am getting an Error while adding the service A\P invoice The error is:
System.NullRefernce Exception :- Object Reference not set to an instance of an object. At CXS_TDS_BAL.clsAPInvoice
I also Restarted my TDS Addon but still getting same error
Thanks & Regards,
Pankaj SharmaHi Pankaj Sharma,
Your question belongs to Add-on forum. Check it there to see if there are similar issues solved or not. If not, post it there.
Thanks,
Gordon -
Error while adding A/P Credit Memo!
Error while adding A/P Credit Memo..........
'G/L Accounts' (OACT) (ODBC-2028) Message - 131-183
Please advice me .....
Thanks...Hi
Check this thread this may help you.
[Re: AP Invoice - No Matching Account Error]
Regards
Balaji -
Runtime error: RAISE_EXCEPTION while release invoice doc to accounting
Hi guys,
System going to dump (Run time error: RAISE_EXCEPTION) while releasing invoice document to accounting.
In VF02 screen after giving billing document as input value and if you try to release it to accounting then system is going dump and giving the above error. I have checked accounting document number ranges also, apart from this could you pls let me know any clue(functional point of view).
Thx in advance....regards.......Divakaran.....Hi,
please check whether the latest version (Version 6 from 28.07.2008)
of SAP Note 1039154 is contained in your system.
You can check this via transaction SE37 for the function module:
FI_WT_COPY_DOWNP_INFO.
The source code should look as follows:
CALL FUNCTION 'FI_WT_READ_WT_INFO'
EXPORTING
I_BUKRS = i_bukrs
I_BELNR = i_belnr
I_GJAHR = i_gjahr
I_BUZEI = i_rebzz
TABLES
T_WITH_ITEM = l_with_item
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2.
Please ensure that the coding in your system is the same as per the
source code in note 1039154 if changes cannot be done via snote, then
the code should be manually added.
This has solved this issue for others in the past.
The dump might also caused by FI validation.
Could you try to deactivate the FI validation by transaction OB28 and retest on the
issue.
Cheers,
Alex -
Error while raising a invoice using VF01
Hi,
I am getting an error while raising a invoice using VF01.
Error as follows
RV_MESSAGE_UPDATE
Update was terminated
System ID.... TIP
Client....... 300
User..... user1
Transaction.. VF01
Update key... E66E6454075548D8922BAC091E81F0CB
Generated.... 18.07.2007, 18:57:38
Completed.... 18.07.2007, 18:57:38
Error info... TD 443: WRITE_FORM
Pls help
Points will be rewarded.
ThanksHi,
This is an ABAP short dump. If you go through the error log, there will be a section where in you can see > What caused the problem.
Try to analyze this log and you can find a solution. Probably, you can also check whether there is any OSS note with this error message.
Thanks
Murali. -
Account determination error - in creation of invoice
Hello experts,
i have an error in creation of invoice, after( pgi post goods issue)
will you please help me out to solve this error.
thanks & Regards,
yogesh rainahello sir,
After going throuth this path it shows no gl account in account determination chart
as below
Condition type Message Description
ZPR0 123 Access KOFI not carried out (initialized field)
Access Message Description
10 123 Access KOFI not carried out (initialized field)
20 121 No G/L account found in Account determination type KOFI
30 123 Access KOFI not carried out (initialized field)
40 121 No G/L account found in Account determination type KOFI
50 121 No G/L account found in Account determination type KOFI
60 123 Access KOFI not carried out (initialized field) -
Error while adding a connector for SSL..help!!!
i'm getting this error when i added a connector for SSL and restarted tomcat
my connector tag is
<Connector keystorePass="kalima" scheme="https" port="8443" sslProtocol="TLS" redirectPort="-1" enableLookups="true" keystoreFile="Mykeystore" protocol="TLS" keystore="C:\Documents and Settings\santhoshyma\Mykeystore" clientauth="false" algorithm="SunX509" keypass="changeit" secure="true" keytype="JKS">
<Factory className="org.apache.coyote.tomcat5.CoyoteServerSocketFactory" keystorePass="kalima" keystoreFile="C:\SSLTest\Mykeystore"/>
</Connector>
LifecycleException: Protocol handler instantiation failed: java.lang.NullPointe
rException
at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.
java:1368)
at org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:609)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:2384)
at org.apache.catalina.startup.Catalina.load(Catalina.java:507)
at org.apache.catalina.startup.Catalina.load(Catalina.java:528)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:250)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424)The question is answered in CRM 7.0 forum:
Getting error while adding a custom field (with input help) through AET -
Error while adding a custom field with Input help via AET
Hi All,
I need to add two custom field under Service orders at Item level in component BT140I_SRVP.
One field is required to have the input search help f4 and autopopulates the second field
I am able to add one field(not requiring help) successfully through AET .
I have created one Zsearch_help in se11 and its successfully running and Autopopulating seocnd field while I am testing it
While adding second field through AET,I need to enter following details as -
field label,search relevant ,serach help etc.
When I type the name of my 'Zsearch_help' against field search help it gives me following error
'Search help is not compatible'.
Secondly,not getting getter and setter methods for the attrributes in BTAdminI.
Last,please tell me if i create zhelp and activate it,would it automatically appear in the list on AETwhile assiging it to input field?
Please help me out.Kindly be detailed as I am new to SAP CRM.
Thanks,
ShivaniThe question is answered in CRM 7.0 forum:
Getting error while adding a custom field (with input help) through AET -
I am getting the following error while adding record into the table CM_RECIPE_ITEM :
<h4> Error </h4>
ORA-20505: Error in DML: p_rowid=626, p_alt_rowid=CRI_ID, p_rowid2=, p_alt_rowid2=. ORA-01410: invalid ROWID ORA-06512: at "COSTMAN.CM_RECIPE_ITEM_T3_AFTER", line 11 ORA-04088: error during execution of trigger 'COSTMAN.CM_RECIPE_ITEM_T3_AFTER'
Error Unable to process row of table CM_RECIPE_ITEM.
Kindly suggest if the problem is because of the Global temporary table or the triggers given below. Also suggest the solution.
Thanking You,
Yogesh
<h4> CM_RECIPE_ITEM Table </h4>
CRI_ID------CRI_CR_ID--------CRI_BOM_CODE--------CRI_CIFG_CODE---------CRI_CIRM_CODE--------CRI_SEQ--------CRI_QTY--------CRI_RM_COST
625----------464-----------------PRODUCT3001----------FG003----------------------10---------------------------1-------------------60-----------------10
626----------464-----------------PRODUCT3001----------FG003----------------------12---------------------------2-------------------40------------------10
<h4>Global temporary table</h4>
DROP TABLE COSTMAN.INTERIM CASCADE CONSTRAINTS;
CREATE GLOBAL TEMPORARY TABLE COSTMAN.INTERIM
ROW_ID ROWID
ON COMMIT PRESERVE ROWS
NOCACHE;
CREATE OR REPLACE TRIGGER COSTMAN."CM_RECIPE_ITEM_T3"
BEFORE INSERT OR UPDATE ON "CM_RECIPE_ITEM" FOR EACH ROW
BEGIN
INSERT INTO interim VALUES (:new.rowid);
END;
<h4>Trigger to update data on CM_RECIPE table </h4>
CREATE OR REPLACE TRIGGER COSTMAN."CM_RECIPE_ITEM_T3_AFTER"
AFTER INSERT OR UPDATE ON "CM_RECIPE_ITEM"
BEGIN
FOR ds IN (SELECT row_id FROM interim) LOOP
UPDATE CM_RECIPE
SET CR_RMC = (
SELECT SUM(CRI_QTY * CRI_RM_COST)/SUM(CR_QUANTITY)
FROM CM_RECIPE_ITEM
WHERE CRI_BOM_CODE = CR_BOM_CODE
AND rowid = ds.row_id
UPDATE CM_RECIPE
SET CR_TOTAL_COST = (
SELECT CIFG_PACKING + CIFG_OVERHEAD +CIFG_OTHERS
FROM CM_ITEM_FG
WHERE CIFG_CODE = CR_CIFG_CODE
AND rowid = ds.row_id
) + CR_RMC;
UPDATE CM_RECIPE
SET CR_GROSS_MARGIN =
(SELECT CIFG_DP_RATE
FROM CM_ITEM_FG
WHERE CIFG_CODE = CR_CIFG_CODE
AND rowid = ds.row_id) - CR_TOTAL_COST) / CR_TOTAL_COST;
END LOOP;
END;
/The scripts of the tables CM_ITEM_FG, CM_RECIPE, CM_RECIPE_ITEM are as follows :
<h4>CM_ITEM_FG</h4>
ALTER TABLE COSTMAN.CM_ITEM_FG
DROP PRIMARY KEY CASCADE;
DROP TABLE COSTMAN.CM_ITEM_FG CASCADE CONSTRAINTS;
CREATE TABLE COSTMAN.CM_ITEM_FG
CIFG_CODE VARCHAR2(13 BYTE) NOT NULL,
CIFG_CCG_ID NUMBER NOT NULL,
CIFG_NAME VARCHAR2(50 BYTE) NOT NULL,
CIFG_PACKING NUMBER NOT NULL,
CIFG_OVERHEAD NUMBER NOT NULL,
CIFG_OTHERS NUMBER NOT NULL,
CIFG_DP_RATE NUMBER NOT NULL,
CIFG_CR_BY VARCHAR2(32 BYTE),
CIFG_CR_ON DATE,
CIFG_UPD_BY VARCHAR2(32 BYTE),
CIFG_UPD_ON DATE
TABLESPACE COST_MANAGER
PCTUSED 0
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
LOGGING
NOCOMPRESS
NOCACHE
NOPARALLEL
MONITORING;
CREATE UNIQUE INDEX COSTMAN.CM_ITEM_FG_PK_001 ON COSTMAN.CM_ITEM_FG
(CIFG_CODE, CIFG_CCG_ID)
LOGGING
TABLESPACE COST_MANAGER
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
NOPARALLEL;
CREATE UNIQUE INDEX COSTMAN.CM_ITEM_FG_UK_001 ON COSTMAN.CM_ITEM_FG
(CIFG_CODE)
LOGGING
TABLESPACE COST_MANAGER
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
NOPARALLEL;
CREATE OR REPLACE TRIGGER COSTMAN."CM_ITEM_FG_T1"
BEFORE UPDATE ON "CM_ITEM_FG"
FOR EACH ROW
BEGIN
BEGIN
UPDATE CM_RECIPE
SET CR_TOTAL_COST = (CR_RMC + :NEW.CIFG_PACKING + :NEW.CIFG_OVERHEAD + :NEW.CIFG_OTHERS);
END;
BEGIN
UPDATE CM_RECIPE
SET CR_GROSS_MARGIN = (:NEW.CIFG_DP_RATE - CR_TOTAL_COST) / CR_TOTAL_COST;
END;
END;
ALTER TABLE COSTMAN.CM_ITEM_FG ADD (
CONSTRAINT CM_ITEM_FG_PK_001
PRIMARY KEY
(CIFG_CODE, CIFG_CCG_ID)
USING INDEX
TABLESPACE COST_MANAGER
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
CONSTRAINT CM_ITEM_FG_UK_001
UNIQUE (CIFG_CODE)
USING INDEX
TABLESPACE COST_MANAGER
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
ALTER TABLE COSTMAN.CM_ITEM_FG ADD (
CONSTRAINT CM_ITEM_FG_FK_001
FOREIGN KEY (CIFG_CCG_ID)
REFERENCES COSTMAN.CM_COST_GROUP (CCG_ID));
<h4>CM_RECIPE</H4>
ALTER TABLE COSTMAN.CM_RECIPE
DROP PRIMARY KEY CASCADE;
DROP TABLE COSTMAN.CM_RECIPE CASCADE CONSTRAINTS;
CREATE TABLE COSTMAN.CM_RECIPE
CR_ID NUMBER NOT NULL,
CR_CCG_ID NUMBER,
CR_EFF_FROM DATE,
CR_CIFG_CODE VARCHAR2(10 BYTE) NOT NULL,
CR_BOM_CODE VARCHAR2(50 BYTE),
CR_QUANTITY NUMBER,
CR_RMC NUMBER,
CR_TOTAL_COST NUMBER,
CR_GROSS_MARGIN NUMBER,
CR_CR_BY VARCHAR2(32 BYTE),
CR_CR_ON DATE,
CR_UPD_BY VARCHAR2(32 BYTE),
CR_UPD_ON DATE
TABLESPACE COST_MANAGER
PCTUSED 0
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
LOGGING
NOCOMPRESS
NOCACHE
NOPARALLEL
MONITORING;
CREATE UNIQUE INDEX COSTMAN.CM_RECIPE_PK_001 ON COSTMAN.CM_RECIPE
(CR_CCG_ID, CR_ID, CR_CIFG_CODE)
LOGGING
TABLESPACE COST_MANAGER
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
NOPARALLEL;
CREATE UNIQUE INDEX COSTMAN.CM_RECIPE_UK_001 ON COSTMAN.CM_RECIPE
(CR_ID)
LOGGING
TABLESPACE COST_MANAGER
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
NOPARALLEL;
CREATE UNIQUE INDEX COSTMAN.CM_RECIPE_UK_002 ON COSTMAN.CM_RECIPE
(CR_BOM_CODE)
LOGGING
TABLESPACE COST_MANAGER
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
NOPARALLEL;
CREATE OR REPLACE TRIGGER COSTMAN."CM_RECIPE_T1"
BEFORE INSERT ON "CM_RECIPE"
FOR EACH ROW
DECLARE
L_ID NUMBER;
BEGIN
IF INSERTING THEN
IF :NEW.CR_ID IS NULL THEN
--SELECT CM_RECIPE_SEQ.NEXTVAL INTO L_ID FROM DUAL;
:NEW.CR_ID := CM_RECIPE_SEQ.NEXTVAL; --L_ID;
END IF;
:NEW.CR_CR_ON := SYSDATE;
:NEW.CR_CR_BY := nvl(v('APP_USER'),USER);
END IF;
IF UPDATING THEN
:NEW.CR_UPD_ON := SYSDATE;
:NEW.CR_UPD_BY := nvl(v('APP_USER'),USER);
END IF;
END;
ALTER TABLE COSTMAN.CM_RECIPE ADD (
CHECK ("CR_EFF_FROM" IS NOT NULL) DISABLE,
CHECK ("CR_CCG_ID" IS NOT NULL) DISABLE,
CHECK ("CR_QUANTITY" IS NOT NULL) DISABLE,
CHECK ("CR_QUANTITY" IS NOT NULL) DISABLE,
CHECK ("CR_QUANTITY" IS NOT NULL) DISABLE,
CHECK ("CR_QUANTITY" IS NOT NULL) DISABLE,
CHECK ("CR_QUANTITY" IS NOT NULL) DISABLE,
CHECK ("CR_QUANTITY" IS NOT NULL) DISABLE,
CONSTRAINT CM_RECIPE_PK_001
PRIMARY KEY
(CR_ID)
USING INDEX
TABLESPACE COST_MANAGER
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
CONSTRAINT CM_RECIPE_UK_002
UNIQUE (CR_BOM_CODE)
USING INDEX
TABLESPACE COST_MANAGER
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
<h4>CM_RECIPE_ITEM</H4>
ALTER TABLE COSTMAN.CM_RECIPE_ITEM
DROP PRIMARY KEY CASCADE;
DROP TABLE COSTMAN.CM_RECIPE_ITEM CASCADE CONSTRAINTS;
CREATE TABLE COSTMAN.CM_RECIPE_ITEM
CRI_ID NUMBER NOT NULL,
CRI_CR_ID NUMBER NOT NULL,
CRI_BOM_CODE VARCHAR2(50 BYTE) NOT NULL,
CRI_CIFG_CODE VARCHAR2(10 BYTE) NOT NULL,
CRI_CIRM_CODE VARCHAR2(10 BYTE) NOT NULL,
CRI_SEQ NUMBER,
CRI_QTY NUMBER,
CRI_RM_COST NUMBER,
CRI_CR_BY VARCHAR2(32 BYTE),
CRI_CR_ON DATE,
CRI_UPD_BY VARCHAR2(32 BYTE),
CRI_UPD_ON DATE
TABLESPACE COST_MANAGER
PCTUSED 0
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
LOGGING
NOCOMPRESS
NOCACHE
NOPARALLEL
MONITORING;
CREATE UNIQUE INDEX COSTMAN.CM_RECIPE_ITEM_PK_001 ON COSTMAN.CM_RECIPE_ITEM
(CRI_ID)
LOGGING
TABLESPACE COST_MANAGER
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
NOPARALLEL;
CREATE OR REPLACE TRIGGER COSTMAN."CM_RECIPE_ITEM_T2"
BEFORE INSERT OR UPDATE ON "CM_RECIPE_ITEM"
FOR EACH ROW
BEGIN
IF :NEW.CRI_CR_ID IS NULL THEN
SELECT CR_ID INTO :NEW.CRI_CR_ID
FROM CM_RECIPE
WHERE CR_BOM_CODE = :NEW.CRI_BOM_CODE;
END IF;
END;
CREATE OR REPLACE TRIGGER COSTMAN."CM_RECIPE_ITEM_T1" BEFORE
INSERT OR UPDATE ON "CM_RECIPE_ITEM" FOR EACH ROW
DECLARE
L_ID NUMBER;
SEQ NUMBER;
BEGIN
IF INSERTING THEN
IF :NEW.CRI_ID IS NULL THEN
SELECT CM_RECIPE_ITEM_SEQ.NEXTVAL
INTO :NEW.CRI_ID
FROM dual;
END IF;
:NEW.CRI_CR_ON := SYSDATE;
:NEW.CRI_CR_BY := NVL(v('APP_USER'),USER);
SELECT (NVL(MAX(CRI_SEQ),0)+1)
INTO SEQ
FROM CM_RECIPE_ITEM
WHERE CRI_BOM_CODE = :NEW.CRI_BOM_CODE;
:NEW.CRI_SEQ := SEQ;
END IF;
IF UPDATING THEN
:NEW.CRI_UPD_ON := SYSDATE;
:NEW.CRI_UPD_BY := NVL(v('APP_USER'),USER);
END IF;
END;
ALTER TABLE COSTMAN.CM_RECIPE_ITEM ADD (
CHECK ("CRI_RM_COST" IS NOT NULL) DISABLE,
CHECK ("CRI_QTY" IS NOT NULL) DISABLE,
CHECK ("CRI_SEQ" IS NOT NULL) DISABLE,
CONSTRAINT CM_RECIPE_ITEM_PK_001
PRIMARY KEY
(CRI_ID)
USING INDEX
TABLESPACE COST_MANAGER
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
ALTER TABLE COSTMAN.CM_RECIPE_ITEM ADD (
CONSTRAINT CM_RECIPE_FK_002
FOREIGN KEY (CRI_CIRM_CODE)
REFERENCES COSTMAN.CM_ITEM_RM (CIRM_CODE),
CONSTRAINT CM_RECIPE_ITEM_FK_001
FOREIGN KEY (CRI_CR_ID)
REFERENCES COSTMAN.CM_RECIPE (CR_ID));
Yogesh -
Error while adding a job to scheduler
Hello,
I have a batch job that is running fine in both DEV and QA environment. In DEV, I am able to schedule and run it daily. I created a similar schedule in QA environment using BODS Mgmt Console/Administrator. However, upon Activating the schedule, I am getting the following error message. Would someone know why would this error be thrown and steps to troubleshoot this error?
Thanks.
[Repository:AECON_DW_REPOSITORY Schedule:Daily_Run_QA Error:Error while adding a job to scheduler]
When contacting the server above exception was encountered, so it will be assumed the schedule is not active anymore.Hi Rizwan Tahir ,
Delete the job server associated with the current batch job and recreate it.
Then try creating a new schedule using the new job server.
And take care that job server is created in QA environment.
Hope this should work.
Regards, -
Error while adding Image: ORA-00001: unique constraint
Dear all,
I have an error while adding images to MDM I can´t explain. I want to add 7231 images. About 6983 run fine. The rest throws this error.
Error: Service 'SRM_MDM_CATALOG', Schema 'SRMMDMCATALOG2_m000', ERROR CODE=1 ||| ORA-00001: unique constraint (SRMMDMCATALOG2_M000.IDATA_6_DATAID) violated
Last CMD: INSERT INTO A2i_Data_6 (PermanentId, DataId, DataGroupId, Description_L3, CodeName, Name_L3) VALUES (:1, :2, :3, :4, :5, :6)
Name=PermanentId; Type=9; Value=1641157; ArraySize=0; NullInd=0;
Name=DataId; Type=5; Value=426458; ArraySize=0; NullInd=0;
Name=DataGroupId; Type=4; Value=9; ArraySize=0; NullInd=0;
Name=Description_L3; Type=2; Value=; ArraySize=0; NullInd=0;
Name=CodeName; Type=2; Value=207603_Img8078_gif; ArraySize=0; NullInd=0;
Name=Name_L3; Type=2; Value=207603_Img8078.gif; ArraySize=0; NullInd=0;
Error: Service 'SRM_MDM_CATALOG', Schema 'SRMMDMCATALOG2_m000', ERROR CODE=1 ||| ORA-00001: unique constraint (SRMMDMCATALOG2_M000.IDATA_6_DATAID) violated
Last CMD: INSERT INTO A2i_Data_6 (PermanentId, DataId, DataGroupId, Description_L3, CodeName, Name_L3) VALUES (:1, :2, :3, :4, :5, :6)
Name=PermanentId; Type=9; Value=1641157; ArraySize=0; NullInd=0;
Name=DataId; Type=5; Value=426458; ArraySize=0; NullInd=0;
Name=DataGroupId; Type=4; Value=9; ArraySize=0; NullInd=0;
Name=Description_L3; Type=2; Value=; ArraySize=0; NullInd=0;
Name=CodeName; Type=2; Value=207603_Img8085_gif; ArraySize=0; NullInd=0;
Name=Name_L3; Type=2; Value=207603_Img8085.gif; ArraySize=0; NullInd=0;
I checked all data. There is no such dataset in the database. Can anybody give me a hint how to avoid this error.
One thing I wonder: The PermanentId is allways the same but I can´t do anything here.
BR
Roman
Edited by: Roman Becker on Jan 13, 2009 12:59 AMHi Ritam,
For such issues, can you please create a new thread or directly email the author rather than dragging back up a very old thread, it is unlikely that the resolution would be the same as the database/application/etc releases would most probably be very different.
For now I will close this thread as unanswered.
SAP SRM Moderators.
Maybe you are looking for
-
Problem with scanning channels
We are trying to use BB 1.2 with a PCI-1200 card and the NI-DAQ that is included on the BB1.2 CD. The real problem comes when the program is opened and we've configured the channels to have more than one channel scanning and the others disconnected.
-
Can you connect the TC directly to a Mac Book Pro thru either USB or Ethernet?
Can you hook a Time Capsule directly to a Mac Book Pro thru USB Port or Ethernet or? So that you can speed up the transfer time?? It's so slow compared to directly connected FW800 and Thunderbolt Drives... It's painful... Thanks
-
How can I select the name I want displayed in messenger with multiple contacts?
I have my wife's phone number in two phone book entries, one is her name, the other is under ICE which many emergency services use to contact your next of kin. It stands for "In Case of Emergency" and since my wife has a different last name than me
-
I have a photo of an ice surface and another of a flower. Now I want to create a merged photo with the flower lying under the ice. I understand that I shall use the function "Layer" and have even read in the manual and looked on a video, but that inf
-
Creating automatically "OracleBI Spreadsheet Add-In" files (Excel files)
I have the necessity of create automatically an excel file with a query to a multidimensional model (ROLAP Cube). It exists any API for a programation language that makes easy this process of creation? How "OracleBI Spreadsheet Add-In" saves the meta