SAP note 532914:Derivation of chars: No error message, although flag is set
The system does not issue an error message, even though the 'Issue error message if no value found' flag was set in the attributes of a derivation step of type 'Derivation Rule' or 'Table Lookup'.
CO-PA transaction code:KEDR
[@more@]Reason and Prerequisites
An entry exists in the derivation rule table or master data table, however, the field to be transferred is blank in this entry. For example, field SPART ('Division') is to be read from table MARA and placed in the CO-PA characteristic SPART ('Division'). The access to key field MARA-MATNR occurs with the CO-PA product number from characteristic ARTNR ('Product number'). An entry exists for the read product number in table MARA, however, the division for this entry is blank. You expect the system to issue an error message which it, however, does not do.
Solution
When you activate the 'Issue error message if no value found' flag, the system only issues an error message if there is no entry with the key field of the derivation rule or the table lookup. In example above, the system would only issue an error message if no corresponding entry existed in key field MATNR for the CO-PA product number in table MARA, not, however, if an entry with a blank division existed.
Example: The characteristic value in CO-PA for ARTNR is 'PUMP'. Consequently,
1. The system issues an error message if no entry with MARA-MATNR 'PUMP' exists in table MARA.
2. The system does not issue an error message if there is an entry with MARA-MATNR 'PUMP' and if the value for MARA-SPART is ' ' in table MARA.
You can create a derivation step of type 'Enhancement' instead of a derivation rule or table lookup, so that the system also issues an error message in point 2, in which the respective table is read and an error message is issued as described in the documentation for enhancement COPA0001 or for Release 4.0 in Note 124813. In the example above, derivation exit EXIT_SAPLKEDRCOPA_001 (Include ZXKKEU11) could look as follows if 'XXXX' is replaced by the respective operating concern, so that the system issues an error message in both of the cases mentioned above:
....
tables: mara.
data: ls_ce0 like ce0XXXX.
....
case i_operating_concern.
when 'XXXX'.
e_exit_is_active = 'X'.
ls_ce0 = i_copa_item.
clear mara.
select single * from mara
where matnr = ls_ce0-artnr.
if sy-subrc = 0.
if mara-spart is initial.
e_failed = 'X'.
else.
ls_ce0-spart = mara-spart.
endif.
else.
e_failed = 'X'.
endif.
e_copa_item = ls_ce0.
endcase.
....
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/46681/viewspace-880406/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- SAP Batch Derivation功能初探之二BAT
- SAP Batch Derivation功能初探之一BAT
- SAP PM 入門系列18 - IP25為維護計劃 Set Deletion Flag
- 【Exception】:own error messageExceptionError
- Error message: ORA-48913Error
- SAP SD Reference Guide: SAP NotesGUIIDE
- /var/log/message 錯誤error (network unreachable)Error
- flag
- Error message Object BOM does not allow filter on MAST.STLNRErrorObjectFilterAST
- An Introduction to Error Message Articles [ID 22080.1]Error
- error: const std::string message = "Hello" + ", world" + exclam;Error
- Although it does not provide the most Parajumpers On SaleIDE
- IPython Notebook error - Unreadable Notebook: Unsupported JSON nbformatPythonErrorJSONORM
- Python 進階之路 (四) 先立Flag, 社群最全的Set用法集錦Python
- #1. unique chars & permutationally identicalIDE
- SAP Important note on transporting tax codesImport
- 使用note++開發SAP WebClient UIWebclientUI
- note the ORA-27102: out of memory errorError
- 關於 SAP Spartacus SSR 3.4.5 版本最佳化的 reuseCurrentRendering flag
- Message "This Database is currently being used by someone else. In order to share a Notes database,Database
- Error executing Jupyter command 'notebok': [Errno 'jupyter-notebok' not found] 2Error
- SAP QM 在Quality Notification裡維護Internal Note
- MySQL 5.7.17 安裝報錯CMake Error at cmake/boost.cmake:81 (MESSAGE)MySqlError
- ORA-00600: internal error code, arguments: [LibraryCacheNotEmptyOnCloseError
- ORA-00600: internal error code, arguments: [LibraryCacheNotEmptyOnClose]Error
- ORA-00600: internal error code, arguments: [LibraryCacheNotEmptyOnClose], [],[], [], [], [], [], []Error
- nginx upload 模組build錯誤解決error: variable ‘result’ set but not used [-Werror=unused-but-set-variable]NginxUIError
- flag在index裡Index
- SQL Server TRACE FLAGSQLServer
- 網站部署後Parser Error Message: Could not load type 的解決方案網站Error
- "Failed to create empty document" error message appears when opening the BrightStor ARCserve BackupAIErrorAPP
- SAP CRM note建立按鈕被禁用的原因分析
- SAP EEM End-User Experience Monitoring Central Note
- Message(Message Pool)原始碼分析原始碼
- mysql匯入報錯Variable 'sql_notes' can't be set to the value of 'NULL'MySqlNull
- 452 Error writing file: A file cannot be larger than the value set by ulimit.ErrorMIT
- oracle安裝遇到:CreateFile() error 32 when trying set file timeOracleError
- MySQL procedure SET autocommit=0; Error Code: 1064DELIMITER $$MySqlMITError