Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

TOAOM

Former Member
0 Likes
1,899

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

1 ACCEPTED SOLUTION
Read only

andreas_mann3
Active Contributor
0 Likes
1,640

pls post your coding.

Andreas

pls post your coding.

Andreas

5 REPLIES 5
Read only

andreas_mann3
Active Contributor
0 Likes
1,641

pls post your coding.

Andreas

Read only

0 Likes
1,640

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

Read only

0 Likes
1,640

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

Read only

0 Likes
1,640

Dear Andress,

Probelm is in ERP 2004.

Thank you,

Lijo Joseph

Read only

0 Likes
1,640

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'.