{"id":1193,"date":"2014-10-30T15:15:32","date_gmt":"2014-10-30T14:15:32","guid":{"rendered":"http:\/\/oprsteny.cz\/?p=1193"},"modified":"2014-10-30T15:15:32","modified_gmt":"2014-10-30T14:15:32","slug":"abap-using-dynamic-variables-in-program-selection-screen-variants","status":"publish","type":"post","link":"https:\/\/oprsteny.cz\/?p=1193","title":{"rendered":"ABAP &#8211; Using dynamic variables in program selection screen variants"},"content":{"rendered":"<p><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=\"size-full wp-image-358 alignleft\" src=\"http:\/\/oprsteny.cz\/wp-content\/uploads\/SAP.jpg\" alt=\"SAP\" width=\"44\" height=\"50\" \/>I believe you once had to solve a requirement (if not, you&#8217;ll definitely receive one in future) where you had to design a SELECTION-SCREEN parameters which value has to be dynamically updated according to results of the program &#8211; eg. last processed IDOC number, Purchase\/Sales Order number or just the last date when the report was executed. <!--more--><\/p>\n<p>One solution is to create a Z-table which will contain just one entry with value you need.<\/p>\n<p>Another, more clean, clear and easy to maintain solution is to use dynamic variables in your variant SELECTION-SCREEN PARAMETERS or SELECT-OPTIONS.<\/p>\n<p>All existing program variants are all stored in table VARI.<br \/>\nVariant texts (descriptions) are stored in table VARIT.<br \/>\nVariant directory structure info is stored in table VARID.<br \/>\nAssignments of variants to selection screens are stored in table VARIS.<\/p>\n<p>The problem is that the select-options and parameters values are stored in a cluster thus they are not easilly accessible &#8211; you can&#8217;t write\/read them easily. It is of course possible using function modules starting on RS_VARIANT*, eg.<\/p>\n<ul>\n<li><strong>RS_VARIANT_CONTENTS<\/strong> &#8211; returns all parameters and select-options with their assigned values for given report and its variant<\/li>\n<li><strong>RS_VARIANT_VARIABLES<\/strong> &#8211; returns all variable values used as a value for a parameter or a select-option for given report and its variant<\/li>\n<li>&#8230;and many others, which allow you to get data about variants and manipulate them.<\/li>\n<\/ul>\n<p>But back to our problem. Let&#8217;s assume you would like to have a selection screen with three fields:<\/p>\n<ul>\n<li>IDOC number with value of last IDOC number processed<\/li>\n<li>Date with value of last report run&#8217;s date<\/li>\n<li>Time with value of last report start&#8217;s time<\/li>\n<\/ul>\n<p>You can achieve this using the RS_VARIANT* function modules: you read all variant parameters and select-options values, modify them in program and update the variant with new values back to cluster using another RS_VARIANT* function module.<\/p>\n<p><strong>More elegant solution<\/strong> would be a variable stored in table TVARVC, which serves as a &#8220;repository&#8221; for all dynamic variables that you can use in your variants:<\/p>\n<ol>\n<li>Create new entries using TCode SM30 in <strong>TVARV<\/strong> view (maintenance of TVARV is rediredcted to TVARVC &#8211; this is because TVARV become obsolete due to lack of client dependency field).<br \/>\nCreation of an entry in TVARVC can also be done directly by the program, but note you can assign only the existing entries in TVARVC to program variants<br \/>\n<a href=\"http:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_05.png\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1198\" data-permalink=\"https:\/\/oprsteny.cz\/?attachment_id=1198\" data-orig-file=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_05.png\" data-orig-size=\"599,250\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&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;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"New variables in TVARVC\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_05.png\" class=\"alignnone size-medium wp-image-1198\" src=\"http:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_05-300x125.png\" alt=\"New variables in TVARVC\" width=\"300\" height=\"125\" srcset=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_05-300x125.png 300w, https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_05-500x208.png 500w, https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_05.png 599w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/li>\n<li>You can include the changed entries in a transport request so you can easily transport the variant variables<\/li>\n<li>In SE38 prepare selection screen of your program, eg.\n<pre lang=\"abap\">PARAMETERS:\r\n p_idoc type edidc-docnum OBLIGATORY,\r\n p_date type sy-datum OBLIGATORY,\r\n p_time type sy-uzeit OBLIGATORY.<\/pre>\n<\/li>\n<li>Go to your report variants and create new variant (in our case we name it &#8216;USE_VARS&#8217;)<\/li>\n<li>For each of our parameters select a &#8220;Selection variable type&#8221; and &#8220;Name of Variable&#8221;<br \/>\n<a href=\"http:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_01.png\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1194\" data-permalink=\"https:\/\/oprsteny.cz\/?attachment_id=1194\" data-orig-file=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_01.png\" data-orig-size=\"1100,464\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&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;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Assign variable from TVARVC\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_01-1024x431.png\" class=\"alignnone size-medium wp-image-1194\" src=\"http:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_01-300x126.png\" alt=\"Assign variable from TVARVC\" width=\"300\" height=\"126\" srcset=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_01-300x126.png 300w, https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_01-1024x431.png 1024w, https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_01-500x210.png 500w, https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_01.png 1100w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n<a href=\"http:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_04.png\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1197\" data-permalink=\"https:\/\/oprsteny.cz\/?attachment_id=1197\" data-orig-file=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_04.png\" data-orig-size=\"1098,339\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&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;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Assigned variables\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_04-1024x316.png\" class=\"alignnone size-medium wp-image-1197\" src=\"http:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_04-300x92.png\" alt=\"Assigned variables\" width=\"300\" height=\"92\" srcset=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_04-300x92.png 300w, https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_04-1024x316.png 1024w, https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_04-500x154.png 500w, https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_04.png 1098w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/li>\n<li>For IDOC there is only type &#8216;T&#8217; (variable from TVARVC table) available.<\/li>\n<li>For DATE (parameter of type date) there are also another type options\n<ul>\n<li>&#8216;D&#8217; &#8211; Dynamic date calculation (Local Time)<\/li>\n<li>&#8216;X&#8217; &#8211; Dynamic date calculation (System Time)<\/li>\n<\/ul>\n<p>&#8230;with available values<\/p>\n<ul>\n<ul>\n<li>Current date<\/li>\n<li>Current date +\/- ??? days<\/li>\n<li>Current date +\/- ??? work days<\/li>\n<li>First day of current month<\/li>\n<li>Nth working day of current month<\/li>\n<li>First day of next month<\/li>\n<li>First day of previous month<\/li>\n<li>Last day of previous month<\/li>\n<li>Last day of the Current month<\/li>\n<\/ul>\n<\/ul>\n<p><a href=\"http:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_02.png\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1195\" data-permalink=\"https:\/\/oprsteny.cz\/?attachment_id=1195\" data-orig-file=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_02.png\" data-orig-size=\"1166,567\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&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;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Dynamic variables of type DATE\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_02-1024x497.png\" class=\"alignnone size-medium wp-image-1195\" src=\"http:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_02-300x145.png\" alt=\"Dynamic variables of type DATE\" width=\"300\" height=\"145\" srcset=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_02-300x145.png 300w, https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_02-1024x497.png 1024w, https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_02-500x243.png 500w, https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_02.png 1166w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/li>\n<li>For TIME (parameter of type time) there are also another type options\n<ul>\n<li>&#8216;Z&#8217; &#8211; Dynamic time calculation (Local Time)<\/li>\n<li>&#8216;Y&#8217; &#8211; Dynamic time calculation (System Time)<\/li>\n<\/ul>\n<p>&#8230;with available values<\/p>\n<ul>\n<li>Current time<\/li>\n<li>Current time +\/- ???<\/li>\n<\/ul>\n<p><a href=\"http:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_03.png\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1196\" data-permalink=\"https:\/\/oprsteny.cz\/?attachment_id=1196\" data-orig-file=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_03.png\" data-orig-size=\"1175,555\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&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;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Dynamic variables of type TIME\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_03-1024x483.png\" class=\"alignnone size-medium wp-image-1196\" src=\"http:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_03-300x141.png\" alt=\"Dynamic variables of type TIME\" width=\"300\" height=\"141\" srcset=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_03-300x141.png 300w, https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_03-1024x483.png 1024w, https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_03-500x236.png 500w, https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_03.png 1175w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/li>\n<\/ol>\n<p>Now we have our program variant ready so let&#8217;s try to execute our report with our variant.<\/p>\n<p><a href=\"http:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_06.png\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1199\" data-permalink=\"https:\/\/oprsteny.cz\/?attachment_id=1199\" data-orig-file=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_06.png\" data-orig-size=\"477,422\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&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;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Start program with variant\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_06.png\" class=\"alignnone size-medium wp-image-1199\" src=\"http:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_06-300x265.png\" alt=\"Start program with variant\" width=\"300\" height=\"265\" srcset=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_06-300x265.png 300w, https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_06-339x300.png 339w, https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_06.png 477w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_07.png\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1200\" data-permalink=\"https:\/\/oprsteny.cz\/?attachment_id=1200\" data-orig-file=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_07.png\" data-orig-size=\"380,115\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&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;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Selection screen before variables are modified\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_07.png\" class=\"alignnone size-medium wp-image-1200\" src=\"http:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_07-300x90.png\" alt=\"Selection screen before variables are modified\" width=\"300\" height=\"90\" srcset=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_07-300x90.png 300w, https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_07.png 380w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>If we now modify the values either in program or manually via TCode SM30 in view TVARV and execute the report again with our variant &#8216;USE_VARS&#8217;, the parameters in selection screen will take the new\/updated values from TVARVC automatically.<\/p>\n<pre lang=\"abap\">DATA:\r\n  ls_tvarvc TYPE tvarvc.\r\n\r\nSELECT SINGLE *\r\n  INTO ls_tvarvc\r\n  FROM tvarvc\r\n  WHERE name = 'Z_MY_PROGRAM_LAST_IDOC'.\r\n\r\nCHECK sy-subrc = 0.\r\n\r\nls_tvarvc-low = ls_tvarvc-low + 5.\r\nMODIFY tvarvc FROM ls_tvarvc.\r\n\r\nSELECT SINGLE *\r\n  INTO ls_tvarvc\r\n  FROM tvarvc\r\n  WHERE name = 'Z_MY_PROGRAM_LAST_DATE'.\r\n\r\nCHECK sy-subrc = 0.\r\n\r\nls_tvarvc-low = sy-datum.\r\nMODIFY tvarvc FROM ls_tvarvc.\r\n\r\nSELECT SINGLE *\r\n  INTO ls_tvarvc\r\n  FROM tvarvc\r\n  WHERE name = 'Z_MY_PROGRAM_LAST_TIME'.\r\n\r\nCHECK sy-subrc = 0.\r\n\r\nls_tvarvc-low = sy-uzeit.\r\nMODIFY tvarvc FROM ls_tvarvc.<\/pre>\n<p><a href=\"http:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_08.png\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1201\" data-permalink=\"https:\/\/oprsteny.cz\/?attachment_id=1201\" data-orig-file=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_08.png\" data-orig-size=\"383,156\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&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;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Selection screen after variables are modified\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_08.png\" class=\"alignnone size-medium wp-image-1201\" src=\"http:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_08-300x122.png\" alt=\"Selection screen after variables are modified\" width=\"300\" height=\"122\" srcset=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_08-300x122.png 300w, https:\/\/oprsteny.cz\/wp-content\/uploads\/PROGRAM_VARIABLES_08.png 383w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I believe you once had to solve a requirement (if not, you&#8217;ll definitely receive one in future) where you had to design a SELECTION-SCREEN parameters which value has to be dynamically updated according to results of the program &#8211; eg. &hellip; <a href=\"https:\/\/oprsteny.cz\/?p=1193\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"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":"ABAP - Using dynamic variables in program selection screen variantsABAP - Using variables in program variants","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,222],"tags":[357,356,355,353,354,358],"class_list":["post-1193","post","type-post","status-publish","format-standard","hentry","category-abap","category-development","category-dynpro","tag-parameters","tag-select-options","tag-selection-screen","tag-tvarv","tag-tvarvc","tag-variant"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3nYbe-jf","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/posts\/1193","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=1193"}],"version-history":[{"count":1,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/posts\/1193\/revisions"}],"predecessor-version":[{"id":1202,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/posts\/1193\/revisions\/1202"}],"wp:attachment":[{"href":"https:\/\/oprsteny.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}