‎2006 Dec 04 7:12 AM
hi guys,
does anyone know if there's a standard bapi to retrieve the data from a given table?
I can't use Select statement and it will cause an error since I'm using a variable for the tablename.
Points for helpful ideas.
Thanks!
‎2006 Dec 04 7:15 AM
Use the function RFC_READ_TABLE to read any table.
Regards
Ravi
‎2006 Dec 04 7:15 AM
Use the function RFC_READ_TABLE to read any table.
Regards
Ravi
‎2006 Dec 05 6:56 AM
Thanks Ravikumar, that helps.
Can I convert this (DATA table on RFC_READ_TABLE) into a separate fields? I am using CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE that creates a dynamic table based on a number of fieldnames of p_table. And I already have an internal table for p_table = PA0001. The problem is to get the data that I got from RFC_READ_TABLE and trasfer into ref_table.
CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
EXPORTING
IT_FIELDCATALOG = lt_fcat
IMPORTING
EP_TABLE = ref_table.
‎2006 Dec 05 9:40 AM
check this code sample to handle this data table.
Regards
Raja
‎2006 Dec 04 7:16 AM
Hi,
which table do you want to read data from,
you have FM's through which you can read data,
E.g. READ_KNA1,READ_VBUK etc...
check out in SE37.
Regards,
Raghavendra
‎2006 Dec 04 7:30 AM
assume <b>t_text</b> as the variable
read_vbak where ... (give condition)
In this, whole record for the current condition will retrieve. then u can use it.
‎2006 Dec 05 6:56 AM