Skip to Content
avatar image
Former Member

subString function in Message mapping

Hi Guys,

               I am using subString function in message mapping to take last 8 characters of 10 character field. But it returns all 10 digits.

Here is the screen shot

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Mar 30, 2012 at 04:48 AM

    hi ... i dont know why you was mapped  to target rootnode (Messagetype:MT_D)

    you have to create :

    BELNR -> substrring -> BELNR insted of calling NS0:MT_D

    and substring functionality is coorect for ur requirement and it's read only last 8 chars

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 30, 2012 at 05:11 AM

    Hi Sam

    Use substring (2, 8)

    Regards

    Monika

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 30, 2012 at 01:02 PM

    Hi Sam

    you have used substring(2,10) which will give u 10 char as output

    because substring(starting point of string index,number of characters)

    you can use substring(2,8) which will give you 8 char as output.

    Regards

    Raj

    Add comment
    10|10000 characters needed characters exceeded