on 01-31-2011 4:53 PM
Hi,
I am performing the below mapping.
Whenever there is QUALF = 'C' or 'I' or 'v'..map from E1EDL42-belnr if No QUAL found then Map from E1edl20-vbeln.
The above functionlaity is working fine if there is C or I or V in qualf field.But failing when its empty.
I am using EqualsS and OR to perfom the above functionality but somehow its giving SUPPRESS values as input to OR functionality because the values in QUALF is 'nulll' and the oR expects either true or False.
PLease let me know how i can resolve this. here is the mapping.
qualf----
Equals----
constant(C)----
qualf----
OR(C and I)
Equals--
if yes then belnr else vbeln
constant(I)----
qualf----
Equals----
constant(V)----
regards
Try to use qualf--MapWithDefault: in this case, if there suppress passed, the function still give a default value.
Liang
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
before you validate the values C,I,V, validate if the value is equal "". if true validate the content. also pay attension coz the field may not come, so you should validate if it exist first of all.
that should solve your issue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
in case of of empy value you should map the vblen field.
your mapping should look like
if qualf----
-
Equals----
-
constant("")----
-
(true)map vblen
else
qualf----
-
Equals----
-
constant(C)----
-
qualf----
-
OR(C and I)
Equals----
OR(Cand I or V)----
-
if yes then belnr else vbeln
constant(I)----
-
qualf----
-
Equals----
-
constant(V)----
-
that should solve your issue.
does the qualf exist in the structure or it has a null value?
if boths may accur your mapping should be
1°
if qualf----
-
not Exist----
-
(true)map vblen
else
2°
if qualf----
-
Equals----
-
constant("")----
-
(true)map vblen
else
3°
qualf----
-
Equals----
-
constant(C)----
-
qualf----
-
OR(C and I)
Equals----
OR(Cand I or V)----
-
if yes then belnr else vbeln
constant(I)----
-
qualf----
-
Equals----
-
constant(V)----
-
there is not another possiblity. also you can validate the qualf field in a UDF to check if it exist and if it has a null value but SAP recommends first solve the validation ussing the standar functionality and if it not possible use a UDF. you are missing something in your mapping, please check it out.
Thanks
Rodrigo P-.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
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.