---
schema_version: "1"
id: afcb269206a3e67abda5d10201c0ee28e047974bfcdef04d7af9efa7986c4032
title: TPM_RTRReportingWrapper_AMS (Base Class)
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/cgcloud_rtr_dev_guide/tpm_rtr_class_tpm_rtrreportingwrapper2_ams.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.cgcloud_rtr_dev_guide.meta/cgcloud_rtr_dev_guide/tpm_rtr_class_tpm_rtrreportingwrapper2_ams.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 31727dce7bad2424b9645fbdcd973af6792b32efcc3bc4a79196cebfa12fa79f
description: TPM_RTRReportingWrapper_AMS is a base class that contains the structures to load the input. This class contains the list of KPIs and filter criteria that you chose in the report—selected time frame or the list of customers and products. Depending on various use cases, the payload method can contain different attributes.
---
# TPM\_RTRReportingWrapper\_AMS (Base Class)

TPM\_RTRReportingWrapper\_AMS is a base class that contains the structures to load the input. This class contains the list of KPIs and filter criteria that you chose in the report—selected time frame or the list of customers and products. Depending on various use cases, the payload method can contain different attributes.

The OutputRecord method returns product (pdim), KPI (kdim), time (tdim), and values (v). The values are defined in the actual logic class, which is TPM\_RTRFunds\_AMS in this use case. For example, you can use tdim to display values on a more granular view—weeks, months, or quarters. If a report meta has monthly values, the external datasource can also provide monthly values.

![Note](https://developer.salesforce.com/docs/atlas.en-us.cgcloud_rtr_dev_guide.meta/cgcloud_rtr_dev_guide/images/icon_note.png)

#### Note

Ensure that kdim contains the name of the fund KPI.

**Sample Code**

global with sharing class TPM\_RTRReportingWrapper\_AMS
{
global class PeriodMonth {
global Integer year;
global Integer start;
global Integer total;
}
global class InputPayload{
global List <String> accountsfids;
global List <String> productsfids;
global PeriodMonth periodmonth;
global List <String> kpis;
global String responsetype;
global String callingsfuser;
}
global class OutputRecord{
global String pdim;
global String kdim;
global String tdim;
global Double v;
global OutputRecord( String pdim, String kdim , String tdim , Double v){
this.pdim = pdim;
this.kdim = kdim;
this.tdim = tdim;
this.v = v;
}
}
}