{"id":1003,"date":"2018-11-22T14:23:08","date_gmt":"2018-11-22T07:23:08","guid":{"rendered":"http:\/\/www.todsapon.com\/story\/?p=1003"},"modified":"2019-01-14T17:22:53","modified_gmt":"2019-01-14T10:22:53","slug":"abap-how-to-get-rows-count-of-internal-table","status":"publish","type":"post","link":"http:\/\/www.todsapon.com\/story\/programmer\/abap-how-to-get-rows-count-of-internal-table","title":{"rendered":"ABAP Code:\u0e27\u0e34\u0e18\u0e35\u0e2b\u0e32\u0e08\u0e33\u0e19\u0e27\u0e19\u0e41\u0e16\u0e27\u0e02\u0e2d\u0e07 INTERNAL TABLES (How to get rows count of internal table)"},"content":{"rendered":"<div id=\"attachment_985\" style=\"width: 680px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.todsapon.com\/story\/wp-content\/uploads\/2018\/11\/sap-abap.jpg\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-985\" class=\"size-full wp-image-985\" src=\"http:\/\/www.todsapon.com\/story\/wp-content\/uploads\/2018\/11\/sap-abap.jpg\" alt=\"ABAP \u0e27\u0e34\u0e18\u0e35\u0e2b\u0e32\u0e08\u0e33\u0e19\u0e27\u0e19\u0e41\u0e16\u0e27\u0e02\u0e2d\u0e07 INTERNAL TABLES (How to get rows count of internal table)\" width=\"670\" height=\"320\" srcset=\"http:\/\/www.todsapon.com\/story\/wp-content\/uploads\/2018\/11\/sap-abap.jpg 670w, http:\/\/www.todsapon.com\/story\/wp-content\/uploads\/2018\/11\/sap-abap-300x143.jpg 300w\" sizes=\"auto, (max-width: 670px) 100vw, 670px\" \/><\/a><p id=\"caption-attachment-985\" class=\"wp-caption-text\">ABAP \u0e27\u0e34\u0e18\u0e35\u0e2b\u0e32\u0e08\u0e33\u0e19\u0e27\u0e19\u0e41\u0e16\u0e27\u0e02\u0e2d\u0e07 INTERNAL TABLES (How to get rows count of internal table)<\/p><\/div>\n<p>\u0e43\u0e19\u0e1a\u0e32\u0e07\u0e04\u0e23\u0e31\u0e49\u0e07\u0e40\u0e23\u0e32\u0e08\u0e33\u0e40\u0e1b\u0e47\u0e19\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e17\u0e23\u0e32\u0e1a\u0e08\u0e33\u0e19\u0e27\u0e19\u0e41\u0e16\u0e27\u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14\u0e43\u0e19 Internal tables \u0e27\u0e48\u0e32\u0e21\u0e35\u0e08\u0e33\u0e19\u0e27\u0e19\u0e01\u0e35\u0e48\u0e41\u0e16\u0e27 \u0e0b\u0e36\u0e48\u0e07\u0e2b\u0e25\u0e31\u0e01\u0e01\u0e32\u0e23\u0e21\u0e31\u0e19\u0e04\u0e25\u0e49\u0e32\u0e22\u0e01\u0e31\u0e1a SELECT COUNT(*)<br \/>\n\u0e41\u0e15\u0e48\u0e40\u0e23\u0e32\u0e08\u0e30\u0e21\u0e32\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 Count \u0e43\u0e19 internal table \u0e21\u0e31\u0e19\u0e01\u0e47\u0e43\u0e0a\u0e49\u0e44\u0e21\u0e48\u0e44\u0e14\u0e49 \u0e40\u0e1e\u0e23\u0e32\u0e30\u0e21\u0e31\u0e19\u0e1c\u0e34\u0e14 Syntax \u0e14\u0e31\u0e07\u0e19\u0e31\u0e49\u0e19\u0e40\u0e23\u0e32\u0e08\u0e30\u0e17\u0e33\u0e44\u0e07\u0e14\u0e35\u0e25\u0e48\u0e30 \u0e1b\u0e34\u0e49\u0e07! \u0e04\u0e34\u0e14\u0e2d\u0e2d\u0e01\u0e41\u0e25\u0e49\u0e27<\/p>\n<p><!--more--><\/p>\n<p><strong>\u0e27\u0e34\u0e18\u0e35\u0e17\u0e35\u0e48 1 \u0e40\u0e2d\u0e32\u0e41\u0e1a\u0e1a\u0e0a\u0e32\u0e27\u0e1a\u0e49\u0e32\u0e19 \u0e27\u0e19\u0e25\u0e39\u0e1b\u0e2b\u0e32\u0e04\u0e48\u0e32\u0e21\u0e31\u0e19 \u0e2d\u0e34\u0e2d\u0e34<br \/>\n<\/strong><\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\nDATA: w_tabix TYPE i.\r\nLOOP AT t_itab.\r\nw_tabix = sy-tabix.\r\nENDLOOP.\r\n<\/pre>\n<p><strong>\u0e27\u0e34\u0e18\u0e35\u0e17\u0e35\u0e48 2 \u0e43\u0e0a\u0e49 <a href=\"http:\/\/www.todsapon.com\/story\/programmer\/abap-how-to-get-rows-count-of-internal-table\">built-in function LINES()<\/a> \u0e2d\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e2a\u0e31\u0e49\u0e19\u0e46<br \/>\n<\/strong><\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\nDATA: w_lines TYPE i.\r\nw_lines = LINES( t_itab ).\r\n<\/pre>\n<p><strong>\u0e27\u0e34\u0e18\u0e35\u0e17\u0e35\u0e48 3 \u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 DESCRIBE TABLE LINES \u0e19\u0e35\u0e49\u0e22\u0e32\u0e27\u0e21\u0e32\u0e19\u0e34\u0e14<br \/>\n<\/strong><\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\nDATA: w_lines TYPE i.\r\nDESCRIBE TABLE t_itab LINES w_lines.\r\n<\/pre>\n<p>\u0e2d\u0e49\u0e32\u0e27\u0e41\u0e25\u0e49\u0e27\u0e17\u0e31\u0e49\u0e07 3 \u0e27\u0e34\u0e18\u0e35 \u0e16\u0e49\u0e32\u0e1e\u0e39\u0e14\u0e16\u0e36\u0e07 Performance \u0e25\u0e48\u0e30 \u0e27\u0e34\u0e18\u0e35\u0e44\u0e2b\u0e19\u0e08\u0e30\u0e14\u0e35\u0e17\u0e35\u0e48\u0e2a\u0e38\u0e14<br \/>\n\u0e27\u0e34\u0e18\u0e35\u0e17\u0e35\u0e48 1 \u0e0a\u0e49\u0e32\u0e2a\u0e38\u0e14\u0e04\u0e23\u0e31\u0e1a<br \/>\n<strong>\u0e27\u0e34\u0e18\u0e35\u0e17\u0e35\u0e48 2 \u0e40\u0e23\u0e47\u0e27\u0e2a\u0e38\u0e14<\/strong><br \/>\n\u0e41\u0e25\u0e30\u0e27\u0e34\u0e18\u0e35\u0e17\u0e35\u0e48 3 \u0e44\u0e14\u0e49\u0e2d\u0e31\u0e19\u0e14\u0e31\u0e1a 2 \u0e17\u0e33\u0e44\u0e2b\u0e21\u0e25\u0e48\u0e30<\/p>\n<blockquote><p>\u0e01\u0e47&#8230;\u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13\u0e27\u0e48\u0e32 \u0e27\u0e34\u0e18\u0e35\u0e17\u0e35\u0e48 1 \u0e19\u0e31\u0e49\u0e19 \u0e21\u0e31\u0e19\u0e15\u0e49\u0e2d\u0e07\u0e27\u0e19\u0e25\u0e39\u0e1b\u0e43\u0e2b\u0e49\u0e2b\u0e21\u0e14\u0e01\u0e48\u0e2d\u0e19 \u0e16\u0e49\u0e32\u0e21\u0e35\u0e41\u0e16\u0e27\u0e40\u0e22\u0e2d\u0e30\u0e01\u0e47\u0e27\u0e19\u0e25\u0e39\u0e1b\u0e40\u0e22\u0e2d\u0e30<br \/>\n\u0e27\u0e34\u0e18\u0e35\u0e17\u0e35\u0e48 2 \u0e21\u0e31\u0e19\u0e43\u0e0a\u0e49 \u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19 \u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13\u0e27\u0e48\u0e32 \u0e01\u0e23\u0e30\u0e42\u0e14\u0e14\u0e44\u0e1b\u0e40\u0e2d\u0e32\u0e04\u0e48\u0e32\u0e41\u0e16\u0e27\u0e2a\u0e38\u0e14\u0e17\u0e49\u0e32\u0e22\u0e21\u0e32\u0e40\u0e25\u0e22<br \/>\n\u0e27\u0e34\u0e18\u0e35\u0e17\u0e35\u0e48 3 \u0e21\u0e31\u0e19\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e40\u0e2d\u0e32\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02\u0e41\u0e16\u0e27 \u0e02\u0e2d\u0e07\u0e41\u0e16\u0e27\u0e2a\u0e38\u0e14\u0e17\u0e49\u0e32\u0e22\u0e02\u0e2d\u0e07\u0e15\u0e32\u0e23\u0e32\u0e07\u0e40\u0e17\u0e40\u0e1a\u0e34\u0e25<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u0e43\u0e19\u0e1a\u0e32\u0e07\u0e04\u0e23\u0e31\u0e49\u0e07\u0e40\u0e23\u0e32\u0e08\u0e33\u0e40\u0e1b\u0e47\u0e19\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e17\u0e23\u0e32\u0e1a\u0e08\u0e33\u0e19\u0e27\u0e19\u0e41\u0e16\u0e27\u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14\u0e43\u0e19 Internal tables \u0e27\u0e48\u0e32\u0e21\u0e35\u0e08\u0e33\u0e19\u0e27\u0e19\u0e01\u0e35\u0e48\u0e41\u0e16\u0e27 \u0e0b\u0e36\u0e48\u0e07\u0e2b\u0e25\u0e31\u0e01\u0e01\u0e32\u0e23\u0e21\u0e31\u0e19\u0e04\u0e25\u0e49\u0e32\u0e22\u0e01\u0e31\u0e1a SELECT COUNT(*) \u0e41\u0e15\u0e48\u0e40\u0e23\u0e32\u0e08\u0e30\u0e21\u0e32\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 Count \u0e43\u0e19 internal table \u0e21\u0e31\u0e19\u0e01\u0e47\u0e43\u0e0a\u0e49\u0e44\u0e21\u0e48\u0e44\u0e14\u0e49 \u0e40\u0e1e\u0e23\u0e32\u0e30\u0e21\u0e31\u0e19\u0e1c\u0e34\u0e14 Syntax \u0e14\u0e31\u0e07\u0e19\u0e31\u0e49\u0e19\u0e40\u0e23\u0e32\u0e08\u0e30\u0e17\u0e33\u0e44\u0e07\u0e14\u0e35\u0e25\u0e48\u0e30 \u0e1b\u0e34\u0e49\u0e07! \u0e04\u0e34\u0e14\u0e2d\u0e2d\u0e01\u0e41\u0e25\u0e49\u0e27<\/p>\n","protected":false},"author":1,"featured_media":985,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_options":[]},"categories":[250,384,251],"tags":[331,287,255,288,254],"class_list":["post-1003","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programmer","category-archive-blog","category-sap-abap","tag-abap-code","tag-get-rows-count","tag-how-to","tag-internal-table","tag-sap"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"http:\/\/www.todsapon.com\/story\/wp-content\/uploads\/2018\/11\/sap-abap.jpg","jetpack_shortlink":"https:\/\/wp.me\/p5sZE6-gb","amp_enabled":true,"_links":{"self":[{"href":"http:\/\/www.todsapon.com\/story\/wp-json\/wp\/v2\/posts\/1003","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.todsapon.com\/story\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.todsapon.com\/story\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.todsapon.com\/story\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.todsapon.com\/story\/wp-json\/wp\/v2\/comments?post=1003"}],"version-history":[{"count":7,"href":"http:\/\/www.todsapon.com\/story\/wp-json\/wp\/v2\/posts\/1003\/revisions"}],"predecessor-version":[{"id":1112,"href":"http:\/\/www.todsapon.com\/story\/wp-json\/wp\/v2\/posts\/1003\/revisions\/1112"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.todsapon.com\/story\/wp-json\/wp\/v2\/media\/985"}],"wp:attachment":[{"href":"http:\/\/www.todsapon.com\/story\/wp-json\/wp\/v2\/media?parent=1003"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.todsapon.com\/story\/wp-json\/wp\/v2\/categories?post=1003"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.todsapon.com\/story\/wp-json\/wp\/v2\/tags?post=1003"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}