ALV Grid - Delete Entries in ABAP [english]

Поділитися
Вставка
  • Опубліковано 7 лют 2025
  • In this video I show how to delete and save entries in an ALV grid list. A delete icon is added to the GUI status. By clicking on this icon a delete routine is executed. After deletion the ALV Grid is refreshed. ABAP code is mostly structured in form routines.
    This video is based on another video which I link here:
    • ALV Grid Editable - Ed...
    #ALVGrid #delete
    ▬▬ 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...

КОМЕНТАРІ • 32

  • @pallavivaval8536
    @pallavivaval8536 8 місяців тому

    hello Sir, please can you tell me please p-selfiled-it display list of filed. can you please tell what should i press to see all filed list after - sign

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

      Unfortunately I do not understand your question 🙄

    • @pallavivaval8536
      @pallavivaval8536 8 місяців тому

      @@CustAndCode sorry

    • @pallavivaval8536
      @pallavivaval8536 8 місяців тому

      @@CustAndCode Sir, I would like to say that whenever we typed any table name such as Mara- ( table hype sign) I saw list of fileds are coming how it coming which key or spacebar you sre press so it showing list of filed name.

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

    Thanks a lot!

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

      Thank you for your positive feedback! 🤗🤗 I appreciate it!

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

    Thank you Very much

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

      Thanks for your feedback! 🤗

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

    Hi!
    Nice Tut! Worked the way it should. Can you apply this on an dynamic internal table. If so can u make video about it. Thanks a lot.

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

      Thanks for your feedback! I am not sure what you mean with "dynamic" ? The deletion happens at the end on a database table 🤗

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

      Vielen Dank für Ihre Rückmeldung. Ich habe aus Ihren anderen Videos erfahren, dass Sie aus deutschesprachigen Ländern kommen. Meine Deutsche ist begrenzt , also wechsle ich jetzt zu Englisch. :)
      In the video, you used Table ‚SPFLI‘ to create internal table and work area. Then in the form del_data, you coded ‚delete from SPFLI where kunnr = wa-fieldcat-kunnr‘.
      From my understanding, this is a static version. But what if we give the table name during the runtime. This would mean the structure of internal table and work area are dynamic. We could create this using RTTS. But this then won‘t be compatible with your delete code.
      Einen schönen Tag :)

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

      @@kapilgurung7505 Oh I understand. That should already be possible. But it will be more complex because you have to use methods of the classes CL_ABAP_*DESCR. I have never used this myself. But it looks interesting. 🤗

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

      @@CustAndCode Yes, Interesting but complex. Been trying to solve it for last 1 week but no luck :)

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

      @@kapilgurung7505 If I find time I will have a look at it. Until then, I wish you much success! 😀

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

    how to refresh alv grid after delete, i used PAI PBO

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

      For this I would have to build an example 🤔

  • @alugojusatish7500
    @alugojusatish7500 3 роки тому

    How to resolve the problem disp+work process is stopped

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

      please provide more information 😀 the code should work. 👍

  • @5074-c3k
    @5074-c3k 2 роки тому

    How do you add that buton

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

      Hi, just copy a GUI STATUS from another program. I show this here: ua-cam.com/video/ZzXHYDy0UUE/v-deo.html ➡from minute 14:50 😀

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

    What is standard program for this gui status

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

      The name of the program is: SAPLKKBL
      In this video you can see how to copy the standard GUI Status to your Z-Program ua-cam.com/video/ZzXHYDy0UUE/v-deo.html
      minute: 15:12 🤗

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

      Thank you so much

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

      I used cl salv table for gui status and i displayed delete button and how to delete record. I declare sy-ucomm but not triggered

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

      @@shaikjuneed2257 You are welcome! 😃

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

      @@shaikjuneed2257 Set a breakpoint in the Form "user_command" check if the debugger jumps in. When yes, yout have to write another Form "f_delete_date" look at line 114 in the video at min 4:44 🤗

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

    How to delete multiple records using this method ?

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

      Unfortunately, it is not possible with this method. On the one hand, you would have to be able to select multiple rows and then also pass an entire table, not just a work area as is the case now.

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

      @@CustAndCode As always another wonderful video !!!! Do you have any video with the approach of select several rows ? capturing in an internal table what the user select ?

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

      @@leocarnicella9155 Thank you! 🤗 To your question: Not yet, but I will have a look at it!😀

  • @5074-c3k
    @5074-c3k 2 роки тому

    Plseas help