Quantcast
Channel: SCN : Unanswered Discussions - SAP BusinessObjects Analysis, edition for Microsoft Office
Viewing all articles
Browse latest Browse all 1183

SAPSetFilter with Range values

$
0
0

Hello,

 

    I have a requirement to restrict Datasource to range of values for a field. It is working fine with single values, not for range. Please guide me with correct syntax.

 

   1. Created 2 Excel Dropdown filled with values for 0CALWEEK i.e. "Calweek from" and "Calweek to"

   2. if i select a value in "CalWeekTo" Dropdown, i want to restrict Datasource with Calweek Range

 

      Code:

 

    Dim WeekFr As String

    Dim WeekTo As String

   

    WeekFr = Sheets("Main").FromWeek.Value

    WeekTo = Sheets("Main").ToWeek.Value

 

     Dim lResult As Long

     lResult = Application.Run("SAPSetFilter", "DS_1", "0CALWEEK", WeekFr - WeekTo, "INPUT_STRING")

 

Thanks,

Benarji.


Viewing all articles
Browse latest Browse all 1183

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>