*----------------------------------------------------------------------* * INCLUDE ZV_OTC_MANAGER_FZ1 * *----------------------------------------------------------------------* * Do not replace the entire include. This file only contains one of the * routines. *---------------------------------------------------------------------* * FORM userexit_create_output_order * *---------------------------------------------------------------------* * This routine can be used for the following: * * * * Adding custom fields to the order grid. * * Changing standard fields. * * Adding colors, changing icons, etc. * *---------------------------------------------------------------------* FORM userexit_create_output_order. *---------------------------------------------------------------------* * Set the key field column colors for specific order types. * *---------------------------------------------------------------------* CASE t_order_header_data-auart. WHEN 'xxx'. "Your order type READ TABLE g1_l_output-color INTO l_color WITH KEY fname = 'VBELN_VA'. IF sy-subrc = 0. l_color-color-int = 1. "High intensity l_color-color-col = 6. "Red MODIFY g1_l_output-color FROM l_color INDEX sy-tabix. ELSE. l_color-fname = 'VBELN_VA'. l_color-color-int = 1. "High intensity l_color-color-col = 6. "Red APPEND l_color TO g1_l_output-color. ENDIF. READ TABLE g1_l_output-color INTO l_color WITH KEY fname = 'POSNR'. IF sy-subrc = 0. l_color-color-int = 1. "High intensity l_color-color-col = 6. "Red MODIFY g1_l_output-color FROM l_color INDEX sy-tabix. ELSE. l_color-fname = 'POSNR'. l_color-color-int = 1. "High intensity l_color-color-col = 6. "Red APPEND l_color TO g1_l_output-color. ENDIF. ENDCASE. ENDFORM.