- What is SAP BW?
- SAP BW Training Tutorials for Beginners
- What is SAP ODS?
- Infocube In SAP BW
- SAP Create Logical System
- Error Reading Data of Infoprovider
- SAP BW Certification Cost In India
- SAP BW Interview Questions
- TSV_TNEW_PAGE_ALLOC_FAILED in SAP BW
- SYSTEM_NO_ROLL Dump in SAP
- SAP Error Dbsql_Table_Unknown
- SAP B1 Transaction Types
Assignment error: Overwriting of a protected field.
Updated May 18, 2018
Runtime Errors: MOVE TO LIT NOTALLOWED NODATA
Hello SAP Experts,
After modification in SAP ERP Central Component (ECC) while reimporting of the Classification DataSource (1CL_*) fails in SAP Data Services 4.2. On Backend side the running process dumps in CL_SQL_RESULT_SET=>NEXT_PACKAGE .
Runtime Errors:
MOVE_TO_LIT_NOTALLOWED_NODATA
A short text is also generated:
Regenerating Error
The issue can be regenerated by trying to reimport it to SAP Data Services 4.2 after modifying structure of a Classification DataSource (1CL_*) in SAP ERP Central Component (ECC) system.
The error you are facing is caused because the method CLASS_CONSTRUCTOR of the class CL_RODPS_HANA_MODEL executes several unnecessary SQL statements while reimporting.
Please apply SAP Document 2111563 in order to resolve this error
Assignments to Field Symbols
Until now the ASSIGN statement made it possible to define addresses past field limits by specifying the offset or length. There was only a runtime error when addressing past the limits of the data segment. Cross-field accesses to the offset/length in an ASSIGN, for example, could be used to edit repeating groups.
With Unicode, however, problems occur since it is not possible to ensure that cross-field offset or length definitions can be interpreted as bytes or characters in an identical and meaningful manner in both a US and an NUS. For this reason, the ASSIGN statement was enhanced with the RANGE and INCREMENT additions while the CASTING addition now supports all variants of this statement. The RANGE addition is offered for all valid variants of ASSIGN and can be combined with the CASTING addition.
The RANGE addition
ASSIGN feld1 TO <fs> RANGE feld2.
This addition explicitly sets the range limits, making it possible to define addresses past field limits, for example to edit repeating groups with the ASSIGN INCREMENT statement.
- The field limits of field2 are used as the range for <fs>.
- In a UP, the limits specified by the RANGE definition must include the range limits that would otherwise result from the rules described above.
- If the memory area of field1 is not completely contained in field2, there is a catchable runtime error.
- Field field2, which defines the range, may also be deep. Repeating groups with deep types therefore can also be processed.
ASSIGN feld INCREMENT n TO <fs>.
The field symbol is incremented by n times the length of field, starting with the position defined by field.
First the range for the access is defined from the length of field and the INCREMENT definition of the range for the access as defined by ASSIGN fld+n*sizeof[field] (sizeof[fld]) TO <fs>. The addressed range must lie within the range limits. If it is not possible to make the assignment because the range limits were violated, SY-SUBRC is set to > 0 and the field symbol is not changed.
The range limits for ASSIGN field INCREMENT n TO <fs> are defined in exactly the same way as ASSIGN field TO <fs>. The definition of the INCREMENT therefore has no effect on the definition of the range limits.
* Loop through an elementary field
DATA: c(10) TYPE C VALUE 'abcdefghij'.FIELD-SYMBOLS: <cf> TYPE C.
ASSIGN c(2) TO <cf>. "Range limits c = DO 5 TIMES. "Field limits of cf WRITE / <cf>. ASSIGN <cf> INCREMENT 1 TO <c>. "Same limits <c>* ASSIGN <c>+2 TO <cf>. "As for ASSIGN INCREMENT ENDDO.
* Structured repeating group
TYPES: BEGIN OF comp, f1 type string, ... END OF comp.
DATA: BEGIN OF stru, x1(1) TYPE x, k1 TYPE comp, k2 TYPE comp, k3 TYPE comp, k4 TYPE comp, END OF stru.
FIELD-SYMBOLS: <comp> TYPE comp.
ASSIGN stru-k1 TO <comp> RANGE stru.
* Specify that range limits are to exceed field boundaries
DO 4 TIMES. ... ASSIGN <comp> INCREMENT 1 TO <comp>.ENDDO.
* Access an element of a repeating group dynamically
DATA: BEGIN OF stru, x1(1) TYPE x, k1 TYPE comp, k2 TYPE comp, k3 TYPE comp, k4 TYPE comp, END OF stru,
incr TYPE i.
incr = 4 - 1.ASSIGN stru-k1 INCREMENT incr TO <comp> RANGE stru.
* <comp> now points to stru-k4
The CASTING addition
The CASTING addition is allowed for all variants of the ASSIGN statement:
ASSIGN feld TO <fs> CASTING.ASSIGN feld TO <fs> CASTING TYPE type.ASSIGN feld TO <fs> CASTING TYPE (typename)ASSIGN feld TO <fs> CASTING LIKE fld.ASSIGN feld TO <fs> CASTING DECIMALS dec.
You can use ASSIGN ... CASTING to look at the contents of a field as a value of another type using a field symbol . One application for this statement would be to provide different views on a structure with casts on different types.
One wide-spread ABAP technique is to use C fields or structures as containers for storing structures of different types that are frequently only known at runtime. The components of the structure are selected with offset/length accesses to the container. Since this technique no longer works with Unicode, you can also look upon an existing memory area as a container with the suitable type definition using a field symbol with the ASSIGN ... CASTING statement. In the next example, a certain field of database table X031L is read, whereby the field and table names are only defined at runtime.
* Read a field from the table X031L
PARAMETERS: TAB_NAME LIKE SY-TNAME, "Table name TAB_COMP LIKE X031L-FIELDNAME, "Field name ANZAHL TYPE I DEFAULT 10. Number of lines
DATA: BEGIN OF BUFFER, ALIGNMENT TYPE F, "Alignment C(8000) TYPE C, "Table content END OF BUFFER.
FIELD-SYMBOLS: <WA> TYPE ANY, <COMP> TYPE ANY.
* Set field symbol with appropriate type* to buffer area
ASSIGN BUFFER TO <WA> CASTING TYPE (TAB_NAME).
SELECT * FROM (TAB_NAME) INTO <WA> UP TO anzahl ROWS. ASSIGN COMPONENT TAB_COMP OF STRUCTURE <WA> TO <COMP>. WRITE: / TAB_COMP, <COMP>.ENDSELECT.
Until now, in the ASSIGN field TO <fs> CASTING... statement, the system checked to ensure that field was at least as long as the type that was assigned to the field symbol, <fs>. (Field symbols can either be typed at declaration or the type specified in an ASSIGN statement using CASTING TYPE). The syntax check is now more thorough. Now, you can only assign the field feld provided it is at least as long - in both the UP and the NUP - as the type assigned to the field symbol <fs>. Otherwise, the system returns a syntax error. At runtime, the system only checks to see whether or not the lengths are compatible in the current system (as before).
If the field type or field symbol type is a deep structure, the system also checks that the offset and type of all the reference components match in the area of field that is covered by <fs>. The syntax check is now more thorough. Now, the system checks that these components must be compatible in all systems, whether they have a one-byte, double-byte, or four-byte character length. At runtime, the system only checks to see whether or not the reference components are compatible in the current system
In USs in the ASSIGN str TO <fs> TYPE C/N ASSIGN str TO <fs> CASTING TYPE C/N statements, the length of str may not always be a multiple of the character length, in which case the program aborts at runtime.
Use the categories used in the Dictionary when using these types with Structure Enhancements .
2388930 - ODP-BODS: MOVE_TO_LIT_NOTALLOWED_NODATA
The reimport of Classification DataSource (1CL_*) after modification inSAP ERP Central Component (ECC) fails in SAP Data Services 4.2. On Backend side (also when opening ODQMON) the running process dumps in CL_SQL_RESULT_SET=>NEXT_PACKAGE .
Category ABAP Programming Error Runtime Errors MOVE_TO_LIT_NOTALLOWED_NODATA ABAP Program CL_SQL_RESULT_SET=============CP Application Component BC-DB-DBI
Short Text Assignment error: Overwriting of a protected field. "MOVE_TO_LIT_NOTALLOWED_NODATA" "CL_SQL_RESULT_SET=============CP" bzw. CL_SQL_RESULT_SET=============CM006 "NEXT_PACKAGE"
>>>>> CALL 'C_DB_FUNCTION' ID 'FUNCTION' FIELD 'DB_SQL' 36 ID 'FCODE' FIELD c_fcode_next_package 37 ID 'CONNAME' FIELD me->con_ref->con_name 38 ID 'CONDA' FIELD me->con_ref->con_da 39 ID 'CURSOR' FIELD me->cursor 40 ID 'BOUND' FIELD me->outvals_bound 12 METHOD CL_SQL_RESULT_SET=============CP CL_SQL_RESULT_SET=============CM006 35 CL_SQL_RESULT_SET=>NEXT_PACKAGE 11 METHOD CL_RSDD_ADBC_SELECT===========CP CL_RSDD_ADBC_SELECT===========CM002 8 CL_RSDD_ADBC_SELECT=>NEXT_PACKAGE 10 METHOD CL_RODPS_HANA_MODEL===========CP CL_RODPS_HANA_MODEL===========CM00X 28 CL_RODPS_HANA_MODEL=>CLASS_CONSTRUCTOR 9 METHOD CL_RODPS_HANA_CONTEXT=========CP CL_RODPS_HANA_CONTEXT=========CM001 3 CL_RODPS_HANA_CONTEXT=>CONSTRUCTOR
CL_RODPS_DEFAULT_CONTEXT=>C_PARAMETER RODPS_ODP_CONTEXT
Environment
- SAP NetWeaver
- SAP Data Services 4.2
- SAP HANA Database
MOVE_TO_LIT_NOTALLOWED_NODATA, Operational Data Provisioning, ODP, ODQ, ODQMON, DS, Data Services, HANA, Classification Datasource, CL, CL_SQL_RESULT_SET, NEXT_PACKAGE, C_DB_FUNCTION , KBA , BW-BEX-OT-ODP , Query Runtime for Operational Data Provisioning , BC-EIM-ODP , Operational Data Provisioning (ODP) in Search&Analytics , BC-BW-ODP , Operational Data Provisioning (ODP) and Delta Queue (ODQ) , EIM-DS-SAP , SAP Interfaces , Problem
About this page
Search for additional results.
Visit SAP Support Portal's SAP Notes and KBA Search .
Privacy | Terms of use | Legal Disclosure | Copyright | Trademark
IMAGES
VIDEO
COMMENTS
Hello, I did a coding in ABAP for a new planning funktion. I need to read a field from table C_TH_DATA ( TYPE HASHED TABLE,Transaction Data), with that key i select a masterdata attribute, and the value of the attribute …
In user exit when tried to populate field fiscal quarter based on fiscal period, we're getting error" Assignment error: Overwriting a protected field". It seems like key figures can be manipulated without this problem but not characteristics , as modifying xth_data table is failing.
183 184 selection-screen : begin of block blk with frame title text-001. 185 186 parameters : p_ebeln like ekko-ebeln. 187 188 selection-screen : end of block blk . 189 * 190 start-of-selection. 191 p
The SAP Partner Groups will be INACCESSIBLE January 16-23 for a technical migration. For more information, please click the button at right to view the partner page
数据都能正常输出,但是当我 back 或者 双击 行 的时候 出 short dump,错误提示为:Assignment error: Overwriting of a protected field。经反复检查发现是在 layout 中 设定了 box_fieldname . 而设定的值对应的字段在内表中没有。
About this page This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required). Search for additional results. Visit SAP Support Portal's SAP Notes and KBA Search.
Contact Information #3940 Sector 23, Gurgaon, Haryana (India) Pin :- 122015. [email protected]
The below dump occurs in Customer Governance (BS_OVP_BP) application when trying to block a customer.
MOVE_TO_LIT_NOTALLOWED_NODATA, runtime error, dvm, ewa, SAPLAGSDVMAS_SELF_SERVICE , KBA , SV-SMG-DVM , Data Volume Management , Problem About this page This is a preview of a SAP Knowledge Base Article.
I have just spotted that further description in the short dump has that. The following are protected against changes: - Access using field symbols if the field assigned using ASSIGN is partly or completely protected (for example key components of internal table of the type SORTED or HASHED TABLE). A bit strange for me but looks like a design decision.
The field symbol is incremented by n times the length of field, starting with the position defined by field. First the range for the access is defined from the length of field and the INCREMENT definition of the range for the access as defined by ASSIGN fld+n*sizeof[field] (sizeof[fld]) TO <fs>. The addressed range must lie within the range limits.
The migration of content is taking longer than anticipated, so we won't go live on Jan. 24. The site remains read-only and inaccessible. We'll provide a new launch date as soon as we can.
KBA , CRM-MD-CON-IF , Exchange of Condition Records and Customizing Data , Problem
PROGRAM zref. DATA lr_pay_data TYPE REF TO data. FIELD-SYMBOLS <lt_pay_data> TYPE ANY TABLE. From F1 on ASSIGN: " If the reference variable dref does not reference a data object, the assignment is not performed and sy-subrc is set to 4 "ASSIGN lr_pay_data->* TO <lt_pay_data>. IF sy-subrc <> 0.
Target 000, can't import to 000, cannot import to 000, can not import to 00, can't import in 000, cannot import in 000, can not import in 000 , KBA , BC-CTS-CCO , Client Copy (For ByD issues select BC-TLM-CP) , Problem
MOVE_TO_LIT_NOTALLOWED_NODATA, Operational Data Provisioning, ODP, ODQ, ODQMON, DS, Data Services, HANA, Classification Datasource, CL, CL_SQL_RESULT_SET, NEXT_PACKAGE, C_DB_FUNCTION , KBA , BW-BEX-OT-ODP , Query Runtime for Operational Data Provisioning , BC-EIM-ODP , Operational Data Provisioning (ODP) in Search&Analytics , BC-BW-ODP , Operational Data Provisioning (ODP) and Delta Queue (ODQ ...