Values in the column Number, Date1 and Date2 are the input values coming from the S4. And values in the Flag field are the expected values produced by the message mapping. 20230516 is the current date.
Number | Date1 | Date2 | Flag(OR) | Flag(AND) |
1 | 20230510 | 20230510 | ||
2 | 20230510 | 20230516 | X | |
3 | 20230516 | 20230510 | X | |
4 | 20230516 | 20230516 | X | X |
These are the important steps to achieve our goal: inputting ‘X’ in the Flag field based on the condition. I will explain the steps for the OR case and the AND case respectively.
There are two ways to create conditions with OR. The first one is easier to understand the logic. The second one is simpler. Make sure you input the false value. Otherwise, you will get an error and will not be able to deploy your iFlow.
<Root>
<Record>
<Date1>20230510</Date1>
<Flag></Flag>
<Date2>20230510</Date2>
<Number>0000000001</Number>
</Record>
<Record>
<Date1>20230510</Date1>
<Flag></Flag>
<Date2>20230516</Date2>
<Number>0000000002</Number>
</Record>
<Record>
<Date1>20230516</Date1>
<Flag></Flag>
<Date2>20230510</Date2>
<Number>0000000003</Number>
</Record>
<Record>
<Date1>20230516</Date1>
<Flag></Flag>
<Date2>20230516</Date2>
<Number>0000000004</Number>
</Record>
</Root>
<?xml version="1.0" encoding="UTF-8"?>
<Root>
<Record>
<Number>0000000001</Number>
<Date1>20230510</Date1>
<Date2>20230510</Date2>
<Flag></Flag>
</Record>
<Record>
<Number>0000000002</Number>
<Date1>20230510</Date1>
<Date2>20230516</Date2>
<Flag>X</Flag>
</Record>
<Record>
<Number>0000000003</Number>
<Date1>20230516</Date1>
<Date2>20230510</Date2>
<Flag>X</Flag>
</Record>
<Record>
<Number>0000000004</Number>
<Date1>20230516</Date1>
<Date2>20230516</Date2>
<Flag>X</Flag>
</Record>
</Root>
<Root>
<Record>
<Date1>20230510</Date1>
<Flag></Flag>
<Date2>20230510</Date2>
<Number>0000000001</Number>
</Record>
<Record>
<Date1>20230510</Date1>
<Flag></Flag>
<Date2>20230516</Date2>
<Number>0000000002</Number>
</Record>
<Record>
<Date1>20230516</Date1>
<Flag></Flag>
<Date2>20230510</Date2>
<Number>0000000003</Number>
</Record>
<Record>
<Date1>20230516</Date1>
<Flag></Flag>
<Date2>20230516</Date2>
<Number>0000000004</Number>
</Record>
</Root>
<?xml version="1.0" encoding="UTF-8"?>
<Root>
<Record>
<Number>0000000001</Number>
<Date1>20230510</Date1>
<Date2>20230510</Date2>
<Flag></Flag>
</Record>
<Record>
<Number>0000000002</Number>
<Date1>20230510</Date1>
<Date2>20230516</Date2>
<Flag></Flag>
</Record>
<Record>
<Number>0000000003</Number>
<Date1>20230516</Date1>
<Date2>20230510</Date2>
<Flag></Flag>
</Record>
<Record>
<Number>0000000004</Number>
<Date1>20230516</Date1>
<Date2>20230516</Date2>
<Flag>X</Flag>
</Record>
</Root>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 | |
4 | |
3 | |
3 |