on 04-21-2010 7:57 AM
hi all,
i am doing validation mapping, details are segment-E1IDP02,qualifie-029,field-BELNR.
1.i need to do the length check(length-41)
2.if semicolon( is present have to replace with space in the target
3.If this field is not present in the IDOC then BLANK should be replace with Title name/Header name and colon
wht are the possibilities to do this requirement,give me the steps and mapping details also.
Thanks in advance,
AVR
Hi all,
solved my problem.
Thanks & Regards,
AVR
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>
> hi all,
> i am doing validation mapping, details are segment-E1IDP02,qualifie-029,field-BELNR.
> 1.i need to do the length check(length-41)
BELNR -
> Length EQUALS Constant (41) -
> If Without Else -
> then -
>
> 2.if semicolon( is present have to replace with space in the target
Replacestring : 1 input your ouput till now, 2nd input semicolon (, 3rd input space ( ) leave one in the constant -
>
> 3.If this field is not present in the IDOC then BLANK should be replace with Title name/Header name and colon
>
Replace Suppress with Blank (write a small UDF) -
> Target
UDF:
Select UDF for all values in the context
for (int i=0;i<var1.length;i++)
{
if (var1<i>.equals(ResultList.SUPPRESS))
result.addValue(" ");
Else
result.addValue(value<i>);
}
Regards,
Pavan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi AVR,
i'll try to help u whit the mapping of point3: in graph mapping insert an IF(boolean function), the in if door connect the SOURCE field and an EXIST (node function) in the middle, whit it u are going to check if it is blank or not. Then if it's true, map the source field directly in to the THEN door. In the ELSE u should map the header or other fields that u need.
Best regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> i am doing validation mapping, details are segment-E1IDP02,qualifie-029,field-BELNR.
> 1.i need to do the length check(length-41)
use string length functyion to find the string length use simple UDF .
String av = "This is SAP";
int length = AV.length();
it returns the length of string then use if condition to check the value.
> 2.if semicolon( is present have to replace with space in the target.
use udf, google it.
> 3.If this field is not present in the IDOC then BLANK should be replace with Title name/Header name and colon
>
use exists function in graphical mapping to check filed exists or not.,
Regards,
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1.i need to do the length check(length-41)
2.if semicolon(;) is present have to replace with space in the target
Instead of the UDF cant i simply use the Length function and the ReplaceString function of Message mapping? If there is no semicolon then the output will be same as the source (from ReplaceString function) and if there is any semicolon then it will be replaced with a space (or whatever is specified)
Regards,
Abhishek.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.