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

Similar Messages

  • Mapping multiple source value to one target value in value mapping

    Hello experts,
    In my scenario, i need to map more than one source value to one target value in value mapping. Like:
    1        TenderPickup
    2        TenderLoan
    7        TenderPickup
    101     TenderPickup
    102     TenderLoan
    107     TenderPickup
    But when I enter the same target value for the second time and try to save it, it gives me an error saying value mapping already exists.
    But this should logically be allowed. How can this be done. Please provide a solution.
    Thanks,
    Yash

    Hi Prabhu,
    When i right click on the target field, it gives me only 3 options:
    1) Insert Row
    2) Delete Value Mapping
    3) Value Mapping in all agencies
    I dont see nay option for duplicating rows.
    What I hae done is in ID i clicked on TOOLS and then VALUE MAPPING. I checked the option "Value Mapping Agencies" and gave my source and target agencies detials. Then i clicked on DISPLY and in the next page I have 3 columns - Value for <source agency>, Value for <target agency> and Group name.
    When I give duplicate values in the column Vlaue for <target agency>, it doesnt allow me to and if i right click in this column, i get the above mentioend options.
    Please point out where i m going wrong.
    Thanks,
    Yash

  • Message Mapping : conversion of source value 2,520,926.08 to 2,520,926

    Hi,
    The value coming from Idoc at source side is 6,999,432.08.
    I want the value to be passed at target side as 6,999,432
    I do not want .08
    How i will do the message mapping. Can someone help me out.
    Thanks,

    Ashish,
    I have tested this and all works as you expect.  I have also provided two examples due to confusion as to whether you want the decimal places.  You stated in an earlier post 'I do not want .08, i want .00' but in your last post that 'Source Value be 22345.45 or 22345.78 or 22345.99.........target value should be 22345'
    Two decimal places .00
    LHS field_in --> floor (arithmetic function) to give you the integer value required (rounded down) --> format number (second arithmetic function and indicate a format of 0.00 to represent two decimal places) --> RHS field_out
    Source       Target
    22345.45    22345.00 
    22345.78    22345.00
    22345.99    22345.00
    No decimal places (integer)
    LHS field_in --> floor (arithmetic function) to give you the integer value required (rounded down) --> RHS field_out
    Source       Target
    22345.45    22345 
    22345.78    22345
    22345.99    22345
    I hope this clears up your issue
    Regards,
    Mike

  • Map two different source elements to one target element

    Hello,
    This is my scenario.
    RootSource1 (0..1)
             source1 (0..unbounded)---> one entry of this will create one TargetSource
                 nameA --> mapped to TargetSource/Target1
    RootSource2 (0..1)
             source2 (0..unbounded)---> one entry of this will create one TargetSource
                 nameB --> mapped to TargetSource/Target1  
    TargetSource (0..unbounded)
             Target1 (0..1)
    From graphical tool, I can map
    TargetSource = removeContexts(source1)
    I also have to do:
    TargetSource = removeContexts(source2)
    But it seems the tool does not let me do the second mapping. Does anybody know how?
    Any help appreciated.
    Best regards,
    -mhd

    Try it like this:
    in target message, right-clink on TargetSource field and select "duplicate entry".
    Map the 1st source field to the 1st TargetSource entry and the 2nd Source field to the 2nd TargetSource entry.
    Regards,
    Henrique.
    PS: I don't think you need removeContext in this case, since the root is 0...1.

  • How to put identical target value in value mapping table

    Hi all ,
             I am implementing a value mapping function .Problem is occuring for repetated target value.for ex: if key is GL001 GL002 GL003  and destination value is 4 5 4 then its creating problem for identical values i.e for  both GL001 & GLOO3 its not accepting 4 .Same manner for many diffrent glncode i have  identical values.not understanding how to deal with these identical values please guide me as its very urgent.
    Regards,
    Saurabh

    Hi saurabh,
    you can try this out....
    First you create a value mapping table in ID like:
    AWSYS   GLNCODE
    GLOO1     10
    GLOO2     20
    (without GLOO3).
    now in your message mapping do the following mapping:
                              Contant[GLOO1]
                                   |
                                   |(then)
    AWSYS-------------> equals---->if----------------->Value Mapping---->GLNCODE
                        |          |(else)
                        |          |
    Constant[GLOO3]-----|        AWSYS
    **Reward points if helpful...
    --Sankar Choudhury

  • Target value on value contract avail. for pricing

    Hello, I have a question and perhaps somebody had a similar situation or has an idea that could help me. On a value contract I would like to get the value of the target value (ZWERT) into the pricing procedure. The goal is to be able to accrue this amount. I can ask users to enter the amount twice but wanted to see if there would be a solution without userexits.
    Thank you and regards,
    Christian Richter

    Hi,
    Just check with the routines we maintain in the pricing procedure... Seek help from a tech guy for this...... I think we can do that through routines by putting the logic in the price routines....
    This can be requirement routine which should be created and maintained......
    Regards
    Bageerath

  • Multiple source values to single target in value mapping

    Hi Experts,
    I have to acheive below thing using value mapping.
    Source                        Target
    ABC                            111
    CBA                            111
    XYZ                             222
    ZYX                             222
    When I am trying to do this in ID, It is not allowing me.
    Is there a way to do this?
    Regards,
    Prasad

    Source            Target
      ABC               111
      CBA               111
      XYZ               222
      ZYX               222
    For the above source and target you have to create 2 value mapping groups.
    In more detail I want to say is,
    1. Just create your value mapping by using Source & target Agency & Schema.
    2. Create your first value mapping group which will return the traget value as '111'.
    3. Create your second value mapping group within the same  Agency & Schema which will return you '222'.
    While creating it If get any warning just ignore it..
    Note: You can add multiple value mapping groups if you have different outputs for different sources.
    Regards,
    Sarvesh

  • Entering Source and Target Values in Value Mapping

    Hi,
    Is there any auomative way of entering source and target values in Value Mapping or FixValues instead of manually entering the values.
    I have around 400 values to be entered on both sides.....just thinking of an easy way to do it....
    Thanks for suggestions.
    Regards,
    Bharani

    Hi,
    Use value mapping replication
    chk this link as to what SAP docs say on value mapping replication
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/content.htm
    Value Mapping replication - Value Mapping replication
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=value%20mapping%20in%20xi&cat=sdn_weblog
    ValueMapping using the Graphical Mapping Tool
    The specified item was not found.
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=value%20mapping%20in%20xi&cat=sdn_weblog
    Regards,
    Swathi

  • Value mapping : target value need to be blank

    Hi,
    I have a requirement like below (just example).
    Source                        Target
    A                                 Z
    B                                 Y
    C                                 X
    N                                 BLANK or ""
    When I did this using value mapping it works fine for all values except for source value 'N'.
    When the source is N then the target should have value space or blank. Is this not supported by value mapping?
    For value N, do i have to explicitly check 'if value N then make it blank'?

    > For source value N I am getting target as N though in value mapping I have mentioned the target as blank.
    This is standard behavior of value mapping when any value is not present in value mapping table then it return the input value as it is. So this means when you declare N with a bank value as result then value mapping won't consider it as an valid entry in the value mapping table. So now you have to take care of N explicitly.

  • Issue in OWB mapping - when changing source and target database

    Hi,
    I need help for resolution of the issue I am facing when moving mapping from development environment to QA.
    Here is situation,
    We develop ETL using one source, one staging and one target database.
    In development we use one control_center for Source to staging and another control center staging to target.
    All works fine in development.
    Now I have created new runtime repository and imported all OWB projects (with full dependencies, exact replica of development). Now I need to change source and staging and target as different database.
    I have created new database location connections and defined/attached DB connectors with stage and target location.
    Now issues are
    1.     Two Staging mapping are not able to bound with source table (giving different error
    a.     One mapping show error for source synonym translation no longer valid when deploying this mapping , but validation comes without any issue)
    b.     Other mapping show error for source table/object not bound to repository
    2.     All the target mapping show validation successful, but when deploying says “table or view does not exist”. But tables are exists on source stage and target. (also permission are set correctly for target user to read from staging tables).
    Not sure how to proceed from here.
    I have recreated new repository and re-imported all project/mappings and defined all connection but still same issue.
    Thanks in advance,
    Vipin

    1. Two Staging mapping are not able to bound with source table (giving different error
    a. One mapping show error for source synonym translation no longer valid when deploying this mapping , but validation comes without any issue)
    b. Other mapping show error for source table/object not bound to repository
    The above error were resolved when re-synchronized the table (for few I have to reimport the table) and mapping.
    2. All the target mapping show validation successful, but when deploying says “table or view does not exist”. But tables are exists on source stage and target. (also permission are set correctly for target user to read from staging tables).
    The above error still pending. My target mapping are not able to deployed/compiled.
    For the above I have defined one Staging location to one target target location and target location have connector to staging (not sure if I have to define connector name same as staging location, as I have created DB connector with different name but reference database is same as staging location).
    Mapping are assoicated with desired data locatoin and meta data.
    control center is also have that data location.
    Mapping are configured for the desired location.

  • Problem in work flow of PE while mapping 2 source structure into 1 target

    We have scenario in BPM where in we have to mapp 2 source structure's into target.
    To be more specific one structure occurance is 0 to unbounded and other one is of single occurance.
    We have done the mapping with target structure and tested it manually in mapping . its working fine..
    While testing it in Configuration scenario, In the workflow process i.e PE process flow, we were not able to get one of the source message structure as the input Message. Instead of two source messages, it is seen only one. Please guide us in this issue.

    actually we are receiving only one message, henece we do not need a correleation. But once we receive this message we are splitting into multiple messages in the transformation step. and we use these split messages in different transformation steps. but in one of the transformation steps we are unable see one of the split messages in the transformation step(though we have used the proper container element.). Please let me know if any ideas on this.

  • Message mapping---1 source structure and n target structures

    I would like to know how many message mappings we need if we are mapping one source structure to 3 different target structures of a single receiver. I am assuming its just one message mapping.
    Depending on the above answer how many interface mappings do we need.

    Kalyan,
    you need multi-mapping that maps one source structure to multiple target structures. Just search multi mapping in SDN and you will find many good posts.
    Basically, in MM editor, go to signature tab and in the target messages add additional message types. Simple.  --> Only one MM and one IM
    Jayson

  • Issue in mapping the same source and target fields

    Hi All,
    I am working on PI 7.0 and currently I am connecting to PI 7.0 via citrix desktop . Problem here is : in the mapping , direct mapping option that is available to map the same source and target fields is disabled . I do know that this is due to some java version issue .
    What I want to know is there any possibilty of solving this issue without installing an updated java version ?
    Regards
    Vinay P.

    I've faced the same for many times and all of that were due to Java version.
    1st of all, you have to check the authorizations you have. If you have enough (DEVELOPER_J2EE, CONTENT_ORGANIZER_J2EE, and so), and - obvious but very often forgotten - you have to assure you're trying to change it in the message mapping change mode On.
    Then, last shot should be downgrade your Java version.
    The 1.4.2 JRE version allow you to use not only the Mapp the Identical field but also Dependencies, Clear Mapping and some other tools/buttons. As mentioned above, if there's a fix in the new Java releases, I do not know (hope so) and would appreciate if you could let us know.
    Tks.

  • Send Multiple field values to Single Target field in Message Mapping

    Hi,
    My  Requirement is to Map Multiple fields to Single field in Target side.I have to send all the values concatenated and pass the same to target Field in Message Mapping.
    We can use Concat function,but more that 15 fields are there.If using concat,the mapping will be complex.
    Is there any way to simplify this requirement or we can use any UDF for this,kindly suggest.
    Regards,
    Madhu

    >>>We can use Concat function,but more that 15 fields are there.If using concat,the mapping will be complex.
    I don't think it's complex but  just that it occupies more mapping area
    Just write a simple UDF - a one line code and pass all your input variables.
    return var1+var2+var3+var4+...+var15;

  • Single Code Page Unicode conversion when source and target are the same

    Hi everyone.  We have recently upgraded our non-unicode 4.7 to ECC6 non-unicode.  Now we have begun researching the next step to convert to Unicode.  I know we could have done the Combined Upgrade and Unicode Conversion but I wanted to do thorough testing after the upgrade to eliminate too many variables if problems arose.
    So, my question is...has anyone done the Unicode conversion when source and target servers are the same?  Most documentation I've seen recommends a system copy to another box first.  I did find one forum thread that gave a high level approach to doing the conversion with just one server and listed this:
    Step 1:- Run Tcode SPUMG to scan
    Step 2:- Export Database
    Step 3:- Drop Database
    Step 4:- Create New Database
    Step 5:- Import database
    Step 6:- Chnage unicode Kernel
    What are your thoughts?  Is it supported?  Am I wasting my time and should I just bite the bullet and buy yet another system?  Thanks in advance.
    -Anthony

    Theoretically that's possible, yes. However...
    > Step 5:- Import database
    > Step 6:- Chnage unicode Kernel
    the import must be done using the Unicode kernel.
    So basically you can
    - export the old systm
    - uninstall system + database
    - start as if you were installing "from scratch" on a new box
    Markus

Maybe you are looking for

  • Is it possible to maintain a high res workflow on new iPad?

    I hope I'm wrong. It does not seem possible for me to use all these amazing syncing tools such as photo stream, aperture, iPhoto and the camera roll to maintain a high res workflow. I have an image shot on my iPhone 4 open in aperture acquired from p

  • Mac Pro better with 10.4.7 than 10.4.8?

    I was wondering what other peoples experience was with 10.4.8 on a Mac Pro. I just did an Archive & Install to revert back to 10.4.7 for the second time since owning the Mac Pro. Both times with 10.4.8 I experienced loud noise in general from the mac

  • Help on import server

    Hi friends, please provide full configuration file for mds.ini(server), mdis.ini(import server) and mdss.ini (syndication server) [email protected] Thank you S Naidu shankar

  • E63 firmware v410.21.010 for product ID 0578493 ?

    My wife has E63 phone, product ID 0578493. Even firmware v410.21.010 seems to be released, it is not available for this product ID version. When do we get one? http://blogs.forum.nokia.com/blog/li-yongfeis-forum-nokia-blog/2010/04/13/nokia-e71-e66-an

  • ITunes Match stops working at Step 3 in windows - aborts iTunes

    When running iTunes Match, steps 1 & 2 load and a green check mark is seen for each.  When it moves to step 3 an error message immediately appeas that indicates "iTunes has stopped working" and iTunes must be shut down.  I purchased iTunes Match on O