{"id":31207,"date":"2026-01-06T08:28:21","date_gmt":"2026-01-06T08:28:21","guid":{"rendered":"http:\/\/kovaion-new1.local\/generating-custom-xmlp-reports-in-peoplesoft-with-desired-file-names\/"},"modified":"2026-01-06T08:28:52","modified_gmt":"2026-01-06T08:28:52","slug":"generating-custom-xmlp-reports-in-peoplesoft-with-desired-file-names","status":"publish","type":"post","link":"https:\/\/stage.kovaionplay.com\/stage-kovaion\/generating-custom-xmlp-reports-in-peoplesoft-with-desired-file-names\/","title":{"rendered":"Generating Custom XMLP Reports in PeopleSoft with Desired File Names"},"content":{"rendered":"<p>&nbsp;<\/p>\n<h3>How to Generate XMLP Reports in PeopleSoft with Desired File Name?<\/h3>\n<p>Certainly, in PeopleTools version 8.49 and earlier, generating XMLP reports with desired output file names can be achieved by customizing the code within the Application Package PSXP_RPTDEFNMANAGER, Class ReportDefn, and Method ProcessReport. This involves manipulating the code to set a custom file name for the generated XMLP report.<\/p>\n<p>&nbsp;<\/p>\n<p>Below is the code for the \u2018method ProcessReport\u2019 with the changes highlighted in red:<\/p>\n<p><strong>Step 1:<\/strong> Update Method Declaration In the method declaration of ProcessReport, add an additional parameter for setting up the custom report name:<\/p>\n<p><strong><span style=\"color: #0000ff;\">method ProcessReport(<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #0000ff;\">&amp;TemplateID As string,<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #0000ff;\">&amp;LanguageCd As string,<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #0000ff;\">&amp;AsOfDate As date,<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #0000ff;\">&amp;OutputFormat As string,<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #ff0000;\">&amp;sCustomRptName As string);<\/span><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Step 2:<\/strong> Implement Changes in Method Definition Inside the method definition of ProcessReport, add the following code changes to enable generating reports with custom names:<\/p>\n<p><strong><span style=\"color: #0000ff;\">method ProcessReport<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #0000ff;\">&#8212;<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #0000ff;\">CreateDirectory(&amp;sOutputDir | &amp;sDirSep | &#8220;RptInst&#8221; | &amp;sDirSep | String(&amp;i), %FilePath_Absolute);<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #ff0000;\">\/* Generate the report with a custom name *\/<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #ff0000;\">If %This.UseBurstValueAsOutputFileName Then<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #ff0000;\">&amp;sOutFileName = &amp;sBurstValue | &amp;sCustomRptName;<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #ff0000;\">Else<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #ff0000;\">&amp;sOutFileName = &amp;ID;<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #ff0000;\">End-If;<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #0000ff;\">&#8212;<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #0000ff;\">&amp;oReportOut = create XX_RPTDEFN:ReportOutput(&amp;sBurstValue, String(&amp;i), &amp;sOutFileName | &#8220;.&#8221; | Lower(&amp;sFileExt), &amp;sBurstDataFile);<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #0000ff;\">&amp;arOutput.Push(&amp;oReportOut);<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #0000ff;\">End-For;<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #0000ff;\">End-If;<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #0000ff;\">Else<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #ff0000;\">\/*******Include report name here if you want to change******\/<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #ff0000;\">If &amp;sCustomRptName &lt;&gt; &#8220;&#8221; Then<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #ff0000;\">&amp;ID = &amp;sCustomRptName;<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #ff0000;\">End-If;<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #0000ff;\">&amp;sLocalOutputFile = %This.GetLocalOutputFile(&amp;ID | &#8220;.&#8221; | Lower(&amp;sFileExt), &#8220;&#8221;, 1);<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #0000ff;\">&#8212;<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #0000ff;\">end-method;<\/span><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Step 3:<\/strong> Generate XMLP Report with Custom Name Use the following sample code to generate an XMLP report with the custom report name prefix:<\/p>\n<p><strong><span style=\"color: #0000ff;\">&amp;CustomRptName_prefix = &#8220;User Report&#8221;;<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #0000ff;\">&amp;ReportDef.ProcessReport(&amp;sTemplateId, &#8220;ENG&#8221;, %Date, &amp;OutputFmt, &amp;CustomRptName_prefix);<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #0000ff;\">&amp;ReportDef.publish(&#8220;&#8221;, &#8220;&#8221;, &#8220;&#8221;, 0);<\/span><\/strong><\/p>\n<p>This code snippet invokes the ProcessReport method with the specified parameters, including the custom report name prefix. The method will generate the report with the custom name if the conditions are met.<\/p>\n<p>&nbsp;<\/p>\n<p>In PeopleTools Version 8.50 and later, PeopleSoft has introduced a convenient feature that allows you to generate XMLP reports with customized names directly from the user interface.<\/p>\n<p>&nbsp;<\/p>\n<h3>Here&#8217;s how to do it:<\/h3>\n<ul>\n<li><strong>Navigation:<\/strong> To access this feature, go to<strong> Main Menu &gt; Report Tools &gt; XML Publisher &gt; Report Definition.<\/strong><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-6594 aligncenter\" src=\"https:\/\/stage.kovaionplay.com\/stage-kovaion\/wp-content\/uploads\/2026\/01\/xmlp-300x149.jpg\" alt=\"Generating-Custom-XMLP-Reports-in-PeopleSoft-with-Desired-File-Names\" width=\"692\" height=\"344\" \/><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li><strong>File Name:<\/strong> In the &#8220;Report Definition&#8221; page, you&#8217;ll find a field called &#8220;File Name.&#8221; This is where you can specify a template for the output file name. The template you provide here will be translated into the actual physical file name when the report is generated.\n<ol>\n<li>You can use a combination of output variables and plain text in this field.<\/li>\n<li>Output variables are enclosed within percent signs (%). These variables will be replaced with their corresponding values at runtime.<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<ul>\n<li><strong>Example:<\/strong> Let&#8217;s say you want to create a report for employee payrolls and want the report file name to include the employee&#8217;s last name and the report date. You can set up the &#8220;File Name&#8221; field like this:<\/li>\n<\/ul>\n<p style=\"text-align: left; padding-left: 120px;\"><strong><span style=\"color: #0000ff;\">PayrollReport_%LastName%_%CurrentDate%.pdf<\/span><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h4><strong>In this example:<\/strong><\/h4>\n<ul>\n<li><strong>%LastName%<\/strong> is an output variable that will be replaced with the employee&#8217;s last name.<\/li>\n<li><strong>%CurrentDate%<\/strong> is an output variable that will be replaced with the current date when the report is generated.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3>Additional Information:<\/h3>\n<p>If you need more detailed information and examples about this feature in PeopleTools Version 8.50, you can refer to the official Oracle documentation. The documentation provides guidance on how to set up different output templates and use various output variables.<\/p>\n<p>The documentation can be found at: <span style=\"text-decoration: underline;\"><a href=\"http:\/\/docs.oracle.com\/cd\/E15645_01\/pt850pbr0\/eng\/psbooks\/txml\/book.htm\" target=\"_blank\" rel=\"noopener\">http:\/\/docs.oracle.com\/cd\/E15645_01\/pt850pbr0\/eng\/psbooks\/txml\/book.htm<\/a><\/span><\/p>\n<p>This feature simplifies the process of generating XMLP reports with custom names, allowing you to define dynamic file name templates that adapt based on the report&#8217;s content and other variables.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; How to Generate XMLP Reports in PeopleSoft with Desired File Name? Certainly, in PeopleTools version 8.49 and earlier, generating XMLP reports with desired output file names can be achieved by customizing the code within the Application Package PSXP_RPTDEFNMANAGER, Class ReportDefn, and Method ProcessReport. This involves manipulating the code to set a custom file name [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":24948,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-31207","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/stage.kovaionplay.com\/stage-kovaion\/wp-json\/wp\/v2\/posts\/31207","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stage.kovaionplay.com\/stage-kovaion\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stage.kovaionplay.com\/stage-kovaion\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stage.kovaionplay.com\/stage-kovaion\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/stage.kovaionplay.com\/stage-kovaion\/wp-json\/wp\/v2\/comments?post=31207"}],"version-history":[{"count":1,"href":"https:\/\/stage.kovaionplay.com\/stage-kovaion\/wp-json\/wp\/v2\/posts\/31207\/revisions"}],"predecessor-version":[{"id":31208,"href":"https:\/\/stage.kovaionplay.com\/stage-kovaion\/wp-json\/wp\/v2\/posts\/31207\/revisions\/31208"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/stage.kovaionplay.com\/stage-kovaion\/wp-json\/wp\/v2\/media\/24948"}],"wp:attachment":[{"href":"https:\/\/stage.kovaionplay.com\/stage-kovaion\/wp-json\/wp\/v2\/media?parent=31207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stage.kovaionplay.com\/stage-kovaion\/wp-json\/wp\/v2\/categories?post=31207"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stage.kovaionplay.com\/stage-kovaion\/wp-json\/wp\/v2\/tags?post=31207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}