HI All
I have a requirement that from source we will get 1 field if that source filed length is 50 then the target field should split in to 3 nodes (I mean in the 1st node there should be first 20 characters and second node next 20 characters and in the third node next 10 characters. and if the source field length increase then the split of the nodes also should increase like 20, 20,20 etc)
![Capture.JPG]()
Item Name is the source Field "ITEM_NAME" has a length more than 20 , then the first 20 length should create a node "Line_B1" in that item name field will be having the first 20 characters & second node "Line _B1 to be generated and in that ltem name field will be having the next 20 characters and it should go so on by splitting the nodes till the source filed gets fulfilled.
it means source field has a length of 10 the 1 node will be created
source filed has a length of 50 then 3 nodes will be created
if source filed has a length of 100 then 5 nodes will be created ...... etc.
and also another requirement , in the target node first field " key" is the mandatory filed for that field it should take the value from the source field for first occurrence of the node and from the second occurrence on wards a constant filed "0" should be populated in the key field place.
and another requirement is , the second filed is "line number " in that filed I need to populate the values like for first occurrence it should be 1, and for second occurrence it should be 2, and it should go on till all nodes are created.
please help me on this...
Actually I have created for only 2nodes generation in the mapping(BY THE HELP OF SCN , by postimng) , but I need the logic for generating the multiple nodes based on the field length of "ITEM_NAME"
Thanks lot for your Replies in Advance.