{"id":410,"date":"2013-04-12T13:29:03","date_gmt":"2013-04-12T12:29:03","guid":{"rendered":"http:\/\/oprsteny.cz\/?p=410"},"modified":"2013-04-17T17:55:42","modified_gmt":"2013-04-17T16:55:42","slug":"how-to-display-a-popup-with-items-for-selection-in-abap","status":"publish","type":"post","link":"https:\/\/oprsteny.cz\/?p=410","title":{"rendered":"How to display a popup with items for selection in ABAP"},"content":{"rendered":"<p><a href=\"http:\/\/oprsteny.cz\/wp-content\/uploads\/SAP.jpg\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"358\" data-permalink=\"https:\/\/oprsteny.cz\/?attachment_id=358\" data-orig-file=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/SAP.jpg\" data-orig-size=\"44,50\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;Picasa&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1365690880&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"SAP\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/SAP.jpg\" class=\"alignleft size-full wp-image-358\" alt=\"SAP\" src=\"http:\/\/oprsteny.cz\/wp-content\/uploads\/SAP.jpg\" width=\"44\" height=\"50\" \/><\/a>In case you&#8217;d like to display a popup with list of values where user can select one or more values than follow the code snippet<br \/>\n<!--more--><\/p>\n<p>&nbsp;<\/p>\n<pre lang=\"abap\">REPORT\u00a0ztest.\n\n TYPE-POOLS:\u00a0slis.\n\n DATA:\u00a0BEGIN\u00a0OF\u00a0lt_data\u00a0OCCURS\u00a00.\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0INCLUDE\u00a0STRUCTURE\u00a0sflight.\n DATA:\u00a0\u00a0\u00a0chk\u00a0TYPE\u00a0c,\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0  \"For\u00a0multiple\u00a0selection\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0END\u00a0OF\u00a0lt_data.\n\n DATA:\n \u00a0\u00a0l_selfield\u00a0TYPE\u00a0slis_selfield.\n\n PARAMETERS:\u00a0p_title\u00a0TYPE\u00a0sy-title.\u00a0\u00a0\"\u00a0Popup\u00a0dialog\u00a0caption\n\n START-OF-SELECTION.\n\n \u00a0\u00a0SELECT\u00a0*\u00a0FROM\u00a0sflight\u00a0INTO\u00a0TABLE\u00a0lt_data.\n\n \u00a0\u00a0CALL\u00a0FUNCTION\u00a0'REUSE_ALV_POPUP_TO_SELECT'\n \u00a0\u00a0\u00a0\u00a0EXPORTING\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0i_title\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0=\u00a0p_title\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0i_selection\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0=\u00a0'X'\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0i_zebra\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0=\u00a0'X'\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0i_checkbox_fieldname\u00a0=\u00a0'CHK'\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0i_tabname\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0=\u00a0'LT_DATA'\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0i_structure_name\u00a0\u00a0\u00a0\u00a0\u00a0=\u00a0'SFLIGHT'\n \u00a0\u00a0\u00a0\u00a0IMPORTING\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0es_selfield\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0=\u00a0l_selfield\n \u00a0\u00a0\u00a0\u00a0TABLES\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0t_outtab\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0=\u00a0lt_data\n \u00a0\u00a0\u00a0\u00a0EXCEPTIONS\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0program_error\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0=\u00a01\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0OTHERS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0=\u00a02.\n\n \u00a0\u00a0WRITE:\u00a0'Selected\u00a0entries:'.\n\n \u00a0\u00a0LOOP\u00a0AT\u00a0lt_data\u00a0WHERE\u00a0w_chk\u00a0=\u00a0'X'.\n \u00a0\u00a0\u00a0\u00a0WRITE:\u00a0\/\u00a0lt_data-carrid,\u00a0lt_data-price.\n \u00a0\u00a0ENDLOOP.<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In case you&#8217;d like to display a popup with list of values where user can select one or more values than follow the code snippet<\/p>\n","protected":false},"author":1,"featured_media":358,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[16,9],"tags":[446,447,84,85,83,17],"class_list":["post-410","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-abap","category-development","tag-abap","tag-alv","tag-list","tag-popup","tag-reuse_alv_popup_to_select","tag-sap"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/oprsteny.cz\/wp-content\/uploads\/SAP.jpg","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3nYbe-6C","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/posts\/410","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=410"}],"version-history":[{"count":8,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/posts\/410\/revisions"}],"predecessor-version":[{"id":457,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/posts\/410\/revisions\/457"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/media\/358"}],"wp:attachment":[{"href":"https:\/\/oprsteny.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=410"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=410"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=410"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}