Conversion exits before value mapping in AIF

Hi All
I'm trying to use conversion exits before mapping in define value mapping, where I want to truncate leading zeroes in the source field before the value mapping is executed.
I'm using the conversion exit 'ALPHA' (internal->external) to achieve this, but the leading zeroes do not get truncated. Below is an example-
Conversion Exit: ALPHA
Data Element for conversion:
Direction: Internal->External
Source Value: 0000012345
Expected Value after conversion: 12345
Actual Value after conversion: 0000012345
A similar issue Error in reading a value from database table is noted here, however note 1892571 that is suggested does not seem to resolve the issue I'm facing.
Am I missing something here?
Regards
Chandra

Hi Glenn Bumanlag,
        I think the values that you have given for source values (Agency and scheme)
and Target values (Agency and scheme) may be mismatching so kindly chek that...even i got the same error in the past..........
If you the this problem kindly change it accordingly and also refresh the cache once you that with this.........
Kindly follow the below mentioned link and check if you have followed these steps.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00ee347e-aabb-2a10-b298-d15a1ebf43c5
Thanks
Sai     
PS: kindly reward points if helpful

Similar Messages

  • Import conversion data table from SAP R/3 into value mapping table in XI

    Hi:
        Somebody knows how to import a table with conversion data that are in SAP R/3 and to take it to a value mapping table in XI?
        The purpose is to use a mapping table that can change in the future. Must I use a ABAP programming that retrieve data and build the value mapping table?
        If so, how I specify in the ABAP programming the group id, the scheme, the agency and the corresponding value?
        Please, help me.
        Regards!!!

    Hi David,
    please refer to this section in the help: http://help.sap.com/saphelp_nw04/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/content.htm
    There is an interface for mass replication of mapping data. The steps you need to carry out to use this are:
    +Activities
    To implement a value-mapping replication scenario, proceed as follows:
           1.      Register the Java (inbound) proxies.
    To do so, call the following URLs in the following order in your Internet browser:
    ¡        http://:/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)
    ¡ http://:/ProxyServer/register?ns=http://sap.com/xi/XI/System&interface=ValueMappingReplicationSynchronous&bean=localejbs/sap.com/com.sap.xi.services/ValueMappingApplicationSynchronous&method=valueMappingReplicationSynchronous (for the synchronous replication scenario)
    You only need to perform this step once (for each installation).
           2.      Application programming
    The ABAP program must perform the following tasks:
    ¡        Read the value mapping data from the external table
    ¡        Call the outbound proxy used to transfer the data to a message, which is then sent to the Integration Server
           3.      Configuration of the replication scenario in the Integration Directory
    This involves creating all the configuration objects you need to execute the scenario successfully. One special aspect of the value-mapping replication scenario is that the receiver is predefined (it must be on the Integration Server). The sender, however, is not predefined in the replication scenario and can be defined to meet your individual requirements.
    For example, you can use the shipped ABAP proxies.
    In the case of the receiver communication channel, choose the adapter type XI. Ensure that you configure a channel for the Java proxy receiver in this case.
    Enter the path prefix /MessagingSystem/receive/JPR/XI for this purpose.
    +
    Regards
    Christine

  • Need of value mapping  and fixed values in (conversions)under graphical map

    hi.
    helo all.
    i just want to know what  is the need of value mapping  and fixed values in (conversions)under graphical mappping.
    can any body explain me with real time example .
    waiting for your response.
    bye.
    regards.
    seeta ram.

    Hi Seetha Ram,
       Value mapping:  Where we maintain a table of values which are mapped.
    based on the incoming value we can send the respective resultant value.
        for Eg: for language SAP maintains as EN  --> English  etc
    can u refer these
    http://help.sap.com/saphelp_nw04/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/frameset.htm
    Re: Value mapping table
    Thanks and Regards
    Harsha Vardhan.P
    **Reward points if found useful**

  • Mapping conversion of source value 4448601.75 to target value 448601

    Mapping conversion of source value 4448601.75 to target value 4448601 or source value 999999.99 to target value 999999
    Here standard functions like round, floor, ceil..etc, will not work because they will convert source value 4448601.75 to 4448602 and source value 999999.99 to 1000000.
    Also i may have blank or white spaces coming in front of the source value from R/3 side like _____999999.99 and i want the value at the target side as _____999999. Here _____ representing blank or white spaces.
    How i will do the mapping, can someone help me out.
    Thanks,
    Ashish
    Edited by: Ashish Soni on Sep 6, 2008 9:53 PM

    >>Here standard functions like round, floor, ceil..etc, will not work because they will convert source value 4448601.75 to 4448602 and source value 999999.99 to 1000000.
    No....! The floor function can be used. It returns the largest integer that is not greater than the passed value. However this will also trim the spaces.
    So u can write a UDF that accept the number and substring till the decimal point and returns it.
    Try this.. It works..
    public String converv(String a,Container container)
    return a.substring(0,a.indexOf('.'));
    Thanks
    SaNv...

  • Where we use Conversions? like Fixed Value and Value mapping? and use of th

    where we use Conversions? like Fixed Value and Value mapping?
    and what is the use of that....

    Hi
    Have a Look at this
    /people/community.user/blog/2007/01/08/valuemapping-using-the-graphical-mapping-tool
    Value mapping is used to map different representations of an object to each other.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9202d890-0201-0010-1588-adb5e89a6638
    You can do value mapping both in IR and ID
    IR: Message Mapping
    http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
    /people/sreekanth.babu2/blog/2005/01/05/design-time-value-mappings-in-xslt
    ID: Tools --> Value Mapping
    http://help.sap.com/saphelp_nw04/helpdata/en/13/ba20dd7beb14438bc7b04b5b6ca300/content.htm
    Value mapping replication: For uploading data from tables, excel sheet etc. into XI
    http://help.sap.com/saphelp_nw04/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/content.htm
    Value mapping
    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    /people/sravya.talanki2/blog/2005/12/21/use-this-crazy-piece-for-any-rfc-mapping-lookups
    /people/sap.user72/blog/2005/12/06/optimizing-lookups-in-xi
    /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
    Thanks

  • Where we use Conversions like Fixed Value and Value mapping?

    where we use Conversions? like Fixed Value and Value mapping?

    Mostly say when u have a scenario like converting a value in the source to a another in
    target. Say in source it might me KM but in target u might need Kilometers and u hav multiple entries like this.
    Ref:
    http://help.sap.com/saphelp_nw04/helpdata/en/13/ba20dd7beb14438bc7b04b5b6ca300/frameset.htm
    https://www.sdn.sap.com/irj/sdn/xi-elearning

  • Calling AIF for Value Mapping from standard ES

    Hello All,
    Is there any option of using SAP AIF for standard ES (for adding value mapping). We have requirement where value mapping needs to be done for standard ES. I was thinking of making explicit call to AIF using following method :
    * Call method to AIF
         /aif/cl_enabler_proxy=>process_message(
         exporting  is_input = input
          iv_exception_classname = ' ' ).
    However this method doesn't have any exporting parameter to get the changed data back.
    Is there any workaround ?
    Thanks & Regards,
    Dijesh Tanna

    Hello Gita,
    Both these notes talks about monitoring the existing interfaces / ES using SAP AIF. However, doesn't talk about enhancing existing ES.
    Secondly , I had look at function module /AIF/FILE_PROCESS_DATA. However, question is from where we should call this. I was aiming the EXECUTE_ASYNCHRONOUS method of ES and calling this FM from implicit enhancement spot. However, the structure INPUT inside EXECUTE_ASYNCHRONOUS is not changeable. So even if AIF performs value mapping , I can't pass that modified data to standard implementation of SAP ES.
    Have a look at below code :
    You can see that I passed INPUT to my custom function module which calls AIF internally and performs value mapping , checks etc.. and return the modified data in OUTPUT but SAP's standard code is still using INPUT in subsequent code. I can't assign OUTPUT to INPUT as it is import parameter not changeable.
    Thanks & Regards,
    Dijesh Tanna

  • AIF Value mapping for outbound scenario

    Hello All,
    Is there any possibility of using same value mapping which is defined for Inbound scenario can be reused for outbound scenario as well ?
    Since, AIF value mapping can be defined based on Sending system but there is no option of creating value mapping pair between sending system and receiving system (similar to SAP PI value mapping) , is it only defined to use for Inbound scenarios ?
    Thanks & Regards,
    Dijesh Tanna

    Michael
    -->>>>you cannot have the same target value for two source values ?
    What does this mean? Can't we have If name =  A1, then value in the target should be  Sales consultant
    and if name =  A2 then value in the target should be  sales consultant?
    My question was :
    If name = A1, then value in the target should be  sales consultant
    If surname = A1, then value in the target should be purchase consultant
    In the same graphical message mapping, can this be achieved using value mapping?
    Thanks

  • Conversion exit error while activating the transfer rules

    Hello gurus,
    We are doing a function module extraction with 3.X data sources.
    On activating the transfer rules , i am getting a conversion exit error for "0fiscyear", but in the infoobject we don't have the conversion exit for it.
    Points will be awarded for any kind of response.
    Thanks and Regards,
    Anu.

    Hi,
    1. Please check in the transformation, its necessary to provide the fiscal variant mapping as well when ur mapping fiscal year object. as on the basis of that value fiscal period will be derived.
    2 I guess ur doing direct mapping (Time conversion) and there is no routine written for that.  if any u can check that as well for any error.
    Thanks
    dipika
    Edited by: Dipika Tyagi on Jun 25, 2008 7:39 AM

  • Upload value mapping - migration from Requisite

    Hi all,
    We have some rules set up in Requisite that maps for example a category code provided by the supplier ot a material group code. Currenlty, I have been manually maintaining the value mapping in Import Manager. I am wondering whether there is a way to load the mappings (mainly the VALUE mapping) which we already have available in Requsition (exported may in excel or csv format)?
    Appreciate any help on that.
    Cheers!
    SF

    Hi SF
    I dont think this is possible. for the first time you need to do the value mapping manually and save the map for the next uses.
    A workyround can be to use conversion tables in XI/PI and convert the values before posting to MDM. this becomes more scalable as for any delta value conversions we need to add the netries in the conversion table instead of updating the import map.
    best regards
    Ravi Kumar

  • Conversion of Characteristic Values to SIDs. Load Very slow

    Hi Experts,
                     We have a slow load issue when loading from a Write-Optimized DSO into an InfoCube. 8 millon recs in 10 hours.
    We check the start, end, and rules routines and every is ok but for all the package the load was very slow in the Conversion of Characteristic Values to SIDs.
    Can any help me with this?
    Thanks a lot,
    Alejandro

    Hi,
    It is because the SIDs Generation upon Activation flag is unchecked at DSO level .
    One recommendation will be to switch on the property of the DSO SIDs Generation upon Activation flag .
    Are there any secondary indexes also in DSO ?
    You can try deleting them also during loading the data from DSO to cube .
    Also load your master data first and activate it before loading it to cube.
    Thanks,

  • 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

  • How to find out the conversion exit format for VBRP-VRKME

    Hi Gurus,
               I am writing a report to fetch delivery details based on storage location'123'. My requirement is tat i shud convert the Billed Quantity unit TO Base unit of measure. In my VBRP table the field value/contents of VBRP-VRKME have values PAK for PAC( packets) and KAR for CAR(carton). When i click on User-specific Settings - - Check the filed CHEECK CONVERSION EXITS , i am able to get see the PAC and CAR respectively.
          But unfortunately when i selecting te fields form vbrp in my internal table i am getting the values 'PAK' for PAC and 'KAR' for CAR'. AS i am writing a report can any one suggest me how to convert this , as i wud b making use of FM MD_CONVERT_MATERIAL_UNIT  to convert to base unit of measure, n this FM is not accepting the values like PAK and CAK.
          Your Sugesstions are of utmost importance for me.
    Thanking you,
    ZIa

    Hi,
    Conversion routines are maintained at Domain Level(Definition Tab), Meins is the domain for VRKME data element.
    You have to use the following routines,
    CONVERSION_EXIT_CUNIT_INPUT
    CONVERSION_EXIT_CUNIT_OUTPUT
    Regards
    Srini

  • N: 1 relationships in Value Mapping 3.0

    Hi,
    in our Value Mapping we need to process n:1 relationships between values. E.g. 2 different codes for reason-for-rejection in the sending system need to be mapped to 1 value in the receiving system.
    As we see now, and this is also mentioned somewhere in this forum, this doesn't work. Is this correct?
    As suggested in this forum one option would be to add the sending value in the receiving value and use mapping to trim the value. So e.g.
    Agency: SystemX                    Agency: SystemY
    Scheme: Augru                      Scheme: Augru
    Value                              Value
    A1                                 B
    A2                                 B
    would become
    A1                                 A1_B
    A2                                 A2_B
    Of course, this would work, but just one-way (from SystemX to SystemY). From SystemY to SystemX this would not work, since only value B is available at that time. If you apply the same logic, so implement another value, this would eventually mean:
    Agency: SystemX                    Agency: SystemY
    Scheme: Augru                      Scheme: Augru
    Value                              Value
    A1                                 A1_B
    A2                                 A2_B
    C_A1                               C_B
    D_A2                               D_B
    So you end up with a lot of values to maintain.
    Another option would be to use different Value Mapping scheme's, but this would influence the reusability of the mapping.
    Any suggestions?
    Thanks a lot!

    When you have an n:1 mapping and want to use this in both directions, you need a logic, how the values are determined, if you have several entries to choose.
    In your example:
    A1 -> B
    A2 -> B
    If you come from the other side, what value should B have?
    For the default value you could use a unique prefix (eg: 1_) and add that prefix to the value before calling the value mapping.
    Let us assume, you have maintained the table like this:
    A1 -> 1_B
    A2 -> 2_B
    A3 -> 1_C
    A4 -> 1_D
    A5 -> 2_D
    A6 -> 3_D
    so you have B ->A1, C -> A3, D -> A4
    Regards
    Stefan

  • Value Mapping Problem - Values not appearing in destination system

    hello everyone,
    Here's my scenario: XML > XI > IDOC
    I have a problem with the ValueMapping and FixedValue function in XI. When I test the message in the Integration Repository, I don't get any problems (the value is converted appropriately), but when I view the IDOC in SAP, the value that is supposed to be in the field is missing.
    When I check the payload in SXMB_MONI in XI, no conversion occurs. I have refreshed the caches, and everything seems to be fine. I don't know why the value mapping functions seem to have stopped working altogether. Will anyone be able to help me out with my problem?
    Thanks in advance!
    Glenn

    Hi Glenn Bumanlag,
            I think the values that you have given for source values (Agency and scheme)
    and Target values (Agency and scheme) may be mismatching so kindly chek that...even i got the same error in the past..........
    If you the this problem kindly change it accordingly and also refresh the cache once you that with this.........
    Kindly follow the below mentioned link and check if you have followed these steps.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00ee347e-aabb-2a10-b298-d15a1ebf43c5
    Thanks
    Sai     
    PS: kindly reward points if helpful

Maybe you are looking for

  • Application Builder Error "Browse to LabVIEW.exe"

    LabVIEW gurus... I am currently building a standalone app from my project.  When I run the application (which builds successfully), LabVIEW prompts me to browse to the LabVIEW.exe file.  However, I want this app to run on a computer that will not hav

  • Alpha Channel Problem

    Hi- I have an animated sequence with a transparent backround. Within this animation a window opens revealing a blue screen in which I place a picture. Behind the entire sequence I want to place a backround image, but no matter what, the background im

  • New iMacs - 27" i3 vs 27"i5

    I'm getting a new iMac and want to know how much of a difference in processing speed there will be between the i3 which has 2 cores on one processor and the 15 which has 4 cores. I'm planning on getting 16gb of ram for whichever one I get I'm a desig

  • Third part Sales Question

    Hi, This is nothing related to configuration. Just want to understand that in a third party sales order, when the 3rd party vendor delivers goods to the customer, then after that how does the delivering plant location knows that the 3rd party vendor

  • How do I find the Oil Paint Filter?

    I work with Adobe Photoshop CC on a Windows 7 32 bit PC. I'm a newbie. I am looking for the so called Oil Paint filter. Every manual says: Choose Filter > Oilpaint. No way.  It's not there! I searched all sub-sections, useless! Is it lost? Has the Oi