2006 Mar 10 10:49 AM
Hi,
I am getting an syntax error in a program that
"TOAOM" is not expected."
Table TOAOM exists in the system.
What could be the possible reasons. please guide me.
Regards,
Lijo Joseph
2006 Mar 10 10:55 AM
Hi,
I am getting an syntax error in a program that
"TOAOM" is not expected."
Table TOAOM exists in the system.
What could be the possible reasons. please guide me.
Regards,
Lijo Joseph
2006 Mar 10 10:55 AM
2006 Mar 10 10:57 AM
Thank you Andress.
Here is the Code.
select single connection from toaom into x_connection
WHERE SAP_OBJECT = OBJECTTYPE
AND AR_OBJECT = DOCUMENTTYPE
and ar_status = 'X'.
Thanks
Lijo Joseph
2006 Mar 10 11:18 AM
strange Joseph,
this code works fine in my 4.6c system:
(it's nearly the same;aside the names)
PARAMETERS: obj LIKE toaom-sap_object.
PARAMETERS: doc LIKE toaom-ar_object .
DATA x_connection LIKE toaom-connection.
SELECT SINGLE connection FROM toaom INTO x_connection
WHERE sap_object = obj
AND ar_object = doc
AND ar_status = 'X'.
write: x_connection.Andreas
2006 Mar 10 11:21 AM
2006 Mar 10 11:28 AM
Hi Joseph,
I think the problem is with 'connection' keyword.
The following query should work fine.
select single * from toaom into wa_toaom
WHERE SAP_OBJECT = OBJECTTYPE
AND AR_OBJECT = DOCUMENTTYPE
and ar_status = 'X'.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |