‎2008 Feb 20 7:41 PM
Hi,
Is there any RFC/BAPI function module to get the tables/ structures of the function module.
My requirement is that I will pass the function module name and it has to give me the tables/structures used in that function module under the tables tab.
Pl let me know if you ever come across this scenario.
Thanks,
Srinivas
‎2008 Feb 20 8:08 PM
Hello Srinivas
The function module parameters are stored in table FUPARAREF.
If available you may use the RFC-enabled fm /SDF/GEN_FUNCS_FUNC_INFO_GET to retrieve all parameters (PT_PARAMS; 'T' = table).
Alternatively you may use FUNCTION_IMPORT_INTERFACE.
If you feed fm FUNCTION_GENERATE_INTERFACE (not RFC-enabled) with PT_PARAMS this function module returns you a coding stub to call the other function module. A similar fm is FUNCTION_STUB_GENERATE.
Regards
Uwe
‎2008 Feb 20 8:08 PM
Hello Srinivas
The function module parameters are stored in table FUPARAREF.
If available you may use the RFC-enabled fm /SDF/GEN_FUNCS_FUNC_INFO_GET to retrieve all parameters (PT_PARAMS; 'T' = table).
Alternatively you may use FUNCTION_IMPORT_INTERFACE.
If you feed fm FUNCTION_GENERATE_INTERFACE (not RFC-enabled) with PT_PARAMS this function module returns you a coding stub to call the other function module. A similar fm is FUNCTION_STUB_GENERATE.
Regards
Uwe
‎2008 Feb 20 9:40 PM
Hi Uwe,
Thanks much for your reply. It resolved my issue. I have given full points.
Thanks,
Srinivas