{"id":1467,"date":"2016-02-09T13:01:31","date_gmt":"2016-02-09T12:01:31","guid":{"rendered":"http:\/\/oprsteny.cz\/?p=1467"},"modified":"2016-02-09T13:01:31","modified_gmt":"2016-02-09T12:01:31","slug":"abap-set-parameter-id-and-me33l","status":"publish","type":"post","link":"https:\/\/oprsteny.cz\/?p=1467","title":{"rendered":"ABAP &#8211; SET PARAMETER ID and ME33L"},"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=\"alignnone size-full wp-image-358 alignleft\" src=\"http:\/\/oprsteny.cz\/wp-content\/uploads\/SAP.jpg\" alt=\"SAP\" width=\"44\" height=\"50\" \/>I need to display a scheduling agreement after click on hotspot (containing SAG document number) in ALV.<\/p>\n<p><!--more--><\/p>\n<p>If you take a look at ME33L (display scheduling agreement) \u00a0and examine details of\u00a0the only selection screen parameter (Agreement), you&#8217;ll find out its PARAMETER ID = &#8216;VRT&#8217;<\/p>\n<p><a href=\"http:\/\/oprsteny.cz\/wp-content\/uploads\/ME33L_02.png\" rel=\"attachment wp-att-1470\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1470\" data-permalink=\"https:\/\/oprsteny.cz\/?attachment_id=1470\" data-orig-file=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/ME33L_02.png\" data-orig-size=\"400,519\" 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=\"Agreement &amp;#8211; Parameter ID\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/ME33L_02.png\" class=\"alignnone size-thumbnail wp-image-1470\" src=\"http:\/\/oprsteny.cz\/wp-content\/uploads\/ME33L_02-150x150.png\" alt=\"Agreement - Parameter ID\" width=\"150\" height=\"150\" \/><\/a><\/p>\n<p>But if you try to display the scheduling agreement by using the following code, you&#8217;ll fail:<\/p>\n<pre lang=\"abap\">SET PARAMETER ID 'VRT' FIELD lv_ebeln.\r\nCALL TRANSACTION 'ME33L' AND SKIP FIRST SCREEN.<\/pre>\n<p><a href=\"http:\/\/oprsteny.cz\/wp-content\/uploads\/ME33L_01.png\" rel=\"attachment wp-att-1469\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1469\" data-permalink=\"https:\/\/oprsteny.cz\/?attachment_id=1469\" data-orig-file=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/ME33L_01.png\" data-orig-size=\"419,186\" 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=\"ME33L &amp;#8211; Scheduling agreements\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/ME33L_01.png\" class=\"alignnone size-full wp-image-1469\" src=\"http:\/\/oprsteny.cz\/wp-content\/uploads\/ME33L_01.png\" alt=\"ME33L - Parameter VRT\" width=\"419\" height=\"186\" srcset=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/ME33L_01.png 419w, https:\/\/oprsteny.cz\/wp-content\/uploads\/ME33L_01-300x133.png 300w\" sizes=\"auto, (max-width: 419px) 100vw, 419px\" \/><\/a><\/p>\n<p>You ask why?<\/p>\n<p>Let&#8217;s take a look at program SAPMM06E mentioned in the first picture and it&#8217;s screen 0205 PBO modules.<\/p>\n<p><a href=\"http:\/\/oprsteny.cz\/wp-content\/uploads\/ME33L_03.png\" rel=\"attachment wp-att-1471\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1471\" data-permalink=\"https:\/\/oprsteny.cz\/?attachment_id=1471\" data-orig-file=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/ME33L_03.png\" data-orig-size=\"820,367\" 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=\"SAPMM06E &amp;#8211; Screen 205 &amp;#8211; PBO modules\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/ME33L_03.png\" class=\"alignnone size-thumbnail wp-image-1471\" src=\"http:\/\/oprsteny.cz\/wp-content\/uploads\/ME33L_03-150x150.png\" alt=\"SAPMM06E - Screen 205 - PBO modules\" width=\"150\" height=\"150\" \/><\/a><\/p>\n<p>We are interested in module\u00a0<strong>D0205_GET_PARAMETER<\/strong><\/p>\n<p><a href=\"http:\/\/oprsteny.cz\/wp-content\/uploads\/ME33L_04.png\" rel=\"attachment wp-att-1472\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1472\" data-permalink=\"https:\/\/oprsteny.cz\/?attachment_id=1472\" data-orig-file=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/ME33L_04.png\" data-orig-size=\"730,463\" 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=\"ME33L &amp;#8211; GET PARAMETER\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/ME33L_04.png\" class=\"alignnone size-thumbnail wp-image-1472\" src=\"http:\/\/oprsteny.cz\/wp-content\/uploads\/ME33L_04-150x150.png\" alt=\"ME33L - GET PARAMETER\" width=\"150\" height=\"150\" \/><\/a><\/p>\n<p>Here you can see that if you want to display Scheduling agreement (where\u00a0Purchasing Document Category =\u00a0Scheduling agreement &#8230; BSTYP = &#8216;L&#8217;) you can&#8217;t use PARAMETER ID &#8216;VRT&#8217;, but you must SET PARAMETER &#8216;SAG&#8217;<\/p>\n<pre lang=\"abap\">SET PARAMETER ID 'SAG' FIELD lv_ebeln.\r\nCALL TRANSACTION 'ME33L' AND SKIP FIRST SCREEN.<\/pre>\n<p><a href=\"http:\/\/oprsteny.cz\/wp-content\/uploads\/ME33L_05.png\" rel=\"attachment wp-att-1473\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1473\" data-permalink=\"https:\/\/oprsteny.cz\/?attachment_id=1473\" data-orig-file=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/ME33L_05.png\" data-orig-size=\"873,281\" 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=\"ME33L &amp;#8211; Correctly displayed scheduling agreement\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/oprsteny.cz\/wp-content\/uploads\/ME33L_05.png\" class=\"alignnone size-thumbnail wp-image-1473\" src=\"http:\/\/oprsteny.cz\/wp-content\/uploads\/ME33L_05-150x150.png\" alt=\"ME33L - Correctly displayed scheduling agreement\" width=\"150\" height=\"150\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I need to display a scheduling agreement after click on hotspot (containing SAG document number) in ALV.<\/p>\n","protected":false},"author":1,"featured_media":1469,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"ABAP - SET PARAMETER ID and ME33L","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},"jetpack_post_was_ever_published":false},"categories":[16,86,9,222],"tags":[446,451,452,453],"class_list":["post-1467","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-abap","category-alv","category-development","category-dynpro","tag-abap","tag-me33l","tag-sag","tag-vrt"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/oprsteny.cz\/wp-content\/uploads\/ME33L_01.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3nYbe-nF","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/posts\/1467","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=1467"}],"version-history":[{"count":1,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/posts\/1467\/revisions"}],"predecessor-version":[{"id":1474,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/posts\/1467\/revisions\/1474"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/media\/1469"}],"wp:attachment":[{"href":"https:\/\/oprsteny.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1467"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1467"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1467"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}