cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping

Former Member
0 Kudos

Hi,

I have doubt.

I want get value in ItemID. Want to remove the 1st character of the value and send the rest

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

To make it generic in case length if the field is not fixed, use simple one line UDF

return a.substring(1,a.length());

Answers (3)

Answers (3)

Former Member
0 Kudos

As the field is an id , I believe the length will remain constant.So you can use the standard funtion subString to achieve this

http://help.sap.com/saphelp_nw04/helpdata/en/02/265c3cf311070ae10000000a114084/frameset.htm

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi,

write simple UDf to achieve this requirement,pass one argumnet to usf

SubStringFirst(String ItemID,Container...)

{

item = (string.substring(1));

return item;

}

using substirng function in java,we can achieve this requirement.

Regards,

Raj

Former Member
0 Kudos

Hi,

Use below UDF.

public String Item(String ItemID,Container container){

itemID = ItemID.substring(1);

return itemID;

}

Regards,

Prakasu.M

ravi_raman2
Active Contributor
0 Kudos

use the subString function.

Regards

Ravi Raman