{"id":1454,"date":"2019-08-06T17:00:43","date_gmt":"2019-08-06T10:00:43","guid":{"rendered":"http:\/\/www.todsapon.com\/story\/?p=1454"},"modified":"2020-12-15T14:36:36","modified_gmt":"2020-12-15T07:36:36","slug":"abap-codehow-to-set-default-value-in-select-option-for-abap-query","status":"publish","type":"post","link":"http:\/\/www.todsapon.com\/story\/programmer\/abap-codehow-to-set-default-value-in-select-option-for-abap-query","title":{"rendered":"ABAP Code:How to set default value in select option for ABAP query"},"content":{"rendered":"<div id=\"attachment_985\" style=\"width: 680px\" class=\"wp-caption aligncenter\"><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 Code:How to set default value in select option for ABAP query\" 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\" \/><p id=\"caption-attachment-985\" class=\"wp-caption-text\">ABAP Code:How to set default value in select option for ABAP query<\/p><\/div>\n<p>\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49\u0e1c\u0e21\u0e2d\u0e22\u0e32\u0e01\u0e08\u0e30\u0e41\u0e0a\u0e23\u0e4c\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e01\u0e31\u0e1a ABAP query \u0e43\u0e19\u0e2b\u0e31\u0e27\u0e02\u0e49\u0e2d <strong>&#8220;<a href=\"http:\/\/www.todsapon.com\/story\/programmer\/abap-codehow-to-set-default-value-in-select-option-for-abap-query\">How to set default value in select option for ABAP query<\/a>&#8220;<\/strong> \u0e1e\u0e39\u0e14\u0e41\u0e1a\u0e1a\u0e1a\u0e49\u0e32\u0e19\u0e46 \u0e01\u0e47\u0e04\u0e37\u0e2d \u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e43\u0e2a\u0e48\u0e04\u0e48\u0e32\u0e43\u0e19 select option \u0e02\u0e2d\u0e07 Report query&nbsp; <!--more--><\/p>\n<p>\u0e40\u0e01\u0e23\u0e34\u0e48\u0e19\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e25\u0e22\u0e27\u0e48\u0e32 \u0e1b\u0e23\u0e01\u0e15\u0e34\u0e41\u0e25\u0e49\u0e27 \u0e44\u0e2d\u0e49\u0e40\u0e08\u0e49\u0e32 ABAP query&nbsp; \u0e19\u0e35\u0e49 \u0e21\u0e31\u0e19\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e23\u0e30\u0e1a\u0e38\u0e04\u0e48\u0e32\u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b\u0e43\u0e19 select option \u0e02\u0e2d\u0e07\u0e21\u0e31\u0e19\u0e44\u0e14\u0e49 <strong>\u0e1c\u0e48\u0e32\u0e19 TCODE SQ01 \u0e40\u0e25\u0e37\u0e2d\u0e01\u0e1b\u0e38\u0e48\u0e21 Info query \u0e41\u0e15\u0e48 \u0e1b\u0e23\u0e30\u0e40\u0e14\u0e47\u0e19\u0e17\u0e35\u0e48\u0e1c\u0e21\u0e08\u0e30\u0e1a\u0e2d\u0e01\u0e04\u0e37\u0e2d \u0e04\u0e48\u0e32\u0e17\u0e35\u0e48\u0e08\u0e30\u0e43\u0e2a\u0e48\u0e19\u0e31\u0e49\u0e19 \u0e21\u0e31\u0e19\u0e08\u0e33\u0e40\u0e1b\u0e47\u0e19\u0e15\u0e49\u0e2d\u0e07\u0e40\u0e1b\u0e47\u0e19\u0e04\u0e48\u0e32\u0e17\u0e35\u0e48\u0e16\u0e39\u0e01\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e21\u0e32\u0e15\u0e32\u0e22\u0e15\u0e31\u0e27<\/strong> \u0e0b\u0e36\u0e48\u0e07\u0e1a\u0e32\u0e07\u0e04\u0e23\u0e31\u0e49\u0e07\u0e21\u0e31\u0e19\u0e01\u0e47\u0e44\u0e21\u0e48\u0e15\u0e2d\u0e1a\u0e42\u0e08\u0e17\u0e22\u0e4c \u0e40\u0e1e\u0e23\u0e32\u0e30 \u0e40\u0e23\u0e32\u0e2d\u0e22\u0e32\u0e01\u0e43\u0e2b\u0e49\u0e21\u0e31\u0e19\u0e23\u0e30\u0e1a\u0e38\u0e04\u0e48\u0e32\u0e41\u0e1a\u0e1a\u0e1b\u0e31\u0e08\u0e08\u0e38\u0e1a\u0e31\u0e19 \u0e40\u0e2d\u0e32\u0e07\u0e48\u0e32\u0e22\u0e46 \u0e40\u0e23\u0e32\u0e2d\u0e22\u0e32\u0e01\u0e43\u0e2b\u0e49\u0e21\u0e31\u0e19\u0e40\u0e01\u0e47\u0e1a\u0e04\u0e48\u0e32 \u0e27\u0e31\u0e19\u0e17\u0e35\u0e48\u0e1b\u0e31\u0e08\u0e08\u0e38\u0e1a\u0e31\u0e19 \u0e0b\u0e36\u0e48\u0e07 \u0e44\u0e2d\u0e49\u0e40\u0e08\u0e49\u0e32 \u0e1b\u0e38\u0e48\u0e21 Info query&nbsp; \u0e21\u0e31\u0e19\u0e44\u0e21\u0e48\u0e15\u0e2d\u0e1a\u0e42\u0e08\u0e17\u0e22\u0e4c\u0e43\u0e19\u0e08\u0e38\u0e14\u0e19\u0e35\u0e49<\/p>\n<h2>\u0e14\u0e31\u0e07\u0e19\u0e31\u0e49\u0e19\u0e40\u0e23\u0e32\u0e08\u0e36\u0e07\u0e15\u0e49\u0e2d\u0e07\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e02\u0e36\u0e49\u0e19\u0e21\u0e32 \u0e42\u0e14\u0e22\u0e41\u0e1a\u0e48\u0e07\u0e40\u0e1b\u0e47\u0e19 3 \u0e2a\u0e48\u0e27\u0e19 \u0e42\u0e14\u0e22 3 \u0e2a\u0e48\u0e27\u0e19\u0e19\u0e35\u0e49 \u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19 TCODE SQ02<\/h2>\n<div id=\"attachment_1459\" style=\"width: 789px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1459\" class=\"size-full wp-image-1459\" src=\"http:\/\/www.todsapon.com\/story\/wp-content\/uploads\/2019\/08\/ABAP-query01.jpg\" alt=\"ABAP Code:How to set default value in select option for ABAP query\" width=\"779\" height=\"424\" srcset=\"http:\/\/www.todsapon.com\/story\/wp-content\/uploads\/2019\/08\/ABAP-query01.jpg 779w, http:\/\/www.todsapon.com\/story\/wp-content\/uploads\/2019\/08\/ABAP-query01-300x163.jpg 300w, http:\/\/www.todsapon.com\/story\/wp-content\/uploads\/2019\/08\/ABAP-query01-768x418.jpg 768w, http:\/\/www.todsapon.com\/story\/wp-content\/uploads\/2019\/08\/ABAP-query01-520x283.jpg 520w\" sizes=\"auto, (max-width: 779px) 100vw, 779px\" \/><p id=\"caption-attachment-1459\" class=\"wp-caption-text\">ABAP Code:How to set default value in select option for ABAP query<\/p><\/div>\n<h3><strong>\u0e2a\u0e48\u0e27\u0e19\u0e17\u0e35\u0e48 1 \u0e2a\u0e48\u0e27\u0e19\u0e02\u0e2d\u0e07 DATA<\/strong><\/h3>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nDATA : LV_DATUM TYPE BUT021_FS-VALID_TO.\nRANGES:\nR_VALID_TO FOR BUT021_FS-VALID_TO,\nR_VALID_FROM FOR BUT021_FS-VALID_FROM.\n\nCONSTANTS : LV_VALID_TO(10) VALUE 'SP$00020[]',\nLV_VALID_FROM(10) VALUE 'SP$00022[]'.\n\nFIELD-SYMBOLS: &amp;lt;FS_VALID_TO&amp;gt; TYPE ANY TABLE,\n&amp;lt;FS_VALID_FROM&amp;gt; TYPE ANY TABLE.\n<\/pre>\n<h3><strong>\u0e2a\u0e48\u0e27\u0e19\u0e17\u0e35\u0e48 2 \u0e2a\u0e48\u0e27\u0e19\u0e02\u0e2d\u0e07 INITIALIZATION<\/strong><\/h3>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\nCLEAR lv_datum.\nGET TIME STAMP FIELD lv_datum.\n&quot;valid_to\nr_valid_to-sign = 'I'.\nr_valid_to-option = 'GE'.\nr_valid_to-low = lv_datum.\nAPPEND r_valid_to.\n&quot;valid_from\nr_valid_from-sign = 'I'.\nr_valid_from-option = 'LE'.\nr_valid_from-low = lv_datum.\nAPPEND r_valid_from.\nASSIGN (lv_valid_to) TO &amp;lt;fs_valid_to&amp;gt;.\nASSIGN (lv_valid_from) TO &amp;lt;fs_valid_from&amp;gt;.\n\n<\/pre>\n<h3><strong>\u0e2a\u0e48\u0e27\u0e19\u0e17\u0e35\u0e48 3 \u0e2a\u0e48\u0e27\u0e19\u0e02\u0e2d\u0e07 START-OF-SELECTION<\/strong><\/h3>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&amp;lt;fs_valid_to&amp;gt; = r_valid_to[].\n&amp;lt;fs_valid_from&amp;gt; = r_valid_from[].\n<\/pre>\n<blockquote><p>\u0e2a\u0e23\u0e38\u0e1b\u0e41\u0e1a\u0e1a \u0e2a\u0e44\u0e15\u0e25\u0e4c Programmer \u0e19\u0e30<br \/>\n\u0e04\u0e37\u0e2d \u0e1b\u0e23\u0e30\u0e01\u0e32\u0e28\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 R_VALID_TO \u0e41\u0e25\u0e30 R_VALID_FROM \u0e21\u0e32\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e40\u0e01\u0e47\u0e1a\u0e04\u0e48\u0e32\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23 \u0e42\u0e14\u0e22\u0e04\u0e48\u0e32\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e40\u0e2d\u0e32\u0e21\u0e32\u0e43\u0e2a\u0e48 \u0e2d\u0e32\u0e08\u0e16\u0e39\u0e01\u0e1c\u0e48\u0e32\u0e19\u0e25\u0e2d\u0e08\u0e34\u0e01\u0e21\u0e32\u0e01\u0e48\u0e2d\u0e19 \u0e2d\u0e22\u0e48\u0e32\u0e07\u0e40\u0e0a\u0e48\u0e19\u0e43\u0e19\u0e17\u0e35\u0e48\u0e19\u0e35\u0e49 \u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e44\u0e14\u0e49\u0e04\u0e48\u0e32\u0e27\u0e31\u0e19\u0e17\u0e35\u0e48 \u0e1b\u0e31\u0e08\u0e08\u0e38\u0e1a\u0e31\u0e19<br \/>\n\u0e14\u0e31\u0e07\u0e19\u0e31\u0e49\u0e19 \u0e25\u0e2d\u0e08\u0e34\u0e01 \u0e17\u0e35\u0e48\u0e14\u0e36\u0e07\u0e04\u0e48\u0e32\u0e1b\u0e31\u0e08\u0e08\u0e38\u0e1a\u0e31\u0e19 \u0e04\u0e37\u0e2d<br \/>\nGET TIME STAMP FIELD lv_datum.<\/p>\n<p>\u0e40\u0e23\u0e32\u0e40\u0e2d\u0e32\u0e04\u0e48\u0e32\u0e19\u0e31\u0e49\u0e19 \u0e21\u0e32\u0e43\u0e2a\u0e48 \u0e43\u0e2b\u0e49\u0e01\u0e31\u0e1a R_VALID_TO \u0e41\u0e25\u0e30 R_VALID_FROM \u0e0b\u0e36\u0e48\u0e07\u0e01\u0e32\u0e23\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e08\u0e30\u0e40\u0e2d\u0e32\u0e04\u0e48\u0e32\u0e1e\u0e27\u0e01\u0e19\u0e35\u0e49 \u0e44\u0e1b\u0e43\u0e2a\u0e48\u0e43\u0e19 screen optione \u0e19\u0e31\u0e49\u0e19 \u0e40\u0e23\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e43\u0e0a\u0e49\u0e27\u0e34\u0e18\u0e35 ASSIGN FIELD-SYMBOLS \u0e40\u0e1e\u0e23\u0e32\u0e30\u0e27\u0e48\u0e32 \u0e13 \u0e15\u0e2d\u0e19\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e17\u0e33 ABAP query \u0e19\u0e31\u0e49\u0e19 \u0e40\u0e08\u0e49\u0e32 screen option \u0e19\u0e31\u0e49\u0e19\u0e21\u0e31\u0e19\u0e44\u0e21\u0e48\u0e44\u0e14\u0e49\u0e21\u0e35\u0e01\u0e32\u0e23\u0e1b\u0e23\u0e30\u0e01\u0e32\u0e28\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 \u0e40\u0e23\u0e32\u0e08\u0e36\u0e07\u0e15\u0e49\u0e2d\u0e07\u0e43\u0e0a\u0e49\u0e27\u0e34\u0e18\u0e35\u0e19\u0e35\u0e49 \u0e25\u0e2d\u0e07\u0e17\u0e33\u0e14\u0e39 \u0e16\u0e49\u0e32\u0e15\u0e34\u0e14\u0e1b\u0e31\u0e0d\u0e2b\u0e32\u0e2d\u0e30\u0e44\u0e23 \u0e04\u0e2d\u0e21\u0e40\u0e21\u0e19\u0e15\u0e4c\u0e21\u0e32\u0e44\u0e14\u0e49\u0e40\u0e25\u0e22 \u0e22\u0e34\u0e19\u0e14\u0e35\u0e15\u0e2d\u0e1a\u0e04\u0e23\u0e31\u0e1a\u0e1c\u0e21 \ud83d\ude09<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49\u0e1c\u0e21\u0e2d\u0e22\u0e32\u0e01\u0e08\u0e30\u0e41\u0e0a\u0e23\u0e4c\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e01\u0e31\u0e1a ABAP query \u0e43\u0e19\u0e2b\u0e31\u0e27\u0e02\u0e49\u0e2d &#8220;How to set default value in select option for ABAP query&#8220; \u0e1e\u0e39\u0e14\u0e41\u0e1a\u0e1a\u0e1a\u0e49\u0e32\u0e19\u0e46 \u0e01\u0e47\u0e04\u0e37\u0e2d \u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e43\u0e2a\u0e48\u0e04\u0e48\u0e32\u0e43\u0e19 select option \u0e02\u0e2d\u0e07 Report query&nbsp;<\/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":[250,251],"tags":[331,438,255,276,277],"class_list":["post-1454","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programmer","category-sap-abap","tag-abap-code","tag-abap-query","tag-how-to","tag-sq01","tag-sq02"],"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-ns","amp_enabled":true,"_links":{"self":[{"href":"http:\/\/www.todsapon.com\/story\/wp-json\/wp\/v2\/posts\/1454","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=1454"}],"version-history":[{"count":10,"href":"http:\/\/www.todsapon.com\/story\/wp-json\/wp\/v2\/posts\/1454\/revisions"}],"predecessor-version":[{"id":1667,"href":"http:\/\/www.todsapon.com\/story\/wp-json\/wp\/v2\/posts\/1454\/revisions\/1667"}],"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=1454"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.todsapon.com\/story\/wp-json\/wp\/v2\/categories?post=1454"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.todsapon.com\/story\/wp-json\/wp\/v2\/tags?post=1454"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}