Skip to Content
0
Former Member
May 08, 2008 at 08:59 AM

Error : "TOAOM" is not Expected

29 Views

Hi guys,

I found above error in ECC6.0. where as in 46C this error does not exist. Can you tell me why.

Below is the code and giving above syntax error in ECC.

DATA : L_Connection LIKE TOAOM-CONNECTION.

Select SINGLE Connection From TOAOM into L_CONNECTON

WHERE SAP_OBJECT = LT_CONNECT_INFO-SAP_OBJECT

AND AR_STATUS = 'X'.

IF sy-subrc = 0.

Delete (L_Connection) from LT_CONNECT_INFO.

ENDIF.

I checked both 46C and ECC, both has TABLE TOAOM and field CONNECTION.

whats wrong in this. Any suggestion will be appreciated.

Thanks

Priyan