on 11-18-2010 4:11 AM
Hi Experts,
I have this requirement that a source file will contain 1 header and multiple of line items.
There is a field in Header that specify the total no. of line items.
I need to count the number of lines items and validate against this field. If equals, then pass this record, else raise an exception.
Appreciate your guidance on this requirement.
Regards
FNG
Hi ALL,
Thanks for your suggestion, I will try it out and get back to you.
Regards
FNG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you want raise exception what type of exception? you want throw message mapping exception??
if yes then
apply logic suggested by babu, but dont use if then else logic pass result of equals function to usd, in udf throw exception,
you have to write logic in UDF , equals s function result true mean pass value to target else thow exception.
Regards,
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use the COUNT function to count total number Line items, by changing the context.
Then using equals function check for equality with the header field.
If true map to target else dont, ifWithoutElse
Babu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.