on 09-03-2014 8:31 AM
I am using a planning function EXIT for my planning cube. I have some info objects like unit/ material which are my dimensions/characteristics in my cube.
In my planning function, I am overwriting contents/ assigning values to these info objects [dimensions/characteristics] using class method program.
I am using field symbols to access this hashed table.
But it is giving run time error as "MOVE_TO_LIT_NOTALLOWED_NODATA" Error at assignment: Overwritten protected field. For key figures, it is behaving OK.
Is there any alternate solution for this?
Hi,
are your chars changeable in the aggregation level?
Other solution is to create a copy of the hashed table using assign and dref.
Then make changes in the coopy table, clear the hashed table and move contents of your copy table to the hash table.
Regards,
Jürgen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
that's ok, then you have to do following in the execution method of your planning function:
data: lv_dref TYPE REF TO data.
FIELD-SYMBOLS:
<lv_wa_data> TYPE any,
<lv_wa> TYPE any.
CREATE DATA lv_dref LIKE LINE OF c_th_data.
ASSIGN lv_dref->* TO <lv_wa_data>.
ASSIGN lv_dref->* TO <lv_wa>.
LOOP AT c_th_data ASSIGNING <lv_wa_data>.
MOVE <lv_wa_data> TO <lv_wa>.
* make changes to <lv_wa> as necessary
INSERT <lv_wa> INTO TABLE c_th_data.
IF sy-subrc NE 0.
MODIFY TABLE c_th_data FROM <lv_wa>.
ENDIF.
ENDIF. "Read BI_HVERS
ENDLOOP.
Hope it gives you an idea
Regards
Juergen
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.