Skip to main content

Conditional Data Mapping to Target Schema

Comments

1 comment

  • David Paras

    Below are the high level steps that can be followed for fulfilling this requirement:

    1. In Data Mapper create a Clone node by right clicking on the Record Node of target Schema.

    2. Apply For Each on root of Target with Record of Source Schema.

    3. Use flag variable in context and set it's value as True if the value of COSTCENTRE2 is not null else it will be set as false.

    4. Apply one to one mapping on all the fields of main node at Target side.

    5. On Record Level of Clone node, set back the value of flag as false.

    6. Using IFF condition decide the value of Clone node if flag is true then it's value is passed else not.

    7. Map all the required fields for clone node and map the COSTCENTRE2 and COSTCENTRE12_AMT with GENERAL_LEDGER and AMOUNT respectively.

    0

Post is closed for comments.