Skip to Content
0

How to validate two files

Jul 21, 2017 at 01:15 PM

63

avatar image

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

p7vy7.png (2.6 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Evgeniy Kolmakov Jul 21, 2017 at 01:33 PM
0

Hi Vijender!

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

Regards, Evgeniy.

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Hi Evgeniy ,

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

Regards,

Vijender

0

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.

0

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

0
Vijender Gouda Jul 22, 2017 at 07:31 AM
0

Hi All ,

Can you help me on these please .

Regards,

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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.

0
Muniyappan Marasamy Jul 21, 2017 at 01:27 PM
0

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?

Show 5 Share
10 |10000 characters needed characters left characters exceeded

HI Muni ,

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

0
0

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

0

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

0
Former Member
Vijender Gouda

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

0