05-25-2010 9:43 AM
Hi all,
I have to list 58 columns in the output of the list with FM REUSE_ALV_HIERSEQ_LIST_DISPLAY. It works fine upto 49 column, But when i output 50th column it goes for a short dump "MOVE_TO_LIT_NOTALLOWED_NODATA" ( Assignment error: Overwriting a protected field.). Is there any limitation of output column with REUSE_ALV_HIERSEQ_LIST_DISPLAY?
Thanks.
05-25-2010 10:59 AM
Hi,
Could you put your code here so we can help you. That error seems:
Symptom
Termination "MOVE_TO_LIT_NOTALLOWED_NODATA" in SAPLKKBL
99 fields/columns in printout.
When you call from the grid control, the field catalog is not cleaned.
Additional key words
REUSE_ALV_LIST_DISPLAY, REUSE_ALV_GRID_DISPLAY,
SAPLKKBL
MOVE_TO_LIT_NOTALLOWED_NODATA
Printout
Dump in header_filed_out
Cause and prerequisites
Only a maximum of 99 fields can be displayed in the list display of the ALV grid. More fields can be displayed in the grid control. When you call the Export/Print functions from the grid, the number of the fields is not automatically confined to 99. A termination occurs.
Solution
Reduce the field number to 99 visible fields for list output call.
but you said you "only" had 58 collums, so:
Check that the variables you are passing are not constants or string literals.
05-25-2010 10:59 AM
Hi,
Could you put your code here so we can help you. That error seems:
Symptom
Termination "MOVE_TO_LIT_NOTALLOWED_NODATA" in SAPLKKBL
99 fields/columns in printout.
When you call from the grid control, the field catalog is not cleaned.
Additional key words
REUSE_ALV_LIST_DISPLAY, REUSE_ALV_GRID_DISPLAY,
SAPLKKBL
MOVE_TO_LIT_NOTALLOWED_NODATA
Printout
Dump in header_filed_out
Cause and prerequisites
Only a maximum of 99 fields can be displayed in the list display of the ALV grid. More fields can be displayed in the grid control. When you call the Export/Print functions from the grid, the number of the fields is not automatically confined to 99. A termination occurs.
Solution
Reduce the field number to 99 visible fields for list output call.
but you said you "only" had 58 collums, so:
Check that the variables you are passing are not constants or string literals.
05-25-2010 12:39 PM
My fieldcatalog is like this. Currently column 50 to 58 has been commented. If i uncomment any of the commented line it goes for a short dump. The Data type is AUSP-ATWRT for column 47 to 52. It works for column 49 but not for other column.
But if i replace any of the commented line in Column 49 it works and displayed in the output. Seems like it is restricted to 49 column.
'H' 44 10 'ITMCAT' NO 'C' NO 'Item Category',
'H' 45 10 'CUST_SZONE' NO 'C' NO 'Cust Storage Bin',
'H' 46 10 'SALE_GRP' NO 'L' NO 'Sales Group',
'H' 47 30 'COAT_FRONT' NO 'L' NO 'Coating Front',
'H' 48 30 'COAT_BACK' NO 'C' NO 'Coating Back',
'H' 49 30 'SUBSTRATE' NO 'C' NO 'Substrate'.
* 'H' 50 30 'CALIPER' YES 'L' NO 'Caliper'.
* 'H' 51 30 'GRFILENUM' NO 'L' NO 'Graphics File #',
* 'H' 52 30 'STDESNUM' NO 'L' NO 'Structural Design #',
* 'H' 53 10 'PROHIER' NO 'L' NO 'Prod Hier #'.
* 'H' 54 40 'VTEXT3' NO 'C' NO 'Prod Hier Level 3 Description'.
* 'H' 55 10 'CREADATE' YES ' ' NO 'Creation Date',
* 'H' 56 10 'ACCASSGRP' NO 'L' NO 'A/c Assign Group',
* 'H' 57 10 'CARTCNT' NO 'L' NO 'Carton Count',
* 'H' 58 30 'EDITEXT' NO 'C' NO 'EDI Pass Text'.
'I' 44 10 'ITMCAT' NO 'C' NO 'Item Category',
'I' 45 10 'CUST_SZONE' NO 'C' NO 'Cust Storage Bin',
'I' 46 10 'SALE_GRP' NO 'L' NO 'Sales Group',
'I' 47 10 'COAT_FRONT' NO 'L' NO 'Coating Front',
'I' 48 10 'COAT_BACK' NO 'C' NO 'Coating Back',
'I' 49 10 'SUBSTRATE' NO 'C' NO 'Substrate'.
* 'I' 50 30 'CALIPER' YES 'L' NO 'Caliper'.
* 'I' 51 30 'GRFILENUM' NO 'L' NO 'Graphics File #',
* 'I' 52 30 'STDESNUM' NO 'L' NO 'Structural Design #',
* 'I' 53 10 'PROHIER' NO 'L' NO 'Prod Hier #'.
* 'I' 54 40 'VTEXT3' NO 'C' NO 'Prod Hier Level 3 Description'.
* 'I' 55 10 'CREADATE' YES ' ' NO 'Creation Date',
* 'I' 56 10 'ACCASSGRP' NO 'L' NO 'A/c Assign Group',
* 'I' 57 10 'CARTCNT' NO 'L' NO 'Carton Count',
* 'I' 58 30 'EDITEXT' NO 'C' NO 'EDI Pass Text'
.
FORM B1210_FCAT USING VALUE(P_TABTYPE)
VALUE(P_CPOS)
VALUE(P_OUTPUTLEN)
VALUE(P_FNAME)
VALUE(P_NOZERO)
VALUE(P_JUSTIFY)
VALUE(P_DOSUM)
VALUE(P_TEXT).
CLEAR AFIELD.
IF P_TABTYPE = 'H'.
AFIELD-TABNAME = 'GT_HEADER'.
ELSE.
AFIELD-TABNAME = 'GT_ITEM'.
ENDIF.
AFIELD-FIELDNAME = P_FNAME.
AFIELD-SELTEXT_L = P_TEXT.
AFIELD-SELTEXT_M = P_TEXT.
AFIELD-COL_POS = P_CPOS.
AFIELD-NO_ZERO = P_NOZERO.
AFIELD-OUTPUTLEN = P_OUTPUTLEN.
AFIELD-DO_SUM = P_DOSUM.
AFIELD-JUST = P_JUSTIFY.
APPEND AFIELD TO A_FC.
CLEAR AFIELD.
ENDFORM.
Edited by: senthil kumar on May 25, 2010 5:10 PM
Edited by: senthil kumar on May 25, 2010 5:23 PM
05-26-2010 11:17 AM
Hi all,
For some reason REUSE_ALV_HIERSEQ_LIST_DISPLAY doesnot allow its field catalog to append more than 49 columns (SAP 46C). The Only way to bring the columns in the output is to hide the columns in change layout button using gs_fieldcat-no_out = 'X'.
Thanks,
Senthil