on 06-01-2016 2:48 PM
Hi Experts ,
Could you please help me out in the udf for which i have written .
Actually my requirement is that when ever the Z1P1208 segment Exist and PLANS of E1P0001 segment & OBJID of E1P1005 are true file should create.
But, now the issue is that when there is equal number of segments in the IDOC like Z1P1208 ,E1P0001&E1P1005 are same the file is correct.
And when there is any different in the segment the file is corrupting.
The Udf which i have written for these is
Regards,
Vijender
Hi Vijender!
Wouldn't you please clarify your requirement?
What condition do you need to check:
1. If at least one E1PITYP/Z1P1208 segment exists and any of E1PITYP/E1P0001/PLANS equals to any of E1PITYP/E1P1005/OBJID in the same context?
2. For each existing E1PITYP/Z1P1208 segment values of E1PITYP/E1P0001/PLANS and E1PITYP/E1P1005/OBJID with same indexes must be equal?
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Evgeniy,
Please Find source message when the file is reading correct
Here you can find that when ever the IDOC is having the equal number of segments of Z1P1208 and E1P0001(PLANS) & E1P1005(OBJID) and out put should be 6 lines and my logic is running fine .
Logic( UDF) had shared in the previous conversion ,
And when the IDOC structure is some what like :
My logic is failing ;
I hope you have understood the requirement
Please help me out in these issue
Best Regards,
Vijender
Hi, Vijender!
1. Could I ask you to provide source XML fragments with data for both of your cases (fragments containing E1PITYP node sets)?
2. What is the context of Z1P1208 in your mapping? E1PLOGI?
3. What is your UDF type: "All values of the context" or "All values of the queue"?
Regards, Evgeniy.
Hi Vijender!
I took your example with correct nodeset and applied your UDF to it.
Here you can find that when ever the IDOC is having the equal number of segments of Z1P1208 and E1P0001(PLANS) & E1P1005(OBJID) and out put should be 6 lines and my logic is running fine .
I've got 4 lines as result, not 6.
Regards, Evgeniy.
Hi Vijender!
Sorry, but I still can't catch your mapping logic According to your UDF code, for each Z1P1208 you create a line when PLANS in one queue equals to OBJECTID in another queue. So you get 4 lines, two for each Z1P1208 segment.
How can you get 4 lines, when you get only one Z1P1208 in your "wrong" xml?
Please try to clarify this one more time.
Regards, Evgeniy.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.