Video není dostupné.
Omlouváme se.

ALV Grid Display in ABAP - New Syntax [english]

Sdílet
Vložit
  • čas přidán 18. 09. 2021
  • In this video I show how to use the ALV Grid in ABAP to output data to SAP.
    The inline declaration and new syntax is used.
    #ALV #ALVgrid # ALVdisplay
    ▬▬ 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/CustAnd...
    All videos in English: bit.ly/CustAnd...

Komentáře • 36

  • @nguyenhieu1249
    @nguyenhieu1249 Před 2 lety +1

    Very useful your video. Thank you so much. Hope you can do more video on Abap OOP

    • @CustAndCode
      @CustAndCode  Před 2 lety

      Thank you for your feedback! 🤗 I will upload videos related to ABAP OOP and for customizing too. 😀

  • @anandtripathi5631
    @anandtripathi5631 Před rokem

    Very Very helpful video sir
    Thanks a lot
    U r owsm

    • @CustAndCode
      @CustAndCode  Před rokem

      Thank you very much for your kind feedback! 🤗🤩

  • @sathishbandolero
    @sathishbandolero Před 2 lety

    This is helpful to me. Thank you.

  • @badalbahinipati5764
    @badalbahinipati5764 Před rokem

    Why are we using cl_salv_table again when our objective is to display data using cl_gui_alv_grid class?

    • @CustAndCode
      @CustAndCode  Před rokem

      Thats a very good question 🤔Honestly I don't remember exactly what I wanted to show with this, maybe just the possibility of the new syntax. To display data only I use only the SALV table 🤗

    • @badalbahinipati5764
      @badalbahinipati5764 Před rokem

      @@CustAndCode Could you please give me some explanation because I am unable to find the answer on google.

    • @CustAndCode
      @CustAndCode  Před rokem

      @@badalbahinipati5764 There are many solutions to display data in SAP. I prefer the simplest one, this is in my case the SALV table. Have a look at this example video: czcams.com/video/bMoLhgOdXQw/video.html
      Hope that helps 🤗

  • @badalbahinipati5764
    @badalbahinipati5764 Před rokem

    Why do we have write: space at the end?
    Also, could we have directly called in the parameters for set_table_first instead of creating o_alv?

    • @CustAndCode
      @CustAndCode  Před rokem

      The "write command" will force the container to be rendered. Try it without, you will see no container. 🤔

    • @badalbahinipati5764
      @badalbahinipati5764 Před rokem

      @@CustAndCode Yep, I tried and I didn't get any data. Also it might be unrelated to this video but I am unable to get hotspot and event handling into this code. I watched your video regarding this but their the approach was different. Could you tell me something regarding this? I am getting dump while trying to add a hotspot so as to display it on MM03🙁

    • @CustAndCode
      @CustAndCode  Před rokem

      @@badalbahinipati5764 For Hotspot or Events have a look at this video. This works. 🤗

  • @jeanferro5878
    @jeanferro5878 Před 2 lety

    I am starting in abap world and your videos are amazing to me!
    I have a case in my select and the column header are blanck becouse of this, how can i solve this?

    • @CustAndCode
      @CustAndCode  Před 2 lety

      Thank you very much! 😀 Can you use a SALV Table instead? With SALV ist works! 🤗

  • @sindhujasakinala7838
    @sindhujasakinala7838 Před 10 měsíci

    May i know which SAP theme you are using?
    For me the interface is different, entries are not in grid format.
    Can you please tell me how to change this to alv grid format

    • @CustAndCode
      @CustAndCode  Před 10 měsíci

      I am not sure what you mean. ALV Grid is always a grid, independent of the SAP theme 🤔

  • @alicesavu1569
    @alicesavu1569 Před rokem

    se poate ca in codul demo sa adaugati comentarii care sa usureze logica programarii? is it possible to add comments in the demo code to make the programming logic easier? thank you in advance ; all those words you say when following a set of instructions

    • @CustAndCode
      @CustAndCode  Před rokem

      I try to indicate what the objects are by naming the variable names.
      e.g.
      o_alv: ALV object
      it_fcat: Fieldcatalog
      lv_layout: Layout
      But if you want to display a simple table I would recommend this code:
      czcams.com/video/i1VuiVSs87U/video.html
      from minute 8:40
      Copy this into your editor and replace in line 16 %TABLE_NAME% with e.g. SFLIGHT.
      The methods I use there are basically self-explanatory.
      You can also comment out the loop.
      hth 🤗

  • @sathishbandolero
    @sathishbandolero Před rokem

    Thanks again for the useful and informative video.
    I am getting ERROR in line 23 - Type "O_SALV" is unknown
    I have used the same code, didn't make any change but still I am getting. Let me know if any idea or suggestions. Meanwhile I am also checking on the same elsewhere. Thanks.

    • @CustAndCode
      @CustAndCode  Před rokem

      Thanks! 😊 The declaration of "o_salv" is on linenumber 16. Do you have this line in your code? Please check! 🤗

  • @user-ep9fc8ck6v
    @user-ep9fc8ck6v Před rokem

    thanks for your viedo
    but i have a error in line 37
    it said field "CL_ABAP_LIST_LAYOUT" is unknown.
    how can I fix this problem??

    • @user-ep9fc8ck6v
      @user-ep9fc8ck6v Před rokem

      oh i use - instead of =
      thanks for your video!!

    • @CustAndCode
      @CustAndCode  Před rokem

      @@user-ep9fc8ck6v ah okay 🤗 I have already wondered 🤗

    • @user-ep9fc8ck6v
      @user-ep9fc8ck6v Před rokem

      @@CustAndCode but I have a question
      What is difference between -> ,=>?
      I don’t know where should I use those

    • @CustAndCode
      @CustAndCode  Před rokem

      @@user-ep9fc8ck6v Hi,
      => you call a Method of a class
      -> Method chaining, means the result of method 1 is the input of method 2
      🤗

    • @user-ep9fc8ck6v
      @user-ep9fc8ck6v Před rokem

      @@CustAndCode thanks a lot

  • @gpsyking
    @gpsyking Před 10 měsíci

    How can I set a custom name for a column?

    • @CustAndCode
      @CustAndCode  Před 10 měsíci +1

      Check this video: czcams.com/video/bMoLhgOdXQw/video.html
      🤗😃

  • @sibstories4710
    @sibstories4710 Před 11 měsíci

    Hi. I’ve tried this code. It displays the alv but the line of code to remove the space above the toolbar doesn’t work, it give me a dump and say ‘the exception is assigned to class cx_list_already_active and was not caught in procedure write_output.
    Not sure why as I did not use that class in my code. Do you have idea why it dumped and how can it be solved?

    • @CustAndCode
      @CustAndCode  Před 11 měsíci

      Ok, I have rechecked the code and it works on my system. But I have a newer code to display data fast and easy with Salv Table Class. Check out this one: czcams.com/video/bMoLhgOdXQw/video.html
      This code works without the method set_table_for_first_display. 🤗😀

    • @sibstories4710
      @sibstories4710 Před 11 měsíci

      @@CustAndCode thanks!

    • @CustAndCode
      @CustAndCode  Před 11 měsíci

      @@sibstories4710 you are welcome 🤗