获取质量通知 SAP - BAPI_QUALNOT_GETDETAIL
Get Quality Notification SAP - BAPI_QUALNOT_GETDETAIL
所以我被赋予了尝试从 ECC 中提取质量通知数据的任务。我选择的路径是找到一个可以将数据提取到 tables 中的 BAPI,并使用 SE37.
编写一个 FM
经过一番谷歌搜索后,我发现了一个名为 "BAPI_QUALNOT_GETDETAIL" 的 BAPI。我目前面临的问题是将数据填充到 BAPI 的导出 tables 中。
从上面的屏幕截图可以看出,QMEL 中提供了详细信息 table。
以下是我实现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 的方式是否有错误,因为我无法获取数据。
您必须提供与内部处理完全相同的密钥。很可能会有一个 conversion routine 像 ALPHA
这样的地方,它在显示数字时抑制前导零,并在输入数字时添加它们。您可以在事务 SE16N
中关闭此例程以进行检查。然而,这只是为用户提供便利的实现 - 开发人员始终必须提供完整的值,如果它是基于字符的键字段(但不适用于 INT4
等数字类型),则包括前导零。
所以我被赋予了尝试从 ECC 中提取质量通知数据的任务。我选择的路径是找到一个可以将数据提取到 tables 中的 BAPI,并使用 SE37.
编写一个 FM经过一番谷歌搜索后,我发现了一个名为 "BAPI_QUALNOT_GETDETAIL" 的 BAPI。我目前面临的问题是将数据填充到 BAPI 的导出 tables 中。
从上面的屏幕截图可以看出,QMEL 中提供了详细信息 table。
以下是我实现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 的方式是否有错误,因为我无法获取数据。
您必须提供与内部处理完全相同的密钥。很可能会有一个 conversion routine 像 ALPHA
这样的地方,它在显示数字时抑制前导零,并在输入数字时添加它们。您可以在事务 SE16N
中关闭此例程以进行检查。然而,这只是为用户提供便利的实现 - 开发人员始终必须提供完整的值,如果它是基于字符的键字段(但不适用于 INT4
等数字类型),则包括前导零。