Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

help in select single

hallow

i have erorr when i do this select what i miss

        DATA: l_ennda TYPE endda,
              emp_status TYPE stat2.

        SELECT single endda stat2
          FROM pa0000
          INTO (l_endda , emp_status)
          WHERE stat2 = 0
          AND begda LE so_date-high
         AND endda GE so_date-low.


the erorr is :

The list "(L_ENDDA" after "INTO" is not of the the form (f1, ...,fn),

or contains an undefined field. the form (f1, ...,fn), or contains an

undefined field. the form (f1, ...,fn), or contains an undefined field.

efined field. the form (f1,

reagrds

Tags:
Former Member
Former Member replied

Hi Ricardo,

The error is coming because you have done one spelling mistake. In the declaration you have decalred 'l_ennda' but in the select statement you are using 'l_endda'.

Kindly copy the below select statement:

SELECT single endda stat2

FROM pa0000

INTO (l_ennda, emp_status)

WHERE stat2 = 0

AND begda LE so_date-high

AND endda GE so_date-low.

<b>Reward the point if reply is useful.</b>

Regards,

Gopal.

1 View this answer in context
Not what you were looking for? View more on this topic or Ask a question