The update program terminates with message
Error 061: Error generating program RMCX...
E 078 "UPDATE DBTAB SET F = +/- V" is only allowed for ...
The high-performance ABAP/4 command "UPDATE DBTAB SET .." is used in the generated update source code to update the data in the information structure.
This command does not allow the cumulative UPDATE of fields defined with type NUMC or CHAR, date, time in the ABAP/4 Data Dictionary.
- 1. "Cumulative update" cannot be used for fields with data type CHAR; only "data transport".
- 2. For fields with data type NUMC ..
Normally, when info structures are generated, the technical characteristics of the source fields are copied for the new fields in the info structure. Data type NUMC of the source field, however, is not allowed for the subsequent definition of the update.
By specifying a reference field in the field catalog that differs from the source field, you enable differing technical characteristics (including the data type) to be used.
Using a new reference field with data type CURR, QUAN, DEC, INT... will solve the problem.
Example: You want the "Number of shipping units" field (source field MCLIKP-ANZPK) in deliveries to be updated to an info structure. However, the source field in the delivery header is of type NUMC. If you use the "cumulative update" method, the above error occurs when generation is carried out. To get round this problem, you must use a different key figure in the information structure.
WHAT TO DO:
Define a new key figure for the "number of shipping units" and ensure that its field has different technical characteristics than source field MCLIKP-ANZPK. You can use the number fields (number of order items, number of returns items, ...) in structure MCVKENNZ1 as a reference for defining the field in the ABAP/4 Data Dictionary. Store the newly defined field in the field catalog as a reference field for the key figure "Number of shipping units".
For instructions on how to define and use a reference field, see the Implementation Guide for Logistics Controlling under "Field catalogs" in "Data retrieval". As of Release 3.0, the documentation can be found in the Implementation Guide under "Logistics - General --> Logistics Information System (LIS) --> Logistics Data Warehouse --> Data Basis --> Field Catalogs".
After having changed the field catalog, you also have to change the info structure. First, delete the old key figure "Number of shipping units" from the info structure. Second, choose the key figure again from the changed field catalog. The new reference field with the correct technical characteristics is now used to generate the info structure. Once you have generated the info structure, you must modify the update definition. For this purpose, delete the update rule for the key figure "Number of shipping units" and then create it again using the "Restore" function. Once the update rules have been defined, the update generation will no longer cause any errors.
Implement the attached corrections in Releases 3.1I through 4.6C.
Additional key words
M2078, M2, 078, UPDATE, dbtab, SET
Key word: Termination
No comments:
Post a Comment