JPR - Access Value Mapping

Hi,
How can I access a value mapping defined in ID from a Java Server Proxy?
I've tried to that with the following code:
import com.sap.aii.mapping.value.api.*;
public class MIGetDocsIn_PortTypeImpl extends com.sap.aii.proxy.xiruntime.core.AbstractProxy implements MIGetDocsIn_PortType {
public DTGetDocsResponse_Type mIGetDocsIn(DTGetDocsRequest_Type mTGetDocsRequest)
throws com.sap.aii.proxy.xiruntime.core.SystemFaultException, com.sap.aii.proxy.xiruntime.core.ApplicationFaultException{
String senderAgency = "Source";
String senderScheme = "Source1";
String receiverAgency = "Target";
String receiverScheme = "Target1";
IFIdentifier src = XIVMFactory.newIdentifier(senderAgency, senderScheme);
IFIdentifier dst = XIVMFactory.newIdentifier(receiverAgency , receiverScheme);
try {
String res = XIVMService.executeMapping(src, dst, "var1");
} catch (ValueMappingException e) {}
Do I need to add package com.sap.aii.mapping.value.api in application-j2ee-engine.xml?? What is the reference target for that package?
Thanks,
Pedro Leal

Hi,
It seems is not possible to access value mapping in java proxy.
Alternatively can someone give me some advices about the best to way to read configuration parameters in a java proxy server scenario?
Properties file is a solution. Is there any other way to achieve similar functionality?
Thanks,
Pedro Leal

Similar Messages

  • How can i access value mapping table using xslt mapping

    Hi All,
    I have maintained value mapping table in integration directory.I want to access the data from the value mapping table in XSLT mapping using java function.PLease suggest me to do this.
    Thanks
    Pullarao.

    Value mapping that thread should solve your query !!!

  • How to access value mapping table in xi ?

    Hi All,
    i want to load all value mapping table data from XI to a excel sheet. how can i do it ?could anyone provide java code needed for it ?

    Hello
    Maybe you could extract it via the Integration Directory Webservice Programming Interface...
    Check this link:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/46/6dca42e5c269dfe10000000a11466f/frameset.htm
    There is a section for Valuemappings there. Apparently it would be a matter of calling the corresponding webservice with the GUID of the valuemapping and it returns the data.
    Good luck and please tell us if it works!
    -Sam.

  • Value Mapping - Mass replication

    Hi all,
    I have set a lot of Value Mapping groups using the JPR mass replication
    One of my context : http://sap.com/xi/XI/LanguageCodes
    I can see the cache content using RWB but is it normal I can't see it using Integration Directory ?
    Thanks a lot

    Hi Jean,
        From ID we can't see the other contexts except http://sap.com/xi/XI.U r saying valuemapping is not returning any values. The conversion for Source value is maintained in the list of values it would return the value other wise it would return as empty.For all the values you are unable to get the return values or for some of the values and remember if you test mapping then you didn't view the values.At runtime only you can able to view the values.
    /people/sukumar.natarajan/blog/2006/10/23/accessing-value-mapping-defined-in-directory-using-java-functions, Check this weblog and follow the UDF code, so that u will able to view what are the values does not maintain in the list of values.
    And once check the same from CacheMonitoring in RWB for that particular value for which value u r not getting the return value.
    Cheers
    Veera
    >>> Reward Points, If it is needful

  • Lookup value mapping table through message mapping.

    Hello All,
    I am working on a graphical mapping (message mapping). When trying to map the source message to the target message, I need to find out it a particular <b>key</b> exists in the <b>value mapping table</b>. Depending on the result, I need to map different source fields to the target field.
    Is there any inbuilt function which will allow me to do a lookup on a value mapping table, or is it possible to lookup a value mapping table from a UDF?
    Please help!
    Warm Regards,
    Keerti

    Hi,
    Please see the below links for Value mapping ..
    Value mapping /people/sukumar.natarajan/blog/2006/10/23/accessing-value-mapping-defined-in-directory-using-java-functions
    Value mapping in XSLT /people/sreekanth.babu2/blog/2005/01/05/design-time-value-mappings-in-xslt
    Value Mapping replication - /people/sreekanth.babu2/blog/2005/02/23/value-mapping-replication
    Also see
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=value%20mapping%20in%20xi&cat=sdn_weblog
    /people/community.user/blog/2007/01/08/valuemapping-using-the-graphical-mapping-tool
    /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=value%20mapping%20in%20xi&cat=sdn_weblog
    Regards
    Pradeep N

  • Dynamic value mapping

    hi,
    can u plz explain about Dynamic value mapping and where it actually use this
    thanks
    guna

    Hi ,
    Dynamic value mapping.is nothing but
    It is FixValues and ValueMapping under Conversion Functions.
    Eg:
    You need such a requirement. Where the values in the source are mapped to someother value in the target as below.
    1--> Mr
    2--> MS
    3--> MRS
    FixValues is used when you know the entire set of Key value pair in the Design Time. You give the Key and the value in the FixValues and the mapping checks and maps the values to the target.
    In the case of Value mapping, you maintain this Key - Value pair in the Integration Directory and thereby make changes easily and also use them in the Mapping in IR
    Refer These blogs
    ValueMapping using the Graphical Mapping Tool -value mapping using grapic mapping tool
    Value Mapping replication - value mapping replication
    Accessing Value Mapping defined in Directory using Java functions - accesing value mapping
    Dynamic Date Conversion in Message Mapping - dynamic date conversion
    Dynamic Configuration of Some Communication Channel Parameters using Message Mapping - dynamic confighuration
    Dynamic file name(XSLT Mapping with Java Enhancement) using XI 3.0 SP12 Part -II - dynamic file name
    and also
    Refer this link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/d7/e551cf896c3a49bb87bb4ce38c99c8/frameset.htm - external context mapping
    Regards,
    Suryanarayana

  • About value mapping

    What is value mapping ? when it is used ?

    HI,
    A perticular object/field could have different interprtations from applications to applications and Business to Business. For e.g Suppose a particular document XYZ has an identity code 001 in one application or may be in one orgnization. But the same document could have different ID in different applications.
    With the help of Value Mapping you could map these IDs with each other, thus while transaction of the data XI will act as an smart mapper to pass the Application specific values.
    http://help.sap.com/saphelp_nw04/helpdata/en/13/ba20dd7beb14438bc7b04b5b6ca300/frameset.htm
    There are many docs available about Value mapping in SDN forum.
    How to Perform Value Mapping – A Walkthrough
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00ee347e-aabb-2a10-b298-d15a1ebf43c5
    http://help.sap.com/saphelp_nw04/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/frameset.htm
    SDN Discussions
    /people/sukumar.natarajan/blog/2006/10/23/accessing-value-mapping-defined-in-directory-using-java-functions
    SAP - XI Value Mapping : Mapping two values to a single value
    Value Mapping Issue in SAP XI
    thanks
    Swarup

  • Value Mapping  Transport Problem

    Hi All,
    I hv some value Mapping Values  in my XI Devvelopment system while i am transporting these values to the XI Quality System  all Development values are able to transport but,some values are duplicating.aferter that
    In  XI Production System newly added values are not transported eventhough imported Sucessfully.
    I was tryed two transport systems i.e CMS & File System.
    Plz, help me to solve this is....
    Thanks
    Mahesh

    Hi Mahesh,
    while value mapping make sure that u refresh the run time cache
    in value it uses another table that which helps in value mapping
    make sure that even that table is imported if any doubt pls chk this link
    value mapping uses values from the cache so you can you value
    mapping replication for your purpose - but you will not
    see those values from ID
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00ee347e-aabb-2a10-b298-d15a1ebf43c5
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/content.htm
    /people/sukumar.natarajan/blog/2006/10/23/accessing-value-mapping-defined-in-directory-using-java-functions
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=value%20mapping%20in%20xi&cat=sdn_weblog
    if found  worth pls do reward points
    Thanx
    Sampath
    Edited by: venkata sampath on May 29, 2008 11:15 AM

  • Fix Value Mapping Problem

    Hi All
    I am doing a fix value mapping for a perticular field.I am getting a value say Y001 from the client system which i convert it to Z001 in my system. I tested the XML in the message mapping test tab.It is giving proper result.But at the output file i am getting the same value of Y001 instead of Z001.Can anyone please provide any inputs on this.
    Thanks
    Amit

    HI,
    Please chek the imput values..
    Sure if you fix the value in Fix Value mapping then you will get the resukt value otherwise empty.
    Please see the below links
    value mapping - /people/sreekanth.babu2/blog/2005/02/23/value-mapping-replication
    Value mapping /people/sukumar.natarajan/blog/2006/10/23/accessing-value-mapping-defined-in-directory-using-java-functions
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=value%20mapping%20in%20xi&cat=sdn_weblog
    /people/community.user/blog/2007/01/08/valuemapping-using-the-graphical-mapping-tool
    /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=value%20mapping%20in%20xi&cat=sdn_weblog
    Regards
    Chilla..

  • Runtime value mapping

    hey ,
    The requirement is like  a record is being accessed from the database through a JDBC adapter into XI.In the record there are different fields concatenated as a string and these fields are to be mapped to the target side i.e Idoc which can be done by extracting the fields according to the length using substring function.Now, some src fields say   "code" "sign" "cause "
    are having some combination of values and these combinations are deciding the value of other fields Mv_TYP  MV_REAS COSTCENTER  GM_CODE MVT_ IND
    in the Idoc .i.e runtime value of these three fields is deciding the value of other fields in the Idoc.
    e.g
    Source                   
    Description  Sign  Cause Code
    1PO/STO            +   1     none
    2rvrs PO/STO   -   1     none
    3returngoods   +   1     none
    4RevrsRtrnGoods     -  1     none
    5RvrsScrap     +  1     none
    6Qty2Qlty     -  6     none
    Corresponding target
    Mv_TYP  MV_REAS COSTCENTER  GM_CODE MVT_ IND
    101     none               01     B
    102     none               01     B
    202     1072     511100          03
    201     1072     511100          03
    552                    03
    322     none               06
    How to do the value mapping so as to have the runtime value of src in the target fields in the Idoc

    Hi Indu !
    If your mapping values are fixed, and a few, you can put them manually in the Integration Repository, using the standard FixValues function within graphical mapping.
    Otherwise, you can use the ValueMapping standard function of graphical mapping to access Value Mapping Groups (loaded by hand or dynamically) in Integration Directory.
    If this kind of value mapping doesn't fit your requirements, you can call an RFC or JDBC query via an UDF to query an external data source to map src values to target values.
    Regards,
    Matias.
    ps: please award points if helpful.

  • Value mapping in Real time

    hi.. all
       could any one explain me with scenario how value mapping works...
    venkat

    Venkatesh,
    Please see this weblogs for step by step procedure:
    /people/sreekanth.babu2/blog/2005/02/23/value-mapping-replication
    /people/sukumar.natarajan/blog/2006/10/23/accessing-value-mapping-defined-in-directory-using-java-functions
    /people/community.user/blog/2007/01/08/valuemapping-using-the-graphical-mapping-tool
    and a video presentation is here:
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=value%20mapping&cat=sdn_all#
    ---Satish

  • Fields in Value mapping function

    Hello,
    I am trying to use value mapping function in XI.
    I don't know how to input values from data type fields directly to agency or schema.
    Company "ABC" -> Agency "ABC"
    Code "XXX" -> Schema "XXX"
    There are too many different types of values to link.
    It is for not inputting those manually in value mapping function.
    Thanks in advance.

    Hi,
    See the below links
    value mapping - /people/sreekanth.babu2/blog/2005/02/23/value-mapping-replication
    value mapping help - http://help.sap.com/saphelp_nw04/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/frameset.htm
    Value mapping /people/sukumar.natarajan/blog/2006/10/23/accessing-value-mapping-defined-in-directory-using-java-functions
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=value%20mapping%20in%20xi&cat=sdn_weblog
    /people/community.user/blog/2007/01/08/valuemapping-using-the-graphical-mapping-tool
    /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=value%20mapping%20in%20xi&cat=sdn_weblog
    Regards
    Chilla

  • What are "value mapping tables"..

    hi friends,
    I am not getting the clear idea of value mapping tables and how it refers in cache monitoring....pls help me out...
    with regards,
    Santosh.

    Hi,
    Value Mapping
    A perticular object/field could have different interprtations from applications to applications and Business to Business. For e.g Suppose a particular document XYZ has an identity code 001 in one application or may be in one orgnization. But the same document could have different ID in different applications.
    With the help of Value Mapping you could map these IDs with each other, thus while transaction of the data XI will act as an smart mapper to pass the Application specific values.
    http://help.sap.com/saphelp_nw04/helpdata/en/13/ba20dd7beb14438bc7b04b5b6ca300/frameset.htm
    There are many docs available about Value mapping in SDN forum.
    How to Perform Value Mapping – A Walkthrough
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00ee347e-aabb-2a10-b298-d15a1ebf43c5
    http://help.sap.com/saphelp_nw04/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/frameset.htm
    SDN Discussions
    /people/sukumar.natarajan/blog/2006/10/23/accessing-value-mapping-defined-in-directory-using-java-functions
    SAP - XI Value Mapping : Mapping two values to a single value
    Value Mapping Issue in SAP XI
    Value mapping
    VALUE MAPPING TABLE
    Regards,
    Phani

  • Accessing values during runtime in value mapping

    Hi all,
    We have a specific requirement , where in we have a set of fields coming from the source system. All the fields have values expect few. The few which don't have values are reserved for future use, and for each source field there is a corresponding target value and we need map them.
    We have used value mapping here, but it doesn't work for fields which don't have values.
    We have thought of  accessing the fields which do not have values, dynamically or at runtime by connecting the database of the source system.
    Is it possible to do this, if yes, please provide with your inputs and alternatives.
    thanks,
    younus

    Go through this:
    http://help.sap.com/saphelp_nw70/helpdata/en/13/ba20dd7beb14438bc7b04b5b6ca300/frameset.htm
    <b>To implement Value Mapping, following activities have to be performed:</b>
    <b>1.</b> Register Java Proxies. This is one time activity for each installation. Following URL has to be called for registering asynchronous replication scenario:
    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
    <b>2.</b> Application Programming: ABAP program has to be written to perform following tasks:
    <b>a.</b> Read Value Mapping data from table.
    <b>b.</b> Call Outbound Proxy to push the data into a message to Integration Server.
    <b>3.</b> Configuration of Replication scenario in Integration Directory.
    Regards,
    Sarvesh

  • Accessing Party identifiers using value mapping

    Hello
    Does anyone know if it is possible to access identifiers defined under a party using a value mapping (in my case from an xslt mapping calling a java function, but it doesn't really matter I guess).
    For party ADVDENV_US I have the following identifiers:
    http://sap.com/xi/XI    XIParty    ADVDENV_US
    INTERNAL                 GLN       1806367142
    At runtime I have value 1806367142 and I would like to retreive the value ADVDENV_US in order to perform dynamic receiver determination... would that work?
    Thanks
    Greg
    Edited by: Grégory VIAL on May 19, 2008 8:06 AM

    Grégory,
    If you wish to use identifier during the java mapping then check in below mention value mapping java docs.
    https://help.sap.com/javadocs/NW04S/current/pi/index.html
    Gaurav Jain

Maybe you are looking for

  • Java Error when opening WEBI from BI Launchpad?

    Hi I am working with colleagues on building a WEBI dashboard on the BI Launchpad. However, my colleagues are unable to access WEBI fully (view/edit reports) because the following error displays on their Internet Explorer web browser: "Cannot launch J

  • I am told my serial number is invalid when trying to install Adobe Photoshop 10

    I am trying to install Adobe Photoshop 10 but it is telling me my serial number is invalid

  • Photo Sharing not showing all photos via Apple TV 3rd Gen

    Hi Have Apple TV, 3rd gen, latest update of the software. Running 10.8.5 on a mid 2009 MacBookPro. When I select a few smart albums from iPhoto 09 (v. 8.1.2) and then select those albums to share/stream to my Apple TV via iTunes (11.1.3) only a few o

  • Problem printing ALV standard report

    Hi Experts I have a problem, when running my report in the transaction mb5b (alv standard) output makes it a product sheet that generates great waste of sheets. I can make it print all at once? Thanks in Advance. Gina

  • Inventory scenario need material document

    Hi,guys, Our customer need to add material document as a free characteristic when they use in the Inventory overview report. The report initially shows the inventory quantity and amount with every material for every month. I want to use the stardard