Application Development 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: 

Get all available BAPIs and BusinessObjects via RFC

Former Member
0 Kudos
146

Hi!

I need 2 things:

1)

A remoteable function which gives me a list of all available BAPIs or remoteable functions.

2)

A remoteable function which gives me a list of all available BusinessObjects in SAP.

Thanks,

Konrad

1 ACCEPTED SOLUTION

andresousa
Product and Topic Expert
Product and Topic Expert
0 Kudos
99

Hello Konrad,

Guess I can help you with your first doubt. You can create remote Z funcion which calls a standard BAPI, as follows:

CALL FUNCTION 'BAPI_MONITOR_GETLIST'

EXPORTING

OBJECTTYPE = p_ojtpe

SHOW_RELEASE = p_rel

BAPIS_POTENTIAL = p_poten

BAPIS_NEW = p_new_pabi

BAPIS_OLD = p_old_bapi

RELEASED_BAPI = p_rel_bapi

RELEASED_FUNC = p_released_func

IMPORTING

RETURN = d_ret

TABLES

COMPONENTS2SELECT = int_cs

SYSTEMS2SELECT = int_sss

BAPILIST = int_bapilist

For the remote functions, you can query on table TFDIR to get them.

Regards,

Andre

1 REPLY 1

andresousa
Product and Topic Expert
Product and Topic Expert
0 Kudos
100

Hello Konrad,

Guess I can help you with your first doubt. You can create remote Z funcion which calls a standard BAPI, as follows:

CALL FUNCTION 'BAPI_MONITOR_GETLIST'

EXPORTING

OBJECTTYPE = p_ojtpe

SHOW_RELEASE = p_rel

BAPIS_POTENTIAL = p_poten

BAPIS_NEW = p_new_pabi

BAPIS_OLD = p_old_bapi

RELEASED_BAPI = p_rel_bapi

RELEASED_FUNC = p_released_func

IMPORTING

RETURN = d_ret

TABLES

COMPONENTS2SELECT = int_cs

SYSTEMS2SELECT = int_sss

BAPILIST = int_bapilist

For the remote functions, you can query on table TFDIR to get them.

Regards,

Andre