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

Reg RFC/BAPI function module

Former Member
0 Likes
436

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

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
402

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

2 REPLIES 2
Read only

uwe_schieferstein
Active Contributor
0 Likes
403

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

Read only

0 Likes
402

Hi Uwe,

Thanks much for your reply. It resolved my issue. I have given full points.

Thanks,

Srinivas