Real-Time Processing Setup
Below is an example of real-time processing setup:
import GP_RPT_DATA:ReportDataClasses:*;
Component ReportDataReal &report;
Local number &instance;
&report = create ReportDataReal();
&report.AddParamChar("EXTPRC", "COUNTRY", "USA");
&report.AddParamChar("EXTPRC", "NAME", "GP_REPORT");
&report.AddParamChar("EXTPRC", "TYPE", "P");
&report.AddParamChar("SELPYE", "SECUR", "Y");
&report.AddParamChar("SELCAL", "CALGRPID", GP_REGISTER_AET.CAL_RUN_ID);
&report.AddParamDate("SELCAL", "FROMDT", GP_REGISTER_AET.FROM_DT);
&report.AddParamDate("SELCAL", "TODT", DERIVED_GP.TO_DT);
&instance = &report.GetInstance();
&report.ExecuteNow();
/* selection from the output tables (using &instance) can be done here
in order to display results */