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 giving a dump

Former Member
0 Likes
1,089

hi all my below select is giving a dump

select aufk~aufnr

aufk~objnr

aufk~ktext

vbap~vbeln

vbap~posnr

  • vbap~aufnr

vbap~matnr

vbap~netwr

vbak~auart

vbak~kunnr

from aufk inner join vbap

on aufkaufnr = vbapaufnr

inner join vbak

on vbapvbeln = vbakvbeln

into corresponding fields of table t_contracts

where aufk~aufnr in s_proj

and vbap~vbeln in s_vbeln

and vbap~matnr in s_matnr

and abgru = c_abgru.

DBIF_RSQL_INVALID_RSQL

CX_SY_OPEN_SQL_DB

Can anybody tell me the way to do it?

hi all my below select is giving a dump

select aufk~aufnr

aufk~objnr

aufk~ktext

vbap~vbeln

vbap~posnr

  • vbap~aufnr

vbap~matnr

vbap~netwr

vbak~auart

vbak~kunnr

from aufk inner join vbap

on aufkaufnr = vbapaufnr

inner join vbak

on vbapvbeln = vbakvbeln

into corresponding fields of table t_contracts

where aufk~aufnr in s_proj

and vbap~vbeln in s_vbeln

and vbap~matnr in s_matnr

and abgru = c_abgru.

DBIF_RSQL_INVALID_RSQL

CX_SY_OPEN_SQL_DB

Can anybody tell me the way to do it?

7 REPLIES 7
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,045

Check whether the fields selected are mathching the fields in ur itab.

ie.no of fields must be same....

somewhere there is mistake in ur query...check it

Read only

0 Likes
1,045

Try checking for the field names in the internal table also see the last field abgru.

Read only

Former Member
0 Likes
1,045

Hello!

The field attributes of your internal table should be the same as the corresponding data dictionary fields.

Cheers!

Read only

Former Member
0 Likes
1,045

HI,

can you give some detailed infomation about your internal table t_contracts

what is the structure of is ?

Read only

Former Member
0 Likes
1,045

Hi

Try with the following select statement

select a~aufnr

a~objnr

a~ktext

b~vbeln

b~posnr

b~aufnr

b~matnr

b~netwr

c~auart

c~kunnr

into corresponding fields of table t_contracts

from aufk AS a

INNER JOIN vbap AS b ON aaufnr = baufnr

INNER JOIN vbak AS c ON cvbeln = bvbeln

where a~aufnr in s_proj

and b~vbeln in s_vbeln

and b~matnr in s_mat and abgru = c_abgru.

Regards

Madhan D

Read only

Former Member
0 Likes
1,045

firstly make inner join between vbak and vbap and then inner join in between vbap and aufk

and i think 'aufk as aufk ' clause is missing.............

with regards

pardeep sharma

Read only

Former Member
0 Likes
1,045

Hi Bhanu,

Check the declaration of the internal table. I think the Type declaration is not same with the data you are fetching fromthe select query.

Thanks,

Chidanand