‎2013 Aug 29 2:18 PM
Hi experts,
I am facing an issue with an abap code on BW. I am trying to modify the last disgit of a record with '0'. For this i used function STRLEN but it doesen't work.
Thanks for your support.
Amine
‎2013 Aug 29 2:45 PM
Hi Amine,
After the lgn = strlen(antec) - 1.
again you have to assign the value to antec.
antec = antec+0(lgn).
Then concatenate the values as i said in earlier.
Please go through the link.
http://scn.sap.com/thread/3414620
Regards,
Krishna.
‎2013 Aug 29 2:27 PM
Hi Amine,
could you try :
MOVE '0' to antec+lgn(1).
?
regards
Fred
‎2013 Aug 29 2:35 PM
Hi Amine,
Why is it not working? Any error?
Which is the value of SOURCE_FIELDS_RULE-/BIC/ZBPN?
Anyway, if you already know the length of type /BIC/OIZBPN then you already know which is the last digit of the var.
Regards
‎2013 Aug 29 2:35 PM
‎2013 Aug 29 2:45 PM
Hi Amine,
After the lgn = strlen(antec) - 1.
again you have to assign the value to antec.
antec = antec+0(lgn).
Then concatenate the values as i said in earlier.
Please go through the link.
http://scn.sap.com/thread/3414620
Regards,
Krishna.
‎2013 Aug 29 2:53 PM
Hi Krishna,
I tried it but it doesen't work.
Normally STRLEN has to be in blue, which means it's reconized as a SAP function.
Any other options to bypass this issue please?
Thanks.
Amine
‎2013 Aug 29 2:59 PM
Hi Amine, STRLEN( ANTEC ). make sure there should be a space at start and end of your variable between the brackets. Regards, Krishna.
‎2013 Aug 29 2:59 PM
Hi Amine,
strlen is a function, you need spaces between the brackets:
strlen( antec )
Marcus
‎2013 Aug 29 3:04 PM
Thanks guys.
I found in the meantime my answer in this thread:
http://scn.sap.com/thread/880269
Assigned points anyways
Amine