Using a filter in RUN Allocation

Does anyone know how to use a filter in the WHAT, WHERE clauses in RUN Allocation?
I need to use something like WHERE=%STAT_ACCTS% AND [GROUP]<>"PL" but it dosen't work.
On the contrary, is there a way to get the basemembers of a parent ID based on a filter?
I could also use something like *XDIM_MEMBERSET ACCOUNT =BAS(STACCTS) AND [GROUP]<>"PL" but XDIM_MEMBERSET does not support conditions.
Thanks in advance for help!

Thanks for the replies... but my problem is still not solved... if either of the following could work that would solve this:
a) have my xdim_memberset set to only those products which meet the condition [LEVEL]="seg" and are the bas members of the product i pick from the hierarchy. For this i would need a select statement which works like:
*SELECT(%SKU%,[ID],"PRODUCT","[PARENTH1]=%PRODUCT_SET% AND [LEVEL]='SEG' ")
OR
b) a way to create a variable using xdim_filter that i can use anywhere else in my code
c) put a condition in the WHERE clause of the allocation script so i could use something like:
DIM PRODUCT WHAT=something; WHERE=BAS(%PRODUCT_SET%) AND [LEVEL]="SEG";
but none of the above options are working

Similar Messages

  • Scheduling a filter to run only once a day

    Hi All,
    I am trying to build a filter running once every day, so far i am using "scheduledSystemEvent" which executes the filter every 5 mins.
    I tried doing this via "CustomScheduleEvnet" also but did not have any luck with it.
    Following is the snap shot of the table that i am mergin with the IdcScheduledSystemEvents
    &lt;td&gt;CustomDailyEvent&lt;/td&gt;
    &lt;td&gt;CustomDailyEventInterval&lt;/td&gt;
    &lt;td&gt;&lt;$include dailyEvent$&gt;&lt;/td&gt;
    &lt;td&gt;inDays&lt;/td&gt;
    &lt;td&gt;1&lt;/td&gt;
    &lt;td&gt;ScheduledWork&lt;/td&gt;
    Your any pointers will be hightly appriciated.
    many thanks,
    sapan

    Hey sapan,
    The quick and dirty way I've done this before is with a java filter hooked into "checkScheduledEvents" (emphasis on "quick and dirty"). Example below:
         public int doFilter(Workspace ws, DataBinder binder, ExecutionContext cxt)
                   throws DataException, ServiceException
              try
                   //sleep to make sure the server is completely initialized
                   Thread.sleep(30000);
              catch(Exception e)
              //get last time the filter was run
              String lastRunString = SharedObjects.getEnvironmentValue("customProccessLastRunTime");
              long lastRunMillis = 0;
              //handle case were the server has been restarted and the environment value is empty
              if(lastRunString != null && lastRunString.length() > 0)
                   lastRunMillis = Long.parseLong(lastRunString);     
              //if it has been a day since the last check,
              //run the queries to check that the contract files have their workflow flag synced
              Date now = new Date();
              long nowMillis = now.getTime();
              if((nowMillis - lastRunMillis) > 86400000)
    //do daily processing here
                   //update last run time
                   SharedObjects.putEnvironmentValue("customProccessLastRunTime", ""+nowMillis);
    Hope that helps,
    Andy Weaver - Software Consultant
    Fishbowl Solutions < http://www.fishbowlsolutions.com?WT.mc_id=L_Oracle_Consulting_amw >

  • Error while running allocation: Driver stored in Rate Application

    Hi,
    I have the allocation driver stored in the Rate application.
    I have a custom application which has different dimensions than the Rate application. In the allocation logic I pick up the driver from the Rate Application -
    e.g.      *APP WHAT=MYPLANNING;         WHERE=MYPLANNING;           USING=RATE
    When I run the allocation I get the following error. Any inputs would be greatly appreciated.
    thx
    Sumangal
    ====================
    ExecuteBaseLogic::Incorrect syntax near ','. in:
    select [CATEGORY],[INPUTCURRENCY],[RATE],[RATEENTITY],[TIMEID],SIGNEDDATA
    into #941281
    from tblFactRATE
    where [RATE] = 'ALLOCFACTOR' and [TIMEID] in ('20050100','20050200','20050300','20050400','20050500','20050600','20050700','20050800','20050900','20051000','20051100','20051200')
    insert into #941281 ([CATEGORY],[INPUTCURRENCY],[RATE],[RATEENTITY],[TIMEID],SIGNEDDATA)
    select [CATEGORY],[INPUTCURRENCY],[RATE],[RATEENTITY],[TIMEID],SIGNEDDATA
    from tblFactWBRATE
    where [RATE] = 'ALLOCFACTOR' and [TIMEID] in ('20050100','20050200','20050300','20050400','20050500','20050600','20050700','20050800','20050900','20051000','20051100','20051200') and SOURCE = 0
    insert into #941281 ([CATEGORY],[INPUTCURRENCY],[RATE],[RATEENTITY],[TIMEID],SIGNEDDATA)
    select [CATEGORY],[INPUTCURRENCY],[RATE],[RATEENTITY],[TIMEID],SIGNEDDATA
    from tblFac2RATE
    where [RATE] = 'ALLOCFACTOR' and [TIMEID] in ('20050100','20050200','20050300','20050400','20050500','20050600','20050700','20050800','20050900','20051000','20051100','20051200')
    select ,sum(SIGNEDDATA) as amtTOTAL
    into #TOTAL_941281 from #941281 a
    group by
    drop table #941281
    ======================

    Hi ATW-
    Please repost this question in the forum for BPC, version for Microsoft:
    [SAP Planning and Consolidation, version for the Microsoft platform|SAP Planning and Consolidation, version for the Microsoft platform;
    Regards,
    Sheidon

  • Run allocation based on condition matched

    Hi SAP friends,
    I need to run allocation based on condition matched, is it possible with IIF or another statement?
    the logical view is below (syntax is wrong):
    *RUNALLOCATION
    IIF(BAS(ACCOUNT_01)<>0,
    *FACTOR = USING/TOTAL
    *DIM ACCOUNT WHAT = ACCOUNT_52; WHERE=BAS(ACCOUNT_01); Using=BAS(ACCOUNT_01); TOTAL=BAS(ACCOUNT_01)
    *FACTOR = 1
    *DIM ACCOUNT WHAT = ACCOUNT_52; WHERE=ACCOUNT_10)
    *ENDALLOCATION
    thanks a lot.

    Hi Vadim,
    I am somehow getting doubled values, I have read some articles where when and REC can double values, but my case seems to be something different, do you have an idea?
    the code is below:
    *FOR %MONTH_PLUS% = 0,1,2,3,4,5,6,7,8,9,10,11,12
    *XDIM_MEMBERSET RPTCURRENCY     = LC
    *XDIM_MEMBERSET ENTRYTYPE          = INPUT
    *XDIM_MEMBERSET CLIENTSEG           = NA_CLS, GCIPZ
    *XDIM_MEMBERSET CUSTSEG              = C_INP, P_INP
    *XDIM_MEMBERSET ACCIDENTYEAR    = CAY
    *XDIM_MEMBERSET DISTCH                  = BAS(GI_TOTAL),ALL_OTHER
    *XDIM_MEMBERSET LOB                       = BAS(LOB_GI)
    *XDIM_MEMBERSET PARTNER_RU        = NA_PU
    *XDIM_MEMBERSET ZVIEW                   = MV_PROD,MV_REC
    *XDIM_MEMBERSET TIME                      = TMVL(%MONTH_PLUS%,%TIME_SET%)
    *XDIM_MEMBERSET VERSION               = %VERSION_SET%
    *XDIM_MEMBERSET RU                         = %RU_SET%
    *XDIM_MEMBERSET INSTYPE                = DIR_OWN
    *WHEN INSTYPE
    *IS DIR_OWN
    *REC(EXPRESSION=(([ACCOUNT].[IFRS_69011330_01],[VERSION].[A01],[TIME].[TMVL(%MONTH_PLUS%,$LAST_YEAR$)])==0) ? [ACCOUNT].[STAT_LOSS_52]:[ACCOUNT].[IFRS_69011330_10], ACCOUNT=IFRS_69011330_10)
    *ENDWHEN
    *NEXT
    many thanks, tomas.

  • How to use Hierarchy Filter Selection?

    Hi, experts !
    Could anyone give me a detail for how to use hierarchy filter selection ?
    When i locate a Hier filter selection in the template and execute it, a false info
    accured while filtering data,and the IE inferred the hier node object was missing.
    Then i add another hier filter in the same template, and the secend runs well, however the first one didn't.
    At last, i hide the first one, but the second one can't either.
    Help me !!!
    Thx in advance!

    Thanks Toja !
    Sorry to reply so late !
    The error is line: 51. error:'document.HIERARCHY_MENU_1.NODEID' is null or is not the object.
    The code on line of 51 says:document.HIERARCHY_MENU_1.NODEID.value = i_node;
    Could you please give me some documents on the topic of Hierarchy Filter Selection ?

  • BPC Run Allocation Logic

    Dear All,
    I am new in BPC world so i want ur help in solving one error
    when running allocation logic, it is not accepting more than 1 member in the denominator
    the factor i am using is 1/using
    can u pls help on this
    thanks.

    Can you please post the logic and the error you are getting?
    Thanks,
    John

  • DM Export Base Member Selection -- Need to Use a Filter

    Hi Experts,
    Posting a follow-up on this one.  Does anyone know how to run the Data Manager Export package when producing a (relatively) large data set?
    The challenge is that when running an Export, you'd want to chose all base-level members in some dimensions.  For example, you might select all Cost Centers in your Costing dimension and in the Data Manager member selector screen, you could simply filter for something like CALC=N or BAS(ALL CostCenters), etc.  ...However, once you click "OK", BPC will return to the Data Manager dialogue and tell you that you have chosen too many members for the dialogue and that you should use a Filter, or your member selections will be truncated.
    Also sometimes, you can see in the box the message " [FILTER:  MYFILTER] as this other user noted before (also unanswered question):
    [BPC Export data with filter]
    Thanks for any suggestions.
    Garrett

    Shot in the dark but worth noting...
    Do you have more than 1024 base entities? A common oversight is that your grid setting are set to display only 1024 rows (default) and you have to click on the down arrow in the HFM toolbar to view the next page of rows/entities. You can also increase the # of rows to display in a grid so as to display all rows on the same page.

  • Photoshop CS6 freezes when using Liquify filter

    Hi,
    sorry for starting this topic again, but reading other discussions didn't help. THe problem is that Photoshop freezes when I use Liquify filter. It is enough just to open it and then click cancel - the Photoshop gets stucked immediately. I have never had such problem before, ran the whole Creative Suite 6 succesfully on my laptop, but after I reinstalled system using an old system image, it is not working properly.
    I have Photoshop CS6, Windows 7 64 bit and I have Intel(R) HD Graphics 3000 integrated and NVIDIA GeForce GT540M external graphics cards. I am forcing the laptop to use NVIDIA only for everything, also I force Photoshop itself to start with NVIDIA GPU. Nothing helped.
    Any suggestions?
    Thanks for your help!

    Is it possible the old system image had an old video card driver or you are not running the latest CS6 update? I would first check to be certain you have all the latest CS6 and video card updates.

  • Error -20020 when using Express "Filter" VI?

    The help for Error -20020 says the cutoff frequency Fc must meet 0 <= Fc <= Fs/2. 
    Set Up
    Using LIFA to read an Arduino Uno analog input signal at approximately 125 samples per second.
    Using Express "Filter" VI to filter the data. The filter is set to Lowpass, Fc = 10HZ, Type Buterworrh and IIR.
    The Express Filter works when Fc is set to 0.5Hz.
    Why must Fc be st to a value less than !/100 of the sampling frequency? 
    What must be done to obtain a low pass cut off frequency of 10Hz wien the sampling rate is 125 samples per second?
    Howard
    Solved!
    Go to Solution.

    Thank you for your reply.
    Attached is a VI that demonstrates the problem . You will need an Arduino board and LIFA to run the demo.  However, hopefully you will be able to make some recommendations after inspecting the VI.
    As a  follow up to your comment how do you add Delta T information to the data coming from an Arduino board?  I tried adding a "Set Dynamic Data Attributes" VI.   This did not fix the problem.
    Howard
    Attachments:
    LowPassDigitalFiliterTest..vi ‏923 KB

  • "Using the Filter HUD to Search for Referenced Files" (and "Locate Referenced Files")

    I am trying to follow the Help Documentation item "Using the Filter HUD to Search for Referenced Master" (not sure if there is a way to post a URL to this) and I am not seeing what it is telling me to do.
    I am going to Edit > Find and it is telling me to "Click the Filter HUD button beside the search field in the Browser". Is this referring to a browser in the Aperture UI or is this in the Filter HUD display? I am not finding this.
    Also, it saying that in the Filter HUD I should "choose File Status from the Add Filter pop-up menu, and select the 'File Status' checkbox." and I am not seeing this either. Does anyone know where this is at?
    Lastly, I see that there is a command called File > Locate Referenced Files and when I run this I get a "No Referenced Files in the /current/ selection. I have realized that I don't quite understand whether I am running this search for a specific Project and/or whether I have to make a specific selection in the left hand pane when I run a FILTER HUD or whether this automatically defaults to search the whole database. Does it matter what I have selected in the current Browser View when I run either of these commands?
    Thanks for any help in my getting this working better for me.

    hotwheels 22 wrote:
    I am trying to follow the Help Documentation item "Using the Filter HUD to Search for Referenced Master" (not sure if there is a way to post a URL to this) and I am not seeing what it is telling me to do.  1
    I am going to Edit > Find and it is telling me to "Click the Filter HUD button beside the search field in the Browser". Is this referring to a browser in the Aperture UI or is this in the Filter HUD display? I am not finding this. 2
    Also, it saying that in the Filter HUD I should "choose File Status from the Add Filter pop-up menu, and select the 'File Status' checkbox." and I am not seeing this either. Does anyone know where this is at?  3
    Lastly, I see that there is a command called File > Locate Referenced Files and when I run this I get a "No Referenced Files in the /current/ selection. I have realized that I don't quite understand whether I am running this search for a specific Project and/or whether I have to make a specific selection {4}  in the left hand pane {5} when I run a FILTER HUD or whether this automatically defaults to search the whole database. Does it matter what I have selected in the current Browser View when I run {6} either of these commands? 7
    Thanks for any help in my getting this working better for me.
    1.  Just copy and paste the URL from the on-line User Manual.  Very helpful.  Are you on this page?
    2.  From the above-linked page:
    Show the Filter HUD by doing one of the following:
    Choose Edit > Find (or press Command-F).
    Click the Filter HUD button beside the search field in the Browser.
    The instructions specify ONE of the following.  Your question indicates to me that you are trying to do both.
    3.  The User Manual has used the wrong term here.  It should say "Choose 'File Status' from the 'Add RULE' pop-up menu."
    4.  The command -- like all commands? -- works on the currently selected Images.  On the same page in the User Manual it says:
    You can select a group of images in the Browser and Aperture can show a list of the referenced images within the selection, including information about where the masters are located. {Emphasis mine.}
    5.  The Aperture workspace is highly configurable.  I don't know what you mean by "the left-hand pane".  Of what?
    6.  Yes.  Of course it matters.  At some point in the 80's when the GUI became standard computers standardized on the "Noun→Verb" syntax:  Select object(s), select command(s).
    7.  Not sure what the second command to which your refer is.

  • Run allocation error

    Dear expert,
    I have run Allocation successfully but nothing saved in database. source script like this:
    *XDIM_MEMBERSET TIME=2013.01,2014.01
    *XDIM_MEMBERSET ACCOUNT = BS122
    *XDIM_MEMBERSET CATEGORY=Plan,Actual
    *XDIM_MEMBERSET ENTITY =$SOURCE$,$TARGET$
    *WHEN ENTITY
    *IS "Africa"
    *REC(EXPRESSION=$ASARENT$,TIME=2014.01,CATEGORY=Plan)
    *ENDWHEN
    *COMMIT
    *RUNALLOCATION
    *FACTOR=USING/TOTAL
    *DIM ACCOUNT  WHAT=BS122;                WHERE=<<<;               USING=<<<;         TOTAL=<<<
    *DIM ENTITY    WHAT=$SOURCE$;  WHERE=BAS($TARGET$);  USING=<<<;          TOTAL=<<<
    *DIM TIME     WHAT=>>>;                    WHERE=2014.01;      USING=2013.01;  TOTAL=<<<
    *DIM CATEGORY     WHAT=>>>;                   WHERE=Plan;      USING=Actual;  TOTAL=<<<
    *ENDALLOCATION
    *WHEN ENTITY
    *IS "Africa"
    *REC(EXPRESSION=0,TIME=2014.01,CATEGORY=Plan)
    *ENDWHEN
    *COMMIT
    Please show what I am wrong and how to correct it.
    thanks so much
    HUNGTH

    I have edited my script base on your comment like this:
    *XDIM_MEMBERSET TIME=2014.01
    *XDIM_MEMBERSET ACCOUNT=BS122
    *XDIM_MEMBERSET CATEGORY=Plan
    *XDIM_MEMBERSET ENTITY =$SOURCE$
    *WHEN_REF_DATA = MASTER_DATA
    *WHEN ENTITY
    *IS *
           *REC(EXPRESSION=$ASARENT$)
    *ENDWHEN
    *RUNALLOCATION
    *FACTOR=USING/TOTAL
    *DIM ACCOUNT  WHAT=BS122;                WHERE=<<<;               USING=<<<;         TOTAL=<<<
    *DIM ENTITY    WHAT=$SOURCE$;  WHERE=BAS($TARGET$);  USING=<<<;          TOTAL=<<<
    *DIM TIME     WHAT=>>>;                    WHERE=2014.01;      USING=2013.01;  TOTAL=<<<
    *DIM CATEGORY     WHAT=>>>;                   WHERE=Plan;      USING=Actual;  TOTAL=<<<
    *ENDALLOCATION
    *WHEN ENTITY
    *IS "ASA"
    *REC(EXPRESSION=0,TIME=2014.01,CATEGORY=Plan)
    *ENDWHEN
    But the same result

  • Using FileName Filter is an Advantage ?

    Hi all,
    Assume there are two versions of program , let me tell you the objective of the program.
    Objective : To list the directory and select the files based on the given criteria.
    Version 1:
    Step 1: get the files list by using File.listFiles()
    Step 2. Loop through the list and select the files based on the criteria.
    Step 3: Process the selected files.
    Version 2:
    Step 1 : Get the files using File.listFiles(Filter)(embed the selection criteria inside the filter class).
    Step 2 : Process the selected files.
    My assumption is Version 2 will run faster than Version 1:
    Guys could you please tell me whether my assumption is right ?

    There's no reason to think the Filter method will run any faster. In fact, it might be a tiny, imperceptible bit slower, since it will probably have an extra level of method calling. Note that this theoretical minuscule speed difference is NOT a reason to choose one over the other.
    The reason to use the Filter method is for encapsulation and separation of responsibility. The Filter is a way to encapsulate the selection criteria, and confine that responsibility to a class whose job is precisely that. This lets you change which files you'll process without changing the processing loop. The filter can come from somewhere completely separate from the processing loop.
    For example:
    public class FileUtil {
      public static getSumOfFileSizes(File directory, FileNameFilter filter) {
        File[] files = directory.listFiles(filter);
        long size = 0L;
        for (File file : files) {
          size += file.length();
        return size;
    }Now if I want to know the total sizes of all the .jpg files and all the .gif files in the directory, I just do
    long jpgSizes = FileUtil.getSumOfFileSizes(directory, new FileNameFilter() {
      public boolean accept(File directory, String name) {
        return name.endsWith(".jpg");
    long gifSizes = FileUtil.getSumOfFileSizes(directory, new FileNameFilter() {
      public boolean accept(File directory, String name) {
        return name.endsWith(".gif");
      }});Note that I only write the size summing code once, and I never change it. I could of course define a FileFilter, say EndsWithFileFilter that I just pass the extension to look for, rather than have those separate anonymous inner classes. The point is that the processing code is completely independent of the file selection code.

  • How to use one Filter Pane to multiple Dataproviders

    Hi Experts.
    i have checked the threads on this but i did not get correct solution.
    we have issue in using single Filter pane web item in WAD for three different dataproviders ( three dataproviders have same free charecteristics and variable) charecteristics in row and keyfigures are different.
    thanks in advance.
    Regards
    Raj.

    Hi Gill,
    Thanks for your Quick responce.
    when we use the single filter pane, filter conditions are working for only first dataprovider (since data binding is to dataprovider 1. in affterted dataproviders i selected dataprovider 2 and 3, but filter pane is not active for other two dataproviders in tabs.
    thanks in advance.
    Any inputs please....
    Regards,
    Raj.
    Edited by: Rajsapbi on Apr 6, 2009 9:22 AM

  • IP Characteristic Relationship used via Filter for derivation in Query

    Hello Experts,
    hopefully you can help me with following issue:
    Currency is an Attribute from Company. I created a Characteristic Relationsship to derive Currency from Company
    Afterwards I created an Aggregation Level with fields
    Currency, Company, Material, Amount, Quantity, Unit.
    On this Aggregation Level I defined a Filter with Company which will be filled from a Variable (Replacement Path, Query, single value).
    I use this Filter in a Ready-Input Query and defined it like follows:
    Rows: Amount and Quantity (restricted to TO)
    Column: Material and Currency
    The field currency should be filled automatically with Currency from Company but it did't. Due to this the Query is not ready input.
    I know that it can be filled via User Exit but this is my last solution if nothing else is working. A Variable with Replacementh path and filled by Attribute of Company does not solve my issue.
    Thank you in advance for any help.
    Kind Regards
    Doris

    Hello,
    thank you all for your answers. I used Workpackages for my issue. I picked it upfrom the "How to Use workpackages to control Locking in BI Integrated Planning".
    With this solution I can fill the currency with Replacmenth Path from Attribute Company.
    This is the first time that I worked with Workpackages for Authorization and I can recomend it because you don't need an User Exit.
    Kind Regards
    Doris

  • The MessagePerformanceUtils:totalTime issue in Flex 4 (rpc.swc) using LCDS 3.1 running under JDK1.6

    We are facing an issue while using LCDS 3.1 running under JDK1.6 in Sun Solaris v5.10 OS & Adobe Flex 4.
    Scenario :-
    ===================================
    As part of our Flex-based client-server application (with Java backend) we have a performance report generation module. Following flex framework class is used to calculate the performance of various layer of a typical server-based request-response cycle.
    ; (available in rpc.swc library file)
    (for example : server time, cairngorm time, UI screen rendering time, UI event generation time etc).
    The totalTime was working properly before upgrading the rpc.swc to Flex 4 ; However it broke after migrating to Flex SDK 4; The totalTime is now coming as negative junk value.
    As we understand that the above Flex framework class method works in conjunction with LCDS running at server side on JDK.
    We suspect that the new rpc.swc taken from Flex SDK 4 is causing the issue !
    System information :
    Web Server : Weblogic 11G
    Operating System : Sun Solaris v5.10 OS running on Sparc hardware.
    Flex : Adobe Flex sdk 4.0
    Flash player : Adobe Flash Player 10
    Browser : Internet Explorer 8
    LCDS : 3.1
    JDK : JDK 1.6.0_14
    ===================================
    Has anyone faced similar problem before ? Any help or direction would be highly appreciated.
    Thanks in advance,
    Rabi
     mx.messaging.messages.MessagePerformanceUtils :totalTime

    Nothing has changed in the Flex SDK sources for this class since sometime around 2008. Are you running against the same LCDS server as you were before you updated to Flex 4?  This certainly seems strange (and bad).  Do you see the same behavior with Flex 4.5?  What was the version of Flex you were using before switching to Flex 4.0?
    If you can provide the additional information, we will look in to this.  A reproducable case that was a simple mxml application along with a simple destination config would help us narrow the problem.
    Sorry for the problems!
    Tom

Maybe you are looking for

  • How to move ALL musical content from old PC to new Mac

    Sorry if this has been asked a million times before, but since iTunes has been updated and processes get changed/revamped, etc., please let me know your opinion on this: I am getting my first-ever Mac. I want to move my approximately 2,600 songs from

  • Changes on some pages saved, others are not

    For some reason, I'm able to save changes made to a couple of pages on my site, but when I try to save, quit, and restart iWeb 08 after making changes on the other pages, they aren't reflected. That goes for both graphics and text. This just started

  • Using Imac as hub?

    Hi folks! I was wondering if it's possible to use my iMac as a hub to connect to my xbox360 on internet Thanks Aeterna

  • Problems with edx course pages/videos

    Problem: Videos on the course pages appear randomly with or without Closed Captions (CC) activated. If CC appears activated, then everything functions normally. If CC appears not activated, then the video area expands (normal) but has a light-colored

  • JPEG to BMP conversion

    Hi all, I guess this question has been asked for many times but still I can't find a good solution. What I am trying to do is reading a JPEG file, having some processing(for e.g. scale it down) and converting it to BMP format. I tried to search throu