on 03-26-2014 8:40 AM
In File to IDOC senario,
I have a Mapping Condition like this:
IF A02 = 'X' map 'VER ' + A05 + '- ACCEPTED'
IF A02 = 'Y' map 'REJECTED'
IF A02 = 'Z' map 'VER ' + A05 + ' - EXCEPTIONS'
IF A02 = 'A' map 'VER ' + A05 + ' - HOLD'
IF A02 = '' map 'VER ' + A05 + ' - ACK'
Note: Trim any leading zeros in A05 while forming string. If A05 is not available, then use prefix 'VER UNK - '.
Sourcefield : A02
Target field : E1EDK02 - BELNR
QUALF = 002
I am unable to map it correctly.
Give some mapping example and Tips.
Explain this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
You have written
'Note: Trim any leading zeros in A05 while forming string. If A05 is not available, then use prefix 'VER UNK - '.
So if A05 is missing then add VER UNK.
See the last line of test result, There is no A05 and hence the output start with VER UNK-
Now you are saying it's B05 . Please check and adjust the mapping.
Hi
Please update the test data you are using. Also I have designed mapping based on the assumption that
If there is no A05 field, then only it will pass VER UNK-
If A05 is there and there is no value then it will pass VER.
Please check the logic and let me know if my assumption was correct or not.
yhea! I checked it. n my senario ,
The concept is existing of value of the field not Field.
I adjusted the map wth based on checikng the length of the field .
If length of the field A05 is equal to 0 then Output is ' VER UNK-'
else Output should be 'VER' + ...
Your Mapping is Exactly Correct with the above point.
Rreally, Thankq so much.
output = "";
if (A02.equals("X"))
{
output = output+VER ' +A05.replaceAll("^0*", "")
+'- ACCEPTED' ;
}
else if (A02.equals("Y"))
{
output = output+REJECTED ;
}
//ly do for rest
return output ;
Let me know if you struck with any issue .
Regards
Venkat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For UDF select single values.
A02 argument string
A05 argument string
if (A02.equals("X"))
{
output = output+"VER " +A05.replaceAll("^0*", "")
+"- ACCEPTED" ;
}
else if (A02.equals("Y"))
{
output = output+"REJECTED" ;
}
else if (A02.equals("Z"))
{
output = output+"VER " +A05.replaceAll("^0*", "")
+"- EXCEPTIONS" ;
}
//ly do for rest
return output ;
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.