Value mapping,Structure mapping

Hi GURUs,
I need inforamtion regarding structure mapping.
conversion rules,Node , boolean,constant etc example.
I will give points to every one.

Hi ,
The following websites wil provide u with required solution:
Excellent PDF Document on Mapping
http://help.sap.com/bp_bpmv130/Documentation/Operation/MappingXI30.pdf
Mapping Development with the ABAP Workbench
http://help.sap.com/saphelp_nw04/helpdata/en/10/5abb2d9df242f6a62e22e027a6c382/content.htm
ABAP Mappings
http://help.sap.com/saphelp_nw04/helpdata/en/ba/e18b1a0fc14f1faf884ae50cece51b/content.htm
how to create a flat file out of an IDoc-XML by means of an ABAP mapping program and the J2EE File Adapter.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
How to Use ABAP Mapping in XI 3.0
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e3ead790-0201-0010-64bb-9e4d67a466b4
cheers!
gyanaraj
****Pls reward points if u find this helpful

Similar Messages

  • Value Mapping Replication Inbound Structure

    Hi All,
    I am using Value Mapping Replication to upload Value Mapping Table in runtime cache, to do this first i create value mapping manually in ID with source and target.
    Source:Agency : ValCustomerNo_B
    Schema : ValB
    Value : xxx
    Target:Agency : ValCustomerNo_J
    Schema : ValJ
    Value : yyy
    Now try to upload 1800 record in the same value mapping table through Value Mapping Replication. Inbound structure looks like this.
    <?xml version="1.0"?>
    <ns1:ValueMappingReplication>
         <Item>
              <Operation>Insert</Operation>
              <GroupID>f16372c043bd11dea79f001558c985eb</GroupID>
              <Context> http://sap.com/xi/XI</Context>
              <Identifier scheme=" ValB" agency="ValCustomerNo_B">3DASDIG</Identifier>
         </Item>
         <Item>
              <Operation>Insert</Operation>
              <GroupID>f16372c043bd11dea79f001558c985eb</GroupID>
              <Context>http://sap.com/xi/XI</Context>
              <Identifier scheme="ValJ" agency="ValCustomerNo_J">1960452622</Identifier>
         </Item>
         <Item>
              <Operation> Insert </Operation>
              <GroupID>f16372c043bd11dea79f001558c985eb</GroupID>
              <Context>http://sap.com/xi/XI</Context>
              <Identifier scheme=" ValB " agency="ValCustomerNo_B">4CAHRJTN</Identifier>
         </Item>
         <Item>
              <Operation>Insert</Operation>
              <GroupID>f16372c043bd11dea79f001558c985eb</GroupID>
              <Context>http://sap.com/xi/XI</Context>
              <Identifier scheme="ValJ" agency=" ValCustomerNo_J">1960457894</Identifier>
         </Item>
    I do not know is this xml structure is correct for XI adapter to create correct rows in value mapping table or not?
    At runtime value mapping function in graphical mapping, for manually create record in Value mapping table is coming correctly where in case VM replication record it always map to one arbitrary number.
    Even when I look into runtime cache notification, manually created record comes in pair like..
    Agency : ValCustomerNo_B | Schema : ValB | Value : xxx | Group ID | Context
    Agency : ValCustomerNo_J  | Schema : ValJ  | Value : yyy | Group ID | Context
    Where as record for VM Replication comes in sequence first all ValB and then ValJ, they are not in pair
    Agency : ValCustomerNo_B | Schema : ValB | Value : xxx | Group ID | Context
    Agency : ValCustomerNo_B | Schema : ValB | Value : ppp | Group ID | Context
    u2026u2026.
    Agency : ValCustomerNo_J  | Schema : ValJ  | Value : yyy | Group ID | Context
    Agency : ValCustomerNo_J  | Schema : ValJ  | Value : aaa | Group ID | Context
    I suspect inbound xml structure is not correct for VM replication.
    With Regards
    Sunil
    Edited by: Sunil Pandey on May 18, 2009 7:40 PM

    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00ee347e-aabb-2a10-b298-d15a1ebf43c5  that should clear a lot of doubts

  • Value Mapping Insert Error

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

  • Value Mapping Group in PI 7.1

    Hi All,
    In PI 7.1 Integration Directory there is one section as "Value Mapping Group".I suppose that it is used if and only if value mapping is used.But I am not using any kind of value mapping so can I skip that section?
    Thanks in advance.

    Hi Abhishek,
    THanks for the reply.
    I have another query. it is as follows:
    Actually I am having the Process Order coming in the source with 5 to 6 relevant fields.Out of these Process Order fields Status is one of the fields.Based on the the StatuS field the BAPIs will be called at the receiver.So can I skip Integrated Configurations as I am imposing the condition on the data in the payload(Source Structure) as Integrated configuration will not be helpful in my scenerio.?
    Or shall I skip Sender Agreement ,Receiver Agreement?
    Thanks in advance.

  • Value Mapping using XSLT mapping

    Hello All,
    We have change requirement of storing some xsl Key-Value in SAP PI and on run time existing XSLT mapping need to look that values and in target structure map the value as per source key value.
    For this requirement i am going with value mapping that will call from  XSLT mapping and created a test scenario before actual changes in XSLT mapping
    I have created table in ID.
    But unfortunately  i am getting below error :
    Transformer Configuration Exception occurred when loading XSLT Test_Mapping.xsl; details: Could not load stylesheet.com.sap.engine.lib.xsl.xpath.XPathException: Prefix not mapped: ValueMap -> java.lang.Exception: XMLParser: Prefix 'ValueMap' is not mapped to a namespace
    Below is my XSLT mapping code :
    <?xml version='1.0' encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="urn:kesko.fi.XSLTTest" xmlns:ns1="urn:kesko.fi.XSLTTest">
    <xsl:template match="/">
      <xsl:param name="Dept_ID">
      <xsl:value-of select="ns0:MT_EmpDet_S/ID"/>
      </xsl:param>
      <xsl:param name="inputparam"/>
      <ns1:MT_EDet_R>
      <Name>
       <xsl:value-of select="ns0:MT_EmpDet_S/Name"/>
      </Name>
      <Department>
       <xsl:if test="function-available('ValueMap:getValueMapping')">
         <xsl:value-of select="ValueMap:getValueMapping('http://sap.com/XI/xi', 'http://sap.com/XI/xi', 'S','S1', 'T', 'T1', $Dept_ID, $inputparam,'TRUE')"/>
       </xsl:if>
      </Department>
      <PersonalInfo>
        <xsl:value-of select="concat(ns0:MT_EmpDet_S/Add, ns0:MT_EmpDet_S/SAL)"/>
      </PersonalInfo>
      </ns1:MT_EDet_R>
      </xsl:template>
    </xsl:stylesheet>
    Thanks,
    Anant

    Thanks again.
    But after adding the namespace  I am still getting error.
    Can you please extend your help so that i can proceed further.
    Please check below code that i tried to execute :
    1st :
    <?xml version='1.0' encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ValueMap="com.sap.aii.mapping.value.api.XIVMService"
    xmlns:ns0="urn:kesko.fi.XSLTTest" xmlns:ns1="urn:kesko.fi.XSLTTest">
    <xsl:template match="/">
      <xsl:param name="Dept_ID">
      <xsl:value-of select="ns0:MT_EmpDet_S/ID"/>
      </xsl:param>
      <xsl:param name="inputparam"/>
      <ns1:MT_EDet_R>
      <Name>
       <xsl:value-of select="ns0:MT_EmpDet_S/Name"/>
      </Name>
      <Department>
       <xsl:if test="function-available('ValueMap:getValueMapping')">
         <xsl:value-of select="ValueMap:getValueMapping('http://sap.com/XI/xi', 'http://sap.com/XI/xi', 'S','S1', 'T', 'T1', $Dept_ID, $inputparam,'TRUE')"/>
       </xsl:if>
      </Department>
      <PersonalInfo>
        <xsl:value-of select="concat(ns0:MT_EmpDet_S/Add, ns0:MT_EmpDet_S/SAL)"/>
      </PersonalInfo>
      </ns1:MT_EDet_R>
      </xsl:template>
    </xsl:stylesheet>
    2nd :
    <?xml version='1.0' encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ValueMap="com.sap.aii.mapping.value.api.XIVMService"
    xmlns:ns0="urn:kesko.fi.XSLTTest" xmlns:ns1="urn:kesko.fi.XSLTTest">
    <xsl:template match="/">
      <xsl:param name="Dept_ID">
      <xsl:value-of select="ns0:MT_EmpDet_S/ID"/>
      </xsl:param>
      <xsl:param name="inputparam"/>
      <ns1:MT_EDet_R>
      <Name>
       <xsl:value-of select="ns0:MT_EmpDet_S/Name"/>
      </Name>
      <Department>
         <xsl:value-of select="ValueMap:executeMapping('S','S1',$Dept_ID,'T','T1')"/>
      </Department>
      <PersonalInfo>
        <xsl:value-of select="concat(ns0:MT_EmpDet_S/Add, ns0:MT_EmpDet_S/SAL)"/>
      </PersonalInfo>
      </ns1:MT_EDet_R>
      </xsl:template>
    </xsl:stylesheet>
    for above both the cases messages are failing in MONI.
    Thanks in advance.
    Anant

  • Problem in value mapping in POSDM configuration!

    Hi Experts,
                              I am sending data from POS to POSDM. I hav used standard name spaces like GM store Connectivity, BI and Store Connectivity 2.0. I hav also done settings in ID . Made a File adapter and RFC adapter and RD, ID, SA and RA settings.
    Data from Sourse: GMTLogTransaction_out is going to the RFC :/POSDW/CREATE_TRANSACTIONS_EXT  .
    So I hope users can Understand I hav used standard mapping.
    Now the issue is in the source structure a perticular field called TENDER ID is mapped with Target Field :Tender Code.
    But there is a value mapping in between.
    The name of the source Agency is IXREtailPOSLogRetailTransactionTenderID  and schema is IXRetailPOSLogRetailTransactionTenderIDSchema  and 
    The name of the Target  Agency is POSDWTENDERTYPECODE  and schema is POSDWTENDERTYPECODESCHEMA.
        And the Value mapping Context is : http://sap.com/xi/XI.
    The problem is I can see this , but I cant assign any value as it is in disabled mode in Messege mapping.
    Again In the ID I cannot see this Value mapping , which I expected to see and maniputale.
       experts, please tell me hw to I use this  manipulate / incert some values so taht the input when 01 becomes 3101 at output.
    If any doubts/ querioes, pls revert back.Please note , I am using all standard components in IR.
    Regards,
    Arnab .

    Hi Arnab / Abhijith,
    I am also going to work on the similar kind of requirement which u guys  have worked.
    Pos( third Party)->PI>POSDM-->IS-Retail ( Inbound)
    IS-Retail-> PI->POS( third Party) ( Outbound)
    Appreciate if you could help me with some clarifications..
    1) What transactions we can update to POSDM..?
    2) Does we need to POST all POS transactions first to POS DM and then IS-Retail ( Inbound).?
    If that is the case, once transactions posted in POSDM, does we need to do any settings to post idocs automatically to Retail system .. (OR) do we need to develop interface again from POSDM>PI>IS-Retail.( please clarify).
    Please suggest .. is it feasable to post only Non aggregated data directly to POSDM and Aggregated Sales ,FI , GRNs to directly to ECC.( Based on client requirement ).
    Awaiting for your suggestions.. Please suggest the best appraoch
    Thanks & Regards,
    Suman

  • Value Mapping -- Help needed.

    Hi experts,
    I have a scenario ,
    I have 2 fields in my source structure and based on these two fields,i need to fetch 8 field values from a table to map into idoc control record.
    The table might be in SAP or in Legacy
    If it is a Ztable in SAP, how can I achieve this?
    If it is in Legacay , how can I achieve this?
    My client told us to do this through Value mapping?
    Please help me in acheiving this.
    Thanks in advance.
    Regards
    Krupa.

    Hi,
    Use the RFC Lookup API to call an RFC from the mapping and get the values from the Table in the R3 system . Look into this document by Michal to understand RFC lookup,
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1b439
    Else, use value mapping as shown in this blog,
    /people/community.user/blog/2007/01/08/valuemapping-using-the-graphical-mapping-tool
    Regards
    Bhavesh

  • ABAP program and FB for value mapping replication

    Hi,
    we are using a 40B system and I want to use the value mapping replication in XI. To refill the data into the XI database I must write an ABAP and a function module to transfer the data out of R/3 into XI (via RFC). Has anybody an example how the program (and the FB) must look like? i.e I want to read table mvke and extract the materialnumber and the prodhierarchy.
    Thanks and best regards
    Arnold

    Hi Arnold,
    First you need a table type with a structure like follows:
    operation
    groupid
    context
    identifier
    agency
    scheme
    (corresponding to the Interface ValueMappingReplication)
    All used data elements should have type string or charXX
    for example: operation - char10, groupid - char32, rest - char120
    Next you create a function module with attribute 'remote-enabled module'.
    The import parameter is your new table structure.
    Next you create an ABAP program. Here an example:
    report z_value_mapping .
    tables mvke.
    data:
    p_value_mapping type zvalue_mapping,
    p_value_mapping_table type zvalue_mapping_table.
    p_value_mapping-operation = 'Insert'.
    p_value_mapping-context = 'http://xi.com/Material'.
    select * from mvke where matnr between '170' and '501'.
    check not mvke-prodh is initial.
    * Create a value mapping group to join two entries.
    * use a unique 32 digit number.
    concatenate '00000000000000' mvke-prodh into p_value_mapping-groupid.
    translate p_value_mapping-groupid using ' 0'.
    * Store the mapping source as first entry to the group
    p_value_mapping-identifier = mvke-matnr.
    p_value_mapping-agency = 'SenderAgency'.
    p_value_mapping-scheme = 'MATNR'.
    append p_value_mapping to p_value_mapping_table.
    * Store the mapping target as second entry to the group
    p_value_mapping-identifier = mvke-prodh.
    p_value_mapping-agency = 'ReceiverAgency'.
    p_value_mapping-scheme = 'PRODH'.
    append p_value_mapping to p_value_mapping_table.
    endselect.
    * Push data to XI
    call function 'Z_VALUE_MAPPING' in background task
      destination 'IS_XID'
      exporting
        value_mapping       = p_value_mapping_table.
        commit work.
    Import the RFC to the Integration Builder, create a mapping between your RFC and the interface ValueMappingReplication.
    Check this Blog for additional steps:
    /people/sreekanth.babu2/blog/2005/02/23/value-mapping-replication
    Choose names for context, agency and scheme which are useful your scenario.
    Regards
    Stefan

  • File to File using BPM & value mapping

    Hi,
       I have the following scenario to do. sample file structure is given below.
    source:
    HDR   13052008INDIA
    BDY   123456
    BDY   1234567
    EOF 
    Target:
    HDR 2IN  BDY 123456 EOF
    HDR 2IN  BDY 1234567 EOF
    for the above mentioned source and target mapping. we have to use BPM and value mapping.
    In the HDR row 13052008 is the date value this has to be passed to RFC function module and it will return 2, this value has to be mapped to target
    And INDIA has to be mapped to IN using the value mapping option. similarly we have many coutry code.
    could anyone let me know the step by step procedure to achieve this, I followed the blog https://weblogs.sdn.sap.com/pub/wlg/1926. [original link is broken] [original link is broken] [original link is broken] but it does not fit to my scenario.
    help is appreciated.
    Regards
    RDS

    Hey,
         This is a normal file to file scenario.
         You need to use RFC look up instead of value mapping.(as you need to extract 2 and IN from an RFC)
    There is no need for a BPM.
    refer to this blog(for RFC look up)
    /people/sravya.talanki2/blog/2005/12/21/use-this-crazy-piece-for-any-rfc-mapping-lookups
    this will solve your problem.
    Output of RFC look up will be 2 and IN . So use the concat function.
    Other values map them directly from source to target.
    Also, set the occurence for the target structure as 0 to unbounded in the mapping.(this is to be done in order to have one file for each record of the source)
    You also need to configure file content conversion.(both at sender and reciever side) to convert the text file to XML on the sender side and then XML to text at the reciever side.
    refer to this link for FCC.
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    This is for sender file content conversion.
    http://help.sap.com/saphelp_nw04/helpdata/en/44/79973cc73af456e10000000a114084/frameset.htm
    This is for reciever FCC.
    http://help.sap.com/saphelp_nw04/helpdata/en/44/79973cc73af456e10000000a114084/frameset.htm
    reward points if useful.
    regards,
           Milan

  • Value Mapping Tables are not updated in RWB cache

    Hi Friends,
    I am doing value mapping replication from SAP.
    I am following
    /people/sreekanth.babu2/blog/2005/02/23/value-mapping-replication
    1)
    I didnt changed ABAP proxy of ValueMappingReplicationOut in SAP system.
    is anything to... its already in Active state
    2)I used ABAP report to call proxy in SAP system.
    while debugging ,I come to know that values are populating in the structure svmr_value_mapping_replication in proxy.
    3) activated Java inbound proxy (async).I got respose like
    Interface http://sap.com/xi/XI/System#ValueMappingReplication registered with value localejbs/sap.com/com.sap.xi.services/ValueMappingApplication:valueMappingReplication
    4) No message Mapping .because sender and receive using same message type ValueMappingReplication in http://sap.com/xi/XI/System of SAP BASIS 7.00.
    4) I didnt done Sender agreement because of sender is SAP here.
    6) In receiver communication channel i follwed help.sap.com
    i used PIAPPLUSER
    7)
    but I am not getting values in RWB Cache.
    8) i didnt find any message in sxmb_moni
    8) I did cashe refresh and CPA cache refresh too..
    correct me please..
    suggest the relevent
    regards
    Ram

    Hi Sarvesh,
    Thanks for your responses.
    Now RWB ValueMapping Table is updating.
    I tried my luck with Single row of Target and Source values.
    I am lucky.
    Now I tried my luck more than One row..But I am not getting values the way I required.
    Please have a look in below screenshot from RWB.
    [http://www.imagehosting.com/show.php/1735277_ValueMapping.jpg.html]
    I am getting the first Taget value for all Target avlues.
    In Details Tab,It is showing all the values of source and target values.
    In my observation,It should show only one source value details.[http://www.imagehosting.com/show.php/1735286_Valuemapping1.Jpg.html]
    Please guide me.
    Is ther any necessary to change Abap report logic.
    my abap logic look like this.
    data: lcl_value_mapping type ref to co_svmr_value_mapping_rep,
    ls_value_mappings type svmr_value_mapping_replication,
    ls_item type svmr_value_mapping_rep_item,
    lcl_system_fault type ref to cx_ai_system_fault.
    ls_item-operation = 'Insert'.
    ls_item-group_id = '315286378563858425463215845123544'.
    ls_item-context = 'http://Test'.
    ls_item-identifier-scheme = 'OTDVendor'.
    ls_item-identifier-agency = 'OTD'.
    ls_item-identifier-value = '111'.
    append ls_item to ls_value_mappings-value_mapping_replication-item.
    ls_item-operation = 'Insert'.
    ls_item-group_id = '315286378563858425463215845123544'.
    ls_item-context = 'http://Test'.
    ls_item-identifier-scheme = 'SAPVendor'.
    ls_item-identifier-agency = 'SAP'.
    ls_item-identifier-value = 'XXX'.
    append ls_item to ls_value_mappings-value_mapping_replication-item.
    create object lcl_value_mapping.
    try.
    call method lcl_value_mapping->execute_asynchronous
    exporting
    output = ls_value_mappings.
    commit work and wait.
    if sy-subrc = 0.
    WRITE : 'Value Mapping Executed and Values sent to XI system'.endif.
    catch cx_ai_system_fault into lcl_system_fault.
    write: 'Error: ', lcl_system_fault->errortext.
    endtry.
    clear ls_value_mappings-value_mapping_replication-item[].
    ls_item-operation = 'Insert'.
    ls_item-group_id = '315286378563858425463215845123544'.
    ls_item-context = 'http://Test'.
    ls_item-identifier-scheme = 'OTDVendor'.
    ls_item-identifier-agency = 'OTD'.
    ls_item-identifier-value = '222'.
    append ls_item to ls_value_mappings-value_mapping_replication-item.
    ls_item-operation = 'Insert'.
    ls_item-group_id = '315286378563858425463215845123544'.
    ls_item-context = 'http://Test'.
    ls_item-identifier-scheme = 'SAPVendor'.
    ls_item-identifier-agency = 'SAP'.
    ls_item-identifier-value = 'YYY'.
    append ls_item to ls_value_mappings-value_mapping_replication-item.
    try.
    call method lcl_value_mapping->execute_asynchronous
    exporting
    output = ls_value_mappings.
    commit work and wait.
    if sy-subrc = 0.
    WRITE : 'Value Mapping Executed and Values sent to XI system'.endif.
    catch cx_ai_system_fault into lcl_system_fault.
    write: 'Error: ', lcl_system_fault->errortext.
    endtry.
    Regards
    Ram

  • How to pass data from ouside in Value mapping replication

    Hi Gurus,
    I have seen the blogs and articles on replication of value mapping table. But not getting how to map the values of value mapping tables to the SAP given Interface of ValueMappingReplication.
    The Structure of the Interface of ValueMappingReplication Looks like,
    ValueMappingReplication
      .+ Item
      .. - operation
      .. - GroupID
      .. - Contect
      ....+ Identifiers
      ...... - Agency
      ...... - Scheme
    In this Structure all the fileds and attributes can be mapped. But how to map the the source values which are actual value pairs which I need to pass to value mapping table.

    Hi I'm having a flat file with values userid and corresponding email address. How to map these details to the ValueMapping Replication Interface which is having the structure as above.
    Please suggest me the solution.

  • Value Mapping Table - XI MDM Design Question

    Hi All,
    I have a scenario as :
    When XI receives data from a sender system,before sending data to receiver system (in this case MDM),XI is supposed to check some fields in MDM and depending on the result XI should decide whether to send the records or not.
    Now,in this case I have two options:
    1.After recieving data from sender system ,from XI mapping call a webservice(webservice is supposed to go to MDM and check the fields and give the result),then depending on the result XI will decide whether to send or not.
    2.After receving data from sender system,from XI mapping access a value look table in XI from a UDF and then check the result,then depending on the result XI will decide whether to send or not.
    I have pointed out some glitches for every option:
    1.First considering volume of XI source message( approx. 800 records per message),then MDM database records (approx 40000 or 50000).Hence once XI receives message XI will have to go to MDM for every record and every time it will search among 40000 MDM records using webservice.
    This will effect performance as for every record webservice will be called and again it might face connection problems.
    2.In this option XI will have to store all the 40000 records from MDM in the value lookup table.Again,how to synch up this value lookup table with MDM database?
    This table has to be a copy of MDM database which changes everyday.
    Is it ok to store around 40000 records in XI's value lookup table?
    Considering above points can you please help me to find out optimum solution?
    Thanks,
    Shweta.

    >>Is it ok to store around 40000 records in XI's value lookup table?
    its advised to use value mapping for static values,not for dynamic values,since you will have changes everyday you should not use Value mapping here.
    now coming to your first approach,why not copy this table from MDM to XI(i know XI is not the owner of data,but if its an internal MDM server,you should be able to do it),once the table is copied in XI itself,you can simply use ABAP mapping to create the receiver structure.
    the above approach looks good to me as long as the MDM guys don't have any problem with XI storing the data as well and you sync up the table between XI and MDM periodically
    Thanx
    Aamir

  • Value Mapping Replication - 7.31

    hi,
          working on a requirement of value mapping replication on 7.31 environment.
           I have used the standard - ValueMappingReplication service interface as the receiver as it is an async scenario.
           My sender structure is similar to the ValueMappingReplication. I am using a SOAP UI to hit the PI server. I have downloaded the WSDL from the ID and used it as a request.
    So it is basically a soap sender ( from SOAP UI ) to SOAP Receiver - async. - I am using Transport Protocol - HTTP and Message Protocol - X13.0
    I have registered the URL -http://<Server>:<Port>/ProxyServer/register?ns=http://sap.com/xi/XI/System&interface=ValueMappingReplication&bean=localejbs/sap.com/com.sap.xi.services/ValueMappingApplication&method=valueMappingReplication (for the asynchronous replication scenario)
    --- how do i hit the Java proxy servlet ? to update the data on PI runtime cache?
    - wht url should i use ? -/MessagingSystem/receive/JPR/XI/http://<Server>:<Port>/ - is this correct ?

    Hello,
    Use this URL in SOAP receiver channel
    http://<host>:<port>/MessagingSystem/receive/JPR/XI
    Thanks
    Amit Sriavstava

  • Value Mapping Replication for Mass Data

    Hi SDN,
    I have to design an interface in XI 3.0 (SP14 on AIX) for replicating mass data from file databse etc to the XI runtime cache.
    I went thru the follwing weblog which proved to be helpful:<b>/people/sreekanth.babu2/blog/2005/02/23/value-mapping-replication
    <b>ValueMappingReplicationOut</b> being my Asynchronous outbound interface and <b>ValueMappingReplication</b> being Asynchronous Inbound Interface of in the software component SAP BASIS, software component version SAP BASIS 6.40 in the namespace http//sap.com/xi/XI/System.
    Am aware that for this scenario the receiver is predefined (it must be on the Integration Server).
    My question here is how do i use the outbound interface to send data to XI. <b>I mean in my case i have a file and SQL server as the sender.</b>
    Can somebody detail the steps involved. Suppose i dont want to use ABAP proxy or JAVA proxy HTTP adapter sending the message,
    Do i have other options to send data to XI value mapping interface?
    Regards,
    Vineet

    When you want to send data from a file, just map the structure from the arriving XML to ValueMappingReplication. There is no need for using the interface ValueMappingReplicationOut or use an ABAP proxy.
    Regards
    Stefan

  • Information on  CRM Value Mapping

    hello.......
    I need to give presentation on CRM Value Mapping.
    I would be very thankfull, if any one tell me
    what is CRM Value mapping?
    Whats the use of it?
    If you have any material on CRM Value mapping...
    Best Regards
    RAJ

    Value Mapping function
    Executes a value mapping for the value I entered. In the function attributes, assign the both input value I and source value O to a representation in the value-mapping table. In this way, you can assign source and target structure fields to a representation. You complete the value-mapping table on the configuration maintenance screen in the Integration Builder. Since these entries are not available at design time, the mapping result is just an estimate when you test the message mapping.
    for more information click here
    http://help.sap.com/saphelp_crm60/helpdata/en/13/ba20dd7beb14438bc7b04b5b6ca300/content.htm
    Reward points if helpful
    cheers
    Manohar

  • UKMS versus Value Mapping versus Z tables ?

    Hello,
    has someone already made a choice whether to use UKMS or Value Mapping or Z Tables to do mapping or filtering of data ?
    If yes, what were the reasons to go for one or the other solution ?
    - both UKMS / Value Mapping provide key-pair mappings
    - UKMS can be called via RFC or out of XSLT. (Out of User-Defined function I am not sure)
    - Value Mapping can at least be called out of graphical mapping
    - the UKMS / Value Mapping approach looks very similar to me.
    - Z Tables might be more flexibel in defining the structure required
    - is there a caching advantage in one of these solutions ?
    many thx in advance
    Uwe

    Hi Uwe Knöfel ,
    has someone already made a choice whether to use UKMS or Value Mapping or Z Tables to do mapping or filtering of data ?
    Usually YES, XI Architect will decide what to follow..
    If yes, what were the reasons to go for one or the other solution ?
    Mostly it depends upon Complexity,Kind and Volume of data.Suppose there is less volume of data and simple processing is needed we may go for Value mapping than Ztables.
    + is there a caching advantage in one of these solutions ?+
    May not..
    Regards,
    Ramesh

Maybe you are looking for

  • A socket in several threads

    This is an academical question. I'm satudying Telecommunications and tomorrow I have an exam about Concurrent Programming. My questions is quite simple and you can ommit this introduction about what is the exercise if you prefer. We have seen some wa

  • Problems importing sound

    I'm trying to import .aiff (22.050  24bit) into the Director Cast, but Director (12) keeps crashing while importing them. I intially did a batch import, but am now importing them one at a time - a couple have imported, but I'm having to force quit Di

  • How do I flip a photo horizontally or vertically in iPhoto?

    How do I flip a photo horizontally or vertically in iPhoto. I can rotate but can't figure out how to flip them. Thanks

  • Live cache restore issue

    Hi All, We are facing the below error while restore the LC MAXDB database. Source version : 7.9.08.10 Target Version  : 7.9.07.09 dbmcli on SU4>db_state OK State OFFLINE dbmcli on SU4>db_start OK dbmcli on SU4>db_state OK State ADMIN dbmcli on SU4>db

  • Printing problems with InDesign CS3 with Mac OS 10.6.3

    I am not new to InDesign... I have CS3... but I am brand new to Mac Snow Leopard (OS 10.6.3).  Although I can open CS3 and use the application, I cannot print with it.  None of my other applications has printing issues... just CS3.  Any suggestions?