Internal error using XML function in procedures
Hi all,
I use the XML function in a stored procedures but when i compile these i have this error PLS-00801: internal error (74806).
The strangeness is that the single instruction launched from sql plus type
SELECT XMLElement("? xml",xmlattributes('1.0' as "version")) FROM dual; it's right.
thank.
Are you sure you don't want to use the XMLROOT functionality to achieve that?
http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14200/functions225.htm
SQL> SELECT XMLROOT ( XMLType('<poid>143598</poid>'), VERSION '1.0', STANDALONE YES)
2 AS "XMLROOT" FROM DUAL;
XMLROOT
<?xml version="1.0" standalone="yes"?>
<poid>143598</poid>
SQL>
Similar Messages
-
Problem using XML function in procedures (internal error )
Hi all,
I use the XML function in a stored procedures but when i compile these i have this error PLS-00801: internal error (74806).
The strangeness is that the single instruction launched from sql plus type
SELECT XMLElement("? xml",xmlattributes('1.0' as "version")) FROM dual; it's right.
thank.The Db version is 9.2.0.1
This is the source:
CREATE OR REPLACE procedure bi_create_XML_invoice as
BEGIN
declare
in_file UTL_FILE.file_type;
linebuf varchar2(1000);
tmpstr varchar2(50);
tmppririga varchar2(500);
tmpsecriga varchar2(500);
tmpdocinfo varchar2(500);
BEGIN
SELECT XMLElement("? xml",xmlattributes('1.0' as "version"))
INTO tmppririga
FROM dual;
END;
END bi_create_XML_invoice;
Thanks -
Hello SAP Gurus,
I am getting this error while trying to close a material in Material Ledger Cockpit
Internal error in FORM/FUNCTION CKMC_REVALUATE_ENDING_STOCK in position 1 with RC
Message no. C+099
Procedure
Please inform your system administrator.
CKMC reports no inconsistency.
Does anyone have any suggestion?
Cheers,
TDShipa,
Thanks for your suggestions. Thanks for taking the time to help.
I was able to resolve these issues using the following steps in our sandbox/test environments. I have also included other problems I faced in material ledger month end closing steps for the benefit of readers.
**** Caution: Do not do the following steps in production environment. You will destroy your production data irretrievably. Material Ledger is unforgiving!!! ***
1. For the materials with "Internal Error in Form/Function etc issue, I performed a CKMM in the respective plants changing for 3S to 2S and then did the same in reverse (2S to 3S). Then ran the ML close. This seems to have temporarily solved the problem.
2. I was also getting a short dump -- either during MMPV or during period close in the cockpit. The message at both times was "Error in MLCCS ...". I realized it related to Cost Component Split. I identified the company codes of the materials that caused the errors, then got all the plants within each of these company codes. I ran MLCCS_RESET and then MLCCS_Startup in SE38. Then ran MMPV/ML Close. This seems to have resolved the issues at least temporarily.
3. Occasionally I noticed some "material valuation is inconsistent in valuation area xxxx" error. I executed steps 1 and 2 above in succession. This seems to have resolved the issue temporarily.
4. There was also the issue of "duplicate entry in CKMLKEV" while performing Single/Multi-Level steps in the closing cockpit. This pointed to MLCCS. So I ran step 2 above. Again this seems to have fixed the issue temporarily.
I was able to accomplish all of these using the steps above because these were in our test environments. The reasons as to why these happened are manifold:
MMPV was not carried out for a long, long, long time in certain plants within a company code. When ML is active, it is necessary to close previous period. In cases where MMPV was not carried out for a long time, I ran CKMHELP program to set the material status to 70 for the immediately preceding posting period. This helped run the ML cockpit for the current/previous periods.
Users were processing too many transactions with unrealistically large quantities and prices resulting in overflow errors. I carried out reversal of movements for each process category to reduce the inventory balances to reasonable quantities, and ran MR21 to set the prices correctly. This helped resolve the overflow issue.
Reckless, repeated running of CKMM and MLCCS_Reset/MLCCS_Startup also contributed to these problems. Every time a standard had to be released, but the material status in ML is "30-Quantities and Values entered", would prevent users from doing that. So they resort to CKMM and then reset status using CKMHELP program to set the status to 10 and then release the new cost. It works, but wreaks havoc on ML as a whole eventually.
Hope my comments are useful for some!!!
Cheers,
TD -
How to use XML functions in CEP
Hi,
I am trying to implement XML functions in CEP. But i am getting error while using XMl function in config.xml file.
Please provide some help to resolve this issue.
Adapter Class
package com.bea.wlevs.example.adapter.XML_CEP;
import com.bea.wlevs.ede.api.EventProperty;
import com.bea.wlevs.ede.api.EventType;
import com.bea.wlevs.ede.api.EventTypeRepository;
import com.bea.wlevs.ede.api.RunnableBean;
import com.bea.wlevs.ede.api.StreamSender;
import com.bea.wlevs.ede.api.StreamSource;
import com.bea.wlevs.util.Service;
public class XMLAdapter implements RunnableBean, StreamSource {
private String id;
private String name;
private StreamSender eventSender;
private EventTypeRepository etr_;
public XMLAdapter() {
super();
public void run() {
setName("abc");
generateMessage();
public void setId(String id)
this.id = id;
public void setName(String i)
this.name = i;
@Service
public void setEventTypeRepository(EventTypeRepository etr) {
etr_ = etr;
private void generateMessage() {
EventType type = etr_.getEventType("XMLEvent");
EventProperty messageProp = type.getProperty("name");
EventProperty msgProp = type.getProperty("msg");
Object event = type.createEvent();
messageProp.setValue(event, name);
msgProp.setValue(event, "<PDRecord><PDId>6</PDId><PDName>hello1</PDName></PDRecord>");
eventSender.sendInsertEvent(event);
public void setEventSender(StreamSender sender) {
eventSender = sender;
public synchronized void suspend() {
EPN Assembly file
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:osgi="http://www.springframework.org/schema/osgi"
xmlns:wlevs="http://www.bea.com/ns/wlevs/spring" xmlns:jdbc="http://www.oracle.com/ns/ocep/jdbc"
xmlns:spatial="http://www.oracle.com/ns/ocep/spatial"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/osgi
http://www.springframework.org/schema/osgi/spring-osgi.xsd
http://www.bea.com/ns/wlevs/spring
http://www.bea.com/ns/wlevs/spring/spring-wlevs-v11_1_1_3.xsd
http://www.oracle.com/ns/ocep/jdbc
http://www.oracle.com/ns/ocep/jdbc/ocep-jdbc.xsd
http://www.oracle.com/ns/ocep/spatial
http://www.oracle.com/ns/ocep/spatial/ocep-spatial.xsd">
<wlevs:event-type-repository>
<wlevs:event-type type-name="XMLEvent">
<wlevs:properties>
<wlevs:property name="msg" type="xmltype" />
<wlevs:property name="name" type="char" length="256" />
</wlevs:properties>
</wlevs:event-type>
</wlevs:event-type-repository>
<wlevs:adapter advertise="true" id="XML_Adapter"
class="com.bea.wlevs.example.adapter.XML_CEP.XMLAdapter">
<wlevs:listener ref="IPStream" />
<wlevs:instance-property name="id" value="123" />
<wlevs:instance-property name="name" value="Kanika" />
</wlevs:adapter>
<wlevs:processor id="XML_processor" provider="cql">
<wlevs:listener ref="OPStream" />
</wlevs:processor>
<wlevs:channel id="IPStream" event-type="XMLEvent">
<wlevs:listener ref="XML_processor" />
</wlevs:channel>
<wlevs:channel id="OPStream" event-type="XMLEvent">
<wlevs:listener ref="bean" />
</wlevs:channel>
<bean id="bean" class="com.bea.wlevs.example.outputBean.XML_CEP.OutputBean">
</bean>
</beans>
Config.xml file
<?xml version="1.0" encoding="UTF-8"?>
<wlevs:config xmlns:wlevs="http://www.bea.com/ns/wlevs/config/application"
xmlns:jdbc="http://www.oracle.com/ns/ocep/config/jdbc">
<processor>
<name>XML_processor</name>
<rules>
<query id="q1"><![CDATA[
SELECT
XMLEXISTS(
"for $i in /PDRecord RETURN $i/PDName" *// I am getting error at this line*
PASSING BY VALUE
msg as "."
RETURNING CONTENT
) XMLData
FROM IPStream
]]></query>
</rules>
</processor>
</wlevs:config>
Output Bean Class
package com.bea.wlevs.example.outputBean.XML_CEP;
import com.bea.wlevs.ede.api.EventType;
import com.bea.wlevs.ede.api.EventTypeRepository;
import com.bea.wlevs.ede.api.StreamSink;
import com.bea.wlevs.example.event.XML_CEP.DummyEvent;
import com.bea.wlevs.util.Service;
public class OutputBean implements StreamSink {
EventTypeRepository etr_;
@Service
public void setEventTypeRepository(EventTypeRepository etr) {
etr_ = etr;
public void onInsertEvent(Object event) {
EventType eventType = etr_.getEventType(event);
String prop = (String)eventType.getPropertyValue(event, "name");
String prop2 = (String)eventType.getPropertyValue(event, "msg");
System.out.println("Tuple Message: " + prop + ":" + prop2);
Error i am getting is:
<Jun 29, 2011 7:53:59 PM IST> <Emergency> <CQLServer> <BEA-000000> <CREATE QUERY q1 AS
SELECT
XMLQUERY(
"for $i in /PDRecord WHERE $i/PDId <= $x RETURN $i/PDName"
PASSING BY VALUE
msg as ".",
(name+1) AS "x"
RETURNING CONTENT
) XMLData
FROM IPStream
>
<Jun 29, 2011 7:53:59 PM IST> <Emergency> <CQLServer> <BEA-000000> <CREATE QUERY q1 AS
SELECT
XMLQUERY>>(
"for $i in /PDRecord WHERE $i/PDId <= $x RETURN $i/PDName"<<
PASSING BY VALUE
msg as ".",
(name+1) AS "x"
RETURNING CONTENT
) XMLData
FROM IPStream
generic syntax error. The syntax expects STRING token>
<Jun 29, 2011 7:53:59 PM IST> <Emergency> <CQLServerTrace> <BEA-000000> <oracle.cep.parser.SyntaxException: generic syntax error>
<Jun 29, 2011 7:53:59 PM IST> <Error> <CQLProcessor> <BEA-000000> <Failed to create statement [q1].
Invalid statement: "SELECT
XMLQUERY>>(
"for $i in /PDRecord WHERE $i/PDId <= $x RETURN $i/PDName"<<
PASSING BY VALUE
msg as ".",
(name+1) AS "x"
RETURNING CONTENT
) XMLData
FROM IPStream"
Description: generic syntax error
Cause: This DDL command has syntax error
Action: The syntax expects STRING token>
<Jun 29, 2011 7:53:59 PM IST> <Error> <Deployment> <BEA-2045016> <The application context "XML_CEP" could not be started. Could not initialize component
"<unknown>":
Invalid statement: "SELECT
XMLQUERY>>(
"for $i in /PDRecord WHERE $i/PDId <= $x RETURN $i/PDName"<<
PASSING BY VALUE
msg as ".",
(name+1) AS "x"
RETURNING CONTENT
) XMLData
FROM IPStream"
Description: generic syntax error
Cause: This DDL command has syntax error
Action: The syntax expects STRING token>
<Jun 29, 2011 7:54:00 PM IST> <Notice> <Deployment> <BEA-2045001> <The application bundle "XML_CEP" was undeployed successfully>
Thanks in advance.Hi Vikram,
I need some more help from your side.
It would be great help if you will let me know that how to extract the data from particular XML tag.
As of now i want to extract particular XML node by applying that query and the result i am getting is: <applicationID>Engage</applicationID>
I just want to know if I want to extract only data from this XML node i.e Engage instaed of *<applicationID>Engage</applicationID>*
Then what will be the query?
Thanks in Advance -
Unable to use XML functions in OWB 10gR2.
Hi,
I am trying to use XMLELEMENT ,XMLATTRIBUTES and XMLFOREST function for loading into a XML file using OWB 10Gr2.
During deployment it is erroring out with an error 'identifier 'XMLELEMENT' must be declared'.
Please suggest some workaround or possible reason for this problem.
Reagrds,
PHD
Edited by: user1662077 on May 21, 2009 5:17 AMHi Navneet,
I have followed these steps,But beyond that there is some thing which we want to achive.
We want the xml file to have a proper format like
"<?xml version="1.0" encoding="UTF-8"?>
<Header recTyp ='01' RTA='IN200200' ISIN='IN2000020220' recDate ='20090202' stmtDate='20090202' stmtTime='232020'
totNSDLPos='100' totTrnstPos='0' TotUnlckPos='10' TotLckPos='100' totPldgPos='0' totFrzPos='9' totIdtPos='9'
NSDLTotFrzPos='1' totDtlRec='2'/>
<Details recTyp='02' dpId='IN300118'>
<BenDtl benAcctNum='12345678' type='01' subtype='02' status='01'>
<FirstHldr name='op' fatherName='' PAN='HUFSOSFNKS'>
<Address type='1' pinCode='400097' phoneNum='28490520' faxNum='9999999999'>
<Part type='1'>
</Part>
<Part type='2'>
</Part>
<Part type='3'>
</Part>
<Part type='4'>
</Part>
</Address>
</FirstHldr>.........."
On the oracle blogs it was suggested that this can be achived by using XML function in the expression operator.
But while using them,OWB is not recongnising these XML function.
Regards,
PHD -
Error while posting GR "Internal error in FORM/FUNCTION CKML_F_BUILD_INDEX
Dear Experts,
While posting GR for any non-valuated material, I am getting an error "Internal error in FORM/FUNCTION CKML_F_BUILD_INDEX in position 1 with RC 0
Message no. C+099"
Kindly explore the possibilities of solution for the above error. The abve error only showing at the time of posting and not whicle Check.
Regards,
TusharHi Tushar,
Your problem is happening because of the applicaiton of an SAP Note. I think PM has nothing to do with this Error. Pl. read the following (which I read this from one SAP website) & check the relevant SAP notes and take action or write to SAP for solution.
Symptom
The posting of goods receipts results in a long runtime.
Other terms
ACTUPD, MIGO, performance, material ledger
Reason and Prerequisites
The actual costing is active.
The performance problems usually occur when there are several procurement alternatives or procurement processes (tables CKMLMV001 and CKMLMV002) for certain materials.
This can be caused by implementing the modification according to Note 1017470 or 919869, [...]
Regards,
Bala. -
Internal error in FORM/FUNCTION get_prkexx(saplckmo) in position 10 with RC
Hi,
When we try to post good movements in MFBF, the system gives the error message C+099 which says "Internal error in FORM/FUNCTION get_prkexx(saplckmo) in position 10 with RC".
We have been implemented the sap notes which are shown below:
0001096890
0001126497
0001164684
0001230454
However, it doesn't solve our problem.
Can you please help us to solve this problem?
Thanks&Regards,
BegüDear,
Just debug the program and check it.
Also pls check these NOTES,
414204, 933809, 390655
Regards,
R.Brahmankar -
Internal error in FORM/FUNCTION CKML_F_BUILD_INDEX in position 1 with RC 4
Hi,
Whenever I am trying to post a GR against PO I am receiving the following error message:
Internal error in FORM/FUNCTION CKML_F_BUILD_INDEX in position 1 with RC 4
I am not able to understand what this message is telling.
How to resolve. Pl suggest.
Regds
Amitavaerror is because of a program bug,
fix can be found in OSS note 1015263 -
Internal error in FORM/FUNCTION OUTSPLIT_SCLAE_UPDOWN in position 1 with RC
Hi All,
when I try to do MFBF with reporting points I'm getting error "internal error in FORM/FUNCTION OUTSPLIT_SCLAE_UPDOWN in position 1 with RC4" can anybody give me some idea to how to comeout of this error.
Thanks and Regards
Ramanawe have contacted SAP and they have resolved the issue.
Regards
Ramana -
Internal error in FORM/FUNCTION MLCCS_PLANSPLIT_READ
Hi,
While settling a Production Order we are getting the error as 'Internal error in FORM/FUNCTION MLCCS_PLANSPLIT_READ' .
I checked the routing . There are no activities for the Production order. Can any body sugest any solution for the same. Thanks in advance .
Regards
RudraHI,
check SAPNET notes 454084, 623701, 653523, 711416.
Best regards, Christian -
Internal error in FORM/FUNCTION CKMLKEPH_ROLLUP in position 2 with RC 4
The order settlement terminates with the error Message no. MLCCS 099 "Internal error in FORM/FUNCTION CKMLKEPH_ROLLUP in position 2 with RC 4".
The material ledger is active. The actual cost component split is active. I want to carry out the order settlement for one plants.
With the same production material no.in the plant. There are many other productin order are settled in thid period. But, only one production order got the error message, why?
I knew that I could change the Price determ. (in material master) from 3 Single-/multi-level to 2 Activity-related, then I can continute settlement transaction in CO88. But , I want to know what's wrong this the order. What should I check about the order. Why other orders are settled without error with the same material no, and plant.
I had check about SAP note 711416 & 729901 & 523100 & 623701 & 653523, those can't slove my problem in CO88.Thanks for your answer.
But, I have two production orders product the same material in the same plant and will be settled in this period. Both of those two orders were consumed material in 3 months ago. But, only one of them were terminated with error message in CO88. Why? How can I find out the difference between those two orders? They seems the same.
For SAP note 623701 & 871926 & 867755, I think we already implemented those. I had found program "MLCCS_KO88_TREATMENT " in SE38. And, I can find the message 013 & 015 in message class MLCCS. So, do you have other commendations?
Do you know how could I check about "Display order history" that mentioned in note 86775. Which T-code should I go to?
Thanks a lot. -
Error internal error in FORM / FUNCTION MLCCS_ALTERNATIVE_ROLLUP_ACT
Dear,
At the company has changed the structure of scheme cost element. We have an error in the activity CKMLCP mult-level "internal error in FORM / FUNCTION MLCCS_ALTERNATIVE_ROLLUP_ACT" Can anyone help me solve.
Thank!
SergioHi
It seems some inconsitencies happened ..
Please check for OSS Notes : Note 675828 - COMPUTE_BCD_OVERFLOW for multi-level price determination
and Note 203054 - Problems perod.mater.sttlmnt: Actual cost component split
Hope it helps..
Regards
Sarada -
Database updation using XML and stored Procedure?
Hello,
I want to perform updation in multiple tables using XML files.Please suggest can I do updation using xml and stored procedure.
If yes then which is more efficient and takes less time.
1.Updation using xml files only
2.Updation using xml files with stored procedure.
3.Stored procedure alone.
If direct xml and stored procedure communication is possible.then please write how.
Thanks in advance for any help.Here's a sample. The next code drop of the XSQL Servlet will make the easy-to-do from within XSQL Pages:
package package1;
import org.w3c.dom.*;
import java.sql.*;
import oracle.jdbc.driver.*;
import oracle.xml.sql.query.OracleXMLQuery;
public class Class1 extends Object {
public static void main( String[] arg ) throws Exception {
Connection conn = getConnection();
CallableStatement ocs = conn.prepareCall("begin ? := App.HotItems('PAUL'); end;");
ocs.registerOutParameter(1,OracleTypes.CURSOR);
ocs.execute();
ResultSet rs = ((OracleCallableStatement)ocs).getCursor(1);
OracleXMLQuery oxq = new OracleXMLQuery(conn,rs);
System.out.println(oxq.getXMLString());
oxq.close();
rs.close();
ocs.close();
conn.close();
public static Connection getConnection() throws Exception {
String username = "scott";
String password = "tiger";
String dburl = "jdbc:oracle:thin:@localhost:1521:xml";
String driverClass = "oracle.jdbc.driver.OracleDriver";
Driver d = (Driver)Class.forName(driverClass).newInstance();
return DriverManager.getConnection(dburl,username,password);
null -
KO88:Internal error in FORM/FUNCTION CKMLKEPH_ROLLUP in position 2 with RC
hi,expert,
When i settle production order , it issue MLCSS099 error.
The message is ' Internal error in FORM/FUNCTION CKMLKEPH_ROLLUP in position 2 with RC 8'.
The report 'MLCCS_KO88_TREATMENT' can not solve the problem.
How to correct this?
Thanks for advance.
TonyHi Tony,
The error during the order settlement is produced because in earlier
periods the cost component split for standard price is missing
for the materials involved in the order that you are trying to settle
with KO88.
Please, change the settings in report MLCCS_KO88_TREATMENT to treatment
option "S" for this order as explained in the note 623701.
You need to delete the existing entry settings in program
MLCCS_KO88_TREATMENT first.
Afterwards, it should be possible to maintain the new settings for
period ?/2011 (treatment type 'Split Delta by S price').
Therefore, the steps should be:
1. Delete the existing entry in program MLCCS_KO88_TREATMENT
(-> processing type: delete settings), for the company code
and period X/XXXX.
2. Maintain option = 'Split Delta according to Standard Price,'
with report MLCCS_KO88_TREATMENT for the orders that are causing
the problem and period X/2011.
I hope this helps you to solve the problem.
Kind regards,
MLM -
Hi,
We have a requirement where we want to read the XML data from the CLOB column of a table. In OWB we are using the SYS_XMLGEN function for this. But when I use this in the expression it gives me error that 'SYS_XMLGEN' must be declared.
I am able to use this in the select query and the query is working fine.
Anyone has any idea of how we can use the XML functions in OWB.
Thanks!!user10911550 wrote:
Hi,
We have a requirement where we want to read the XML data from the CLOB column of a table. In OWB we are using the SYS_XMLGEN function for this. But when I use this in the expression it gives me error that 'SYS_XMLGEN' must be declared.
I am able to use this in the select query and the query is working fine.
Anyone has any idea of how we can use the XML functions in OWB.
Thanks!!see if any of these helps:
http://blogs.oracle.com/warehousebuilder/2007/05/designing_an_xml_view_in_owb.html
http://download.oracle.com/docs/cd/B28359_01/owb.111/b31278/ref_sql_transforms.htm#i138579
http://blogs.oracle.com/warehousebuilder/2007/09/leveraging_xdb.html
Maybe you are looking for
-
I'm not able to sync iCal with my iPad calendar using iCloud.
I can see when I go to the iCloud website that my iCal information is not visible there.
-
IDOC Inbound for Inventory Adjustment
Hi There, I have a process we I have an inbound message to adjust the inventory, I was checking SAP Inbound proposaland I could not find any message type for this funtionality. I would like your help in this matter. I need to indentified the IDOC and
-
Will ACR support the different RAW formats of digital cinema cameras like REDCODE or ARRIRAW?
Will ACR support the various formats produced by digital cinema cameras like REDCODE, ARRIRAW and the other ones? Support for Cineform RAW would be also welcome of course. The RAW converters supplied by the manufacturers are no comparison IMHO to wha
-
Accounts vs. Security Groups
Can someone give me a simple explanaition of the deifference between Accounts vs. Security Groups? I read through all the docs that come with the Content Server, but I still dont relly get the difference. Any help is appreciated. :)
-
Message "your trial period is finished"
Hi Mark, I´m using Adobe Acrobat XI, Subscription Edition, since more than a year. In the last weeks I have problems with the Software. I always receive the message "Your trial period is finished....please license the version...@". In my adobe acount