on 09-27-2005 10:12 AM
Hi
I am sendind an item value mapping from R3 to XI and I get this error:
<ns:ValueMappingReplicationFault xmlns:ns="http://sap.com/xi/XI/System">
- <standard>
<faultText>A value is missing for content of Identifier in item 0.</faultText>
- <faultDetail>
<text />
<id>7</id>
</faultDetail>
</standard>
- <addition>
<ItemNr>0</ItemNr>
- <Item>
<Operation>Insert</Operation>
<GroupID>037dd9b01a3111da8abef522ac127968</GroupID>
<Context>http://sap.com/xi/XI</Context>
<Identifier scheme="BS_PEPE" agency="Company" />
</Item>
</addition>
</ns:ValueMappingReplicationFault>
The code in R3 is this one
REPORT Z_XI_REPLICATE_VALUE_MAPPING.
data: My_ZCO_MI_CONSULTA_SERIAL type ref to
CO_SVMR_VALUE_MAPPING_REP_SYNC,
in type SVMR_VALUE_MAPPING_REP_RESP,
out type SVMR_VALUE_MAPPING_REPLICATION,
vIdentifier type SVMR_VALUE_MAPPING_IDENTIFIER,
vItem type SVMR_VALUE_MAPPING_REP_ITEM,
vItemLst type SVMR_VALUE_MAPPING_REP_TAB,
vList type SVMR_VALUE_MAPPING_REP_LIST,
lo_sys_exception TYPE REF TO cx_ai_system_fault.
try.
create object My_ZCO_MI_CONSULTA_SERIAL.
vIdentifier-scheme = 'BS_PEPE'.
vIdentifier-agency = 'Company'.
vIdentifier-value = '122'.
vItem-Group_id = '037dd9b01a3111da8abef522ac127968'.
vItem-operation = 'Insert'.
vItem-context = 'http://sap.com/xi/XI'.
vItem-Identifier = vIdentifier.
append vItem to vItemLst.
vList-item = vItemLst.
out-VALUE_MAPPING_REPLICATION = vList.
call method My_ZCO_MI_CONSULTA_SERIAL->EXECUTE_SYNCHRONOUS
EXPORTING
output = out
IMPORTING
input = in.
CATCH cx_ai_system_fault INTO lo_sys_exception.
write: /'Error Text --> ',lo_sys_exception->errortext.
write: /'Error Code --> ',lo_sys_exception->code.
exit.
ENDTRY.
write: /'ESN_STATUS --> ',in-STATUS.
The message sent to XI and I see in the sxmb_moni in R3 is this one
<?xml version="1.0" encoding="utf-8" ?>
- <nr1:ValueMappingReplication xmlns:nr1="http://sap.com/xi/XI/System">
- <Item>
<Operation>Insert</Operation>
<GroupID>037dd9b01a3111da8abef522ac127968</GroupID>
<Context>http://sap.com/xi/XI</Context>
<Identifier scheme="BS_PEPE" agency="Company">122</Identifier>
</Item>
</nr1:ValueMappingReplication>
When I try to delete a Group it works but not when I want to insert an individual item.
What am I doing wrong?
Thanks
Regards
Hi Ger,
double click on SVMR_VALUE_MAPPING_REPLICATION. Look to graphical view (may be from transaction SPROXY) There must be requiered field under field 'item', which u didn't filled up in report.
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
There is a field call CONTROLLER with this structure:
FIELD FIELDNAME CHAR 30 0 Field Name
VALUE PRX_CONTR CHAR 1 0 Field Control in XML Data Stream (=> Type Group SAI)
But in SAP documentacion does not say any references to this field and how to fill them.
I am asbolute sure I filled all the mandatory fields.
Thanks
Regards
Hi Ger,
i can support u only from remembering bcoz i ve no system with proxys here.
Go to Transaction SPROXY. Look for ur interface. It was defined in XI and should have nearly same name as class which method u call in function modul.
On the right side u can look to the parameters. U need of course the export parameter. There is a button for graphical view, so that u have a better overview to the deep structure of the type of ur parameter.
Try to figure out, which fields r required and fill them in ABAP code.
Regards,
Udo
Thanks for your awnser Udo
I have been in the sproxy and check again and again and again if I missed any field, but not.
I send you the liknk I used to configure the value mapping and you can see the xml message mentioned in the document is the same structure I send (at the end of the document).
/people/sreekanth.babu2/blog/2005/02/23/value-mapping-replication
Regards
Ger.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.