Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3316

Re: ABAP 7.40: shift val left deleting leading space => shift_left( val = val ) ???

$
0
0

Hi Ralf,

 

according to  ABAP Keyword Documentation ist is

 

target = shift_left( val = value, sub = space ).


If the argument sub is given a character string in substring, all substrings in the character string from text are removed on the left or right that match the content of substring.


I don't see the reason for sub = space does not work due to documentation, but you may even omit the sub argument:


If none of the arguments places, circular, or sub are specified, the functions work as if the sub argument has been passed a blank character. All blank characters to the left or right are removed.


That means


target = shift_left( value ).


should do the trick. (In this case, an explicit val= can also be omitted.)


Sorry, no access to 740, but doesn't it work like this?


Regards Clemens

 

Message was edited by: Clemens Li (Sorry, had to read the documentation with care)


Viewing all articles
Browse latest Browse all 3316

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>