{"id":7375,"date":"2025-08-05T01:21:26","date_gmt":"2025-08-04T19:51:26","guid":{"rendered":"https:\/\/www.sapewmhelp.com\/?question=use-of-hide-keyword-in-sap-abap"},"modified":"2025-08-05T01:21:26","modified_gmt":"2025-08-04T19:51:26","slug":"use-of-hide-keyword-in-sap-abap","status":"publish","type":"question","link":"https:\/\/www.sapewmhelp.com\/?question=use-of-hide-keyword-in-sap-abap","title":{"rendered":"Use of Hide keyword in sap abap"},"content":{"rendered":"<p>It stores the value of a variable or field at the time the line is being written to the list. Later, when that line is clicked (e.g., in an <code>AT LINE-SELECTION<\/code> event), the hidden values are automatically restored.<\/p>\n<h3 data-start=\"586\" data-end=\"606\">How it works:<\/h3>\n<ul>\n<li>\n<p>During <code>WRITE<\/code> statements in the <strong>basic list<\/strong>, you use <code>HIDE<\/code> to store additional data in the background.<\/p>\n<\/li>\n<li>\n<p>When the user interacts (e.g., double-clicks) on that list line, the system retrieves the hidden data, which you can then use in the <code>AT LINE-SELECTION<\/code> event.<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-ts\" data-lang=\"TypeScript\"><code><!--StartFragment --><span><span>REPORT\u00a0<\/span>zprg_test_ecc<span>.<\/span>\r\n\r\n<span>DATA<\/span><span>:\u00a0<\/span>v_ename\u00a0<span>TYPE\u00a0<\/span>ename<span>,<\/span>\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0v_empno\u00a0<span>TYPE\u00a0<\/span>empno<span>.<\/span>\r\n\r\n<span>START-OF-SELECTION<\/span><span>.<\/span>\r\n\r\n\u00a0\u00a0<span>SELECT\u00a0<\/span>empno\u00a0ename\u00a0<span>FROM\u00a0<\/span>emp\u00a0<span>INTO\u00a0<\/span><span>(<\/span>v_empno<span>,\u00a0<\/span>v_ename<span>)<\/span><span>.<\/span>\r\n\u00a0\u00a0\u00a0\u00a0<span>WRITE<\/span><span>:\u00a0<\/span>\/\u00a0v_ename<span>.<\/span>\r\n\u00a0\u00a0\u00a0\u00a0<span>HIDE<\/span><span>:\u00a0<\/span>v_empno<span>,\u00a0<\/span>v_ename<span>.<\/span>\r\n\u00a0\u00a0<span>ENDSELECT<\/span><span>.<\/span>\r\n\r\n<span>AT\u00a0<\/span><span>LINE-SELECTION<\/span><span>.<\/span>\r\n\r\n\u00a0\u00a0<span>WRITE<\/span><span>:\u00a0<\/span>\/\u00a0<span>'Details\u00a0for\u00a0employee:'<\/span><span>,<\/span>\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/\u00a0<span>'EmpNo:'<\/span><span>,\u00a0<\/span>v_empno<span>,<\/span>\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/\u00a0<span>'Name:'<\/span><span>,\u00a0<\/span>v_ename<span>.<\/span><\/span> <\/code><\/pre>\n<\/div>\n<\/li>\n<\/ul>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","question-category":[158],"question_tags":[178,282,177],"class_list":["post-7375","question","type-question","status-publish","hentry","question-category-abap","question_tags-abap","question_tags-hide","question_tags-sap"],"_links":{"self":[{"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=\/wp\/v2\/question\/7375","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=\/wp\/v2\/question"}],"about":[{"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7375"}],"wp:attachment":[{"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7375"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fquestion-category&post=7375"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/www.sapewmhelp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fquestion_tags&post=7375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}