{"id":28978,"date":"2024-05-03T10:12:27","date_gmt":"2024-05-03T10:12:27","guid":{"rendered":"https:\/\/www.greytrix.com\/blogs\/sagex3\/?p=28978"},"modified":"2024-12-03T05:17:29","modified_gmt":"2024-12-03T05:17:29","slug":"how-do-i-add-a-new-report-to-a-function","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2024\/05\/03\/how-do-i-add-a-new-report-to-a-function\/","title":{"rendered":"How do I add a new report to a function?"},"content":{"rendered":"\n<p>In Sage X3, you can add a new report to a function on the different objects screen. When the standard reports are not sufficient, we use an existing report and customize it according to our requirements.<\/p>\n\n\n\n<p>We can also add the validations on report printing. For example, On the screen, the user wants to print only those supplier BP invoice reports whose credit amount is greater than &#8216;$500 &#8216; and whose supplier BP invoice date is after June month. Follow the below steps to add a new report to a function.<\/p>\n\n\n\n<p>Once the report is ready, we need to make it available for the user to select it from the list. In that case, this blog is very helpful for you.<\/p>\n\n\n\n<p>In this blog, we will use the standard report codes and have them available in the GESBIS (Supplier BP Invoices) function as a selection list.<\/p>\n\n\n\n<p>Here&#8217;s a step-by-step description of how to add a new report to a function on the different objects screen in Sage X3:<\/p>\n\n\n\n<p><strong>STEP-1<\/strong><\/p>\n\n\n\n<p>As shown in the below screenshot, Select the navigation menu and go to A\/P-A\/R accounting &#8211;&gt;&gt; Invoicing&#8211;&gt;&gt; Supplier BP invoice, select the print icon on the right, and select &#8220;List&#8221;. Refer below&nbsp; screenshot as fig1.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" width=\"1024\" height=\"428\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\"src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/04\/fig1.supplier-BP-invoice-1024x428.png\" alt=\"\" class=\"wp-image-28979\" srcset=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/04\/fig1.supplier-BP-invoice-1024x428.png 1024w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/04\/fig1.supplier-BP-invoice-300x126.png 300w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/04\/fig1.supplier-BP-invoice-768x321.png 768w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/04\/fig1.supplier-BP-invoice-660x276.png 660w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/04\/fig1.supplier-BP-invoice.png 1207w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>&nbsp; Fig 1. Supplier BP invoice<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"463\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/04\/fig2.-print-1024x463.png\" alt=\"\" class=\"wp-image-28980\" srcset=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/04\/fig2.-print-1024x463.png 1024w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/04\/fig2.-print-300x136.png 300w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/04\/fig2.-print-768x347.png 768w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/04\/fig2.-print-660x298.png 660w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/04\/fig2.-print.png 1084w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n\n\n<p class=\"has-text-align-center\"><strong>Fig 2. Print button<\/strong><\/p>\n\n\n\n<p><strong>It will open a default report code FACTRSF (Supplier invoice list). <\/strong>his code is defined in the GESAFC (Functions) function against GESBIS code.<\/p>\n\n\n\n<p>When you launch this report, it will print the supplier invoices list.<\/p>\n\n\n\n<p><strong>STEP-2<\/strong><\/p>\n\n\n\n<p>Report codes are located under Development&#8211;&gt;&gt;Script dictionary&#8211;&gt;&gt;Reports.<strong><\/strong><\/p>\n\n\n\n<p>Now that we have identified the code next let&#8217;s add it to the GESARX (Print codes) function as internal code and then assign two reports codes, X<strong>FACTRSF<\/strong> and ZFACTRSF. Refer below screenshot as fig3.<\/p>\n\n\n\n<p><strong>Reason for listing two report codes is if I use only one, it will not show as a selection list.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"992\" height=\"487\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/04\/fig3.Report-dictionary.png\" alt=\"\" class=\"wp-image-28981\" srcset=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/04\/fig3.Report-dictionary.png 992w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/04\/fig3.Report-dictionary-300x147.png 300w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/04\/fig3.Report-dictionary-768x377.png 768w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/04\/fig3.Report-dictionary-660x324.png 660w\" sizes=\"(max-width: 992px) 100vw, 992px\" \/><\/figure>\n\n\n\n<p class=\"has-text-align-center\"><strong> Fig 3. Report dictionary<\/strong><\/p>\n\n\n\n<p><strong>STEP-3<\/strong><\/p>\n\n\n\n<p>As shown in the below screenshot, Go to the print codes function in Setup&#8211;&gt;&gt; Destination&#8211;&gt;&gt; Print code and search if the FACTRSF internal code exist.<strong><\/strong><\/p>\n\n\n\n<p>Then add the above codes as shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"377\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/04\/fig4.print-code-1024x377.png\" alt=\"\" class=\"wp-image-28982\" srcset=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/04\/fig4.print-code-1024x377.png 1024w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/04\/fig4.print-code-300x111.png 300w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/04\/fig4.print-code-768x283.png 768w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/04\/fig4.print-code-660x243.png 660w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/04\/fig4.print-code.png 1248w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"has-text-align-center\"><strong>Fig 4. Print code<\/strong><\/p>\n\n\n\n<p><strong>STEP-4<\/strong><\/p>\n\n\n\n<p>As shown in the below screenshot, Optionally we can use the GESARV (Default values) function to propose default values. This function is used to store values by default for the print setups.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"985\" height=\"564\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/04\/fig5.default-code.png\" alt=\"\" class=\"wp-image-28983\" srcset=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/04\/fig5.default-code.png 985w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/04\/fig5.default-code-300x172.png 300w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/04\/fig5.default-code-768x440.png 768w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/04\/fig5.default-code-660x378.png 660w\" sizes=\"(max-width: 985px) 100vw, 985px\" \/><\/figure>\n\n\n\n<p><br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <strong>Fig 5. Default values<\/strong><\/p>\n\n\n\n<p>As shown in the below screenshot Finally, in Supplier BP invoices we can select a list of print codes.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"972\" height=\"460\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/04\/fig6.selection-print-code.png\" alt=\"\" class=\"wp-image-28984\" style=\"width:839px;height:auto\" srcset=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/04\/fig6.selection-print-code.png 972w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/04\/fig6.selection-print-code-300x142.png 300w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/04\/fig6.selection-print-code-768x363.png 768w, https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/04\/fig6.selection-print-code-660x312.png 660w\" sizes=\"(max-width: 972px) 100vw, 972px\" \/><\/figure>\n\n\n\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0         \u00a0Fig 6. Selection print code<\/strong><\/p>\n\n\n\n<p>This is a simple process to add a report code to a function<strong> .<\/strong><\/p>\n\n\n\n<p> This blog help us to know about the use by add a new report to a function on the different objects screen in Sage X3 .<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Sage X3, you can add a new report to a function on the different objects screen. When the standard reports are not sufficient, we use an existing report and customize it according to our requirements. We can also add the validations on report printing. For example, On the screen, the user wants to print\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2024\/05\/03\/how-do-i-add-a-new-report-to-a-function\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3162,5,6,13,7,8,3642,2847,10,2796,11,12],"tags":[536,3130,3499,1762,1780,1822,1839,2871,1945,3944],"class_list":["post-28978","post","type-post","status-publish","format-standard","hentry","category-greytrix","category-features","category-installation","category-integration","category-miscellaneous-tables","category-sage-erp-x3","category-sage-x3","category-sage-x3-ppl","category-standard","category-technical","category-tips","category-sage-x3-upgrade","tag-default-values","tag-print-code","tag-report-code","tag-sage-enterprise-management","tag-sage-erp-x3","tag-sage-x3","tag-sage-x3-blogs","tag-sage-x3-functional-blogs","tag-sage-x3-technical-blogs","tag-selection-print-code"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/28978","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/comments?post=28978"}],"version-history":[{"count":4,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/28978\/revisions"}],"predecessor-version":[{"id":28988,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/28978\/revisions\/28988"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=28978"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=28978"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=28978"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}