on 02-19-2008 2:25 PM
Hello,
I implement file to RFC scenario.
When I try to test the mapping without data the mapping is OK.
When I load data from SXMB_MONI to test section in message mapping I not received any problem but the data not transfer from the source to target.
My source is:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:ShippNote_MT xmlns:ns0="com:netafim:ShippNote:plason">
<DATA>
<Contact_person_name/>
<Contact_person_Email/>
<PO_Number/>
<PO_Line_Number/>
<Material/>
<Conf_Qty/>
<Conf_date/>
<DATE_UPD/>
<DEL_COMP/>
<Unique_for_Header/>
<Unique_for_Item/>
</DATA>
</ns0:ShippNote_MT>
My tareget is:
<?xml version="1.0" encoding="UTF-8"?>
<ns1:ZRFC_MM_PO_MSG_CNFR_INTER_TMP xmlns:ns1="urn:sap-com:document:sap:rfc:functions">
<IT_INV_MSG_CNFR_XI>
<item>
<EBELN></EBELN>
<EBELP></EBELP>
<MATNR></MATNR>
<LFIMG></LFIMG>
<LFDAT></LFDAT>
<DATE_UPD></DATE_UPD>
<DEL_COMP></DEL_COMP>
<UNIQUE_HEADER></UNIQUE_HEADER>
<UNIQUE_ITEM></UNIQUE_ITEM>
<EKNAM></EKNAM>
<AD_SMTPADR></AD_SMTPADR>
</item>
</IT_INV_MSG_CNFR_XI>
</ns1:ZRFC_MM_PO_MSG_CNFR_INTER_TMP>
Any idea?
Regards
Elad
to find out this root cause....just gotrought the pipleline steps on the left hand side of the message details when you double click the message in the SXMB_MONI.
in the Message Mapping stepp check the data is transfered or not, if not just cross
1. Hva you selected the right Message mapping Program
2. Hvae you selected the right Interface mapping in Interface determination and right mapping in that.
3. make sure all are activated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Raj,
This is the source (from sxmb_moni)
<?xml version="1.0" encoding="utf-8"?>
<ShippNote_MT>
<DATA>
<Contact_person_name>bbb</Contact_person_name>
<Contact_person_Email>aaa@netafim.com</Contact_person_Email>
<PO_Number>2300002585</PO_Number>
<PO_Line_Number>10</PO_Line_Number>
<Material>73280-005001</Material>
<Conf_Qty>4</Conf_Qty>
<Conf_date>18022008</Conf_date>
<DATE_UPD>1</DATE_UPD>
<DEL_COMP>1</DEL_COMP>
<Unique_for_Header>8005965</Unique_for_Header>
<Unique_for_Item>10</Unique_for_Item>
</DATA>
<DATA>
<Contact_person_name>bbb</Contact_person_name>
<Contact_person_Email>aaa@netafim.com</Contact_person_Email>
<PO_Number>2300002585</PO_Number>
<PO_Line_Number>10</PO_Line_Number>
<Material>73280-005001</Material>
<Conf_Qty>5</Conf_Qty>
<Conf_date>22022008</Conf_date>
<DATE_UPD>1</DATE_UPD>
<DEL_COMP>0</DEL_COMP>
<Unique_for_Header>8005965</Unique_for_Header>
<Unique_for_Item>10.1</Unique_for_Item>
</DATA>
<DATA>
<Contact_person_name>;</Contact_person_name>
<Contact_person_Email></Contact_person_Email>
<PO_Number></PO_Number>
<PO_Line_Number></PO_Line_Number>
<Material></Material>
<Conf_Qty></Conf_Qty>
<Conf_date></Conf_date>
<DATE_UPD></DATE_UPD>
<DEL_COMP></DEL_COMP>
<Unique_for_Header></Unique_for_Header>
</DATA>
</ShippNote_MT>
The target (from sxmb_moni)
<?xml version="1.0" encoding="utf-8"?>
<ShippNote_MT>
<DATA>
<Contact_person_name>bbb</Contact_person_name>
<Contact_person_Email>aaa@netafim.com</Contact_person_Email>
<PO_Number>2300002585</PO_Number>
<PO_Line_Number>10</PO_Line_Number>
<Material>73280-005001</Material>
<Conf_Qty>4</Conf_Qty>
<Conf_date>18022008</Conf_date>
<DATE_UPD>1</DATE_UPD>
<DEL_COMP>1</DEL_COMP>
<Unique_for_Header>8005965</Unique_for_Header>
<Unique_for_Item>10</Unique_for_Item>
</DATA>
<DATA>
<Contact_person_name>bbb</Contact_person_name>
<Contact_person_Email>aaa@netafim.com</Contact_person_Email>
<PO_Number>2300002585</PO_Number>
<PO_Line_Number>10</PO_Line_Number>
<Material>73280-005001</Material>
<Conf_Qty>5</Conf_Qty>
<Conf_date>22022008</Conf_date>
<DATE_UPD>1</DATE_UPD>
<DEL_COMP>0</DEL_COMP>
<Unique_for_Header>8005965</Unique_for_Header>
<Unique_for_Item>10.1</Unique_for_Item>
</DATA>
<DATA>
<Contact_person_name>;</Contact_person_name>
<Contact_person_Email></Contact_person_Email>
<PO_Number></PO_Number>
<PO_Line_Number></PO_Line_Number>
<Material></Material>
<Conf_Qty></Conf_Qty>
<Conf_date></Conf_date>
<DATE_UPD></DATE_UPD>
<DEL_COMP></DEL_COMP>
<Unique_for_Header></Unique_for_Header>
</DATA>
</ShippNote_MT>
Thank you
Elad
Elad,
So basically u mean the source and target are same, they haven't got changed is it?
Fine,
See the below root message , can u see the namespace. If you don't want the namespace then remove it from the Message type. If you want the namespace then include it in the File.
<ns0:ShippNote_MT xmlns:ns0="com:netafim:ShippNote:plason">
raj.
Hello Raj,
I recevived the data!!!
When I try it in message mapping I recevied the data but is not full.
The source is:
<?xml version="1.0" encoding="utf-8"?>
<ShippNote_MT>
<DATA>
<Contact_person_name>bbb</Contact_person_name>
<Contact_person_Email>aaa@netafim.com</Contact_person_Email>
<PO_Number>2300002585</PO_Number>
<PO_Line_Number>10</PO_Line_Number>
<Material>73280-005001</Material>
<Conf_Qty>4</Conf_Qty>
<Conf_date>18022008</Conf_date>
<DATE_UPD>1</DATE_UPD>
<DEL_COMP>1</DEL_COMP>
<Unique_for_Header>8005965</Unique_for_Header>
<Unique_for_Item>10</Unique_for_Item>
</DATA>
<DATA>
<Contact_person_name>bbb</Contact_person_name>
<Contact_person_Email>aaa@netafim.com</Contact_person_Email>
<PO_Number>2300002585</PO_Number>
<PO_Line_Number>10</PO_Line_Number>
<Material>73280-005001</Material>
<Conf_Qty>5</Conf_Qty>
<Conf_date>22022008</Conf_date>
<DATE_UPD>1</DATE_UPD>
<DEL_COMP>0</DEL_COMP>
<Unique_for_Header>8005965</Unique_for_Header>
<Unique_for_Item>10.1</Unique_for_Item>
</DATA>
<DATA>
<Contact_person_name>;</Contact_person_name>
<Contact_person_Email></Contact_person_Email>
<PO_Number></PO_Number>
<PO_Line_Number></PO_Line_Number>
<Material></Material>
<Conf_Qty></Conf_Qty>
<Conf_date></Conf_date>
<DATE_UPD></DATE_UPD>
<DEL_COMP></DEL_COMP>
<Unique_for_Header></Unique_for_Header>
</DATA>
</ShippNote_MT>
And the target is:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:ZRFC_MM_PO_MSG_CNFR_INTER_TMP xmlns:ns0="urn:sap-com:document:sap:rfc:functions"><IT_INV_MSG_CNFR_XI><item><EBELN>2300002585</EBELN><EBELP>10</EBELP><MATNR>73280-005001</MATNR><LFIMG>4</LFIMG><LFDAT>18022008</LFDAT><DATE_UPD>1</DATE_UPD><DEL_COMP>1</DEL_COMP><UNIQUE_HEADER>8005965</UNIQUE_HEADER><UNIQUE_ITEM>10</UNIQUE_ITEM><EKNAM>bbb</EKNAM><AD_SMTPADR>aaa@netafim.com</AD_SMTPADR></item></IT_INV_MSG_CNFR_XI></ns0:ZRFC_MM_PO_MSG_CNFR_INTER_TMP>
Thank you for all your help
Elad
Elad,
What's the occurrence of <IT_INV_MSG_CNFR_XI> & <item> in the target structure? If it's 0..1 or 0..unbounded , did u mapped those fields?
raj.,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
<item> occurrence is 0..unbounded and I map it to ShippNote_MT
IT_INV_MSG_CNFR_XI occurrence is 1..1
but when i try to map it (to DATA for exemple) I recevied the message:
Cannot produce target element /ns1:ZRFC_MM_PO_MSG_CNFR_INTER_TMP. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd
Thank you
Elad
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.