on 01-23-2008 8:20 AM
i am trying to use value mapping replication with the synchronous interface.
i generated an abap proxy and wrote this abap program:
REPORT z_value_mapping_proxy.
TYPES: BEGIN OF ty_lfa1,
lifnr LIKE lfa1-lifnr,
name1 LIKE lfa1-name1,
END OF ty_lfa1.
DATA : obj_ref_sync TYPE REF TO zco_value_mapping_rep_out_sync,
wa_output TYPE zvalue_mapping_replication,
gt_lfa1 TYPE TABLE OF ty_lfa1,
gs_lfa1 TYPE ty_lfa1,
gs_item TYPE zvalue_mapping_replication_itm,
lr_root TYPE REF TO cx_root.
START-OF-SELECTION.
SELECT lifnr name1 FROM lfa1 UP TO 100 ROWS
INTO TABLE gt_lfa1.
LOOP AT gt_lfa1 INTO gs_lfa1.
CONCATENATE gs_lfa1-lifnr '_to_' INTO gs_item-group_id.
CONCATENATE gs_item-group_id gs_lfa1-name1 INTO gs_item-group_id.
gs_item-identifier-agency = 'SEA2'.
gs_item-identifier-scheme = 'urn:source:vcode2'.
gs_item-identifier-value = gs_lfa1-lifnr.
gs_item-operation = 'Insert'.
gs_item-context = 'http://sap.com/xi/XI'.
APPEND gs_item
TO wa_output-value_mapping_replication-item.
gs_item-identifier-agency = 'REA4'.
gs_item-identifier-scheme = 'urn:target:vname4'.
gs_item-identifier-value = gs_lfa1-name1.
gs_item-operation = 'Insert'.
gs_item-context = 'http://sap.com/xi/XI'.
APPEND gs_item
TO wa_output-value_mapping_replication-item.
ENDLOOP.
LOOP AT wa_output-value_mapping_replication-item INTO gs_item.
WRITE: / gs_item-group_id, gs_item-identifier-agency,
gs_item-identifier-scheme , gs_item-context.
ENDLOOP.
TRY.
CREATE OBJECT obj_ref_sync
EXPORTING
LOGICAL_PORT_NAME =
.
CATCH cx_ai_system_fault .
ENDTRY.
TRY.
CALL METHOD obj_ref_sync->execute_synchronous
EXPORTING
output = wa_output
IMPORTING
INPUT =
.
CATCH CX_AI_SYSTEM_FAULT .
CATCH ZCX_VALUE_MAPPING_REPLICATIONF .
CATCH CX_AI_APPLICATION_FAULT .
ENDTRY.
COMMIT WORK.
in xi monitor i get the message:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Request Message Mapping
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Category>Application</SAP:Category>
<SAP:Code area="JAVA_PROXY.">APPLICATION_FAULT</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="http://sap.com/xi/XI/System">ValueMappingReplicationFault</SAP:ApplicationFaultMessage>
<SAP:Stack />
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
and inthe aplication logViewer, in the log defaultTrace.trc, i get the message:
Error processing inbound message. FaultException: com.sap.xi.xI.system.ValueMappingReplicationFault_Message_Exception: <ns:ValueMappingReplicationFault xmlns:ns="http://sap.com/xi/XI/System"><standard><faultText>The GroupID 0000000001_to_Forks Manufacturin in item 0 has wrong format. Details: null</faultText><faultDetail><text></text><id>4</id></faultDetail></standard><addition><ItemNr>0</ItemNr><Item><Operation>Insert</Operation><GroupID>0000000001_to_Forks Manufacturin</GroupID><Context>http://sap.com/xi/XI</Context><Identifier scheme="urn:source:vcode2" agency="SEA2">0000000001</Identifier></Item></addition></ns:ValueMappingReplicationFault><ns:ValueMappingReplicationFault xmlns:ns="http://sap.com/xi/XI/System"><standard><faultText>The GroupID 0000000001_to_Forks Manufacturin in item 0 has wrong format. Details: null</faultText><faultDetail><text></text><id>4</id></faultDetail></standard><addition><ItemNr>0</ItemNr><Item><Operation>Insert</Operation><GroupID>0000000001_to_Forks Manufacturin</GroupID><Context>http://sap.com/xi/XI</Context><Identifier scheme="urn:source:vcode2" agency="SEA2">0000000001</Identifier></Item></addition></ns:ValueMappingReplicationFault>
does anyone know what the problem can be?
is there a specific format for groupid?
Hi,
You can use FM GUID_CREATE and use 32 digit GUID.
Regards,
Sudharshan N A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the quick reply
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.