on 08-31-2010 1:57 PM
Hi Friends,
I am facing a issue in mapping. My scenario is IDOC to JDBC.
I have done mapping in the give below way.
If segment1 and segment2 both exists and attyp(field of segment1) is equal to '00' or '01' then segment1 replicate into table.
I am facing a error while testing the mapping is:
RuntimeException in Message-Mapping transformation: Exception:[java.lang.IllegalArgumentException: Cannot cast 02 to boolean] in class com.sap.aii.mappingtool.flib3.Bool method or[02, 01, com.sap.aii.mappingtool.tf3.rt.Context@459926e5]
Kindly suggest me on this.
Regards,
Narendra Goyal
> equal to '00' or '01'
You have assigned constant('02') direct to or.
that is not possible.
You have to do something like this:
field - equals \
constant(01) or
field - equals /
constant(02)
Edited by: Stefan Grube on Aug 31, 2010 3:53 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Narendra.
You have to use EqualS function.
Equal is to boolean comparation (true/false or 0/1).
Regards.
Bruno
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Narendra,
What might be happening here is that you are using function "equal", that is a boolean function.
You have to use "equalS" function, that belongs to category String. That function compares two strings.
Regards,
Juan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.