Skip to Content
author's profile photo Former Member
Former Member

Value Mapping Insert Error

Hi

I am sendind an item value mapping from R3 to XI and I get this error:

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>

http://sap.com/xi/XI>

<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" ?>

- http://sap.com/xi/XI/System">

- <Item>

<Operation>Insert</Operation>

<GroupID>037dd9b01a3111da8abef522ac127968</GroupID>

http://sap.com/xi/XI>

<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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Sep 27, 2005 at 10:03 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hello,

      In my opinion it is a bug in Java Proxy class.

      I've tried to do the same thing as You using HTTP client and the results were exactly the same.

      I will try to do the same thing with asynchronous scenario.

      I will post a message if it works.

      It doesn't work either.

      Regards

      Artur

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.