Skip to Content
avatar image
Former Member

Mapping Queries

Hi All,

I have the following mapping queries.

Can you please help me?

1.I have the following requirement wherein the same field is supposed to be mapped more than once

ORDERS05/ZORDERS05/E1EDK03[QUALF == "012"]

ORDERS05/ZORDERS05/E1EDK03[QUALF == "002"]

Similarly many other fields are supposed to be mapped with the different constants again and again

Can I do it by duplicating the target fields?

2.I have a mapping requirement such that I need to map the source with the target with removing leading zeroes?

Do I need to use any node function for it?

3.I have a mapping requirement such that I need to to map the one source and one target with the first occurrecnce of the

source,similarly I need to map the other source with the other target with the second occurrecnce of the source field.How can I do it?

4.I have a requirement to " Use look up in value table with tag concatenated

SCP|Header|<<root element>/DocumentHeader/MessageSubject"

Along with that one condition is also mentioned which is"Do not map the segment when no entry found in the value table".

How to imlement this condition along with the value mapping?

5.I have a mapping requirement wherein it is mentioned that for every Target element create context.Also, the condition is mentioned as "Do not map this segment when no entry found in the value mapping table".How can I do it?

Can you please help me?

Thanks in advance.

Edited by: Shweta Kullkarni on Jun 17, 2010 8:42 AM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jun 17, 2010 at 06:43 AM

    Hi,

    >> 1.I have the following requirement wherein the same field is supposed to be mapped more than once

    ORDERS05/ZORDERS05/E1EDK03QUALF == "012"

    ORDERS05/ZORDERS05/E1EDK03QUALF == "002"

    Similarly many other fields are supposed to be mapped with the different constants again and again

    Can I do it by duplicating the target fields?

    Sol : Yes you can acheive it by using duplicate.

    >> 2.I have a mapping requirement such that I need to map the source with the target with removing leading zeroes?

    Do I need to use any node function for it?

    Sol : Use FormatNumber function and pass Number Format Parameter as 0 (zero) and mapped this in between Source and Target Field.

    OR use the following UDF,

    String input;

    try

    {

    input =String.valueOf( Integer.parseInt(a[0]));

    result.addValue(input);

    }

    catch(Exception e)

    {

    try

    {

    result.addValue(a[0]);

    }

    catch(Exception ne)

    {

    }

    }

    >> 4.I have a requirement to " Use look up in value table with tag concatenated

    SCP|Header|<<root element>/DocumentHeader/MessageSubject"

    Along with that one condition is also mentioned which is"Do not map the segment when no entry found in the value table".

    How to imlement this condition along with the value mapping?

    Sol: Refer: http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/00ee347e-aabb-2a10-b298-d15a1ebf43c5

    Regards,

    Abid

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Shweta,

      -->Use the standard function CURRENT DATE and you can change it to CURRENT TIME.

      -->If you double click on the function we have different options for both time and date.

      Thanks

  • avatar image
    Former Member
    Jul 19, 2010 at 09:43 AM

    answered

    Add comment
    10|10000 characters needed characters exceeded