Can't replicate data inserted using DBMS_XMLSAVE.insertXML
Enviroment:
OS: SLES 10 SP2
Database Version: 11.1.0.6
I have configured an Oracle Streams environment compose by two database. The first is the source where a local capture process should captures dml changes from some tables. If I insert some data using a classic dml insert operation the changes are replicated without problems. The problem is when the tables are populated using the DBMS_XMLSAVE.insertXML procedure. With that implementation there isn't data replication. I think DBMS_XMLSAVE.insertXML must generate redolog so the capture process should capture the changes from them but it doesn't seems to be like that.
I need some suggestion about this matter, thank you.
Here you are
CREATE TABLE TEST.HABI
ID_DATA NUMBER,
ID_HOCU INTEGER,
ID_HABI INTEGER,
DESCRIPTION VARCHAR2(1000 BYTE)
TABLESPACE USERS
PCTUSED 0
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 32M
NEXT 80K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
LOGGING
NOCOMPRESS
NOCACHE
NOPARALLEL
MONITORING;
I'am not performe explicit commit here you are the procedure:
FUNCTION import(p_id_data IN INTEGER,
p_lote IN INTEGER,
p_fecha_hotel DATE,
p_error IN OUT NOCOPY CLOB,
p_hab_habi IN OUT NOCOPY CLOB,
p_hcl_clie IN OUT NOCOPY CLOB,
p_hcl_habi IN OUT NOCOPY CLOB,
p_hcl_hist IN OUT NOCOPY CLOB,
p_tel_llpr IN OUT NOCOPY CLOB) Return integer
AS
ctx DBMS_XMLSAVE.ctxType;
v_rows NUMBER;
v_err_msg VARCHAR(4000);
v_cant integer;
BEGIN
IF length(p_error) > (length('<?xml version = ''1.0''?><ENL_TRAN_ERROR/>') + 3) THEN
ctx := DBMS_XMLSAVE.newContext('ENL_TRAN_ERROR');
DBMS_XMLSAVE.setRowTag(ctx, 'ROW');
--BEGIN
v_rows := DBMS_XMLSAVE.insertXML(ctx, p_error);
--EXCEPTION WHEN OTHERS THEN
-- NULL;
--END;
DBMS_XMLSAVE.closeContext(ctx);
END IF;
IF length(p_hab_habi) > (length('<?xml version = ''1.0''?><ENL_TRAN_HAB_HABI/>') + 3) THEN
ctx := DBMS_XMLSAVE.newContext('ENL_TRAN_HAB_HABI');
DBMS_XMLSAVE.setRowTag(ctx, 'ROW');
--BEGIN
v_rows := DBMS_XMLSAVE.insertXML(ctx, p_hab_habi);
--EXCEPTION WHEN OTHERS THEN
-- NULL;
--END;
DBMS_XMLSAVE.closeContext(ctx);
END IF;
IF (INSTR(p_hcl_clie, '&')<>0) THEN
p_hcl_clie := replace(p_hcl_clie, '&', '&');
END IF;
IF length(p_hcl_clie) > (length('<?xml version = ''1.0''?><ENL_TRAN_HCL_CLIE/>') + 3) THEN
ctx := DBMS_XMLSAVE.newContext('ENL_TRAN_HCL_CLIE');
DBMS_XMLSAVE.setRowTag(ctx, 'ROW');
--BEGIN
v_rows := DBMS_XMLSAVE.insertXML(ctx, p_hcl_clie);
--EXCEPTION WHEN OTHERS THEN
-- NULL;
--END;
DBMS_XMLSAVE.closeContext(ctx);
END IF;
IF length(p_hcl_habi) > (length('<?xml version = ''1.0''?><ENL_TRAN_HCL_HABI/>') + 3) THEN
ctx := DBMS_XMLSAVE.newContext('ENL_TRAN_HCL_HABI');
DBMS_XMLSAVE.setRowTag(ctx, 'ROW');
--BEGIN
v_rows := DBMS_XMLSAVE.insertXML(ctx, p_hcl_habi);
--EXCEPTION WHEN OTHERS THEN
-- NULL;
--END;
DBMS_XMLSAVE.closeContext(ctx);
END IF;
IF length(p_hcl_hist) > (length('<?xml version = ''1.0''?><ENL_TRAN_HCL_HABI_HIST/>') + 3) THEN
ctx := DBMS_XMLSAVE.newContext('ENL_TRAN_HCL_HABI_HIST');
DBMS_XMLSAVE.setRowTag(ctx, 'ROW');
--BEGIN
v_rows := DBMS_XMLSAVE.insertXML(ctx, p_hcl_hist);
--EXCEPTION WHEN OTHERS THEN
-- NULL;
--END;
DBMS_XMLSAVE.closeContext(ctx);
END IF;
IF length(p_tel_llpr) > (length('<?xml version = ''1.0''?><ENL_TRAN_TEL_LLPR/>') + 3) THEN
ctx := DBMS_XMLSAVE.newContext('ENL_TRAN_TEL_LLPR');
DBMS_XMLSAVE.setRowTag(ctx, 'ROW');
--BEGIN
v_rows := DBMS_XMLSAVE.insertXML(ctx, p_tel_llpr);
--EXCEPTION WHEN OTHERS THEN
-- NULL;
--END;
DBMS_XMLSAVE.closeContext(ctx);
END IF;
END import;
I hope you can help me.
Similar Messages
-
Loading data into XMLType column using dbms_xmlsave.insertxml get ORA-29532
The following simple test case succeeded in 9.2.0.1 but failed in 9.2.0.2.
CREATE OR REPLACE procedure InsertXML(xmlDoc IN VARCHAR2, tableName IN VARCHAR2) is
insCtx DBMS_XMLSave.ctxType;
rows number;
begin
insCtx := DBMS_XMLSave.newContext(tableName); -- get the context handle
rows := DBMS_XMLSave.insertXML(insCtx,xmlDoc); -- this inserts the document
dbms_output.put_line(to_char(rows) || ' rows inserted');
DBMS_XMLSave.closeContext(insCtx); -- this closes the handle
end;
CREATE TABLE XMLtable
(column1 xmltype)
exec insertxml('<?xml version = "1.0"?><ROWSET><ROW><COLUMN1><TEST>HELLO</TEST></COLUMN1></ROW></ROWSET>', 'XMLTABLE');Hi,
For your XML file I think you just need to enclose XML elemnts in ROWSET AND ROW TAGS - so xml should look like :
<ROWSET>
<ROW>
<DEPT>
</DEPT>
and just pass it as CLOB to dbms_xmlsave.insertXML proc.
I hope it should work.
I am also trying to insert XML file but with a bit complex structure having multiple nested elements.
I am not sure how to transform the external XML file to wrap it in ROWSET/ROW using XSLT. It's mandatory to use ROWSET/ROW tags to be able to insert in oracle tables. I am facing this problem right now. I am using object views to accomplish the purpose but still needs to figure out the way to apply stylesheet to incoming XML file.
If you come to know of any way, pls do let me know also.
Thanks -
Default insertion for missing elements using DBMS_XMLSave.insertXML
Hi,
I am trying to insert default values for some columns, without having those column names as elements in the xml document. Is it possible to do so?? This is the code I am using for now, but it inserts null values for missing elements in the xml document.
insCtx := DBMS_XMLSave.newContext ('TABLENAME'); -- get the context
rows := DBMS_XMLSave.insertXML (insCtx, p_xmlDoc); -- insert the doc
DBMS_XMLSave.closeContext (insCtx); -- close the handleOnly thing I noticed with dbms_xmlstore.insertXML, was when my xml document had "<?xml version = "1.0" ?>" at the start, it gave an error "LPX-00209: PI names starting with XML are reserved"That's probably due to the XML document not starting exactly with "<", like this :
SQL> DECLARE
2
3 xmldoc clob := '
4 <?xml version="1.0"?>
5 <ROWSET>
6 <ROW>
7 <COL1>1</COL1>
8 <COL2>TEST1</COL2>
9 </ROW>
10 <ROW>
11 <COL1>2</COL1>
12 </ROW>
13 </ROWSET>';
14
15 ctx dbms_xmlstore.ctxHandle;
16 numrows number;
17
18 BEGIN
19
20 ctx := dbms_xmlstore.newContext('MY_TABLE');
21 numrows := dbms_xmlstore.insertXML(ctx, xmldoc);
22 dbms_xmlstore.closeContext(ctx);
23
24 END;
25 /
DECLARE
ERROR at line 1:
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00209: PI names starting with XML are reserved
ORA-06512: at "SYS.DBMS_XMLSTORE", line 78
ORA-06512: at line 21 However, it runs OK if the prolog actually starts the character stream :
SQL> DECLARE
2
3 xmldoc clob := '<?xml version="1.0"?>
4 <ROWSET>
5 <ROW>
6 <COL1>1</COL1>
7 <COL2>TEST1</COL2>
8 </ROW>
9 <ROW>
10 <COL1>2</COL1>
11 </ROW>
12 </ROWSET>';
13
14 ctx dbms_xmlstore.ctxHandle;
15 numrows number;
16
17 BEGIN
18
19 ctx := dbms_xmlstore.newContext('MY_TABLE');
20 numrows := dbms_xmlstore.insertXML(ctx, xmldoc);
21 dbms_xmlstore.closeContext(ctx);
22
23 END;
24 /
PL/SQL procedure successfully completed.
With the dbms_xmlsave.inserXML, [...] it wont insert the default column values.Now that's strange...
I understand there could be differences in the parsing implementation, but in the end both processes must issue an INSERT into the target table using plain SQL, so I really wonder why default values are not applied.
I'll try to reproduce when I have access to a Java-enabled db. -
Using dbms_xmlsave.insertXML
Hi all,
I am reading an XML data which has similar structure to:
<dept>
<name> department name </name>
<loc> department location </loc>
<emp>
<fisrt> first name for first employee </first>
<last> last name for first employee </last>
</emp>
<emp>
<first> first name for second employee </first>
<last> last name for second employee </last>
</emp>
</dept>
I do not have control on the structure of the XML data as I am reading it from external source. Now I have created a table as follows:
SQL> create type emprec as object (
first varchar2(30),
last varchar2(30)
SQL> create type empreclist as table of emprec;
SQL> create table mydept (
name varchar2(30),
loc varchar2(50),
emp empreclist);
Now when I use the dbms_xmlsave.insertXML , the columns name,loc are populated but the column emp is not populated and i I define the emp column as (emprec) type, then only the last <emp></emp> data is inserted.
Any ideas how to read all the <emp></emp> data into the dept table ?Hi,
I have been trying for a while to get a nested collection loaded. The oracle documentation is no help. But what i did in the end is this. I built the object table, inserted the nested collection manual and then ran the command line XSU (documented in the app. dev. guide xml) to save the tabledata as XML (only one record) with the -withDTD switch. This creates a XML with inline DTD. Surprise surprise when you load that document it does work, even when you add more nested rows in the document. This XML file will also show you if you build the table correctly. It seems that XSU needs the DTD to be able to load nested collections.
If you are running windows the command line utility can be run like this
java -cp c:\oracle\ora81\rdbms\jlib\xsu12.jar;c:\oracle\ora81\lib\xmlparserv2.jar;c:\oracle\ora81\jdbc\lib\classes12.zip OracleXML getXML -user "username/password" -withDTD "select * from yourtable" >g:\xmlfiles\output.xml
have fun -
How can forbid changing data when using BAPI 'BAPI_MATERIAL_SAVEREPLICA'?
I am using BAPI 'BAPI_MATERIAL_SAVEREPLICA' to creat material master data in batch.
But this BAPI also can be used for change mode.
How to forbid the change of MAT data when use this BAPI?
TKS a lot~~
I am looking foward to your response~~~you have to find out what the user did before your program goes ahead and starts the BAPI.
-
How can forbid changging data when using BAPI 'BAPI_MATERIAL_SAVEREPLICA'?
I am using BAPI 'BAPI_MATERIAL_SAVEREPLICA' to creat material master data in batch.
But this BAPI also can be used for change mode.
How to forbid the change of MAT data when use this BAPI?
TKS a lot~~
I am looking foward to your response~~~
Edited by: lorryhappy on Dec 22, 2009 11:35 AMHi
You can achieve it in another way..
Before Passing Data to BAPI , Check whether the material is existing or not..
If material is existing (Present in Material Master Tables e.g. MARA ) using
data: l_matnr like mara-matnr.
Select single matnr from mara into l_matnr.
IF sy-subrc EQ 0.
" Material is existing ==> Do Not Pass to BAPI
else.
" Material is NOT existing ==> Pass to BAPI for creation.
endif.
Repeat above logic for every material in batch..
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7
ilesh Nandaniya -
Error opening external DTD 'Segnatura.dtd' using dbms_xmlsave.insertXML
I've been trying to insert a document in a table. All works fine
if the xml doesn't contains the doctype element!
If I add the row
<!DOCTYPE Segnatura SYSTEM "Segnatura.dtd">
to my xml I get the error:
oracle.xml.sql.OracleXMLSQLException: Error opening external DTD
'Segnatura.dtd'.
If I specify all the path "file:///temp/Segnatura.dtd" the insert
works, but I don't want to do in that way beacause I don't want
to modify the original xml that i'm inserting!
In the package dbms_xmlsave I have no ways to change the
basedir/baseurl
or to setValidationMode to false like in xmlparser package.
Is there any way to solve this problem??
Thank's in advance
Mauro
This is an example scratch of my xml doc:
<?xml version = '1.0' encoding = 'ISO-8859-1'?>
<!DOCTYPE Segnatura SYSTEM "Segnatura.dtd">
<Segnatura versione="2001-05-07"
xmlns:xml="http://www.w3.org/XML/1998/namespace" xml:lang="it">
</Segnatura>Hy Steven, thank's for your attention.
I'm not using the xsql servlet.
I'm reading an xml file coming from the file system and I want to
import it in the db using a java stored proc.
I also have the dtd file (Segnatura.dtd) but I don't know where
to put in on the server.
If I run my java program and I put Segnatura.dtd in the execution
classpath on the program the xml is loaded fine.
If I load the stored proc in the db then I don't know where to
put the dtd. Do I have to put the directory containing the dtd in
the server classpath and the restart the db maibe?
thank's
mauro -
Can I do an Insert using two selects from different tables?
Hi,
I have three tables, Course (CID, NAME, TIME)
Teacher (TID, NAME, DESCRIPTION) and OfferedBy(CID, TID) to match a course to a teacher.
After I do an insert on Course, I want to be able to do an insert on OfferedBy using the CID of the course I inserted, and the TID of the teacher that's offering it.
I tried this after doing inserts on Course and Teacher:
INSERT INTO OfferedBy values (SELECT CID FROM Course where courseName = 'name' , SELECT TID FROM Teacher WHERE LastName = 'teacherName').
I get an ORA 00907 error.
What am I doing wrong? Can this actually be done?
Thank you
IHi,
How would you relate the TID with CID?
I tried this after doing inserts on Course and Teacher:
INSERT INTO OfferedBy values (SELECT CID FROM Course where courseName >= 'name' , SELECT TID FROM Teacher WHERE LastName = 'teacherName').
I get an ORA 00907 error.You can use the query in this way:
SQL> SELECT ( ( SELECT dummy FROM DUAL), (SELECT DUMMY FROM DUAL)) FROM DUAL;
SELECT ( ( SELECT dummy FROM DUAL), (SELECT DUMMY FROM DUAL)) FROM DUAL
ERROR at line 1:
ORA-00907: missing right parenthesis
SQL> SELECT 'AA',(SELECT dummy FROM DUAL) FROM DUAL;
'A (
AA X
SQL>Regards -
Can we post data 32KB using utl_http package?
I was using utl_http package for posting http data. Now there is a change in requirement and I have to call a web service instead of normal http post. Also the amount of data to be transferred now is >32KB (previously it was only 16KB). I have to manaually create the SOAP message and post it as http requset. Is it possible to post data more than >32KB using the utl_http package?
-Kumar
Message was edited by:
user586950did a trace route and this is what it came out with
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Moroni>ping 64.124.140.30:9090
Ping request could not find host 64.124.140.30:9090. Please check the name and t
ry again.
C:\Documents and Settings\Moroni>tracert 64.124.140.30:9090
Unable to resolve target system name 64.124.140.30:9090.
C:\Documents and Settings\Moroni>tracert 64.124.140.30
Tracing route to 64.124.140.30.mfnx.net [64.124.140.30]
over a maximum of 30 hops:
1 13 ms 15 ms 33 ms 73.91.188.1
2 9 ms 11 ms 9 ms GE-2-45-ur01.troutdale.or.bverton.comcast.net [6
8.87.218.185]
3 * 12 ms * te-9-3-ar01.troutdale.or.bverton.comcast.net [68
.87.216.89]
4 39 ms 13 ms 16 ms 12.116.25.33
5 17 ms 17 ms 18 ms tbr1011401.st6wa.ip.att.net [12.122.111.6]
6 17 ms 15 ms 16 ms 12.122.86.41
7 * * * Request timed out.
8 * * * Request timed out.
9 * * * Request timed out.
10 * * * Request timed out.
11 * * * Request timed out.
12 * * * Request timed out.
13 * * * Request timed out.
14 * * * Request timed out.
15 * * * Request timed out.
16 * * * Request timed out.
17 * * * Request timed out.
18 * * * Request timed out.
19 * * * Request timed out.
20 * * * Request timed out.
21 * * -
Can't install Data Guard using DBCA in Oracle 11g Release 2
I have installed Oracle database 11g Release 2 successfully. I have installed Label Security using DBCA, now when I am installing Database Vault using DBCA, it gives message "ORA-01017: invalid username/password; logon denied" and exists back to DBCA.
What step I am missing? please suggest.
Regards and thx,Hi,
I had the same issue too. I installed it on my desktop (server class option). Everything else including EM is working fine. However I got around the issue to an extent by manually running the catalog scripts for database vault. It should be located under $ORACLE_HOME/rdbms/admin. You have to run the script catmac.sql. There is a catch though. You need to go through the contents of the script and execute the other scripts manually by supplying username and passwords (yes, it sucks!!) but I don't find any help on metalink for this issue.
Currently I am trying to create the realms but I am denied permission due to lack of "OPERATOR TARGET" privileges.
If someone can lead me to the correct place where I can look for what is missing, it would be great.
Thank you
Kumar Ramalingam -
Can SLT replicate data directly to Hadoop
Hi,
Has anyone successfully connected SAP SLT directly to Hadoop or other big data services where the big data is the target? We have a scenario where our SAP OER will produce millions of records of which we wish to report against but see that the scale, ie number of records plus the data retention requirements will mean a typical SAP BW and or a SAP HANA will not be a viable architecture.
So is SLT a contender, excluding potential license discussions?
Thanks
BrianHi Justin,
with the gerneral replication to non-ABAP DBs as a target we made some good movements and got a lot of experience within the last year in customer projects. Despite that we do not plan to release it with the next SP version unrestrictedly because we did not test all available setups so far. So we cannot brand it as out-of-the-box working from a legal perspective. Anyhow when you have a scenario with the replication to non-ABAP just conctact us, ususally we did with the common databases already some customer projects and can enable it without any efforts.
For the general strategy it is planned to release it unrestricted with SP9 mid of 2015. Technically it is alreay working.
When I talked about non-ABAP DB it is only the DB's that are supported by NW (Oracle, MS SQL, IBM, ASE, MaxDB, Informix). All other DB's are only supported if the SAP basis team would deliver a library that allows SLT to connect to this DB. Hadoop is not include - unfortunately we are dependent on this team and their strategy.
Best,
Tobias -
Can I replicate new tables using the ACTIVE STANDBY PAIR replication scheme
Hi,
I have created myself a simple setup using an active/standby pair with a single subscriber like so:
CREATE ACTIVE STANDBY PAIR cie ON "tt-test1", cie ON "tt-test2" RETURN RECEIPT SUBSCRIBER cie on "tt-test3";
I have then added some tables on the master, they did not replicate automatically. I find this:
Command> repschemes;
Replication Scheme Active Standby:
Master Store: CIE on TT-TEST1
Master Store: CIE on TT-TEST2
Master Return Service: Return Receipt
Subscriber Store: CIE on TT-TEST3
Excluded Tables:
ROOT.EXTRACTOR_
ROOT.PROMPT_
ROOT.PREFERABLE_
Included Tables:
List too long (59 items), use verbosity 4 to display
<snip>
My question is ... how do I include these tables in replication?
Do I need to trash and clone the secondary master store and the subscriber again? Even doing that won't add the tables to the replication scheme so I don't think that is a solution.
I couldn't find much documentation on the ALTER REPLICATION statement but from what I could find it requires me to know the 'name' of the replication scheme and the examples in the documentation didn't work when I used 'Active Standby' as the scheme name in the statement.
Am I being retarded here? Is this a limitation of using the ACTIVE STANDBY PAIR replication model?
Thanks in advance.
HuwWhen you setup and rollout the ACTIVE/STANDBY pair (or indeed legacy replication) it only includes tables that already exist. The normal deployment process is:
1. Create the first datastore (the one which will initially be the 'active').
2. Create (and populate) all necessary tables.
3. Create the active/standby pair replication scheme.
4. Start the repagent
5. Make the datastore active by calling ttRepStateSet('ACTIVE')
6. Use ttRepAdmin -duplicate to create the standby store from the active
7. Start repagent at standby
8. Use ttRepAdmin -duplicate to create the subscriber store from the standby
7. Start repagent at subscriber
If you need to add/remove tables later you must do the following:
At active node:
1. Create any new tables (and populate them) as needed
2. Stop repagent
3. Execute ALTER ACTIVE STANDBY PAIR with INCLUDE and/or EXCLUDE clauses as required
4. Start repagent
Then you need to redeploy the other stores:
At standby:
5. Stop repagent
6. Drop datastore (ttDestroy)
7. Re-create datastore from active using ttRepAdmin -duplicate
8. Start repagent
At subscriber:
9. Stop repagent
10. Drop datastore (ttDestroy)
11. Re-create datastore from standby using ttRepAdmin -duplicate
12. Start repagent
This is documented in the TimesTen Replication Guide in the section on administering an active/standby pair.
Chris -
Error while using dbms_xmlsave.UpdateXML and dbms_xmlsave.insertXML
The Record I am trying to insert/update has the following structure
<ROWSET>
<ROW>
<COL1>123</COL1>
</ROW>
</ROWSET>
Table structure is as below
COL1 INT [Primary constraint]
COL2 VARCHAR2(100) NOT NULL [but has default value of 'COL2_Default']
Now since the XML doesn't have the entry for COL2, I am explicitly setting the columns to be updated/inserted using dbms_xmlsave.setUpdateColumn.
I use the logic the following logic to insert/update the table
-- set the primary key column name. This forms the where clause for update statement
dbms_xmlsave.setkeycolumn(l_Context , 'COL1');
-- cXML have the XML structure mentioned above
l_rows := dbms_xmlsave.updateXML(l_Context, cXML);
IF l_rows <= 0 THEN -- which means no rows found for update
l_rows := dbms_xmlsave.insertXML(l_Context, cXML);
END IF;
Now when the excution of dbms_xmlsave.updateXML happens Java Runtime Error is thrown.
ORA-29532: Java call terminated by uncaught Java exception: oracle.xml.sql.OracleXMLSQLException: 'java.sql.SQLException: Missing IN or OUT parameter at index:: 5' encountered during processing ROW element 0. All prior XML row changes were rolled back. in the XML document.
The version of oracle I am using is 9.2.0.6.0.
Please let me know if anyone has any idea on this error.Found maybe an applicable reference...
On http://publib.boulder.ibm.com/infocenter/wasinfo/v4r0/index.jsp?topic=/com.ibm.support.was.doc/html/Java_2_Connectivity_(J2C)/1163246.html
it says:
* Application code is missing a setXXX method call somewhere.
* There might be a problem in the Oracle JDBC driver code.
If the latter is the problem than you should or try a different JDBC driver or (which is probably the best solution anyway) create an iTar with Oracle support via metalink.oracle.com
Other references can also be found on the internet when using google which could be applicable. Search on keywords: "Missing IN or OUT parameter at index"
Message was edited by:
mgralike -
Can we replicate table data from R/3 to BI
Hi All
I have a tablke called JEST which captures status(OBJNR) from VBAP table. We have same table available in BW also. My question is can we replicate data from R/3 to BW for this table. Since this table in BW is not being loaded.
My requirement is to display the status OBJNR in BW
Can anyone advice.Hello Vani,
Replication of data in some tables from ECC to BW is possiable. Data in tables like T00* (Currency conversion, unit etc ) is replicated into BW from ECC. I think we could also replicate data in table JEST. Please consult your BASIS team, they could do it for you.
If your requirement is to display the status OBJNR in BW, one good way is to create InfoObject Object Number, with attributes Object Status, Indicator & Change number. Data can then be loaded in BW using a Generic master datasource based on DataBase table JEST. Or enhance a Datasource to include OBJNR.
Please let me know if you need any more information.
Regards,
Pankaj -
How can i records with date format using web services?
Hello
I can't record date records using web services. I get no message errors.
I can import string values but no dates (YYYY-MM-DD). Do you have any clue about that?
Regards
Arturohello,
That's the code I'm using to update an opportunity. In the date fields (e.g. dFecha_de_entrega_al_cliente) I've tried to put an specific date in the correct format (If i put it in another format i've got an error message due the wrong format). The CRM accepted the code but it didn't update the values that are different of string.
I don´t know if there is something missing in teh program or if the developer environment is not the adequate.
Regards for your comments
Arturo
Private Sub ActualizarOportunidad(ByVal fila As Data.DataRow, ByVal TipoPersona As String)
Dim oLog As New Log()
Dim IdLog As Integer
Dim NumSerie As String = ""
Try
oLog.Insert_Log("Activación Garantía - Crear Oportunidad", oLog.GetLastIdProceso())
IdLog = oLog.GetLastId()
Dim sr_input As Opportunity.OpportunityUpdate_Input
Dim sr_output As Opportunity.OpportunityUpdate_Output
sr_input = New Opportunity.OpportunityUpdate_Input
Dim sr(1) As Opportunity.OpportunityData
sr(0) = New Opportunity.OpportunityData
NumSerie = fila("NumeroSerie").ToString().Trim()
sr(0).ExternalSystemId = NumSerie
sr(0).OpportunityName = fila("NumeroSerie").ToString().Trim()
sr(0).SalesStage = "Deseo" '"Cerrada/Ganada"
sr(0).dFecha_de_entrega_al_cliente = fila("FechaEmision").ToString().Trim()
sr(0).dFecha_de_facturacin_al_cliente = fila("FechaCompra").ToString().Trim()
sr(0).stNro_Factura = fila("NumeroFactura").ToString().Trim()
sr(0).plActividad_Economica = fila("IdActividad").ToString().Trim()
sr(0).plTipo_de_Venta = fila("TipoCompra").ToString().Trim()
sr(0).CustomObject8ExternalSystemId = fila("ApellidoVendedor").ToString.Trim()
'sr(0).CustomObject8ExternalSystemId = IIf(TipoPersona = "J", fila("DocumentoE").ToString().Trim(), fila("Documento").ToString.Trim())
'sr(0).CustomObject7ExternalSystemId = fila("")
Dim lofsr As Opportunity.ListOfOpportunityData
lofsr = New Opportunity.ListOfOpportunityData
lofsr.Opportunity = sr
sr_input.ListOfOpportunity = lofsr
sr_output = oOpportunity.OpportunityUpdate(sr_input)
oLog.Update_Log(IdLog, "Si", NumSerie, "")
Catch ex As SoapException
Me.txtError.Text = ex.Detail.InnerText.ToString()
oLog.Update_Log(IdLog, "No", NumSerie, ex.Detail.InnerText.ToString())
End Try
End Sub
************************************************************************
Maybe you are looking for
-
Problems installing Bridge and Media Encoder in CS6
I recently installed Creative Suite CS6 Design & Web Premium. I had previously installed the CS5 version and had not un-installed it. Everything except Acrobat appeared to install correctly. When I opened Photoshop CS6 (64-bit) I noticed that it used
-
Hi, I have an iPod Touch 5th generation. I have a Windows XP computer. I cannot update my version of iTunes.When I try, I get a message saying that the needed files are on a network resource that is not available. This has happened before, but has be
-
What's a good program to use to make flyers and handouts with?
What's a good program to use to make flyers and handouts with? I'm not a wiz with computers so nothing too sophisticated is needed. Thanks!
-
Error while installing Forms 11g :checking physical memory
Dear all I have downloaded oracle fusion middle ware.And i Started set up. In the prerequisite check an error happens : Root Checking operating system certification Expected result: One of 5.1,5.2,6.0 Actual Result: 5.1 Check complete. The overall re
-
Trouble downloading After Effects CC
I'm trying to download After Effects CC, but the Adobe Application Manager software crashes before anything can begin. I've tried restarting and everything else I know to do. I'm using a Mid 2012 MacBook Pro with a 2.3 GHz Intel Core i7 processor uti