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

Runtime Errors : - DBIF_RSQL_INVALID_RSQL

Former Member
0 Likes
1,863

Hey fellas,

Runtime Errors         DBIF_RSQL_INVALID_RSQL

Except.                   CX_SY_OPEN_SQL_DB

Already checked the forum for this issue there are many discussions regarding this but unable to find this variant so posted it.

Getting this error for this query :

START-OF-SELECTION.


     SELECT PERNR SUBTY ENDDA BEGDA AEDTM UNAME WAERS BET01 FROM PA0008

*       SELECT * FROM PA0008


     INTO CORRESPONDING FIELDS OF TABLE IT_PA0008

*      INTO TABLE IT_PA0008


     UP TO 15 ROWS.



Tried with commented lines also but same result.


Type of IT_PA0008 is as :


TYPES : BEGIN OF TY_PA0008,

           PERNR TYPE PERNR,

           SUBTY TYPE SUBTY,

           ENDDA TYPE ENDDA,

           BEGDA TYPE BEGDA,

           AEDTM TYPE AEDAT,

           UNMAE TYPE AENAM,

           WAERS TYPE WAERS,

           BET01 TYPE PAD_AMT7S,

           END OF TY_PA0008.


plzz help..



1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,819

Hello Keta,

You must change the reference to the element data.

PERNR is a structure.

TYPES : BEGIN OF TY_PA0008,

           PERNR TYPE PERNR,

I hope you help.

6 REPLIES 6
Read only

Former Member
0 Likes
1,820

Hello Keta,

You must change the reference to the element data.

PERNR is a structure.

TYPES : BEGIN OF TY_PA0008,

           PERNR TYPE PERNR,

I hope you help.

Read only

Private_Member_7726
Active Contributor
0 Likes
1,819

Hi,

Err... so... what is the actual SQL error message in the dump..?

cheers

Jānis

Read only

pavanm592
Contributor
0 Likes
1,819

Hi Ketan,

Change the type of PERNR in your types

TYPES : BEGIN OF TY_PA0008,

            PERNR TYPE P0001-pernr,

            SUBTY TYPE SUBTY,

            ENDDA TYPE ENDDA,

            BEGDA TYPE BEGDA,

            AEDTM TYPE AEDAT,

            UNMAE TYPE AENAM,

            WAERS TYPE WAERS,

            BET01 TYPE PAD_AMT7S,

            END OF TY_PA0008.


This will work for you.


Regards,

Pavan

Read only

0 Likes
1,819

Hello ,

Change pernr declaration in ty_pa0008.


PERNR TYPE PERSNO,


Thanks

Read only

Former Member
0 Likes
1,819

Hi Keta,

Change your types to this:

TYPES : BEGIN OF TY_PA0008,

           PERNR TYPE PA0008-PERNR,

           ....



regards,

Archer

Read only

Former Member
0 Likes
1,819

Thank you everyone...

Solved.. 🙂