Question:
Hello All
I am programming in both ABAP and C++ and I am using the function modules/RFRCs in my programs.
I run a fM from SE37 say RFC_READ_TABLE and if I provide the parameter - QUERY_TABLE for which I specify - T000 (table) and press execute I get the results. But the same function module when I invoke from ABAP program I need to populate the QUERY_TABLE, DELIMITER,
OPTIONS and FIELDS. Which is the best way of finding out which are all the values to populate for a RFC/FM module for calling from a program - ABAP or RFC program.
Your help is highly appreciated.
Thanks
Answer:
hi,
I'm not sure I understand quite well you question but you simply has to see wich are the mandatory parameters defined in the function interface. In your exemple, the only mandatory element is the QUERY_TABLE field which means you mustn't fill in the otherone (but you may of course).
So in order to use properlly a function module and its interface, go and see how it has been designed in the se37 transaction.
Hope it helps,
regards
S.
Answer:
Its always better to use OPTIONS to restrict (i.e where clause) and FIELDS (which are the fields you want) unless you want to get all the entries of the table. Imagin big tables, with large data volume and so many fields. (more over this FM has limitations on the length of total fields).
-Ravi.
Answer:
Have a look at the functions SWO_QUERY_* These are from the Business Object Repository.