{"id":1298,"date":"2023-04-29T23:00:44","date_gmt":"2023-04-29T20:00:44","guid":{"rendered":"https:\/\/moito.com\/blog\/?p=1298"},"modified":"2023-04-30T20:03:46","modified_gmt":"2023-04-30T17:03:46","slug":"output-types-output-determination-sap-sd-abap-setup-debugging-print-programs","status":"publish","type":"post","link":"https:\/\/moito.com\/blog\/output-types-output-determination-sap-sd-abap-setup-debugging-print-programs\/","title":{"rendered":"Output types, output determination SAP SD (ABAP) &#8211; setup, debugging, print programs"},"content":{"rendered":"\n<p>Transaction: VL02N<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/moito.com\/blog\/wp-content\/uploads\/2023\/04\/image.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"469\" src=\"https:\/\/moito.com\/blog\/wp-content\/uploads\/2023\/04\/image-1024x469.png\" alt=\"\" class=\"wp-image-1300\" srcset=\"https:\/\/moito.com\/blog\/wp-content\/uploads\/2023\/04\/image-1024x469.png 1024w, https:\/\/moito.com\/blog\/wp-content\/uploads\/2023\/04\/image-300x137.png 300w, https:\/\/moito.com\/blog\/wp-content\/uploads\/2023\/04\/image-768x352.png 768w, https:\/\/moito.com\/blog\/wp-content\/uploads\/2023\/04\/image.png 1026w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Transaction: VL02N<\/figcaption><\/figure>\n\n\n\n<p>Press enter to lock the delivery and enter in edit mode of the document.<\/p>\n\n\n\n<p>You can create or change\/display the output for this document by choosing from Menu: Extras -&gt; Delivery Output -&gt; Header<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/moito.com\/blog\/wp-content\/uploads\/2023\/04\/image-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"532\" src=\"https:\/\/moito.com\/blog\/wp-content\/uploads\/2023\/04\/image-1-1024x532.png\" alt=\"\" class=\"wp-image-1301\" srcset=\"https:\/\/moito.com\/blog\/wp-content\/uploads\/2023\/04\/image-1-1024x532.png 1024w, https:\/\/moito.com\/blog\/wp-content\/uploads\/2023\/04\/image-1-300x156.png 300w, https:\/\/moito.com\/blog\/wp-content\/uploads\/2023\/04\/image-1-768x399.png 768w, https:\/\/moito.com\/blog\/wp-content\/uploads\/2023\/04\/image-1.png 1162w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>Sample delivery note output program RLE_DELNOTE. You can see how to define the ENTRY form routine which is called by the SAP output framework.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">FORM <strong>ENTRY<\/strong> USING RETURN_CODE US_SCREEN.\n\n  DATA: LF_RETCODE TYPE SY-SUBRC.\n  XSCREEN = US_SCREEN.\n  PERFORM PROCESSING USING    US_SCREEN\n                     CHANGING LF_RETCODE.\n  IF LF_RETCODE NE 0.\n    RETURN_CODE = 1.\n  ELSE.\n    RETURN_CODE = 0.\n  ENDIF.\n\nENDFORM.<\/pre>\n\n\n\n<p>You will need some GLOBAL definitions and it is best to include the following:<\/p>\n\n\n\n<!--more-->\n\n\n\n<pre class=\"wp-block-preformatted\">INCLUDE rvadtabl.<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Debugging output<\/strong><\/p>\n\n\n\n<p>Put a breakpoint in the output program and start manual processing of the output using program (SE38): <\/p>\n\n\n\n<p><strong>RSNAST00<\/strong><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>How to return some info or error message in the Output log<\/strong><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Use a call to the following routine:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">FORM PROTOCOL_UPDATE.\n\n  CHECK XSCREEN = SPACE.\n  CALL FUNCTION 'NAST_PROTOCOL_UPDATE'\n       EXPORTING\n            MSG_ARBGB = SYST-MSGID\n            MSG_NR    = SYST-MSGNO\n            MSG_TY    = SYST-MSGTY\n            MSG_V1    = SYST-MSGV1\n            MSG_V2    = SYST-MSGV2\n            MSG_V3    = SYST-MSGV3\n            MSG_V4    = SYST-MSGV4\n       EXCEPTIONS\n            OTHERS    = 1.\n\nENDFORM.<\/pre>\n\n\n\n<p>If you output error messages they will be kept in the output log for the user to analyse the reason for the failure of the output.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Output determination &#8211; Documentation<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/help.sap.com\/docs\/SAP_S4HANA_ON-PREMISE\/7b24a64d9d0941bda1afa753263d9e39\/1efdb753128eb44ce10000000a174cb4.html?locale=en-US\">https:\/\/help.sap.com\/docs\/SAP_S4HANA_ON-PREMISE\/7b24a64d9d0941bda1afa753263d9e39\/1efdb753128eb44ce10000000a174cb4.html?locale=en-US<\/a><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Other useful sites and articles<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-erpdb wp-block-embed-erpdb\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/www.erpdb.info\/output-configuration-determination-sap-sd\/\n<\/div><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>and <strong>how to debug output determination and execution<\/strong>:<\/p>\n\n\n\n<p><a href=\"http:\/\/sapknowledgebank.blogspot.com\/2018\/10\/message-output-type-debugging.html\" target=\"_blank\" rel=\"noreferrer noopener\">http:\/\/sapknowledgebank.blogspot.com\/2018\/10\/message-output-type-debugging.html<\/a> <\/p>\n\n\n\n<p>Generally the solution is to change from 4-Immediate output (via background task) to 1-with program and use RSNAST00. This can be achieved in Messages output changing <em>Extras > Output > Header > Edit<\/em>), click on the button \u2018Further data\u2019 and selecting &#8220;1&#8221;. Also put a breakpoint in output program and run RSNAST00 to start output manually in Dialog mode.<\/p>\n\n\n\n<p> <\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"has-large-font-size\"><strong>Send HTML email using template in ABAP<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/vidyadharg\/ABAP-HTML-eMail\">https:\/\/github.com\/vidyadharg\/ABAP-HTML-eMail<\/a><\/p>\n\n\n\n<p>and <strong>&#8220;Creating QR code in ABAP&#8221;<\/strong> video: <a href=\"https:\/\/www.youtube.com\/watch?v=DQdKnmon8II\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.youtube.com\/watch?v=DQdKnmon8II<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Transaction: VL02N Press enter to lock the delivery and enter in edit mode of the document. You can create or change\/display the output for this document by choosing from Menu: Extras -&gt; Delivery Output -&gt; Header Sample delivery note output program RLE_DELNOTE. You can see how to define the ENTRY form routine which is called &hellip; <a href=\"https:\/\/moito.com\/blog\/output-types-output-determination-sap-sd-abap-setup-debugging-print-programs\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Output types, output determination SAP SD (ABAP) &#8211; setup, debugging, print programs<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,1],"tags":[579,584,582,583,601,581,580,585],"class_list":["post-1298","post","type-post","status-publish","format-standard","hentry","category-it","category-1","tag-abap","tag-html-email","tag-output-determination","tag-print-forms","tag-qr-code","tag-sap","tag-sd","tag-send-email"],"_links":{"self":[{"href":"https:\/\/moito.com\/blog\/wp-json\/wp\/v2\/posts\/1298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/moito.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/moito.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/moito.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/moito.com\/blog\/wp-json\/wp\/v2\/comments?post=1298"}],"version-history":[{"count":10,"href":"https:\/\/moito.com\/blog\/wp-json\/wp\/v2\/posts\/1298\/revisions"}],"predecessor-version":[{"id":1316,"href":"https:\/\/moito.com\/blog\/wp-json\/wp\/v2\/posts\/1298\/revisions\/1316"}],"wp:attachment":[{"href":"https:\/\/moito.com\/blog\/wp-json\/wp\/v2\/media?parent=1298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/moito.com\/blog\/wp-json\/wp\/v2\/categories?post=1298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/moito.com\/blog\/wp-json\/wp\/v2\/tags?post=1298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}