Tip of the Day #ABAP

Tip of the Day #ABAP

#SAP #SAPABAP #learntogether #NewABAP #tipoftheday

Table types in Modern ABAP inline declaration

(Inline declaration - new way of declaring variables, field symbols, Internal tables on the fly)

The data type of the new data object is constructed in accordance with the structure of the results set defined after?SELECT and

  Select ebeln,bsart,lifnr from ekko 
                           into table @data(lt_ekko)
                           where aedat ge 20210101 
                           and lifnr eq '10000001'.        

Inline declaration "into table @data(itab)" declares a?STANDARD TABLE?itab with an empty table key.

Inline declaration provides an easy way to declare internal tables and preferred by developers in Modern ABAP. Developers should always keep in mind about volume of data handled by the internal table in production system and create internal tables by declaring SORTED or HASHED table type explicitly if required. This will avoid potential performance issues as SORTED or HASHED tables provides better performance over standard table type.

Reference link : SELECT - INTO, APPENDING - ABAP Keyword Documentation (sap.com)

ABAP TIP of the Day: I will be sharing my learnings in ABAP and Modern ABAP through the series ABAP TIP of the Day. Hope this helps our developer community. Let's share and learn together!!

Arun Kumar Solaiyan

SAP ABAP | S4 HANA | RAP | BTP | Integration suite CPI and PI

1 年

ABAP Tip of the day #001

回复

要查看或添加评论,请登录

Arun Kumar Solaiyan的更多文章

  • SAP Extensibility

    SAP Extensibility

    #SAP #ABAP #S/4HANA #ABAPonCloud #ABAPonBTP #Extensibility SAP S4 HANA Cloud Public Edition allows customers and…

    1 条评论
  • SAP Extensibility

    SAP Extensibility

    #SAP #ABAP #S/4HANA #ABAPonCloud #ABAPonBTP #Extensibility SAP Extensibility enables customers to adopt business…

    1 条评论
  • CONV # Operator in New ABAP

    CONV # Operator in New ABAP

    CONV # operator is used to convert a value to datatype specified on the go. Whenever we pass values to class methods or…

  • Quick Fix and Quick Assist in New ABAP

    Quick Fix and Quick Assist in New ABAP

    As the name suggests, Quick Assist and Quick Fix options from ADT improves the ABAP development experience and faster…

    1 条评论
  • LOOP AT with GROUP BY-NEW ABAP

    LOOP AT with GROUP BY-NEW ABAP

    LOOP AT with GROUP BY - groups the rows of the internal table and executes a loop across the groups. There are two…

  • Mesh - Forward and Inverse association

    Mesh - Forward and Inverse association

    Mesh table type option provides the developer to create relationship between internal tables through association. Data…

    1 条评论
  • MESH Table type in New ABAP

    MESH Table type in New ABAP

    #sap #sapabap #learntogether #abaponhana #tipoftheday MESH Table type option allows the developer to create…

    1 条评论
  • Search for IDOCs by content

    Search for IDOCs by content

    #sap #sapabap #learntogether #abaponhana #tipoftheday Transaction WE02 / WE05 provides an IDOC browser where IDOCs are…

    1 条评论
  • Corresponding # in New ABAP

    Corresponding # in New ABAP

    #sap #sapabap #learntogether #abaponhana #tipoftheday CORRESPONDING function in ABAP helps to perform…

    4 条评论
  • FILTER in New ABAP

    FILTER in New ABAP

    #SAP #SAPABAP #learntogether #NewABAP #tipoftheday FILTER option in New ABAP. FILTER provides a way to query an…

社区洞察

其他会员也浏览了