SALV Table - Colors in Rows and Columns [english]

Поділитися
Вставка
  • Опубліковано 30 січ 2025

КОМЕНТАРІ • 28

  • @ablazefire9572
    @ablazefire9572 Рік тому

    I Love this, helped me out so much it regrew lost hair. Thanks

    • @CustAndCode
      @CustAndCode  Рік тому

      hehehe😄 I'm glad you liked it. And thank you for watching! 🤗

  • @raymondperalta3325
    @raymondperalta3325 4 місяці тому

    Great video

    • @CustAndCode
      @CustAndCode  4 місяці тому

      Thank you and thank you for watching! 🤗

  • @saikrishna4720
    @saikrishna4720 5 місяців тому

    Thanks a lot for this

    • @CustAndCode
      @CustAndCode  5 місяців тому

      You are very welcome, and thank you for watching and commenting! 🤗

  • @sk16034
    @sk16034 Місяць тому

    How to remove the primary key background color(blue) in alv display? Can you suggest a way to remove the background color of keys in alv display

  • @vinayaksuryawanshi2910
    @vinayaksuryawanshi2910 Місяць тому

    In my system in class cl_salv_column_table method get_column in not existing what should I do?

  • @muhammadfahim2627
    @muhammadfahim2627 2 роки тому

    Very good video. I just learned to develop ALV using OOPs and was wondering how I could make colors of rows and columns. The way you taught is excellent. Please tell me if you have developed any videos on SAP enhancements or you know any good content available on youtube that may help in developing in skills in SAP enhancement. Thanks.

    • @CustAndCode
      @CustAndCode  2 роки тому

      Thanks for your kind feedback! 😀 At the moment I haven't any videos regarding enhancements in SAP. I have to check this out 😉

  • @Łukasz-h6b
    @Łukasz-h6b Рік тому

    Hey is there a way to sort final table by the color? so the colored lines would be the first that display?

    • @CustAndCode
      @CustAndCode  Рік тому

      Color is a column, so yes you can sort the entries. Example: sort lt_sflight by color. 🤗

  • @DisabilityDoesntDefineMe
    @DisabilityDoesntDefineMe 2 роки тому

    Great job, do a video about how to color a specific cell in a dynamic ALV, thanks in advance.

    • @CustAndCode
      @CustAndCode  2 роки тому

      Thanks, ok I will check how to do that 😀

    • @CustAndCode
      @CustAndCode  2 роки тому

      Have a look at line 24 in my example in the video. Above the code "color-col = 6" type the cell name you want to color like: "fname = 'PLANETYPE'". After that, only the cell planetype is colored.
      see the example code:
      -color = VALUE #( ( fname = 'PLANETYPE'
      color-col = 6
      color-int = 0
      color-inv = 1
      )
      ).
      😀

    • @mysch5858
      @mysch5858 11 місяців тому

      what if want to color the row based in a condition (parameter for example)@@CustAndCode

  • @chetanw6207
    @chetanw6207 Рік тому

    I want to colour some cells of 2 column how can i achieve that.
    Thanks

    • @CustAndCode
      @CustAndCode  Рік тому +1

      Define color column:
      DATA: color TYPE lvc_s_scol.
      then set the color column in the alv
      ->set_color_column( 'COLOR' ).
      Then set the Color info to a field:
      color-fname = 'USRID'.
      color-color-col = 6.
      color-color-int = 0.
      color-color-inv = 0.
      🤗

  • @purnimayadav1669
    @purnimayadav1669 9 місяців тому

    how to color a specific value only like if CARRID is LH just color the CARRID yellow? not the whole row.

    • @CustAndCode
      @CustAndCode  9 місяців тому

      Have a look at line 24 in my example in the video. Above the code "color-col = 6" type the cell name you want to color like: "fname = 'PLANETYPE'". After that, only the cell planetype is colored.
      see the example code:
      -color = VALUE #( ( fname = 'PLANETYPE'
      color-col = 6
      color-int = 0
      color-inv = 1
      )
      ).

  • @keiji0075
    @keiji0075 2 роки тому

    May ask where is the first place of object cl_salv_table. be delared?

    • @CustAndCode
      @CustAndCode  2 роки тому

      Line Nr.: 43 is the declaration. This object o_salv I use in the method call in line 38. 🤗

  • @calvin8758
    @calvin8758 Рік тому

    How to implement this using dynamic table

    • @CustAndCode
      @CustAndCode  Рік тому

      Color column is not dynamic, but everything else? 🤔

  • @halitck
    @halitck 2 роки тому

    servus, du rettest mich echt mit deinen erklärungen, diese sap press bücher sind nichts für mich :D

    • @CustAndCode
      @CustAndCode  2 роки тому

      hehe das freut mich! 😀 Man lernt echt immer am besten mit richtigen Aufgaben aus der Praxis. 🤗🤩

  • @yoppiear
    @yoppiear 2 роки тому

    Why you declare "type table of" instead "type standard table of" ? Is it matters?

    • @CustAndCode
      @CustAndCode  2 роки тому +1

      There is not much difference from my point of view, the addition STANDARD for standard tables is optional. 🤗