Mapping Error - Dump source message to file adapter comm channel
Hi
Does anyone know of a way to dump the source message to a file adapter comm channel if - and only if - the message fails during mapping. For example, we receive a message from a trading partner that lacks an element that is mandatory during the mapping. When the mapping fails, the source message is sent - as is - to a file adapter comm channel.
I don't need anything more than the source message i.e. no need for any errors etc... to be included.
The kicker.. I would like to do this without using BPM if at all possible.
Any ideas greatly appreciated. Thx, Duncan
Hey Ram,
Go to Integration Directory and open the Receiver Determination for your scenario.
Check the configured receiver services. They are in a table-like area in the middle of the screen.
In this table of configured receiver services for that particular Sender Service/Interface, you should have the system that normally receives that message (your ERP or any other application system) and the service that contains the receiver file comm channel that will receive the message in case of error.
Check help.sap.com for help on condition editor on receiver determinations.
Now, the issue. You can only check whether a field exists, you can't check whether it doesn't exist (There's only a "EXIST" operator, and no negative operator). Thus, you can only do the following: always send messages to File, but you can avoid messages that dont have field from being sent to App System. Yeah, that sucks...
But don't fear, young padawan! There is a possible workaround. =D
In your message mapping, do the following for that particular field:
If field exists (check with Exist and IF standard functions) just bypass the field. Else, map the field with an impossible value (like string "$CREATED$"). Then, in your receiver determination, you will do the following conditions:
for App System: If field =/= $CREATED$
for File Receiver: If field = $CREATED$
Now, if the field doesnt exist, it will have value $CREATED$, thus the message will be sent to File and not to App System. If the field exists, the message will be sent to App and not to File.
Try that out.
Regards,
Henrique.
Similar Messages
-
Multiple message through FIle Adapter using XI 2.0
I have scenario to create multiple message using File adapter .My file structure will be like
EMPID NAME SKILLS
001 A ABAP
001 A XI
002 B JAVA
Now I want to post first 2 records in one message and last record in other message.
Can we do it in XI 2.0.Any help appreciatedHi Suraj.
Thank you very mutch for your reply.
Excuse me...my mapping is done for message type and idoc.
My problem is that when the interface start, on the sxmb_moni I see an error like this:
Creating Java mapping com.sap.xi.tf._MM_XmlOrderToIdocMapping_ --- Using MappingResolver with context URL //srvsapdev/sapmnt/CX1/SYS/global/xi/mapping/gestione_magazzini/7fa9c9e15a7811dab710f3e3ac10826e/ --- Load of com/sap/xi/tf/_MM_XmlOrderToIdocMapping_.class from //srvsapdev/sapmnt/CX1/SYS/global/xi/mapping/gestione_magazzini/7fa9c9e15a7811dab710f3e3ac10826e failed. --- Class not found: com.sap.xi.tf._MM_XmlOrderToIdocMapping_ --- java.lang.ClassNotFoundException at RUMappingJava.load(): Could not load class: com.sap.xi.tf._MM_XmlOrderToIdocMapping_ Class not found: com.sap.xi.tf._MM_XmlOrderToIdocMapping_ --- com.sap.aii.ibrun.server.map.MappingRuntimeException: at com.sap.aii.ibrun.server.map.MappingRuntimeException.code_STYLESHEET_OR_CLASS_NOT_FOUND
..where 'gestione_magazzini' is my namespace and 'MM_XmlOrderToIdocMapping' is my message mapping.
Can you help me to undestand the problem?
Thanks,
Gianluca -
Issue in mapping.. Source message expect with prefix ns0 in input message!
Issue in mapping.. Source message expect with prefix ns0 in input message
Hi All,
I used the XSD structure which I got from partner which starts like below.
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://xxxx.com/DirectSales/CustomerData" xmlns:prodata="urn:schemas-progress-com:xml-prodata:0001" xmlns="">
<xsd:element name="CustomerRequest" prodata:proDataSet="true">
I'm receiving the messages through SOAP adapter and the message looks like below.
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><!-- Technical Routing --> <CustomerRequest xmlns='http://XXXX.com/DirectSales/CustomerData' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:SE='http://schemas.xmlsoap.org/soap/encoding/'>
The message is failing during mapping. When i checked in message mapping, I found that the input source message is expecting with prefix "ns0" like <ns0:CustomerRequest...
how I can solve this issue? Is there anyway I can add the prefix "ns0" before it comes to mapping step.?
Thanks
DeepthiHi Guys,
I tried to use the below paramter.
anonymizer.acceptNamespaces 'http://XXXX.com/DirectSales/CustomerData ns0
The ns0 is coming in all the tags including segments and fields. I just want ns0 to come only at the root level ie <ns0:customerReq..>
it is coming like below...
- <ns0:CustomerRequest xmlns:ns0="http://XXXXXX.com/DirectSales/CustomerData">
- <ns0:ttCustomer>
<ns0:branch-num>1424</ns0:branch-num>
<ns0:cust-num>121</ns0:cust-num>
<ns0:contact-code>3</ns0:contact-code>
</ns0:ttCustomer>
</ns0:CustomerRequest>
I want the message to come as
- <ns0:CustomerRequest xmlns:ns0="http://XXXXXX.com/DirectSales/CustomerData">
- <ttCustomer>
<branch-num>1424</branch-num>
<cust-num>121</cust-num>
<contact-code>3</contact-code>
</ttCustomer>
</CustomerRequest>
Kindly help me with the paramater value to be passed for anonymizer.acceptNamespaces.
Thanks
Deepthi -
Dynamically construct Target/Source Directory in File Adapter
Hi All,
Is it possible to Dynamically construct target/Source Directory in File Adapter? If yes can anyone plz provide details about the same.
regards
VinayHi vinay,
have a look @ these threads..u may get some help!!
Re: Dynamic directory name in Receiving File adapter
Dynamic FileName and Directory - UDF
Re: Dynamic Directory and File Naming in Receiver Adapter
Re: target directory in file adapter
Regards
BILL -
ALERT MAIL FOR FILE ADAPTER COMMUNICATION CHANNEL ERRORS
Hi,
I need to send an alert by mail to a list of configured receivers if any error( Application as wel as System Errors ) occurs in the FILE ADAPTER Communication Channel .
Please suggest how to do it......
Regards,
SriparnaCan anything be configured in the communication channel to run a mail unix script if the communication channel is throwing
error.Other than alert rule can we configure this.
Why do you intend to use script? Define Alert....create Rule....set parameters using SCOT.....you will get the alert as email (if you need it)
Can you please help with how do I create this rule specific to File Adapters only ?
Other than selecting FILE as Adapter Type in RWB --> Alert Rule definition we dont do anything special....this setting should help.
Regards,
Abhishek. -
Error ORA-03113: end-of-file on communication channel in droppping a table
Good evening,
I am very new on Oracle and I have a problem with some tables. Without any reason, apparently, I can't drop some of my table. Oracle gives me this error:
ORA-03113: end-of-file on communication channel
and then close the connection of the user.
What I should have to do?
It is very important.
Thanks a lot
best regards
Anna ZanettiGood morning, I still have the same problem, I can't drop a table from my database.
The message is again:
Re: Error ORA-03113: end-of-file on communication channel
The alert log file says:
Fri Nov 17 12:27:31 2006
Errors in file /usr/oracle/admin/oracledb/udump/oracledb_ora_4369.trc:
ORA-07445: exception encountered: core dump [0955C61F] [SIGSEGV] [Address not mapped to object] [0xC] [] []
and in file oracledb_ora_4369.trc there is:
Exception signal: 11 (SIGSEGV), code: 1 (Address not mapped to object), addr: 0xc, PC: [0x955c61f, 0955C61F]
Registers:
%eax: 0x00000000 %ebx: 0x00012d95 %ecx: 0x58301930
%edx: 0x00000000 %edi: 0x5830d9e8 %esi: 0x00000000
%esp: 0xbfffae1c %ebp: 0xbfffb060 %eip: 0x0955c61f
%efl: 0x00210282
(0x955c61f) movzw 0xc(%eax),%eax(0x955c623) cmp $30,%eax
(0x955c626) jle 0x955c63e
(0x955c628) xor %edx,%edx
(0x955c62a) push %edx
*** 2006-11-17 12:27:31.658
ksedmp: internal or fatal error
ORA-07445: exception encountered: core dump [0955C61F] [SIGSEGV] [Address not mapped to object] [0xC] [] []
Current SQL statement for this session:
drop table fiumiforjoin
----- Call Stack Trace -----
calling call entry argument values in hex
location type point (? means dubious value)
08856247 call 0885776A 1 ? 0 ? 1 ? 1 ? 0 ? 0 ?
08290320 call 0885605A 3 ? 0 ? 0 ? 0 ? 0 ? 0 ?
0955C61F signal 08290320 B ? BFFFAAB0 ? BFFFAB30 ?
0955D6BE call 0955C61F 5830F01C ? 0 ? FFFFFFFF ? 0 ?
1 ? 5830F01C ?
08DD1EEB call 0955CC22 BFFFB394 ? 0 ? 0 ? BFFFB348 ?
58EAB2B0 ? C ?
09434EF3 call 08DD1A28 BF2A8C4 ? BFFFC0C0 ?
BFFFC0C0 ? 4 ? B6AB0300 ?
B6ABC2E0 ?
094106E0 call 094326D4 4 ? 0 ? BFFFC0C0 ?
093D7BB5 call 0940FEF8 3 ? E ? BFFFC1F8 ? A4 ?
093D630C call 093D7AC4 BFFFCDF0 ? BFFFCD08 ? 17 ?
1 ? 0 ? A4 ?
08293DE6 call 0850FFFF 5E ? 14 ? BFFFCDEC ?
0A1ED44D call 08293DE6 5E ? 14 ? BFFFCDEC ? 0 ?
08292122 call 0A1ECAE4 BF2A8C0 ? 5E ? BFFFCDEC ? 0 ?
BFFFD6E8 ? BFFFD6E4 ?
0941F190 call 0829193C 0 ? 0 ? BF2A8C0 ? BF83090 ?
F1 ? 0 ?
08293DE6 call 0850FFFF 3C ? 4 ? BFFFEB08 ?
08291238 call 082937A8 3C ? 4 ? BFFFEB08 ? 0 ?
0828F403 call 08291012 3C ? 4 ? BFFFEB08 ?
08274A3D call 0828F39C BFFFEAEC ? 3C ? 4 ?
BFFFEB08 ? B6CC017C ?
B6C1A17C ?
__libc_start_main() call 08274A3D 2 ? BFFFEBA4 ? BFFFEBB0 ? 0 ?
+218 B6C1C898 ? B7600020 ?
Any idea of what I have to do?
Thanks for your help..
Best Regards
Anna Zanetti -
File adapter receiver channel is not initialized.
Hi
iam wrking idoc-file scenario, as per the requirement i have created 4datatypes 4 mapping in IR with 4 communaction chanles in ID. the scenarios is working fine with 3 mappings.but in 4 the scenario
the file genaraing properly , i have cheked in SXMB_moni payload but it is not creating in destination system
in runtimeworkbench->message-monitaring-> adpater
i have find the below issues
1) File adapter receiver channel CC_DDPWCS_US_TO_101 is not initialized. Unable to proceed: null Error 2) Exception caught by adapter framework: File Adapter configuration not initialized:
3) Error Delivery of the message to the application using connection AFW failed, due to: File Adapter configuration not initialized:.
please tell me how can i reslove the issue
thanks
niruHi
i have checked the content convertion and changed as below
the structure is
Row.fieldNamesTrans_Id,Order,Item,Product_Id,Product_desc,Lot_nr,Ship_via,Exp_qty,Carousel_loc,compart,Destination,Label
Row.fieldSeparator ,
Row.fieldFixedType char
Row.endSeparator 'nl'
Row.addHeaderLine 4
Row.headerlineTrans_Id,Order,Item,Product_Id,Product_desc,Lot_nr,Ship_via,Exp_qty,Carousel_loc,compart,Destination,Label
even though iam facing the issue. iam wondering "_i have used in the similar structure for other 3 mappings in same scenario those are working perfect "_ but based on condition if 4 th mapping is executed iam facing the problem
error message in RWB/Adapeters
File adapter receiver channel CC_DDPWCS_US_TO_101 is not initialized. Unable to proceed: null
Error Exception caught by adapter framework: File Adapter configuration not initialized:
Error Delivery of the message to the application using connection AFW failed, due to: File Adapter configuration not initialized:.
please help if any of you face the similar situation , i struck-up long ago here
regards
niru -
How to create an Excel file from XML in the Receiver File Adapter Comm Ch
How do I create an Excel file from XML in the Receiver File Adapter Communication Channel? I have my mapping done and I am outputting the file as a comma delimited csv file. However, the target can only process an Excel file (.xls). How can I generate an Excel in XI?
I saw this blog, but I don't know how to create a XSLT transformation.
/people/michal.krawczyk2/blog/2005/12/10/xi-generating-excel-files-without-the-java-nor-the-conversion-agent-not-possible
Any help would be appreciated. Thanks.Here are the steps I took to create an XSLT transformation in XI 3.0:
1. I created my source and target XSDs using XMLSpy.
2. I created the XSLT mapping from source to target in XMLSpy (referencing the souce XSD schema).
3. I created another XSLT mapping to format the target into Excel XML.
4. Import the source and target XSDs in the IR's External Definitions
5. Zip each XSLT mapping (.xls) and import it into the IR's Imported Archives
6. Reference the XSL mappings in the Interface Mapping -
Unable to clone File Adapter receiver channel for parallel processing
Hi Experts,
I am using variable substitution for File - RFC - File with out BPM scenario(using request response, oneway bean).
While i placed the file in the sender FTP folder, the file didnt get picked up, but in communication channel monitoring, i am getting error ' Unable to clone File Adapter receiver channel for parallel processing'.
Can anybody provide me suggestions to solve this error.
Note : without variable substitution , the interface is working good.
Is it due to, i am trying the source structure field in response file adapter?Hi,
In your CC, do you use some additional paramaters ?
like these one of point 47/48 of [Oss note 821267 - FAQ: XI 3.0 / PI 7.0/ PI 7.1 File Adapter|https://service.sap.com/sap/support/notes/821267]
Maybe there is conflict with a parallel connexion and the bean used to do asynch-synch bridge...
Mickael -
File Receiver Comm Channel in error
Hi All,
I am getting below error in my receiver communication channel -
Transmitting the message to endpoint <local> using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Unable to clone File Adapter receiver channel for parallel processing
This is just FiletoFile scenario. I am trying to use VARIABLE SUBSTITUTION here to give dynamic name to the file at receiver. I haven't use FCC here.
If I dont use VARIABLE SUBSTITUTION then scenario is working fine.
Thanks & Regards,
Rashmi JoshiHi Abhradeep,
I am getting new error now -
Transmitting the message to endpoint <local> using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: Vname
I have changed the reference value as -
Emp_ID
payload:MT_File,1,Record,1,Emp_ID,1
Thanks & regards,
Rashmi Joshi -
Problem in configuring the File adapter communication channel in ID
Dear All ,
Scenario : <b>IDOC to Xml file</b>
While configuring File adapter configuration channel , I mentioned the following :
"File" in Adapter Type
" File system (NFS) " IN Transport Protocol
" File " in Message Protocol
but nothing appears in Adapter Engine ???
Can anybody help me to solve this problem . What could be the reason .
Thanks in Advance
Regards
PrabhatHi Prabhat
Please elaborate as to in which format you need the file at the receiver's end.
also, please go through this link:
/people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
Also there may be some error in sending Idocs, to review that, please go through this link:
http://help.sap.com/saphelp_nw04/helpdata/en/6a/e6194119d8f323e10000000a155106/frameset.htm
I hope it helps,
Thanks & Regards,
Varun Joshi -
Getting error "ORA-03113: end-of-file on communication channel"
HI ,
When Iam trying to compile a procedure in SQL *PLUS ,iam getting the following error :
ORA-03113: end-of-file on communication channel and the connection is getting lost .There is no issue with the code .
When i compile the same procedure in sql developer ,connection is getting lost and getting error
"Connection Closed
Vendor Code 17008"
Please help me to resolve the issue .
Thanks in advance ...Hi
Here is the code which is not getting compiled and is giving the above said error
CREATE OR REPLACE PROCEDURE SP_Upload_CrossWalk
(src_dom_nm IN VARCHAR2, src_sys_nm IN VARCHAR2, src_dta_elem_nm IN VARCHAR2, src_cd_val_txt IN VARCHAR2,
src_cd_val_desc IN VARCHAR2,src_cd_val_grp_desc IN VARCHAR2, tgt_dom_nm IN VARCHAR2, tgt_sys_nm IN VARCHAR2,
tgt_dta_elem_nm IN VARCHAR2, tgt_cd_val_txt IN VARCHAR2, tgt_cd_val_desc IN VARCHAR2,cd_map_typ_desc IN VARCHAR2,
eff_dttm IN VARCHAR2, term_dttm IN VARCHAR2, errtext OUT VARCHAR2)
IS
src_dom NUMBER;
src_key NUMBER;
src_elem NUMBER;
tgt_dom NUMBER;
tgt_sys NUMBER;
tgt_elem NUMBER;
src_val_seq NUMBER;
tgt_val_seq NUMBER;
src_cd_val_seq NUMBER;
cd_val_map_key_sq NUMBER;
temp_var VARCHAR2(500);
var_len NUMBER;
map_code CHAR(1);
invalidlength_exception EXCEPTION;
unknown_exception Exception;
BEGIN
var_len := LENGTH(src_cd_val_txt);
IF var_len > 20 THEN
temp_var := 'Length of Source Code Value Text Name is more than 20 characters';
RAISE invalidlength_exception;
END IF;
var_len := LENGTH(src_cd_val_desc);
IF var_len > 255 THEN
temp_var := 'Length of Code Value Desc is more than 255 characters';
RAISE invalidlength_exception;
END IF;
var_len := LENGTH(tgt_cd_val_txt);
IF var_len > 20 THEN
temp_var := 'Length of Target Code Value Text Name is more than 20 characters';
RAISE invalidlength_exception;
END IF;
var_len := LENGTH(tgt_cd_val_desc);
IF var_len > 255 THEN
temp_var := 'Length of Target Code Value Desc is more than 255 characters';
RAISE invalidlength_exception;
END IF;
var_len := LENGTH(src_cd_val_grp_desc);
IF var_len > 255 THEN
temp_var := 'Length of Code Value Group Desc is more than 255 characters';
RAISE invalidlength_exception;
END IF;
BEGIN
SELECT dom_key INTO src_dom FROM cu_cdm_dom WHERE dom_nm = src_dom_nm;
EXCEPTION
WHEN TOO_MANY_ROWS THEN
temp_var := 'Too many rows for Domain Key value lookup for Source Domain Name: '||src_dom_nm;
RAISE TOO_MANY_ROWS;
WHEN NO_DATA_FOUND THEN
temp_var := 'Domain Key value lookup failed for Source Domain Name: '||src_dom_nm;
RAISE NO_DATA_FOUND;
WHEN OTHERS THEN
temp_var := 'Unknown error in the Domain Key value lookup for Source Domain Name: '||src_dom_nm||' :
'|| sqlerrm;
RAISE unknown_exception;
END;
BEGIN
SELECT sys_key INTO src_key FROM cu_cdm_sys WHERE sys_nm = src_sys_nm;
EXCEPTION
WHEN TOO_MANY_ROWS THEN
temp_var := 'Too many rows for System Key value lookup for Source System Name: '||src_sys_nm;
RAISE TOO_MANY_ROWS;
WHEN NO_DATA_FOUND THEN
temp_var := 'System Key value lookup failed for Source System Name: '||src_sys_nm;
RAISE NO_DATA_FOUND;
WHEN OTHERS THEN
temp_var := 'Unknown error in the System Key value lookup for Source System Name: '||src_sys_nm||' :
'|| sqlerrm;
RAISE unknown_exception;
END;
BEGIN
SELECT dta_elem_key INTO src_elem FROM cu_cdm_dta_elem WHERE dta_elem_phys_nm = src_dta_elem_nm
AND dom_key = src_dom AND sys_key = src_key;
EXCEPTION
WHEN TOO_MANY_ROWS THEN
temp_var := 'Too many rows for Data Element Key value lookup for Source Data Element Physical Name:
'||src_dta_elem_nm|| ', Source Domain Key: '||src_dom||' and Source System Key: '||src_key;
RAISE TOO_MANY_ROWS;
WHEN NO_DATA_FOUND THEN
temp_var := 'Data Element Key value lookup failed for Source Data Element Physical Name:
'||src_dta_elem_nm|| ', Source Domain Key: '||src_dom||' and Source System Key: '||src_key;
RAISE NO_DATA_FOUND;
WHEN OTHERS THEN
temp_var := 'Unknown error in the Data Element Key value lookup for Source Data Element Physical
Name: '||src_dta_elem_nm|| ', Source Domain Key: '||src_dom||' and Source System Key: '||src_key||' : '|| sqlerrm;
RAISE unknown_exception;
END;
BEGIN
SELECT dom_key INTO tgt_dom FROM cu_cdm_dom WHERE dom_nm = tgt_dom_nm;
EXCEPTION
WHEN TOO_MANY_ROWS THEN
temp_var := 'Too many rows for Domain Key value lookup for Target Domain Name: '||tgt_dom_nm;
RAISE TOO_MANY_ROWS;
WHEN NO_DATA_FOUND THEN
temp_var := 'Domain Key value lookup failed for Target Domain Name: '||tgt_dom_nm;
RAISE NO_DATA_FOUND;
WHEN OTHERS THEN
temp_var := 'Unknown error in the Domain Key value lookup for Target Domain Name: '||tgt_dom_nm||' :
'|| sqlerrm;
RAISE unknown_exception;
END;
BEGIN
SELECT sys_key INTO tgt_sys FROM cu_cdm_sys WHERE sys_nm = tgt_sys_nm;
EXCEPTION
WHEN TOO_MANY_ROWS THEN
temp_var := 'Too may rows for System Key value lookup for Target System Name: '||tgt_sys_nm;
RAISE TOO_MANY_ROWS;
WHEN NO_DATA_FOUND THEN
temp_var := 'System Key value lookup failed for Target System Name: '||tgt_sys_nm;
RAISE NO_DATA_FOUND;
WHEN OTHERS THEN
temp_var := 'Unknown error in the System Key value lookup for Target System Name: '||tgt_sys_nm||' :
'|| sqlerrm;
RAISE unknown_exception;
END;
BEGIN
SELECT dta_elem_key INTO tgt_elem FROM cu_cdm_dta_elem WHERE dta_elem_phys_nm = tgt_dta_elem_nm
AND dom_key = tgt_dom AND sys_key = tgt_sys;
EXCEPTION
WHEN TOO_MANY_ROWS THEN
temp_var := 'Too many rows for Data Element Key value lookup for Target Data Element Physical Name:
'||tgt_dta_elem_nm|| ', Target Domain Key: '||tgt_dom||' and Target System Key: '||tgt_sys;
RAISE TOO_MANY_ROWS;
WHEN NO_DATA_FOUND THEN
temp_var := 'Data Element Key value lookup failed for Target Data Element Physical Name:
'||tgt_dta_elem_nm|| ', Target Domain Key: '||tgt_dom||' and Target System Key: '||tgt_sys;
RAISE NO_DATA_FOUND;
WHEN OTHERS THEN
temp_var := 'Unknown error in the Data Element Key value lookup for Target Data Element Physical
Name: '||tgt_dta_elem_nm|| ', Target Domain Key: '||tgt_dom||' and Target System Key: '||tgt_sys||' : '|| sqlerrm;
RAISE unknown_exception;
END;
BEGIN
SELECT MIN(cd_map_typ_cd) INTO map_code FROM cu_cdm_cd_map_typ WHERE cd_map_typ_desc = cd_map_typ_desc;
EXCEPTION
WHEN TOO_MANY_ROWS THEN
temp_var := 'Too many values for Code Map Type Code value lookup for Code Map Type Desc:
'||cd_map_typ_desc;
RAISE TOO_MANY_ROWS;
WHEN NO_DATA_FOUND THEN
temp_var := 'Code Map Type Code value lookup failed for Code Map Type Desc: '||cd_map_typ_desc;
RAISE NO_DATA_FOUND;
WHEN OTHERS THEN
temp_var := 'Unknown error in the Code Map Type Code value lookup for Code Map Type Desc:
'||cd_map_typ_desc||' : '|| sqlerrm;
RAISE unknown_exception;
END;
BEGIN
SELECT cu_cdm_src_cd_val_grp_key_sq.nextval INTO src_cd_val_seq FROM dual;
EXCEPTION
WHEN OTHERS THEN
temp_var := 'Error in generating the value for the sequence CU_CDM_SRC_CD_VAL_GRP_KEY_SQ'||' : '||
sqlerrm;
RAISE unknown_exception;
END;
BEGIN
SELECT cu_cdm_cd_val_key_sq.nextval INTO src_val_seq FROM dual;
EXCEPTION
WHEN OTHERS THEN
temp_var := 'Error in generating the value (source) for the sequence CU_CDM_CD_VAL_KEY_SQ'||' : '||
sqlerrm;
RAISE unknown_exception;
END;
BEGIN
SELECT cu_cdm_cd_val_key_sq.nextval INTO tgt_val_seq FROM dual;
EXCEPTION
WHEN OTHERS THEN
temp_var := 'Error in generating the value (target) for the sequence CU_CDM_CD_VAL_KEY_SQ'||' : '||
sqlerrm;
RAISE unknown_exception;
END;
BEGIN
SELECT cu_cdm_cd_val_map_key_sq.nextval INTO cd_val_map_key_sq FROM dual;
EXCEPTION
WHEN OTHERS THEN
temp_var := 'Error in generating the value for the sequence CU_CDM_CD_VAL_MAP_KEY_SQ'||' : '||
sqlerrm;
RAISE unknown_exception;
END;
BEGIN
BEGIN
INSERT INTO cu_cdm_cd_val_mstr(cd_val_key, cd_val_eff_dttm, dta_elem_key, cd_val_txt,
cd_val_desc, coode_val_term_dttm)
VALUES(src_val_seq, to_date(eff_dttm, 'MM-DD-YYYY'), src_elem, src_cd_val_txt,
src_cd_val_desc, to_date(term_dttm, 'MM-DD-YYYY'));
EXCEPTION
WHEN DUP_VAL_ON_INDEX THEN
temp_var := 'Primary Key Violation, key already exists in the table CU_CDM_CD_VAL_MSTR';
RAISE DUP_VAL_ON_INDEX;
WHEN OTHERS THEN
temp_var := 'Unknown error inserting into the table CU_CDM_CD_VAL_MSTR :'||' : '|| sqlerrm;
RAISE unknown_exception;
END;
BEGIN
INSERT INTO cu_cdm_cd_val_mstr(cd_val_key, cd_val_eff_dttm, dta_elem_key, cd_val_txt,
cd_val_desc, coode_val_term_dttm)
VALUES(tgt_val_seq, to_date(eff_dttm, 'MM-DD-YYYY'), tgt_elem, tgt_cd_val_txt,
tgt_cd_val_desc, to_date(term_dttm, 'MM-DD-YYYY'));
EXCEPTION
WHEN DUP_VAL_ON_INDEX THEN
temp_var := 'Primary Key Violation, key already exists in the table CU_CDM_CD_VAL_MSTR';
RAISE DUP_VAL_ON_INDEX;
WHEN OTHERS THEN
temp_var := 'UUnknown error inserting into the table CU_CDM_CD_VAL_MSTR'||' : '|| sqlerrm;
RAISE unknown_exception;
END;
BEGIN
INSERT INTO cu_cdm_src_cd_val_grp(src_cd_val_grp_key, src_cd_val_grp_eff_dttm,
src_cd_val_grp_desc, src_cd_val_term_dttm)
VALUES(src_cd_val_seq, to_date(eff_dttm, 'MM-DD-YYYY'), src_cd_val_grp_desc,
to_date(term_dttm, 'MM-DD-YYYY'));
EXCEPTION
WHEN DUP_VAL_ON_INDEX THEN
temp_var := 'Primary Key Violation, key already exists in the table CU_CDM_SRC_CD_VAL_GRP';
RAISE DUP_VAL_ON_INDEX;
WHEN OTHERS THEN
temp_var := 'Unknown error inserting into the table CU_CDM_SRC_CD_VAL_GRP'||' : '|| sqlerrm;
RAISE unknown_exception;
END;
BEGIN
INSERT INTO cu_cdm_cd_val_map(cd_val_map_key, cd_map_eff_dttm, cd_map_typ_cd,
cd_map_term_dttm, tgt_cd_val_key, tgt_cd_val_eff_dttm, src_cd_val_grp_key, src_cd_val_grp_eff_dttm)
VALUES(cd_val_map_key_sq, to_date(eff_dttm, 'MM-DD-YYYY'), map_code, to_date(term_dttm,
'MM-DD-YYYY'),
tgt_val_seq, to_date(eff_dttm, 'MM-DD-YYYY'), src_cd_val_seq, to_date(eff_dttm,
'MM-DD-YYYY'));
EXCEPTION
WHEN DUP_VAL_ON_INDEX THEN
temp_var := 'Primary Key Violation, key already exists in the table CU_CDM_CD_VAL_MAP';
RAISE DUP_VAL_ON_INDEX;
WHEN OTHERS THEN
temp_var := 'Unknown error inserting into the table CU_CDM_CD_VAL_MAP'||' : '|| sqlerrm;
RAISE unknown_exception;
END;
END;
COMMIT;
EXCEPTION
WHEN NO_DATA_FOUND THEN
errtext := temp_var ||' : '|| sqlerrm;
WHEN TOO_MANY_ROWS THEN
errtext := temp_var ||' : '|| sqlerrm;
WHEN DUP_VAL_ON_INDEX THEN
errtext := temp_var ||' : '|| sqlerrm;
WHEN invalidlength_exception THEN
errtext := temp_var;
WHEN unknown_exception THEN
errtext := temp_var ||' : '|| sqlerrm;
WHEN OTHERS THEN
errtext := sqlcode ||' : '|| sqlerrm;
END SP_Upload_CrossWalk;
Please help me in this regard
Regards
Deepak -
File Adapter receiver channel : change encoding attribut in xml file
Hi,
How can I change the XML encoding attribut
from:
<?xml version="1.0" encoding="UFT-8"?>
to:
<?xml version="1.0" encoding="ISO-8859-1"?>
in my File Adapter, receiver channel ?Hi,
plz chk the following link:
http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
● Select the File Type of the document:
○ Binary
○ Text
Under File Encoding, specify a code page.
The default setting is to use the system code page that is specific to the configuration of the installed operating system.
The content of the message is converted to the corresponding code page before the message is saved as a file.
Permitted values for the code page are the existing Charsets of the Java runtime. According to the SUN specification for the Java runtime, at least the following standard character sets must be supported:
Regards -
HELP! ORA-03113 End of file on comm channel
Hi
I'm new to Oracle but old-timer in Linux.
I have just installed Oracle 8.1.7 on RedHat 7.0 successfully.
Unfortunately, I could not create a new database.
It's always prompt "ORA-03113 End of file on comm channel"
whenever i run sqlplus or svrmgrl command.
I have followed the instructions closely. Except that I did not
create the 4 mounting points. ie. /u0 /u1 /u2 /u3 Because I do
not know how to use it.
Someone pls enlighten me. Is it the reason that it's failed?
Pls help me to solve this ORA-03113 problem. Thanks!
SamuelHi
I'm new to Oracle but old-timer in Linux.
I have just installed Oracle 8.1.7 on RedHat 7.0 successfully.
Unfortunately, I could not create a new database.
It's always prompt "ORA-03113 End of file on comm channel"
whenever i run sqlplus or svrmgrl command.
I have followed the instructions closely. Except that I did not
create the 4 mounting points. ie. /u0 /u1 /u2 /u3 Because I do
not know how to use it.
Someone pls enlighten me. Is it the reason that it's failed?
Pls help me to solve this ORA-03113 problem. Thanks!
Samuel -
Message Mapping error: RuntimeException in Message-Mapping transformation
Hi,
Being new to XI, I am struglling to sort out a basic mapping error. Appreciate if you could help out.
Its an File->XI->R/3 scenario.
My FCC successfully reads the File and creates an XML. However this XML is not transferred to the target XML structure which is exactly same except the root element name is different at top.
I tried various forum tips but I still am getting the error.
( When I Test the Message mapping in test mode..it seems fine, however if I copy the XML from SXMB_MONI, it then throws the above error)
I looked at the MM in text mode: below is the extract
/ns0:MT_REQUEST_TO_SAP/REQUEST_DETAILS/MSG_HEADER=/ns0:MT_REQUEST/REQUEST_DETAILS/MSG_HEADER=
/ns0:MT_REQUEST_TO_SAP/REQUEST_DETAILS/MSG_HEADER/SOURCE=/ns0:MT_REQUEST/REQUEST_DETAILS/MSG_HEADER/SOURCE=
/ns0:MT_REQUEST_TO_SAP/REQUEST_DETAILS/MSG_HEADER/DESTINATION=/ns0:MT_REQUEST/REQUEST_DETAILS/MSG_HEADER/DESTINATION=
/ns0:MT_REQUEST_TO_SAP/REQUEST_DETAILS/MSG_HEADER/MESSAGE_ID=/ns0:MT_REQUEST/REQUEST_DETAILS/MSG_HEADER/MESSAGE_ID=
As seen the name space in both starts with nS0 and end of each line has '=' sign. Is that ok.
I have run out of options and dont know , whats the problem. Please help.
The target and Source XML structures are exactly same as shown below
MT_REQUEST MT_REQUEST_TO_SAP
|__MSG_HEADER |__MSG_HEADER
|__SOURCE |__SOURCE
|__DESTINATION |__DESTINATION
|__MESSAGE_ID |__MESSAGE_ID
And the SXMB_MONI Trace shows the following error
<Trace level="1" type="T">com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation:
Cannot produce target element /ns0:MT_REQUEST_TO_SAP.
Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at ..
Thanks
Shirin
Edited by: Shirin K on May 29, 2008 10:29 AMHi Prakasu,
As structure are exactly same, I have done 1:1 mapping. So all the fields in target structure are mapped, so no field has beeen left.
In this structure, I do not have any 1:n relation. So 1:1 mapping should be fine.
Apart from this could teher be any other reason.
Regards
Rajiv
Maybe you are looking for
-
Replacement phone has iOS 7.2 installed backup was created in ios 7.1 anyway to restore replacement phone with my backup files? I tried updating the software on the broken phone but it says it is up to date.
-
NiReport not available on Measuremen​t Studio 8.6?
Hi! I have updated my development environment to Microsoft VisualStudio 2008 and installed as well measurement studio. NiReport is not recognised anymore in this version. I was using before Microsoft Visual C++ 2003 and Measurement Studio 8.1. My pr
-
Transactions with multiple weblogic servers
Hi I've got two weblogic 5.1 sp9 servers running identical copies of my application but pointing to different database instances (both Oracle 8.1.6). I have a transaction which requires creating entity beans on
-
Collection date on YBNK transaction.
Hello Experts, Your client has requirement on YBNK transaction. They are processing the bill of exchange via transaction code FTR03 and then printing the letter that need to send to bank with bills of exchanges details. They are sending the bill of e
-
Repeated requests for hotmail password
My son's new macbook is set up to get hotmail (paid account, POP settings), and it works just fine EXCEPT that mail.app asks for his password every few minutes or so. Does anyone know why, or how to make it stop?