SAP ABAP [2020] - ABAP 7.40/7.50- Read and Modify Internal Table

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ต.ค. 2024

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

  • @bsismanoglu
    @bsismanoglu 3 ปีที่แล้ว +11

    Hi Sooraj, great video. In addition I would like to add a few comments.
    I would read the table line as follows:
    assign it_data[ name = 'sam' ] to field-symbol().
    First this is faster than direct assignment.
    Second and the foremost reason is that you can check if line exists with a sy-subrc check (because sy-subrc check works 4 or 5 times faster than line_exists statement)

    • @SoorajSasidharanABAP
      @SoorajSasidharanABAP  3 ปีที่แล้ว +7

      Hi Bekir.. Thanks for your wonderful comment.. yes, the field symbol assignment also just works fine..it was put in to avoid the dump that may happen if line doesnt exist.
      There is another approach also from SPS08, which is resut = value #( itab[ name = 'sam'] optional/default). This I had mentioned in my value Operator video.
      I will try to include the field symbol assignment part in my upcoming video. The subscribers shouldn't miss on any detail regarding the subject. That's the whole idea :-)

    • @bsismanoglu
      @bsismanoglu 3 ปีที่แล้ว +3

      @@SoorajSasidharanABAP Hi Sooraj, thanks for the update. I just wrote a test application to compare the field-symbol assignment and the assignment with value (with optional extension), and yes it works as fast as field symbol assignment and with no short dumps. Once again, thank you very much.

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

    Very nice video, greetings from Brazil

  • @nikhilkumar-jw1wz
    @nikhilkumar-jw1wz 3 ปีที่แล้ว +7

    Your ABAP 7.4 syntaxes are helping me alot in my coding .....thank you so much 🙂

  • @Vishal-wl6gx
    @Vishal-wl6gx 3 ปีที่แล้ว

    Great video, sirji

  • @AbhishekYadav-qo9fq
    @AbhishekYadav-qo9fq 3 ปีที่แล้ว +4

    Thank you so much Sir for your time and efforts

    • @SoorajSasidharanABAP
      @SoorajSasidharanABAP  3 ปีที่แล้ว

      Thanks Abhishek..Keep watching, will try to upload more videos. :-)

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

    Simply super

  • @Srirampavan1985
    @Srirampavan1985 2 ปีที่แล้ว

    great video ...easy to understand

  • @AnilKumar-zx4nq
    @AnilKumar-zx4nq 3 ปีที่แล้ว +2

    Great insights Sooraj. Thanks! Keep uploading these useful videos

  • @raghz100
    @raghz100 3 ปีที่แล้ว

    I'm a legacy pre 7.4 ABAP developer learning 7.5 syntaxes. Very well presented.

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

    Great tips. Thank you so much

  • @hiranmayepisupati6909
    @hiranmayepisupati6909 3 ปีที่แล้ว +2

    Really simple...easy to learn ....thanks a lot

  • @mithundas4817
    @mithundas4817 3 ปีที่แล้ว

    Very useful video

  • @23188himanshu
    @23188himanshu 3 ปีที่แล้ว +1

    Very well explained !!! Looking for some more on similar Topic in SAP ABAP 7.50

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

    Thanks Happy Diwali Sir 🙏. I have learned new syntaxes in ABAP. It's really helpful and overall it's free. Thanks & Please do continue Sir.

  • @arnabchaudhury8911
    @arnabchaudhury8911 3 ปีที่แล้ว

    Very useful helping information

  • @moralstoryforkids.1981
    @moralstoryforkids.1981 3 ปีที่แล้ว

    Awesome Suraj। Thanks for updating 😊

  • @majidkhan-pg4xp
    @majidkhan-pg4xp 3 ปีที่แล้ว +1

    Superb Suraj..Salute to u for sharing n helping other..appreciat👍

  • @suria2469
    @suria2469 3 ปีที่แล้ว

    Great work... Thanks

  • @gouravjain3495
    @gouravjain3495 3 ปีที่แล้ว

    Short video with lots of knowledge... Would like to see many more

  • @gaurav-cj8pd
    @gaurav-cj8pd ปีที่แล้ว

    👍🏼 very helpful

  • @minakshisinghmehta111
    @minakshisinghmehta111 3 ปีที่แล้ว

    Like the way you explain. Thank you!

  • @chkasyap
    @chkasyap 3 ปีที่แล้ว

    Thank you for detail explaination👍

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

    Helping information,keep posting

  • @MrReachashish
    @MrReachashish 3 ปีที่แล้ว

    Nice video

  • @ssbundestag9668
    @ssbundestag9668 3 ปีที่แล้ว

    Great job

  • @sardorbek9892
    @sardorbek9892 3 ปีที่แล้ว

    Good job!

  • @dewankjamjare6985
    @dewankjamjare6985 3 ปีที่แล้ว

    Very nicely explained.

  • @vamsikrishna-rx3ox
    @vamsikrishna-rx3ox 2 ปีที่แล้ว

    Nice

  • @rvdadhich
    @rvdadhich 3 ปีที่แล้ว

    great learning... thank you 👏

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

    Difference between cl_demo_output=>write andcl_demo_output=>display

    • @SoorajSasidharanABAP
      @SoorajSasidharanABAP  3 ปีที่แล้ว

      its just for displaying the contents as output. I use write before display so that both the outputs are on the same screen :)
      Please dont use this class in productive version :)

  • @INGagan
    @INGagan 3 ปีที่แล้ว

    Always waiting for your videos. So that i can rewrite my existing lengthy code 😁😁🙏

  • @chandrasekhar9788
    @chandrasekhar9788 3 ปีที่แล้ว

    Thank for your good info.....we are waiting for more updates in new syntaxes

  • @mpredolim
    @mpredolim 2 ปีที่แล้ว

    Well explained. Keep going!

  • @tirumalrao1968
    @tirumalrao1968 3 ปีที่แล้ว

    Nice Suraj.

  • @abdabd5678
    @abdabd5678 3 ปีที่แล้ว

    Suraj, please zoom when u r displaying the code and thanks a lot

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

    thanks sooraj!

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

    great work, thanks.

  • @daniel13danishka
    @daniel13danishka 3 ปีที่แล้ว

    VERY NICE BRO , THANKS

  • @sudheerkumar-jp8qk
    @sudheerkumar-jp8qk 3 ปีที่แล้ว +2

    Your modifying single entry. Can you post example of looping one table and reading 2nd table to Modify first table basing on index.
    Can post an example on that with latest syntax.
    Thanks.

  • @anish109
    @anish109 3 ปีที่แล้ว

    Nice video. Could you make a video on abap units with practical examples

  • @NickChecan
    @NickChecan 3 ปีที่แล้ว

    Awesome content Sooraj!

  • @vijaybhaskar1092
    @vijaybhaskar1092 3 ปีที่แล้ว

    Hi sooraj,
    Great information and thanks for the sharing 😀😀😀

  • @Babies_channel124
    @Babies_channel124 3 ปีที่แล้ว

    Great content👍.... Keep posting

  • @mf-vt7sj
    @mf-vt7sj 3 ปีที่แล้ว

    Thank you, great video.

  • @ginsyo6112
    @ginsyo6112 3 ปีที่แล้ว

    thanks learned a lot

  • @tamilvananmunirathinam6689
    @tamilvananmunirathinam6689 3 ปีที่แล้ว

    Very nice👍

  • @aksh9422
    @aksh9422 3 ปีที่แล้ว

    Thankyou so much...can u post videos on abap -json conversion

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

    What is the performance of this array like internal table access compared to hash table read/ binary search table read?

    • @SoorajSasidharanABAP
      @SoorajSasidharanABAP  3 ปีที่แล้ว

      in case of sorted/hashed tables, there will be implicit BINARY search happening. We cannot use an explicit BINARY SEARCH addition with the new syntax.

  • @nikhilkumar-jw1wz
    @nikhilkumar-jw1wz 3 ปีที่แล้ว +2

    Can you please post video's on RICEF object's

  • @HaaanNahiiiiiToooo1523
    @HaaanNahiiiiiToooo1523 3 ปีที่แล้ว

    Well explained Sooraj !

  • @sumanpanja5637
    @sumanpanja5637 3 ปีที่แล้ว

    Hi watched..but we can also use the below new syntax to avoid try catch block...
    Data(ls_line) = VALUE #( LT_TAB[ key = value ] OPTIONAL/DEFAULT ).

    • @sumanpanja5637
      @sumanpanja5637 3 ปีที่แล้ว

      In this we don't have to handle exception...also for addition of DEFAULT - you can give default value also if read fails... Also one more point in new syntax it always go for linear search , first it will check the table type ( if sorted table used then only perform binary) then do accordingly....

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

      Hi Suman, I had already explained this in my VALUE operator video. :-) Thanks for your comment :)

  • @bdk1371
    @bdk1371 3 ปีที่แล้ว

    Hi, is the new syntax sequential read or binary read? I am thinking we need to be careful based on the size of your table?

  • @luckyfin4572
    @luckyfin4572 2 ปีที่แล้ว

    how to populate all entries from another internal table using value operator?

  • @ajitmhatre9
    @ajitmhatre9 3 ปีที่แล้ว

    amazing .. so simple

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

      Glad you like it!

    • @ajitmhatre9
      @ajitmhatre9 3 ปีที่แล้ว

      @@SoorajSasidharanABAP i was searching for new techniques in abap to be updates then I found your channel, even some things i m using already line new inline declaration ...many of abapers dont know about it...they just following old stuff.

    • @SoorajSasidharanABAP
      @SoorajSasidharanABAP  3 ปีที่แล้ว

      @@ajitmhatre9 haha that's very correct. you see change is inevitable :) Coding in the same way is boring :D

  • @dennyivan
    @dennyivan 3 ปีที่แล้ว

    Thanks man

  • @ankit_malviya
    @ankit_malviya 3 ปีที่แล้ว

    is CL_DEMO_OUTPUT=>write( ) and CL_DEMO_OUTPUT=>display( ) different?

  • @itsMyMusik
    @itsMyMusik 3 ปีที่แล้ว

    Thanks for the video Sooraj, really useful.
    Can you tell what's the performance of instructions like line_exists compared to binary search in large tables? Would you recomend it there?
    Thanks

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

    Can you discuss something related to Amdp's and some typical solutions in HANA

  • @madz3764
    @madz3764 3 ปีที่แล้ว

    Useful. Thanks.

  • @pallavic9903
    @pallavic9903 7 หลายเดือนก่อน

    how to give OR condition in Try catch block

  • @Sr_venkat
    @Sr_venkat 3 ปีที่แล้ว

    Hi sooraj . Are these syntaxes used in HANA ABAP coding ?

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

    How about read with binary search in parallel cursor..how to exit loop in new syntax??please let us know

    • @SoorajSasidharanABAP
      @SoorajSasidharanABAP  3 ปีที่แล้ว +3

      In case of sorted tables, there is an implicit BINARY SEARCH that happens. We cannot forcefully include the BINARY SEARCH option with the new syntax though :-)

  • @lilvirdose12
    @lilvirdose12 3 ปีที่แล้ว

    great content bro

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

    Are there any Loop...EndLoop example with a new sintaxe ?

    • @SoorajSasidharanABAP
      @SoorajSasidharanABAP  3 ปีที่แล้ว

      Can u see if this video helps?
      th-cam.com/video/WPNcz7nXQQg/w-d-xo.html
      You can check out my other videos as well.. Thanks for watching.. :-)

  • @HoshiyarMummyOnMission
    @HoshiyarMummyOnMission 3 ปีที่แล้ว

    how loop will work .pls explain

  • @maumaumassa
    @maumaumassa 3 ปีที่แล้ว

    despite to simplify the code, what is the gain using this new code ?

  • @harishgarlanki861
    @harishgarlanki861 3 ปีที่แล้ว

    superb explinations sir...can u explain explicit enhancements by real time examples

  • @alexpulido2431
    @alexpulido2431 3 ปีที่แล้ว

    what about performance ? is it better than a Read Table ? can you Binary Seach somehow ?

    • @SoorajSasidharanABAP
      @SoorajSasidharanABAP  3 ปีที่แล้ว

      We cannot use a forced BINARY SEARCH addition.. But if the table is a sorted table, it does an implicit Binary Search as per my understanding :-)

  • @tirumalrao1968
    @tirumalrao1968 3 ปีที่แล้ว

    Suraj, what is the future for ABAPer?

  • @starmika4782
    @starmika4782 2 ปีที่แล้ว

    TYPES: BEGIN OF ty_data,
    name TYPE char20,
    role TYPE char20,
    END OF ty_data.
    DATA: it_data TYPE STANDARD TABLE OF ty_data.
    it_data = VALUE #( ( name = 'Ken' role = 'java' )
    ( name = 'Rom' role = 'abap' )
    ( name = 'Ben' role = 'c++' )
    ).
    cl_demo_output=>display( it_data ).
    3:00

  • @starmika4782
    @starmika4782 2 ปีที่แล้ว

    9:45
    TYPES: BEGIN OF ty_data,
    name TYPE char20,
    role TYPE char20,
    END OF ty_data.
    DATA: it_data TYPE STANDARD TABLE OF ty_data.
    it_data = VALUE #( ( name = 'Ken' role = 'java' )
    ( name = 'Rom' role = 'abap' )
    ( name = 'Ben' role = 'c++' )
    ).
    DATA(lv_index) = line_index( it_data[ name = 'Ken' ] ).
    WRITE: / lv_index.

  • @OmPrakash-sd7gb
    @OmPrakash-sd7gb 3 ปีที่แล้ว

    ABAP 7.4/7
    5 read statement perform linear search not binary search

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

      For sorted tables it does perform an implicit binary search as per
      my understanding. We cannot use the extra keyword BINARY SEARCH with the new syntax.

  • @starmika4782
    @starmika4782 2 ปีที่แล้ว

    TYPES: BEGIN OF ty_data,
    name TYPE char20,
    role TYPE char20,
    END OF ty_data.
    DATA: it_data TYPE STANDARD TABLE OF ty_data.
    it_data = VALUE #( ( name = 'Ken' role = 'java' )
    ( name = 'Rom' role = 'abap' )
    ( name = 'Ben' role = 'c++' )
    ).
    Data(result) = it_data[ name = 'Ben' ]. "inside [ ] key the column name
    WRITE: / result.
    4:00

  • @starmika4782
    @starmika4782 2 ปีที่แล้ว

    5:00
    TYPES: BEGIN OF ty_data,
    name TYPE char20,
    role TYPE char20,
    END OF ty_data.
    DATA: it_data TYPE STANDARD TABLE OF ty_data.
    it_data = VALUE #( ( name = 'Ken' role = 'java' )
    ( name = 'Rom' role = 'abap' )
    ( name = 'Ben' role = 'c++' )
    ).
    DATA(result) = it_data[ name = 'Ben' ].
    DATA(result1) = it_data[ name = 'Ben' ]-role.
    DATA: result2 TYPE char20.
    result2 = it_data[ name = 'Ben' ]-name.
    WRITE: / 'result =', result.
    WRITE: / 'result 1 =', result1.
    WRITE: / 'result 2 =', result2.

  • @starmika4782
    @starmika4782 2 ปีที่แล้ว

    6:00
    TYPES: BEGIN OF ty_data,
    name TYPE char20,
    role TYPE char20,
    END OF ty_data.
    DATA: it_data TYPE STANDARD TABLE OF ty_data.
    it_data = VALUE #( ( name = 'Ken' role = 'java' )
    ( name = 'Rom' role = 'abap' )
    ( name = 'Ben' role = 'c++' )
    ).
    TRY.
    DATA(result_try) = it_data[ name = 'Malvina' ]. "dump without try!
    CATCH cx_sy_itab_line_not_found.
    WRITE: / 'Not found!'.
    ENDTRY.

  • @starmika4782
    @starmika4782 2 ปีที่แล้ว

    7:30
    TYPES: BEGIN OF ty_data,
    name TYPE char20,
    role TYPE char20,
    END OF ty_data.
    DATA: it_data TYPE STANDARD TABLE OF ty_data.
    it_data = VALUE #( ( name = 'Ken' role = 'java' )
    ( name = 'Rom' role = 'abap' )
    ( name = 'Ben' role = 'c++' )
    ).
    IF line_exists( it_data[ name = 'ken' ] ).
    WRITE: / 'The value exists.'.
    ELSE.
    WRITE: / 'Sorry, not found.'.
    ENDIF.
    IF line_exists( it_data[ name = 'Ken' ] ).
    WRITE: / 'The value exists.'.
    ELSE.
    WRITE: / 'Sorry, not found.'.
    ENDIF.

  • @sandeepsai9756
    @sandeepsai9756 3 ปีที่แล้ว

    Read with binary search runs faster than this

  • @vijayashri610horadi9
    @vijayashri610horadi9 3 ปีที่แล้ว

    Useful thanks!