Search code examples
sap-erpsaprfcbapi

Is BAPI_MATERIAL_GET_ALL a BAPI, or just a RFC?


I am using SWO_QUERY_API_METHODS to get list of BAPIs in the SAP system. But I am not getting BAPI_MATERIAL_GET_ALL, CSEP_MAT_BOM_READ and potentially others in that list. Is BAPI_MATERIAL_GET_ALL a BAPI or just a RFC ?


Solution

  • It is definitely a BAPI because it resides in function group named by business object BUS1001006 Standard Material

    enter image description here

    But I agree with Sandra this definition is very blurry as it was created long-long ago and is used hither and yon.

    Use this module with version specification of when the BAPI was created. Depending on version the output varies.

    CALL FUNCTION 'BAPI_MONITOR_GETLIST'
     EXPORTING
       SHOW_RELEASE            = '620'
     TABLES
       BAPILIST                = api
     .
    

    Where to get version? Of course, by finding the module in BAPI transaction in the BUS1001006 section

    enter image description here

    Moreover, for your total confusion there are two different BAPIs almost identical in names: BAPI_MATERIAL_GETALL and BAPI_MATERIAL_GET_ALL, one older and one yonger, and the first marked as a wrapper for the latter.

    It is a usual situation when SAP decided to revamp the API and left old stuff for legacy.

    enter image description here

    So yes, things are complicated. It is always with SAP.