简体   繁体   English

BAPI_MATERIAL_GET_ALL 是 BAPI,还是只是 RFC?

[英]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.我正在使用 SWO_QUERY_API_METHODS 获取 SAP 系统中的 BAPI 列表。 But I am not getting BAPI_MATERIAL_GET_ALL, CSEP_MAT_BOM_READ and potentially others in that list.但我没有得到 BAPI_MATERIAL_GET_ALL、CSEP_MAT_BOM_READ 以及该列表中的其他可能。 Is BAPI_MATERIAL_GET_ALL a BAPI or just a RFC? BAPI_MATERIAL_GET_ALL 是 BAPI 还是 RFC?

It is definitely a BAPI because it resides in function group named by business object BUS1001006 Standard Material它绝对是一个 BAPI,因为它位于 function 组中,由业务 object BUS1001006标准材料命名

在此处输入图像描述

But I agree with Sandra this definition is very blurry as it was created long-long ago and is used hither and yon.但我同意 Sandra 的观点,这个定义非常模糊,因为它是很久以前创建的,并且一直在使用。

Use this module with version specification of when the BAPI was created.将此模块与创建 BAPI 时的版本规范一起使用。 Depending on version the output varies.根据版本,output 会有所不同。

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当然,通过在 BUS1001006 部分中找到 BAPI 事务中的模块

在此处输入图像描述

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.此外,对于您的完全混淆,有两个不同的 BAPI 在名称上几乎相同: BAPI_MATERIAL_GETALLBAPI_MATERIAL_GET_ALL ,一个较旧的和一个较旧的,第一个标记为后者的包装器。

It is a usual situation when SAP decided to revamp the API and left old stuff for legacy.当 SAP 决定改造 API 并将旧的东西留作遗留时,这是一种常见的情况。

在此处输入图像描述

So yes, things are complicated.所以是的,事情很复杂。 It is always with SAP. SAP 始终如此。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM