05-17-2016 11:15 AM
Hi,
I am still in trouble with ABAP 7.40, sometimes
DATA:
charact TYPE c LENGTH 10 VALUE 'BLABLABLUB',
target TYPE c LENGTH 10.
target = shift_right( val = charact circular = 4 ).
IF target(4) EQ 'BLUB'.
* ....
ENDIF.
I'd like to have an alternative coding without field "target", which is needed for "target(4)"-expression. What I mean is a
IF shift_right( val = charact circular = 4 )(4) EQ 'BLUB'. " <= of course, this does not work
* ....
ENDIF.
Anybody out there, who can help me?
05-17-2016 11:55 AM
Hi Ralf,
please try
If shift_right( val = charact circular = 4 ) CP 'BLUB*'.
Regards,
Klaus
05-17-2016 11:55 AM
Hi Ralf,
please try
If shift_right( val = charact circular = 4 ) CP 'BLUB*'.
Regards,
Klaus
05-17-2016 12:01 PM
05-17-2016 12:06 PM
05-17-2016 12:15 PM
Dug up SAP documentation and there are apparently 3 operand positions -
String processing functions e.g., shift_right, can only be declared at "reader" positions.
05-17-2016 11:59 AM