{"id":1266,"date":"2009-12-16T15:43:25","date_gmt":"2009-12-16T08:43:25","guid":{"rendered":"http:\/\/www.todsapon.com\/story\/?p=1266"},"modified":"2020-12-16T15:21:48","modified_gmt":"2020-12-16T08:21:48","slug":"read-value-from-checkbox-easy-step","status":"publish","type":"post","link":"http:\/\/www.todsapon.com\/story\/archive-blog\/read-value-from-checkbox-easy-step","title":{"rendered":"ABAP CODE:\u0e01\u0e32\u0e23\u0e2d\u0e48\u0e32\u0e19\u0e04\u0e48\u0e32\u0e08\u0e32\u0e01 \u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 checkbox \u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e41\u0e1a\u0e1a Easy Easy"},"content":{"rendered":"<p><strong>\u0e40\u0e01\u0e23\u0e34\u0e48\u0e19:<\/strong> \u0e43\u0e19\u0e01\u0e23\u0e13\u0e35\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e17\u0e33\u0e41\u0e1a\u0e1a\u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e43\u0e2b\u0e49 User \u0e17\u0e33\u0e01\u0e32\u0e23\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e04\u0e33\u0e15\u0e2d\u0e1a \u0e0b\u0e36\u0e48\u0e07\u0e04\u0e33\u0e15\u0e2d\u0e1a\u0e19\u0e31\u0e49\u0e19\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e21\u0e35\u0e21\u0e32\u0e01\u0e01\u0e27\u0e48\u0e32 1 \u0e02\u0e36\u0e49\u0e19\u0e2d\u0e22\u0e39\u0e48\u0e01\u0e31\u0e1a\u0e17\u0e32\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e43\u0e19 Table \u0e2b\u0e23\u0e37\u0e2d Internal Table \u0e42\u0e14\u0e22\u0e23\u0e30\u0e1a\u0e1a\u0e08\u0e30\u0e40\u0e01\u0e47\u0e1a\u0e40\u0e09\u0e1e\u0e32\u0e30\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e17\u0e35\u0e48\u0e16\u0e39\u0e01\u0e40\u0e25\u0e37\u0e2d\u0e01<br \/>\n<strong>\u0e1e\u0e23\u0e30\u0e40\u0e2d\u0e01\u0e02\u0e2d\u0e07\u0e07\u0e32\u0e19\u0e19\u0e35\u0e49\u0e04\u0e37\u0e2d<\/strong> read line sy-index field value &lt;\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23&gt;.<\/p>\n<p><!--more--><br \/>\n\u0e2b\u0e19\u0e49\u0e32 Sccreen<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1267\" src=\"http:\/\/www.todsapon.com\/story\/wp-content\/uploads\/2019\/06\/screen-zcheckbox-11.png\" alt=\"\" width=\"350\" height=\"115\" srcset=\"http:\/\/www.todsapon.com\/story\/wp-content\/uploads\/2019\/06\/screen-zcheckbox-11.png 350w, http:\/\/www.todsapon.com\/story\/wp-content\/uploads\/2019\/06\/screen-zcheckbox-11-300x99.png 300w\" sizes=\"auto, (max-width: 350px) 100vw, 350px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1268\" src=\"http:\/\/www.todsapon.com\/story\/wp-content\/uploads\/2019\/06\/screen-zcheckbox-2.png\" alt=\"\" width=\"350\" height=\"103\" srcset=\"http:\/\/www.todsapon.com\/story\/wp-content\/uploads\/2019\/06\/screen-zcheckbox-2.png 350w, http:\/\/www.todsapon.com\/story\/wp-content\/uploads\/2019\/06\/screen-zcheckbox-2-300x88.png 300w\" sizes=\"auto, (max-width: 350px) 100vw, 350px\" \/><\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\n*****************************************************\n*  Program      : zreadcheckbox                                        *\n*  Title        : \u0e01\u0e32\u0e23\u0e2d\u0e48\u0e32\u0e19\u0e04\u0e48\u0e32\u0e08\u0e32\u0e01 \u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 checkbox \u0e1e\u0e23\u0e49\u0e2d\u0e21 Easy Exampl      *\n*  Author       : Todsapon Kumnuan (todsapon.com)                      *\n*  Date created : 16.12.2009                                           *\n*  R\/3 Release  : ECC5                                                 *\n*****************************************************\nREPORT  zreadcheckbox\nMESSAGE-ID zz\nNO STANDARD PAGE HEADING.\n<\/pre>\n<p>\u0e2a\u0e48\u0e27\u0e19\u0e02\u0e2d\u0e07 I N T E R N A L T A B L E<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\nDATA: BEGIN OF t_webmail OCCURS 0,\nname(20) TYPE c,\nEND OF t_webmail.\n\nDATA: BEGIN OF t_itab OCCURS 0,\nname(20) TYPE c,\nEND OF t_itab.\n<\/pre>\n<p>\u0e2a\u0e48\u0e27\u0e19\u0e02\u0e2d\u0e07 W O R K I N G S T O R A G E D A T A<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\nDATA: w_select     TYPE   checkbox.\nDATA: w_name(20) TYPE c.\n<\/pre>\n<p>\u0e2a\u0e48\u0e27\u0e19\u0e02\u0e2d\u0e07 S T A R T &#8211; O F &#8211; S E L E C T I O N<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\nSTART-OF-SELECTION.\n\n*&amp;amp;lt;todsapon .com:\u0e19\u0e33\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 webmail \u0e25\u0e07 Internal Table t_webmail:\nt_webmail-name = 'hotmail'.\nAPPEND t_webmail.\nt_webmail-name = 'gmail'.\nAPPEND t_webmail.\nt_webmail-name = 'yahoo'.\nAPPEND t_webmail.\n\nWRITE: \/5 '\u0e01\u0e23\u0e38\u0e13\u0e32\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e2d\u0e35\u0e40\u0e21\u0e25\u0e4c\u0e17\u0e35\u0e48\u0e17\u0e48\u0e32\u0e19\u0e43\u0e0a\u0e49 \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e44\u0e14\u0e49\u0e21\u0e32\u0e01\u0e01\u0e27\u0e48\u0e32 1'.\nULINE.\n*&amp;amp;lt;todsapon .com:\u0e41\u0e2a\u0e14\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14\u0e43\u0e19 Internal Table t_webmail \u0e42\u0e14\u0e22\u0e41\u0e2a\u0e14\u0e07\u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a Checkbox:\nLOOP AT t_webmail.\nw_name = t_webmail-name.\nWRITE:\/5  w_select AS CHECKBOX,\n8  w_name.\nWRITE AT sy-linsz ''.\nENDLOOP.\n\n*&amp;amp;lt;todsapon .com:\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e04\u0e48\u0e32\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e43\u0e0a\u0e49 GUI LIST:\nSET PF-STATUS 'LIST'.\n\n*&amp;amp;lt;todsapon .com: \u0e01\u0e33\u0e2b\u0e19\u0e14\u0e40\u0e07\u0e37\u0e48\u0e2d\u0e19\u0e44\u0e02\u0e02\u0e2d\u0e07\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e02\u0e2d\u0e07 GUI:\nAT USER-COMMAND.\nIF sy-ucomm = 'EXEC'.\nWHILE sy-subrc EQ 0 .\nCLEAR : w_select,w_name.\n*&amp;amp;lt;todsapon .com:\u0e2d\u0e48\u0e32\u0e19\u0e04\u0e48\u0e32\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e43\u0e19\u0e23\u0e32\u0e22\u0e01\u0e32\u0e23\u0e17\u0e35\u0e48\u0e40\u0e25\u0e37\u0e2d\u0e01 \u0e42\u0e14\u0e22 sy-index \u0e40\u0e23\u0e34\u0e48\u0e21\u0e17\u0e35\u0e48 0 \u0e16\u0e36\u0e07 \u0e08\u0e33\u0e19\u0e27\u0e19 checkbox:\nREAD LINE sy-index FIELD VALUE w_select w_name.\n*&amp;amp;lt;todsapon .com:\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e04\u0e48\u0e32 \u0e16\u0e49\u0e32\u0e40\u0e08\u0e2d\u0e43\u0e2b\u0e49\u0e17\u0e33:\nCHECK sy-subrc EQ 0.\n*&amp;amp;lt;todsapon .com:\u0e40\u0e2d\u0e32\u0e40\u0e09\u0e1e\u0e32\u0e30 w_select \u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19 'X':\nIF w_select = 'X'.\nt_itab-name = w_name.\n*&amp;amp;lt;todsapon .com:\u0e1a\u0e31\u0e19\u0e17\u0e36\u0e01\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e07\u0e25\u0e07 Internal Table t_itab:\nAPPEND t_itab.\nENDIF.\n\nENDWHILE.\n*&amp;amp;lt;todsapon .com:\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e43\u0e0a\u0e49 Form display_report:\nPERFORM display_report.\nENDIF.\n<\/pre>\n<p>\u0e2a\u0e48\u0e27\u0e19\u0e02\u0e2d\u0e07 S U B R O U T I N E S Form display_report.<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\"> FORM display_report. *&amp;amp;lt;todsapon .com:\u0e41\u0e2a\u0e14\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e17\u0e35\u0e48\u0e44\u0e14\u0e49\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e2d\u0e2d\u0e01\u0e2b\u0e19\u0e49\u0e32\u0e08\u0e2d:   WRITE: \/5 '\u0e04\u0e38\u0e13\u0e44\u0e14\u0e49\u0e43\u0e0a\u0e49\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e2d\u0e35\u0e40\u0e21\u0e25\u0e4c\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49'.   ULINE.    SORT t_itab BY name.   LOOP AT t_itab.     WRITE \/8 t_itab-name.   ENDLOOP. ENDFORM.                    &amp;amp;quot;display_report <\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u0e40\u0e01\u0e23\u0e34\u0e48\u0e19: \u0e43\u0e19\u0e01\u0e23\u0e13\u0e35\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e17\u0e33\u0e41\u0e1a\u0e1a\u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e43\u0e2b\u0e49 User \u0e17\u0e33\u0e01\u0e32\u0e23\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e04\u0e33\u0e15\u0e2d\u0e1a \u0e0b\u0e36\u0e48\u0e07\u0e04\u0e33\u0e15\u0e2d\u0e1a\u0e19\u0e31\u0e49\u0e19\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e21\u0e35\u0e21\u0e32\u0e01\u0e01\u0e27\u0e48\u0e32 1 \u0e02\u0e36\u0e49\u0e19\u0e2d\u0e22\u0e39\u0e48\u0e01\u0e31\u0e1a\u0e17\u0e32\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e43\u0e19 Table \u0e2b\u0e23\u0e37\u0e2d Internal Table \u0e42\u0e14\u0e22\u0e23\u0e30\u0e1a\u0e1a\u0e08\u0e30\u0e40\u0e01\u0e47\u0e1a\u0e40\u0e09\u0e1e\u0e32\u0e30\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e17\u0e35\u0e48\u0e16\u0e39\u0e01\u0e40\u0e25\u0e37\u0e2d\u0e01 \u0e1e\u0e23\u0e30\u0e40\u0e2d\u0e01\u0e02\u0e2d\u0e07\u0e07\u0e32\u0e19\u0e19\u0e35\u0e49\u0e04\u0e37\u0e2d read line sy-index field value &lt;\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23&gt;.<\/p>\n","protected":false},"author":1,"featured_media":1654,"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":[384,250,251],"tags":[],"class_list":["post-1266","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-archive-blog","category-programmer","category-sap-abap"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"http:\/\/www.todsapon.com\/story\/wp-content\/uploads\/2020\/08\/sap.png","jetpack_shortlink":"https:\/\/wp.me\/p5sZE6-kq","amp_enabled":true,"_links":{"self":[{"href":"http:\/\/www.todsapon.com\/story\/wp-json\/wp\/v2\/posts\/1266","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=1266"}],"version-history":[{"count":3,"href":"http:\/\/www.todsapon.com\/story\/wp-json\/wp\/v2\/posts\/1266\/revisions"}],"predecessor-version":[{"id":1680,"href":"http:\/\/www.todsapon.com\/story\/wp-json\/wp\/v2\/posts\/1266\/revisions\/1680"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.todsapon.com\/story\/wp-json\/wp\/v2\/media\/1654"}],"wp:attachment":[{"href":"http:\/\/www.todsapon.com\/story\/wp-json\/wp\/v2\/media?parent=1266"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.todsapon.com\/story\/wp-json\/wp\/v2\/categories?post=1266"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.todsapon.com\/story\/wp-json\/wp\/v2\/tags?post=1266"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}