cancel
Showing results for 
Search instead for 
Did you mean: 

How to choosethe target fields based on the value of i/p field.

Former Member
0 Kudos

Hi All,

My scenario was this, based on the value of the field i need to send the data to the target data structure..

my structure was this..

MT_IN_FILE MT_OUT_FILE

RECORD RECORD

ROW ROW 1

FIELD 1 FIELD 1

FIELD 2 FIELD 2

FIELD 3 FIELD 3

ROW 2

FIELD 1

FIELD 2

FIELD 3

So, if the value of Field1 is 250 then in should deliver to Row1 Fields else if the value is 350 then it should deliver to Row2 Fields.

regards,

Kishore

Accepted Solutions (0)

Answers (2)

Answers (2)

justin_santhanam
Active Contributor
0 Kudos

Kishore,

I hope you might have given the occurrences of Row1 and Row2 as 0..1

Now, map Field1 to Field1 for both Row1 & Row2, similarly Field2 to Field2, Field3 to Field3 for both Row1 & Row2.

Field1&Constant(250)---->eQuals


>createIf--->Row1

Field1&Constant(350)---->eQuals


>createIf--->Row2

raj.

Former Member
0 Kudos

Hi All,

My scenario was this, based on the value of the field i need to send the data to the target data structure..

my structure was this..

MT_IN_FILE

RECORD

ROW

FIELD 1

FIELD 2

FIELD 3

MT_OUT_FILE

RECORD

ROW 1

FIELD 1

FIELD 2

FIELD 3

ROW 2

FIELD 1

FIELD 2

FIELD 3

So, if the value of Field1 is 250 then in should deliver to Row1 Fields else if the value is 350 then it should deliver to Row2 Fields.

regards,

Kishore

Former Member
0 Kudos

If source_field1 = 250 then map source_field1 to target_row1node.

source_field1 map to row1_field1.

source_field2 map to row1_field2.

source_field2 map to row1_field3.

If source_field1 = 350 then map source_field1 to target_row2node.

source_field1 map to row2_field1.

source_field2 map to row2_field2.

source_field2 map to row2_field3.