cancel
Showing results for 
Search instead for 
Did you mean: 

How to validate two files

vijender_p
Active Participant
0 Kudos

HI all ,

Actually am working on a scenario where I have to validate two files based on the Info type 0001 so I have used X path configuration for these scenario but am failing to implement the logic .

Requirement :In an IDOC there will be multiple E1PLOGI and in E1PLOGI there will be an Info type 1 occurring once and in that if Field PERSK is 0V it should determine one file name and if PERSK is 0X it should determine another file Name .

SO I have used these logic for it :



Kindly help in these what I have made mistake and solving the issue



Regards,

Vijender

Accepted Solutions (0)

Answers (3)

Answers (3)

vijender_p
Active Participant
0 Kudos

Hi All ,

Can you help me on these please .

Regards,

former_member190293
Active Contributor
0 Kudos

Hi Vijender!

Please explain what you want to do: either to build the condition for receiver/interface determination or to build the file name depending on values in source structure in message mapping.

Regards, Evgeniy.

former_member190293
Active Contributor
0 Kudos

Hi Vijender!

(/YOUR_IDOC_TYPE/IDOC[E1PILOGI/E1PITYP/E1P0001/PERSK = 0V]) EX

Regards, Evgeniy.

vijender_p
Active Participant
0 Kudos

Hi Evgeniy ,

SO should I have to use these and try check ??

Regards,

Vijender

former_member190293
Active Contributor
0 Kudos

It's XPath condition to check for element existance. If you want to construct the file name depending on element's value - you can do it in mapping.

Regards, Evgeniy.

vijender_p
Active Participant
0 Kudos

Hi Evgeniy ,

I want to construct the file name depending upon the field of PERSK .

And here we have Sender an IDOC and Target is 2 message Mapping is used for 2 different file names .
So how to validate it ??

Regards,

Vijender

Muniyappan
Active Contributor
0 Kudos

you meant to say, you want to validate field?

is this idoc to file, and you want to construct the file name based on PERSK's value?

vijender_p
Active Participant
0 Kudos

HI Muni ,

This is IDOC to File Scenario only , and I want construct file name based on PERSK values only

Muniyappan
Active Contributor
vijender_p
Active Participant
0 Kudos

Hi Muni ,

Thanks a lot for the reply .
But am new to PI so can you help me how this UDF is helpful in my case ??

Regards,

Vijender

vijender_p
Active Participant
0 Kudos

HI Muni ,

This blog is useful when there is a particular field in the info type occurrence is 1 , but if the field is occur for multiple times how to validate it ??

Regards,

Vijender

apu_das2
Active Contributor
0 Kudos

Vijendra,

Use remove context node function in graphical mapping before putting the input in your UDF of Dynamic File Name Configuration. Make sure your execution type of UDF is all values of the context.

You can write your logic accordingly there in UDF and create dynamic file Name.

Thanks,

Apu