Skip to Content
0
Former Member
Nov 29, 2006 at 06:02 AM

Mapping Error

35 Views

Hi,

I am working on a scenario, in which i have to do mapping as :

I have three fields coming from external system, which are not mandatory from their side but requires the structure while updating back. Those fields consists of values like:

Field Source Target

-


-


-


1) Bran1 S01050 01050

2) Bran2 T01014 01014

3) Bran3 Y623 623

what i have to do is i have to trim the initial value i.e. S,T,Y and need to map with target field. For that i have used mapping as:

If Bran1 Exists

then Bran1->Substring (substring properties start from1, count 5)

Elese

Constant

If the field exists, its working absolutely alright else its throwing an error as:

RuntimeException in Message-Mapping transformation: Exception:[java.lang.StringIndexOutOfBoundsException: String index out of range: 6] in class com.sap.aii.mappingtool.flib3.TextFunctions method substring[, com.sap.aii.mappingtool.tf3.rt.Context@dffe8e]

Request your valuable suggesstions and guidelines.

regards

vijaylaxmi