Skip to Content

ABAP 7.40 question SELECT

Hi,

in our system, the command

SELECT SINGLE 'X'

INTO DATA(exists) FROM dbtab

WHERE ....

does not work. Is this SP8 specific? We do have SP5.

I want to use this, because this existence indicator won't ne used in further coding.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Oct 29, 2015 at 08:08 PM

    When you use a inline declaration ( DATA(exists) ), you have to escape the program variables with '@':

    SELECT SINGLE 'X'

    INTO @DATA(exists) FROM dbtab

    WHERE ....

    Don't forget if you have some variables (that were declared in your program) in the condition clause WHERE, you have to escape them too.

    Add comment
    10|10000 characters needed characters exceeded