当前位置:网站首页>SAP ALV color code corresponding color (finishing)

SAP ALV color code corresponding color (finishing)

2022-07-06 03:23:00 rogerix4

1. ALV Color code rules

  • SAP The color code consists of three control codes ( As shown below
    01

2. ALV The correspondence between color code and color

  • Color code correspondence
    02

3. ALV Use of color codes

  • Line item level

    • 1. The inner table defines the color field :color TYPE char4.
      1
    • 2.Layout Set up :gs_layout-info_fname = ‘COLOR’.
      2
    • 3. Internal table setting :gs_data-color = ‘C###’.(### Three digit color code )
      3
  • Cell level

    • 1. The inner table defines the color field :color TYPE lvc_t_scol.
      4
    • 2.Layout Set up :gs_layout-ctab_fname = ‘COLOR’..
      5
    • 3. Internal table setting :
      • ls_color-fname = ‘field_name’. (field_name Set the field of color )
      • ls_color-color-col = ‘#’.(# Color code comes first )
      • ls_color-color-int = ‘#’.(# Color code second )
      • ls_color-color-inv = ‘#’.(# Color code third )
      • take ls_color Attach to gs_layout-color[] surface
        6
原网站

版权声明
本文为[rogerix4]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207060311492496.html