cancel
Showing results for 
Search instead for 
Did you mean: 

validation mapping

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi all,

solved my problem.

Thanks & Regards,

AVR

Former Member
0 Kudos

>

> 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

Former Member
0 Kudos

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.

rajasekhar_reddy14
Active Contributor
0 Kudos

> 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

Former Member
0 Kudos

hi raj,

could u provide me the mapping design

thanks,

AVR

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi Use

Exists function----


to check the filed present in IDoc or not.

BELANR----->EXISTS--> use if without else----------------->if                                                                                
-------------->Target.
     UDF(Check the length and check of semi colon)   ------>     then

its very simple,i am unable to format correctly,try once.

Regards,

Raj

former_member200962
Active Contributor
0 Kudos
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.

Former Member
0 Kudos

hi abhishek,

could u provide me the udf code and mapping design for this.

thanks,

AVR