Hi RobbSalzmann - Sorry about that, let me know if this is better
Original code
Private Function GetCustomFilters(ByVal si As SessionInfo) As String
Dim customFilters As New Text.StringBuilder
' Example of variables you can retrieve in this connector:
' Dim timeStr As String = BRApi.Finance.Members.GetMember(si,DimTypeId.Time,si.WorkflowClusterPk.TimeKey).Name
Dim timeStr As String = BRApi.Finance.Members.GetMember(si, DimTypeId.Time, si.WorkflowClusterPk.TimeKey).Name
Dim wfYear As String = timeStr.Substring(0,4)
'Dim wfMonth As String =
'Dim wfProfileName As WorkflowProfileInfo = BRApi.Workflow.Metadata.GetProfile(si, si.WorkflowClusterPk.ProfileKey)
'Dim entity = wfProfileName.GetAttributeValue(scenarioType.Actual.Id, sharedconstants.WorkflowProfileAttributeIndexes.Text1)
'Dim entity2 = wfProfileName.GetAttributeValue(scenarioType.Actual.Id, sharedconstants.WorkflowProfileAttributeIndexes.Text2)
Select Case m_SourceType
Case Is = "SapQuery"
' SAP Queries: need to create an list of SapQueryParameters objects containing the filter options.
' the format of the custom filter is: ParameterTechnicalName;Sign;Operator;LowValue;HighValue|ParameterTechnicalName;Sign;Operator;LowValue;HighValue
' pipe-separated list of fields semicolon separated. For example:
' SD_GJAHR;Include;Equals;|WFYear|;|SD_BUKRS;Inlcude;Between;1000;2000
'customFilters.Append("SP$00006;Include;Equals;1003") 'Entity
customFilters.Append("SP$00001;Include;Equals;" & wfYear) 'Year
'customFilters.Append("P%Z_0076;Include;Equals;12") 'Period
'customFilters.Append("SP$00006;Include;Equals;1003") 'Entity
Updated Code
I updated row 6 with your suggestion.
I think I can just comment out row 20 now.
Currently rows 19, 21 & 22 are already commented out.
Private Function GetCustomFilters(ByVal si As SessionInfo) As String
Dim customFilters As New Text.StringBuilder
' Example of variables you can retrieve in this connector:
' Dim timeStr As String = BRApi.Finance.Members.GetMember(si,DimTypeId.Time,si.WorkflowClusterPk.TimeKey).Name
Dim timeStr As String = BRApi.Finance.Members.GetMember(si, DimTypeId.Time, si.WorkflowClusterPk.TimeKey).Name
Dim sGLTime As String = BRApi.Workflow.General.GetGlobalTime(si);
'Dim wfMonth As String =
'Dim wfProfileName As WorkflowProfileInfo = BRApi.Workflow.Metadata.GetProfile(si, si.WorkflowClusterPk.ProfileKey)
'Dim entity = wfProfileName.GetAttributeValue(scenarioType.Actual.Id, sharedconstants.WorkflowProfileAttributeIndexes.Text1)
'Dim entity2 = wfProfileName.GetAttributeValue(scenarioType.Actual.Id, sharedconstants.WorkflowProfileAttributeIndexes.Text2)
Select Case m_SourceType
Case Is = "SapQuery"
' SAP Queries: need to create an list of SapQueryParameters objects containing the filter options.
' the format of the custom filter is: ParameterTechnicalName;Sign;Operator;LowValue;HighValue|ParameterTechnicalName;Sign;Operator;LowValue;HighValue
' pipe-separated list of fields semicolon separated. For example:
' SD_GJAHR;Include;Equals;|WFYear|;|SD_BUKRS;Inlcude;Between;1000;2000
'customFilters.Append("SP$00006;Include;Equals;1003") 'Entity
customFilters.Append("SP$00001;Include;Equals;" & wfYear) 'Year
'customFilters.Append("P%Z_0076;Include;Equals;12") 'Period
'customFilters.Append("SP$00006;Include;Equals;1003") 'Entity
Thanks,
Ronnie