Hi everyone,
I have a doubt on how to select part of string.
For example in the following code, in city from it may get the value 'NEW YORK CITY' instead of that I wanna show only 'NEW York'.
Is it possible to do NOT fix to a number of positions. In case to remove 'City' from 'Rio de Janeiro City'.
DATA: carrid TYPE s_carr_id,
connid TYPE s_conn_id,
cityfrom TYPE s_from_cit,
cityto TYPE s_to_city.
START-OF-SELECTION.
SELECT carrid connid cityfrom cityto FROM spfli
INTO (carrid, connid, cityfrom, cityto) UP TO 1 ROWS.
ENDSELECT.
WRITE: / carrid,
/ connid,
/ cityfrom,
/ cityto.