‎2008 Aug 11 6:21 AM
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.
‎2008 Aug 11 6:24 AM
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.
‎2008 Aug 11 6:24 AM
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.
‎2008 Aug 11 6:33 AM
‎2008 Aug 11 8:57 AM