简体   繁体   English

使用 FM COCF_SN_CREATE_PP 创建班次注释时出现“无效目录条目”错误

[英]' invalid catalog entry ' error when create shift note using FM COCF_SN_CREATE_PP

I am trying to create a shift note using the Function Module COCF_SN_CREATE_PP but when I entered the category value I get error我正在尝试使用 Function 模块COCF_SN_CREATE_PP创建班次注释,但是当我输入类别值时出现错误

invalid catalog entry无效的目录条目

How can I fix that error to create the note.如何修复该错误以创建便笺。

The image from the SE37 for testing the FM:来自SE37的用于测试 FM 的图像:

se37 " COCF_SN_CREATE_PP "

I create the shift note with the same values in SHN1 , and it created normal, if I entered a wrong value in category in FM, I get an error ' not exit value '.我在SHN1中创建了具有相同值的班次注释,它创建了正常,如果我在 FM 的类别中输入了错误的值,我会收到错误“ not exit value ”。 I want to create a shift note using FM ( COCF_SN_CREATE_PP ).我想使用 FM ( COCF_SN_CREATE_PP ) 创建一个班次说明。 but I got an error with the category.但我的类别有误。

You can try to omit this value while calling the FM, for me it works like this:您可以在调用 FM 时尝试省略此值,对我来说它的工作原理如下:

DATA: ret TYPE bapirettab.
DATA: num TYPE cocf_sn_notifnum.

CALL FUNCTION 'COCF_SN_CREATE_PP'
  EXPORTING
    i_workcenter          = '1111'
    i_incident_start_date = '20200609'
    i_incident_start_time = '101000'
  IMPORTING
    e_sn_number           = num
  TABLES
    et_return             = ret.

To verify your category input you can check QPCD table, all the categories reside in column CODE by KATALOGART = 5 , however your customizing data can very.要验证您的类别输入,您可以检查QPCD表,所有类别都位于KATALOGART = 5的列CODE中,但是您的自定义数据可以。

I solved this problem finally, it was in the IMG activity.我终于解决了这个问题,它在 IMG 活动中。

You have checked the following settings in Customizing for the Shift Note in the IMG activity Catalogs and Catalog Profiles for Notification Type:您已在 IMG 活动目录和通知类型的目录配置文件的自定义班次注释中检查了以下设置:

For the desired notification type, choose a catalog profile, such as 000000001 general catalog profile.对于所需的通知类型,选择目录配置文件,例如 000000001 常规目录配置文件。 In the Coding field, choose a catalog type, such as 9 defect types.在编码字段中,选择目录类型,例如 9 种缺陷类型。 check the Prerequisites: https://help.sap.com/erp_hcm_ias2_2015_02/helpdata/en/f9/d2b65334e6b54ce10000000a174cb4/content.htm?no_cache=true检查先决条件: https://help.sap.com/erp_hcm_ias2_2015_02/helpdata/en/f9/d2b65334e6b54ce10000000a174cb4/content.htm?no_cache=true

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

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