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

Select Statement

Former Member
0 Likes
1,041

Hi All,

Please let me know how i can correct this statement:

Select RMS_ID CASE_SPS_ID NOTES_SPS_ID

into (W_RMS_ID W_CASE_SPS_ID W_NOTES_SPS_ID)

from SCMGV_CTYPE_PPF

where CASE_TYPE = W_CASETYP.

The error message I am getting is:

"SCMGV_CTYPE_PPF" is not defined in the ABAP Dictionary as a table,

projection view or database view.

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
978

Well, What is the solution for this.

8 REPLIES 8
Read only

Former Member
0 Likes
978

Hi,

Try this..Give commas inbetween variable in the INTO clause

Select RMS_ID CASE_SPS_ID NOTES_SPS_ID

into <b>(W_RMS_ID,W_CASE_SPS_ID,W_NOTES_SPS_ID)</b>

Thanks,

Narne

Read only

srinivas_akiri
Active Participant
0 Likes
978

Hi

declare the table SCMGV_CTYPE_PPF in the TABLES clause as below:

tables: SCMGV_CTYPE_PPF.

if still it is not working then check wheather table SCMGV_CTYPE_PPF

is exists in DD or not in transaction SE11, if it is not exist then use native SQL statement as below:

EXEC SQL

Select RMS_ID CASE_SPS_ID NOTES_SPS_ID

Into (W_RMS_ID W_CASE_SPS_ID W_NOTES_SPS_ID)

from SCMGV_CTYPE_PPF

where CASE_TYPE = W_CASETYP.

END SQL.

Read only

Former Member
0 Likes
978

Thats because SCMGV_CTYPE_PPF is Case Type Maintenance.

Thanks

Aneesh.

Read only

Former Member
0 Likes
978

Still the same error message.

Read only

Former Member
0 Likes
978

Hi

As it is a maintenance view may be u cant select data from that view.

Even i have tried the same code it is giving me the same error message.

Regards

Haritha.

Read only

Former Member
0 Likes
979

Well, What is the solution for this.

Read only

Former Member
0 Likes
978

Hi Kiret,

I have checked for SCMGV_CTYPE_PPF in transaction SE12 and it is neither a database table nor a view in my SAP R3 system. I use version 4.7. Can you explain what exactly is SCMGV_CTYPE_PPF and which system are you working with.

Read only

Former Member
0 Likes
978

instead of selecting from maint view u can select from table SCMGCASETYPE



tables : SCMGCASETYPE.


Select RMS_ID CASE_SPS_ID NOTES_SPS_ID
into (W_RMS_ID W_CASE_SPS_ID W_NOTES_SPS_ID)
from  SCMGCASETYPE
where CASE_TYPE = W_CASETYP.

i think this may help u

thanks,