因此,我被赋予了从ECC提取质量通知数据的任务。我选择的路径是找到一个可以将数据提取到表中并使用SE37编写FM的BAPI。
在搜索了一段时间后,我发现了一个叫做"BAPI_QUALNOT_GETDETAIL".的BAPI我目前面临的问题是如何将数据填充到BAPI的导出表中。

从上面的截图中可以看出,详细信息可以在QMEL表中找到。
下面是我实现BAPI的方法;
CALL FUNCTION 'BAPI_QUALNOT_GETDETAIL' "QM Notification: Read Detail Data
EXPORTING
number = '200360210' " bapi2078_nothdre-notif_no Message Number
IMPORTING
notifheader_export = bapi2078_nothdre_t " bapi2078_nothdre BAPI Quality Notification Header
notifhdtext = bapi2078_nothdtxte_t " bapi2078_nothdtxte Text Fields for Notification Header
TABLES
notlongtxt = bapi2078_notfulltxti_t " bapi2078_notfulltxti Notification Long Text
* notitem = " bapi2078_notiteme Work Table for Notification Item
* notifcaus = " bapi2078_notcause Notification Cause
* notifactv = " bapi2078_notactve Work Structure Activities
* notiftask = " bapi2078_nottaske Work table for tasks
* notifpartnr = " bapi2078_notpartnre Partner(s) for Display
* return = " bapiret2 Return Parameter(s)
. " BAPI_QUALNOT_GETDETAIL我调用BAPI的方式是否有错误,因为我无法获得数据。
发布于 2016-07-27 06:22:25
您必须提供与内部处理完全相同的密钥。很可能会有一个类似于转换例程的ALPHA,在显示数字时会取消前导零,并在输入数字时添加它们。您可以在事务SE16N中关闭此例程以进行检查。但是,对于用户来说,这只是一个方便的实现--开发人员总是必须提供完整的值,如果它是一个基于字符的键字段,则包括前导零(但是对于INT4这样的数字类型不是这样)。
https://stackoverflow.com/questions/38596014
复制相似问题