on 12-20-2005 6:51 PM
Hi,
I want to map the field D_96 under the EDI Segment SE and I was wandering if how to do that?
The description of the field is: Total number of segments included in transaction set.
So is there a way that I can load the result mapping in a Java function so that I can count the number of segments?
I know that I could add a counter (using user-defined function) for each segment that I'm writing but I was just wandering if there would be an easier way of doing it.
Rgds,
Yves
hi,
try to use node functions like Split By Value....
have a look at this blog...
/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
regards,
sundararamaprasad.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, I will try the Java mapping.
Tgds,
Yves
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Yves,
i don't think, that it is possible in a Java function within a message mapping, but you can do it by creating a java mapping from the result of the message mapping to the same structure. Then you can count the nodes and add just the value to D_96.
In your Interface mapping you will just need to add the additional java mapping after your message mapping.
Best regards
Christine
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yves,
The total no of EDI line segments will be present in the SE itself. the second field contains total no of line segments + 2 (ST & SE). Hence just subtract 2 to get the correct no in any EDI.
regards,
Felix
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.