SALV Table - Colors in Rows and Columns [english]

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ก.ค. 2022
  • In this video I will show you how to use colors in rows and columns in a SALV table. Colors can be used to highlight certain properties of data, for example the expiration of a deadline or the exceeding of an amount. The employee then sees at a glance which records he has to edit.
    custandcode.blogspot.com/2022...
    #SALV #table #colors
    ▬▬ My Hardware ▬▬▬▬▬▬▬▬▬▬▬▬▬
    Microphone: amzn.to/3zj2UIz
    Headphone: amzn.to/3GUBRFg
    *The links are affiliate links. There are no additional costs.
    ▬▬ My Software (free) ▬▬▬▬▬▬▬▬▬▬▬
    Video Recorder: bit.ly/678fgh6
    Video Editor: bit.ly/38Rj9lb
    ▬▬ Further Links ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    Become my subscriber: bit.ly/CustAndCodeSub
    All videos in English: bit.ly/CustAndCodeENG

ความคิดเห็น • 22

  • @ablazefire9572
    @ablazefire9572 5 หลายเดือนก่อน

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

    • @CustAndCode
      @CustAndCode  5 หลายเดือนก่อน

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

  • @DisabilityDoesntDefineMe
    @DisabilityDoesntDefineMe ปีที่แล้ว

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

    • @CustAndCode
      @CustAndCode  ปีที่แล้ว

      Thanks, ok I will check how to do that 😀

    • @CustAndCode
      @CustAndCode  ปีที่แล้ว

      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 4 หลายเดือนก่อน

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

  • @muhammadfahim2627
    @muhammadfahim2627 ปีที่แล้ว

    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  ปีที่แล้ว

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

  • @user-nr3kb8zz6z
    @user-nr3kb8zz6z 11 หลายเดือนก่อน

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

    • @CustAndCode
      @CustAndCode  11 หลายเดือนก่อน

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

  • @purnimayadav1669
    @purnimayadav1669 2 หลายเดือนก่อน

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

    • @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
      )
      ).

  • @chetanw6207
    @chetanw6207 6 หลายเดือนก่อน

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

    • @CustAndCode
      @CustAndCode  6 หลายเดือนก่อน +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.
      🤗

  • @keiji0075
    @keiji0075 ปีที่แล้ว

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

    • @CustAndCode
      @CustAndCode  ปีที่แล้ว

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

  • @calvin8758
    @calvin8758 5 หลายเดือนก่อน

    How to implement this using dynamic table

    • @CustAndCode
      @CustAndCode  5 หลายเดือนก่อน

      Color column is not dynamic, but everything else? 🤔

  • @halitkilic7810
    @halitkilic7810 ปีที่แล้ว

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

    • @CustAndCode
      @CustAndCode  ปีที่แล้ว

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

  • @yoppiear
    @yoppiear ปีที่แล้ว

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

    • @CustAndCode
      @CustAndCode  ปีที่แล้ว +1

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