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

Reading data from BW table

Former Member
0 Likes
560

I have a requirement where i need to read data from a BW table in my ABAP program, can anyone help me on how to do it? Please reply ASAP.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
488

Hi Rohit,

Ans: You can read the data by using the FM 'RFC_READ_TABLE'. The code for this is:

CALL FUNCTION 'RFC_READ_TABLE'

EXPORTING

query_table = c_tabname

TABLES

OPTIONS = it_options

fields = it_fields

data = it_data

EXCEPTIONS

table_not_available = 1

table_without_data = 2

option_not_valid = 3

field_not_valid = 4

not_authorized = 5

data_buffer_exceeded = 6

OTHERS = 7.

Regards,

Prashant.

3 REPLIES 3
Read only

Former Member
0 Likes
489

Hi Rohit,

Ans: You can read the data by using the FM 'RFC_READ_TABLE'. The code for this is:

CALL FUNCTION 'RFC_READ_TABLE'

EXPORTING

query_table = c_tabname

TABLES

OPTIONS = it_options

fields = it_fields

data = it_data

EXCEPTIONS

table_not_available = 1

table_without_data = 2

option_not_valid = 3

field_not_valid = 4

not_authorized = 5

data_buffer_exceeded = 6

OTHERS = 7.

Regards,

Prashant.

Read only

Former Member
0 Likes
488

hi,

Related problem is discussed in the thread.

Hope this will help.

Regards

Sumit Agarwal

Read only

Former Member
0 Likes
488

Thank you all for your help.

Regards,

R Lahiri.