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

rfc error

Former Member
0 Likes
850

can anybody explian me, what does the floowing error mean?

SELECT name1 ort01 FROM kna1 INTO TABLE itext WHERE name1 = name1.

9 REPLIES 9
Read only

Former Member
0 Likes
834

sorry, that was a statement in the source code,

but the error says:

"Error in module RSQL accessing the database interface"

Read only

Former Member
0 Likes
834

Hi ajay,

1. NAME1 must be a variable

containing some value.

(name1 on right of 😃

regards,

amit m.

Read only

Former Member
0 Likes
834

Check whether you have created the variable 'name1'.

If the error still persists try renaming the variable.

Read only

athavanraja
Active Contributor
0 Likes
834

can you tell us the definition of the itab itext

i guess thats what is causing the problem.

Regards

Raja

Read only

Former Member
0 Likes
834

i created a RFC and

import = kunnr like knkk-kunnr

export = return like bapireturn

tables = itab like zacc_balance( which has fields like kunnr,skfor, ssobl ,total like skfor)

ssource code is:

DATA: l_skfor LIKE knkk-skfor,

l_ssobl LIKE knkk-ssobl.

SELECT skfor ssobl INTO TABLE itab

FROM knkk

WHERE kunnr EQ kunnr.

LOOP AT itab..

itab-total = l_skfor + l_ssobl.

MODIFY itab.

ENDLOOP.

ENDFUNCTION.

i want to store the difference of skfor and ssobl in my table itab.

Read only

0 Likes
834

hi again,

1 where is the problem exactly u are facing ?

2. use CORRESPONDING-FIELDS OF

SELECT skfor ssobl INTO

CORRESPONDING-FIELDS OF

TABLE itab

regards,

amit m.

Read only

0 Likes
834

The structure of itab must be similar to the structure of the select query..

Else change your select query as:

SELECT skfor ssobl

INTO <b>CORRESPONDING FIELDS OF</b> TABLE itab

FROM knkk

WHERE kunnr EQ kunnr.

Read only

0 Likes
834

Hi,

Check that in the internal table declaration you have entered all required field which you are extracting from knkk. If you accidentally leave out one object the RSQL error is dumped.

Read only

Former Member
0 Likes
834

thankyou all,

i solved the problem. it was in the select statements. i changed the source code to the following and it worked. thankyou for your help

DATA: l_skfor LIKE knkk-skfor,

l_ssobl LIKE knkk-ssobl.

SELECT skfor ssobl INTO (l_skfor, l_ssobl)

FROM knkk

WHERE kunnr EQ l_kunnr.

ENDSELECT.

itab-total = l_skfor + l_ssobl.

y_kunnr = l_kunnr.

i_balance = itab-total.

APPEND itab.

CLEAR itab.

ENDFUNCTION.