04-21-2008 1:12 PM
Hi expert,
I have an ALV report, like the following. (It's just some part of the code, not the whole one).
When I want to print out the ALV it gives me a GETWA_NOT_ASSIGNED shortdump and says the there are unassigned fieldsymbols. Now I know if I'm not modifying the gs_layout it won't give me a shortdump during printing. Could anybody tell me why this problem occured, and how can I handle it?
....
DATA : gs_layout TYPE slis_layout_alv.
...
PERFORM F_LAYOUT.
PERFORM PRINT_REPORT.
....
FORM fill_layout .
CLEAR gs_layout.
gs_layout-coltab_fieldname = 'FARB'.
ENDFORM.
....
FORM print_report.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
it_fieldcat = it_fieldcat
is_layout = gs_layout
TABLES
t_outtab = gt_list
EXCEPTIONS
program_error = 1.
ENDFORM. " PRINT_REPORT
04-21-2008 1:26 PM
Hi Stripes,
Well, this is the problem with the Fieldcatalog.
Please check the fieldcatalog once again. There is a problem with the fieldcatalog itself.
When there is a mismatch with the fieldcatalog with the structure that the FM is showing the output then only such error occurs.
If you can give the whole code then I would have seen and specify the problem.
Try to find out the fieldcatalog problem.
Rewards points if found useful.
Regards.
Abhijit.
Edited by: Alvaro Tejada Galindo on Apr 21, 2008 5:57 PM
04-21-2008 1:29 PM
This is only a suggestion, not based on experiencing the same problem, but what about also entering the field info_fieldname. Looking at the type pools SLIS, it seems to me that both fields apply to colours. Well maybe it is mandatory to enter both fields??