At the moment my query looks like this
SELECT CSKS~KOSTL CSKS~DATBI CSKS~NAME1 CSKS~KOSAR CSKS~VERAK CEPC~PRCTR CEPC~NAME3 CEPC~NAME4 UP TO X ROWS
FROM CSKS INNER JOIN CEPC ON ( CSKS~PRCTR = CEPC~PRCTR AND CSKS~KOKRS = CEPC~KOKRS )
INTO gwa_itab
WHERE CSKS~BUKRS = cocode AND
CSKS~KOKRS = cntrarea AND
CSKS~DATBI > d1.
APPEND gwa_itab TO it_itab.
ENDSELECT.
How can I modify it so it will see what number the cost centers start with and if they start with 1 for example, insert into the column Location which is already in the internal table a given string EG: Washington.