how to run the generate xmlreport after creating the report definition using application engine.i have writen this but its not generate the report.pls tel me what i missed the code
import PSXP_RPTDEFNMANAGER:*;
Local string &sRptDefn = " USAA";
Local string &sLangCd = "ENG";
Local date &AsOfDate = %Date;
Local string &sOutFormat = "PDF";
Local string &sPrcsServerName;
Local number &prcsInstId;
Local PSXP_RPTDEFNMANAGER:ReportDefn &oRptDefn;
&oRptDefn = create PSXP_RPTDEFNMANAGER:ReportDefn(&sRptDefn);
&oRptDefn.Get();
&oRptDefn.ProcessReport("myTemplate", "", %Date, "PDF");
&oRptDefn.Publish(&sPrcsServerName, "", &sFolder, &prcsInstId);
Title | Under | Posted on |
---|---|---|
Component interface Error: no rows exist for the specified keys | PeopleSoft Technical | 03/15/2019 - 3:54am |
ADD 24 months starting from current month.(peoplesoft) | PeopleSoft Functional | 07/29/2018 - 8:44pm |
TRC values dropdown | PeopleSoft Technical | 04/04/2018 - 12:54am |
how to find missing sequence in GRID and print the mising sequence number while saving through peoplecode | PeopleSoft Technical | 09/11/2017 - 4:49am |
Try code below:
You missed some code.
&sRptDefn1 = "Report name";
&sTemplateId1 = "Template name";
&dtAsOfDate1 = %Date;
&oRptDefn1 = create PSXP_RPTDEFNMANAGER:ReportDefn(&sRptDefn1);
&oRptDefn1.Get();
&oRptDefn1.SetRuntimeDataXMLFile(&sFileNameGrand);
&oRptDefn1.ProcessReport(&sTemplateId1, &LanguageCd, &dtAsOfDate1, "");
&oRptDefn1.Publish("", "", "", Process Instance ID);
&sFileExt1 = GetFileExtension(&sOutputFormat);