Assignment error: Overwriting a protected field.
Hi All,
When I try to post some data from XI through an inbound proxy to R/3, the message get stuck in the R/3 inbound queue because of the SysFail with the error "Assignment error: Overwriting a protected field."
If I goto SPROXY and debug the interface with the same message payload from the monitor, the execution runs through without any errors.
If anyone has come across this kind of situation, please throw some light.
Thanks
AJ.
Hi,
When ur sending data from Source system its giving error,in SPROXY if u post data its not giving any error.R u using any date formats in source side,this will happen when ur data is worng and XI is not transforming the data into ABAP format.
I to got same error when i have date format at source side.
'First Check what are the transformation ur using in XI mapping.all are working fine or not.
After that Take the payload of receiver side in SXMB_MONi and using it execute the proxy then u can find the error.
Regards,
Phani
Reward points if Helpful
Similar Messages
-
MultiProvider report not functioning - overwriting protected field
Hello,
I have a multiprovider that combines data from the Sales Overview cube (0SD_C03) with a custom plan cube (data from COPA and SIS). In writing queries off of the (active) multiprovider, short dumps occur except when only running against one infoprovider. In other words, if the query is restricted to only show Sales data (0SD_C03), it works fine. If the query is restricted to only show Plan data (custom plan cube), then it works fine. However, the intersection of the two does not work - which is the entire functionality of the multiprovider (a join).
I've cut the query back to the very basics: Fiscal Year and one Key Figure (that is present in both source infocubes). Without specifying or splitting out the InfoProviders, it should combine the data (total the two), but instead creates a short dump. Using a structure to split Actuals from Plan also results the short dump. The only way to get the report to actually execute and return is to restrict it to just one InfoProvider. I tried copying the MultiProvider and starting over, but that did not improve the situation. The failure occurs after the variable screen has been filled in. (Also tried w/out variables.)
Using LISTCUBE, the data is found in a single execution (no filter applied to 0INFOPROV) and splits out to the two infoproviders w/ approp. fiscal year and Key Figure totals. So there seems to be something at the reporting layer malfunctioning.
Here's the ST22 short dump:
Does anyone have any ideas?
Runtime Error MOVE_TO_LIT_NOTALLOWED_NODATA
Date and Time 07/17/2006 09:57:23
ShrtText
Assignment error: Overwriting a protected field.
What happened?
Error in ABAP application program.
The current ABAP program "SAPLRSDRC" had to be terminated because one of the
statements could not be executed.
This is probably due to an error in the ABAP program.
rror analysis
The program tried to assign a new value to the field "<L_SX_OLAPQUERY>" even though it is protected against changes.
The following objects are protected:
- Character or numeric literals
- Constants (CONSTANTS)
- Parameters of the category IMPORTING REFERENCE for functions
and methods
- Untyped field symbols to which a field has not yet been assigned
using ASSIGN
- TABLES parameters if the corresponding actual parameter is protected
against changes
- USING reference parameters and CHANGING parameters for FORMs if
the actual parameter for this is protected against changes
- Field symbols if the field assigned using ASSIGN or ASSIGNING
is protected against changes
- External write accesses to READ-ONLY attributes
- Key components of lines in internal tables of the type HASHED or
SORTED TABLE
SORTED TABLE.
Message received in web report when failure occurs:
Error when processing your request
Note
The following error text was processed in the system BW1 : Assignment error: Overwriting a protected field.
The error occurred on the application server bw_BW1_00 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Function: RSDRC_CUBE_DATA_GET_DISP of program SAPLRSDRC
Function: RSDRC_MULTI_CUBE_DATA_GET_PARA of program SAPLRSDRC
Function: RSDRC_MULTI_CUBE_DATA_GET of program SAPLRSDRC
Form: DATA_GET of program SAPLRSDRC
Function: RSDRC_CUBE_DATA_GET of program SAPLRSDRC
Function: RSDRC_CUBE_DATA_GET_OLAP of program SAPLRSDRC
Form: FILL_SP_1 of program SAPSRRK0
Form: FILL_SP of program GP42GWU130B57UDR97PLRZOUC5Z
Form: DATEN_LESEN of program SAPLRRK0
Function: RRK_LIST_NOTIFY of program SAPLRRK0
Thanks in advance!Hello
Check OSS notes as below am not sure if it helps
957439 - Query dumps with an error
Below is for 3.5 and below ,just to let you know that there were similar problems in earlier version.
941862 - *** Dump MOVE_TO_LIT_NOTALLOWED_NODATA with MultiProvider
Chetan
@CP.. -
Field Symbol not assigned Error SAP R3 46c
Good day,
so what i want is:
assigning a component of a field symbol to another field-symbol to access its values.
This works very well in SAP 47 releases but doesn t work in sap 46c or do i do something wrong?
REPORT Z_GL_FIELDSYMBOLS .
Data:
begin of mytest,
int type i,
int2 type i,
end of mytest,
l type string.
Field-Symbols: <f> type any,
<g> type any.
Start-of-selection.
assign mytest to <f>.
l = '<f>-int'.
assign (l) to <g>.
<g> = '1'.
write :/ <g>.
end-of-selection.
Is there any way to do what i want to do apart from the statement "CREATE SUBROUTINE POOL"?the only problem is:
i know the components of the structure only at runtime, i.e.
i don´t know if my field 'int' exists. perhaps its name is 'intsomewhat', you know?
so i have to do a dynamic assign...
You have to know,
in my actual coding i assigned a reference to a data object to the field symbol..
thus,
something like
assign dref->* to <fs>
was done.
now i want to access single components of the field symbol.
the name of the components are known and are stored in a string.
hmmmm.
so the string contains something like '-MATNR'.
if i assign this string to a field-symbol nothing happens
in my system.
the same coding works without an error in a 47 system.
Message was edited by: Gideon Lenz -
Field Symbol not assigned error
Hello all...
I am a functional BI guy but having some problems with some BPS exit code (in charisteristic relationships) ...
any idea why I would get a 'field symbol not assigned' error with the below?
The code is straight out of How to: Lines Items in BPS
Short dump says: GETWA_NOT_ASSIGNED
Thanks all
*"*"Local interface:
*" IMPORTING
*" VALUE(I_AREA) TYPE UPC_Y_AREA
*" REFERENCE(ITO_CHA) TYPE UPC_YTO_CHA
*" CHANGING
*" REFERENCE(XS_CHAS) TYPE ANY
*" EXCEPTIONS
*" FAILED
FIELD-SYMBOLS: <l_chavl> TYPE ANY.
* fill ID
ASSIGN COMPONENT 'zbpsguid' OF STRUCTURE xs_chas
TO <l_chavl>.
CALL FUNCTION 'GUID_CREATE'
IMPORTING
ev_guid_32 = <l_chavl>.
* fill user
ASSIGN COMPONENT '0UNAME' OF STRUCTURE xs_chas
TO <l_chavl>.
<l_chavl> = sy-uname.
* fill date
ASSIGN COMPONENT '0DATE' OF STRUCTURE xs_chas
TO <l_chavl>.
<l_chavl> = sy-datlo.
* fill time
ASSIGN COMPONENT '0TIME' OF STRUCTURE xs_chas
TO <l_chavl>.
get time field <l_chavl>.
ENDFUNCTION.i just figured it out when you sent me your reply...
it works!
genius! -
BSP ASSIGNMENT ERROR WHEN SELECT A TAB IN TABSTRIP
Hi all,
I have a dump when select one of the four tabs, in which three working fine.
Plese see the below dump and help as soon as possible.
Runtime Errors MOVE_TO_LIT_NOTALLOWED
Exception CX_SY_DYN_CALL_ILLEGAL_TYPE
Occurred on 09/18/2006 at 20:51:05
What happened?
Error in ABAP application program.
The current ABAP program "CL_BSP_MODEL==================CP " had to be
terminated because one of the
statements could not be executed.
This is probably due to an error in the ABAP program.
Error analysis
An exception occurred. This exception is dealt with in more detail below
. The exception, which is assigned to the class 'CX_SY_DYN_CALL_ILLEGAL_TYPE',
was neither
caught nor passed along using a RAISING clause, in the procedure
"IF_BSP_MODEL_UTIL~CONVERT_FROM_STRING" "(METHOD)"
Since the caller of the procedure could not have expected this exception
to occur, the running program was terminated.
The reason for the exception is:
You attempted to overwrite the field "<L_FIELD>", although it is a
constant (i.e. a numeric literal or a string literal). This is not
allowed.
The following objects are protected:
- Character or numeric literals
- Constants (CONSTANTS)
- Function module and method parameters with the type IMPORTING
REFERENCE
- Untyped field symbols that have not yet had a field assigned to them
using ASSIGN
- TABLES parameters, if the actual parameter is protected against
changes
- USING reference paraemters and CHANGING parameters in FORMs if the
actual parameter is protected against changes
- Field symbols, if the field assigned to them using ASSIGN is protected
against changes (for example, key components of a SORTED or HASHED
TABLE)
- External write access to an attribute with the READ-ONLY attribute
I have the below error in webpage.
500 SAP Internal Server Error
Error message: Assignment error: A constant was meant to be overwritten. ( type of termination: RABAX_STATE
if anybody have solution to this please help me.
Thanks in advance.
Saravanan.VHi,
Go through the sample bsp application <b>SBSPEXT_HTMLB-> TabStrip.bsp</b> and check where you are going wrong.
Post the code to point out where you are going wrong.
Regards,
Azaz Ali. -
Error Message-- For Balancing field "Profit Center" is not filled
Hi All,
When I do Shipment Start get Error-Message for Balancing field "Profit Center" is not filled!
A PGI for the DNXXXXXXXX is not possible!
Can u please help me how to resolve this issue ?
WM BabyHi,
AS per configuration , there is prifit centre assignment .Enter the profit centre in the field of profit centre by the help opf F4.
Regards,
Andra -
Assigning a value to a field-symbol (workarea of type any)
Dear forumers,
I'm having a bit of difficulty in assigning a value to a field-symbol (it should be treated as a workarea of type any), but I'm given a syntax error instead:-
The data object "<LFS_WORKAREA>" has no structure and therefore no component called "LFMON".
What could have gone wrong and how may I resolve this (I must have missed something out)? I will still need <LFS_WORKAREA> to be defined as TYPE ANY.
Please help. I'd appreciate any inputs at all. Thanks.
*& Form FORMAT_POST_PERIOD
* Subroutine to format the posting period data
* --> PI_MBEW Material valuation data (internal table)
FORM format_post_period CHANGING pi_mbew TYPE ANY TABLE.
" Create local field symbols
FIELD-SYMBOLS:
<lfs_workarea> TYPE ANY,
<lfs_lfmon> TYPE ckmlcr-poper.
" Create local variables
DATA: lv_index TYPE sy-tabix.
DATA: lv_lfmon TYPE ckmlcr-poper.
" Format posting periods
LOOP AT pi_mbew ASSIGNING <lfs_workarea>.
lv_index = sy-tabix.
ASSIGN COMPONENT 'LFMON' OF STRUCTURE <lfs_workarea> TO <lfs_lfmon>.
PERFORM convert_lfmon USING <lfs_lfmon>
CHANGING lv_lfmon.
MOVE lv_lfmon TO <lfs_workarea>-lfmon. " the syntax error occurs here :(
MODIFY pi_mbew FROM <lfs_workarea>
INDEX lv_index
TRANSPORTING lfmon.
CLEAR: <lfs_workarea>,
<lfs_lfmon>
lv_lfmon,
lv_index.
ENDLOOP.
ENDFORM. " FORMAT_POST_PERIODMost of us aren't in it for the points in any case...
For your solution you've redundant code:
*& Form FORMAT_POST_PERIOD
* Subroutine to format the posting period data
* --> PI_MBEW Material valuation data (internal table)
FORM format_post_period CHANGING pi_mbew TYPE ANY TABLE.
FIELD-SYMBOLS:
<lfs_workarea> TYPE ANY,
<lfs_lfmon> TYPE ckmlcr-poper.
DATA: lv_lfmon TYPE ckmlcr-poper.
* DATA: lo_workarea TYPE REF TO data. "<--Not needed, because the LOOP AT ASSIGNING below does the work
* CREATE DATA lo_workarea LIKE LINE OF pi_mbew.
* ASSIGN lo_workarea->* TO <lfs_workarea>.
LOOP AT pi_mbew ASSIGNING <lfs_workarea>.
ASSIGN COMPONENT 'LFMON' OF STRUCTURE <lfs_workarea> TO <lfs_lfmon>.
PERFORM convert_lfmon USING <lfs_lfmon>
CHANGING lv_lfmon.
<lfs_lfmon> = lv_lfmon.
CLEAR lv_lfmon.
ENDLOOP.
ENDFORM. " FORMAT_POST_PERIOD
Here's a couple of more efficient solutions, using LOOP AT INTO.
FORM format_post_period CHANGING pi_mbew TYPE INDEX TABLE. " <-- Table type a little more specific
"<--now you can use index operations
FIELD-SYMBOLS:
<lfs_workarea> TYPE ANY,
<lfs_lfmon> TYPE ckmlcr-poper.
DATA: lv_lfmon TYPE ckmlcr-poper,
lv_index TYPE sytabix.
DATA: lo_workarea TYPE REF TO data.
CREATE DATA lo_workarea LIKE LINE OF pi_mbew.
ASSIGN lo_workarea->* TO <lfs_workarea>.
ASSIGN COMPONENT 'LFMON' OF STRUCTURE <lfs_workarea> TO <lfs_lfmon>.
LOOP AT pi_mbew INTO <lfs_workarea>.
lv_index = sy-tabix.
PERFORM convert_lfmon USING <lfs_lfmon>
CHANGING lv_lfmon.
<lfs_lfmon> = lv_lfmon.
MODIFY pi_mbew FROM <lfs_workarea>
INDEX lv_index. " <--INDEX TABLE, so this is permitted.
CLEAR lv_lfmon.
ENDLOOP.
ENDFORM. " FORMAT_POST_PERIOD -
Account Assignment Error When Posting GI Against Sales Order
Hello SAP Experts,
We are currently experiencing a problem during goods issueance against sales order (VL02N). The system terminates the issueance and gives error:
"Account XXXXXX requires an assignment to a CO object".
We have tried maintaining the GL account in OKB9 and assign a default profit center there but i didn't work. The material master also contains the profit center. We were only able to post the transaction if we try to default the a cost center in FS00. However we dont want to assign a default cost center as cost centers differ by plant. We are wondering why it asks the cost center considering that it already contains the sales order assignment. We checked the field selection of the GL account, movement type and even the posting key and all showed that the cost center is not required. We are now in a dead end situation here. Please please help us.
Thanks in advance!Hello Praveen,
Thank you for your immediate response.
What confuses me is the fact that it asks for a CO element when in fact it is already assigned to one (it is goods issuance against sales order). Do you know why is the system behaving that way?
Thanks!. -
Password protect fields in interactive pdf
Hi all,
I have completed an interactive pdf online form and I want to make one of the sections (several fields) password protected. So two questions:
How do you password protect fields?
Do you have to apply password protection to each individual field or can you highlight a section (several fields) and password protect the whole section?
Would really appreciate some help.
Thanks so much. . .Many thanks George for your helpful advice. It is appreciated.
Bridie Hanifee
Pearson Trueman & Associates
T:: +61 3 9864 7107
F:: +61 3 9866 4811
www.pearsontrueman.com<http://www.pearsontrueman.com>
Please consider the environment before printing this email
CAUTION - this message may contain privileged and confidential information intended only for the use of the addressee/s named above. If you are not the intended recipient of this message you are hereby notified that any use, dissemination, distribution, or reproduction of this message is prohibited. If you have received this message in error, please notify the sender immediately. -
Hi.
In inheritance, when a field is protected, I can access it in the subclass, but I can't access it from an instance of the parent class (the packages are different). Example:
package parent;
public class Parent {
protected int j = 17;
package child;
class Child extends Parent {
void m() {
new Parent().j = 18; // compiler error
}However, when the field is static, referencing it from the Child class works fine:
package parent;
public class Parent {
static protected int j = 17;
package child;
class Child extends Parent {
void m() {
new Parent().j = 18; // works fine
Parent.j = 19; // so does this
}Could someone explain this to me? Is this a bug of the java implementation I am testing this on?Could someone explain this to me? Is this a bug of the java implementation I am testing this on?It's not a bug. Aside from the static issue already addressed, protected members are accessible from implementation code. Example:
package a; // <------ Note this.
public class Foo {
protected void fun() {}
package b; // <---- And this.
import a.Foo;
class Main extends Foo {
void test() {
fun(); // this will work; part of implementation
Main m = new Main();
m.fun(); // this will work, too;
Foo f = (Foo) m;
f.fun(); // *this* won't work.
}~ -
Error in updating ALV field catalog in selection tool for Planning Book
Hi ,
I am Implementing BADI '/SAPAPO/SDP_SELECTOR' to upload Custom Fields Data in Planning Book Selection Window under APO Location Product. These Custom Fields are maintained in Custom Table.So from Table whatever Custom Fields are availabe all the fields needs to be available in for selection. Once selection is done the same data to be uploaded into Planning Book.
This BADI is working Fine upto 4 fields but if any extra fields are added in the table 'Error in updating ALV field catalog in selection tool' error Pop Up is coming. Here i am using Folloowing Methods
1). INIT_OBJECT_LIST
2). F4
3). LOC_PROD_VALUE_LIST
Please help on the same if u have any idea or clue.
Thanks.Hi Srinivas!
Where did you get your implementation from?
It would be nice if you could debug your code!
For the F4 method, have you seen this note?
Note 544904 - Sample source code f.BAdI /SAPAPO/SDP_SELECTOR ('F4'method)
Also check this note. It contains selection modifications in the BAdI:
Note 376902 - SDP selector: Basis corrections for BADI
I do not know your release and support package in your SCM, but you can find a lot of notes related to this BAdI.
Thank you!
Will
SCM Support Consultant -
Error in updating ALV field catalog in selection
Dear all,
I'm trying to use the standard transaction /SAPAPO/TSKEYFMAIN in order to check the TS values.
After filling the selection variant, the system shows the following error:
'Error in updating ALV field catalog in selection'
Could you please provide me with further details about the error? What could be the possible solution to avoid it?
Many thanks,
SMHi Marius,
thanks for your answer.
I would like to use the /SAPAPO/TSKEYFMAIN transaction to check massively the values in the time series KFs and not just the consistency of them.
So do you know any other transaction to do it or do you have an idea about the error of /SAPAPO/TSKEYFMAIN?
Thanks for your help!
SM -
How can i assign value to the certain field in dynmic table ?
i have created a dynmic table .now i want to assign value to the certain field,how can i do that?
for eg,
<dyn_table> contains fields of name age ,now i want assign 'jack' to this internal talbe's field name ,Hi,
try this:
FIELD-SYMBOLS: <GT_ITAB> TYPE TABLE,
<GS_ITAB>,
<FS>, <FS1>.
DATA: GT_DATA TYPE REF TO DATA.
DATA: GS_DATA TYPE REF TO DATA.
START-OF-SELECTION.
CREATE DATA GT_DATA TYPE TABLE OF PA0002.
ASSIGN GT_DATA->* TO <GT_ITAB>.
CREATE DATA GS_DATA LIKE LINE OF <GT_ITAB>.
ASSIGN GS_DATA->* TO <GS_ITAB>.
ASSIGN COMPONENT 'NACHN' OF STRUCTURE <GS_ITAB> TO <FS>.
<FS> = 'Smith'.
ASSIGN COMPONENT 'VORNA' OF STRUCTURE <GS_ITAB> TO <FS>.
<FS> = 'Paul'.
APPEND <GS_ITAB> TO <GT_ITAB>.
ASSIGN COMPONENT 'NACHN' OF STRUCTURE <GS_ITAB> TO <FS>.
<FS> = 'Jones'.
ASSIGN COMPONENT 'VORNA' OF STRUCTURE <GS_ITAB> TO <FS>.
<FS> = 'Martin'.
APPEND <GS_ITAB> TO <GT_ITAB>.
LOOP AT <GT_ITAB> INTO <GS_ITAB>.
ASSIGN COMPONENT 'NACHN' OF STRUCTURE <GS_ITAB> TO <FS>.
ASSIGN COMPONENT 'VORNA' OF STRUCTURE <GS_ITAB> TO <FS1>.
WRITE: / <FS>, <FS1>.
ENDLOOP.
Regards, Dieter -
HTML DB Color Error message in a field - how to set them
Hi everyone,
I want to know where I can set the color of an error message in a field ?
In our page model, on an required field: the message is black
and on an optional field: the message is red.
I want both of them red.
Thank you. Bye.Hi Carl,
I have a similar issue. I am using Theme 20 and error messages per item as well as page level error messages are coming up in Blak. Is there a way to show them in Red?
Thanks,
Bhavesh -
Error While Creating New Field thru EEWB
Hello CRM Experts,
I have found following Error while adding New Fields through EEWB. Can any one help to analyse and give the solution?
It gives Error Log as- System type OLTP with role DEV is not specified correctly. System type OLTP with role DEV is not specified correctly
Thanks for your reply in advance.Hi Priya,
We are also facing similar error in EEWB. If you have solved this problem, please update thread.
Thanks
Dhanraj
Maybe you are looking for
-
JMS error while looking up from Client
Hi I am looking up a JMS factory though a stand alone client in SAP web as Sp 15. While looking up through JNDI we are getting a deserialisation error . I have included all the j2ee client jars in the classpath. Any idea do we need to include some o
-
Installing WebLogic on Windows 7 64-bit
I am new to weblogic and am trying to install it on my local machine but am having major issues. I found a document that stated I should have a "jar" folder in my MW_HOME but there is no such folder. I found a note where it says to perform the comman
-
ChaRM:Logical Components for Projects
Hi Experts, I have done ChaRM config and i am about to create logical components for the project Project. I have below two questions please help. While creating a logical component when i have multiple clients in DEV, QAS and PRD how to proceed and s
-
Syntax error in programme on a real time query
Hi all I have created a programme which sits on a real time cube which then sits on an aggregation level and the query that sit on it now comes up with the following error. I removed a key figure which i did not need and it has been removed in all a
-
Why do we not have the "Hunger Games" series?
I bought my iPad mainly for the iBooks for school and liesure reading,..... I was SO DISAPPOINTED when the first books for liesure reading I had planned to buy were not available on iBooks except as an audiobook. I like reading not listening to a boo