cancel
Showing results for 
Search instead for 
Did you mean: 

Validation for UDF

Former Member
0 Kudos

Hi all,

I am doing validation mapping,If the value of qualifier in E1EDK02 equals to 022 then BELNR of that segment should be captured to PaymentDocumentNumber.

In the validation mapping i need to do the check length,special character check.For this provide me the UDF code and mapping design.

Thanks & Regards,

AVR

Accepted Solutions (1)

Accepted Solutions (1)

rajasekhar_reddy14
Active Contributor
0 Kudos

> I am doing validation mapping,If the value of qualifier in E1EDK02 equals to 022 then BELNR of that segment should be captured to PaymentDocumentNumber.

E1EDK02------>

                        equalS-------->              If   ------->Target.
                                                           then
                                                         
constant(22)-->                           BELNAR-->

> In the validation mapping i need to do the check length,special character check.For this provide me the UDF code and mapping design.

its very easy to check the length,but what about special charcters?? what type of special charactes check you want to perform??

Regards,

Raj

Edited by: Raja Sekhar Reddy T on Apr 12, 2010 11:38 AM

Former Member
0 Kudos

If you really need some kind of powerful value check routine, why not going for a reg. ex. feature in your UDF ? You could then also add further checks (length, etc) ...

Rgds

Chris

Former Member
0 Kudos

Hi raj sekhar reddy,

In the validation mapping,If the value of qualifier in E1EDK02 equals to 022 then BELNR of that segment should be captured to PaymentDocumentNumber.

Here i need to do the length check and special character check, for that length is 20,special characters are ~`!@#$%^&*()_+=-[]\|}{;'":/.,<>?.For this provide me the UDF code and mapping design.

Thanks & Regards,

AVR

Former Member
0 Kudos

Hi Reddi,

Check this links in java regular expressions and choose the appropriate expression

http://www.regular-expressions.info/reference.html

http://java.sun.com/developer/technicalArticles/releases/1.4regex/

Regards

Ramesh

Former Member
0 Kudos

Hi raj sekhar reddy,

In the validation mapping,If the value of qualifier in E1EDK02 equals to 022 then BELNR of that segment should be captured to PaymentDocumentNumber.

Here i need to do the length check and special character check, for that length is 20,special characters are ~`!@#$%^&*()_+=-[]\|}{;'":/.,?.For this provide me the UDF code and mapping design.

Thanks & Regards,

AVR

Answers (10)

Answers (10)

Former Member
0 Kudos

Hi all,

solved my problem.

Thanks & Regards,

AVR

Former Member
0 Kudos

Hi,

U can try with this UDF for ur requirement..

// please change the length as ur requirement in the code..

Input: input

Output: void

-


%

Former Member
0 Kudos

Hi,

U can try with this UDF for ur requirement..

// please change the length as ur requirement in the code..

Input: input

Output: void

-


Former Member
0 Kudos

Hi,

U can try with this UDF for ur requirement..

// please change the length as ur requirement in the code..

Input: input

Output: void

-


Former Member
0 Kudos

Hi,

U can try with this UDF for ur requirement..

// please change the length as ur requirement in the code..

Input: input

Output: void

-


String patternStr ="[0-9a-zA-Z]*";

Pattern pattern = Pattern.compile(patternStr);

Matcher matcher = pattern.matcher

Former Member
0 Kudos

Hi,

U can try with this UDF for ur requirement..

// please change the length as ur requirement in the code..

Input: input

Output: void

-


String patternStr ="[0-9a-zA-Z]*";

Pattern pattern = Pattern.compile(patternStr);

Matcher matcher = pattern.matcher

Former Member
0 Kudos

Hi,

U can try with this UDF for ur requirement..

// please change the length as ur requirement in the code..

Input: input

Output: void

-


String patternStr ="[0-9a-zA-Z]*";

Patte

Former Member
0 Kudos

What kind of special character check do you require? Not sure about this one, but the rest can be done via standard graphical mapping functions.

Regards,

Gokhan

Former Member
0 Kudos

hi gokhan,

If u prove an example one,that would be great help.

Regards,

AVR

Former Member
0 Kudos

Hi,

no UDF is required.

You can use the graphical message mapping by using the node functions for this demand.

Cheers,

André

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi,

The simila UDF code available in SDN,search in sdn,if you unable to find let me know,.

Regards,

Raj

Former Member
0 Kudos

Hi Raja shekhar,

I am not able to findout the exact one,please give some documents.

Regards,

AVR