Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV cannot export to Local file

Former Member
0 Likes
1,537

Hi experts,

I have a copy of the following program: RPTBAL00

when I'm trying to export to local file, it gives me an error, that GETWA_NOT_ASSIGNED. When I look at it on I find: "The termination occurred in the ABAP program "SAPLKKBL" in "GEN_FIELD_OUT2""

037900 if gs_out_flags-mcoltab = 'X' and gs_out_flags-slave ne 'X' and

037910 gs_out_flags-sum ne 'X'.

037920 lr_tabledescr ?= cl_abap_typedescr=>describe_by_name( 'LVC_T_SCOL'

> if lr_tabledescr->applies_to_data( <coltab_any> ) eq 'X'.

037940 loop at <coltab_lvc> into ls_lvc_color.

037950 move-corresponding ls_lvc_color to ls_kkbl_color.

037960 ls_kkbl_color-fieldname = ls_lvc_color-fname.

037970 append ls_kkbl_color to lt_kkbl_color.

What is the cause of this error?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
967

Hi White Stripes,

Just came across your forum topic...Has this been resolved?

If not, here goes...

Please check if there is any 'COLOR_CELL' assigned in your program.

If it exist, eliminate this line of code.

If you need to use the color scheme in your ALV, make sure you declare your internal table with:

color_cell TYPE lvc_t_scol,

Example:

data: begin of itab occurs 0,

werks like mseg-werks, "Plant

matnr like mseg-matnr, "Raw Material

maktx1 like makt-maktx, "Material Desc. (RM)

dispo1 like marc-dispo, "MRP Controller(RM)

ekgrp like marc-ekgrp, "Purchasing Group

lifnr like mseg-lifnr, "Supplier

color_cell TYPE lvc_t_scol,

end of itab.

Please give rewards if it resolved your problem.

Thanks.

Hi experts,

I have a copy of the following program: RPTBAL00

when I'm trying to export to local file, it gives me an error, that GETWA_NOT_ASSIGNED. When I look at it on I find: "The termination occurred in the ABAP program "SAPLKKBL" in "GEN_FIELD_OUT2""

037900 if gs_out_flags-mcoltab = 'X' and gs_out_flags-slave ne 'X' and

037910 gs_out_flags-sum ne 'X'.

037920 lr_tabledescr ?= cl_abap_typedescr=>describe_by_name( 'LVC_T_SCOL'

> if lr_tabledescr->applies_to_data( <coltab_any> ) eq 'X'.

037940 loop at <coltab_lvc> into ls_lvc_color.

037950 move-corresponding ls_lvc_color to ls_kkbl_color.

037960 ls_kkbl_color-fieldname = ls_lvc_color-fname.

037970 append ls_kkbl_color to lt_kkbl_color.

What is the cause of this error?

4 REPLIES 4
Read only

Former Member
0 Likes
968

Hi White Stripes,

Just came across your forum topic...Has this been resolved?

If not, here goes...

Please check if there is any 'COLOR_CELL' assigned in your program.

If it exist, eliminate this line of code.

If you need to use the color scheme in your ALV, make sure you declare your internal table with:

color_cell TYPE lvc_t_scol,

Example:

data: begin of itab occurs 0,

werks like mseg-werks, "Plant

matnr like mseg-matnr, "Raw Material

maktx1 like makt-maktx, "Material Desc. (RM)

dispo1 like marc-dispo, "MRP Controller(RM)

ekgrp like marc-ekgrp, "Purchasing Group

lifnr like mseg-lifnr, "Supplier

color_cell TYPE lvc_t_scol,

end of itab.

Please give rewards if it resolved your problem.

Thanks.

Read only

0 Likes
967

you are wonderful. thanks

Read only

Clemenss
Active Contributor
0 Likes
967

Hi White Stripes,

Until now I did not come over an ALV dump not caused by a faulty field catalog.

To eliminate this risk, you should create a dictionary structure for the itab displayed, declare the itab as type of this structure and create the field catalog using REUSE_ALV_FIELDCATALOG_MERGE or LVC_FIELDCATALOG_MERGE.

This will save time.

Regards,

Clemens

Read only

Former Member
0 Likes
967

Thanks for posting