Skip to Content
0
Former Member
Nov 14, 2017 at 09:27 AM

how to do this condition mapping i am beginner for sap pi

262 Views Last edit Nov 14, 2017 at 10:37 AM 5 rev

screenshot-359.png

<Task_Date>

<Qual></Qual>

<Date></Date>

</Task_Date>

Qual 001 should be present always. For Qual 001 always Date should be present. If date is not present then give current date as output. If date is present then the same date should come.

source target

<Task_Date> <Task_Date>

<Qual>001</Qual> <Qual>001</Qual>

<Date></Date> <Date>CurrentDate</Date>

</Task_Date> </Task_Date>

<Task_Date> <Task_Date>

<Qual>001</Qual> <Qual>001</Qual>

<Date>29/08/2016</Date> <Date>29/08/2016</Date>

</Task_Date> </Task_Date>

Qualifier other than 001 is not mandatory. When it is other than 001 then date will be present. Give the same output. Also the first condition should be satisfied as shown in the below example.

source target

<Task_Date> <Task_Date>

<Qual>005</Qual> <Qual>001</Qual>

<Date>05/09/2016</Date> <Date>CurrentDate</Date>

</Task_Date> </Task_Date>

<Task_Date>

<Qual>005</Qual>

<Date>05/09/2016</Date>

</Task_Date>

Attachments

screenshot-358.png (134.9 kB)
screenshot-359.png (151.9 kB)