Wednesday, July 13, 2016

GETWA_NOT_ASSIGNED error while scheduling ALV in background

Issue :
In ALV sap report you have used color to show in output column. You have passed color code to field catalog to "emphasize" filed of your internal table. Now when you run this report in foreground, everything works fine. But when you schedule it in background , your job got failed with error "GETWA_NOT_ASSIGNED".


Cause : the possible cause is in while calling  'REUSE_ALV_GRID_DISPLAY' in the exporting parameter is_layout you might have passed field coltab_fieldname 'COLOR' and the same has not been enhanced in your output table. 

Solution : Declare a additional field "color type lvc_t_scol" into your output internal table which you are passing in 'REUSE_ALV_GRID_DISPLAY' will solve the issue.

No comments: