Data Mining on data specified and filtered by the user in runtime

Hi Experts,
i am new to Data Mining in SAP BI (we are on BI 7.0 SP Level 20). I familiarised myself with APD and Data Mining by reading some interesting and useful threads in this forum and some other resources. Therefore I got a understanding about the topic and was able to create basic data mining model for an association analysis and an corresponding APD for it and write the results into a DSO by using the data source. But for now I was not able to find a solution for a concrete customer requirement.
The user shall be able to select an article, a retail location and a month and get the top n combinations sold with that article in the particular location and month. For that he may not access the data mining workbench or any other SAP internal tools but he shall be able to start the analysis out of the portal (preferable a query).
We had some thoughts on the scenario. The first idea would be to create an APD for every location for the last month. As we need to cover more than 100 locations, this would not be practicable. Therefore I think it would be necessary, that the user can select the particular filters, and the data mining would then be executed with the given input.
The other idea was to use a query as source. The user would start this query and filter location and month in it. The result of the query could then be used as the source for the APD with the association analysis. Therefore we would need to create a jump point from that query, which starts the APD with that results. After that the user should be able to start a result query, which displays the result of the association analysis (ideally this result query would start automatically, but starting it manually would be ok, too).
So, I have the following questions for these scenarios:
1.) Is it possible to create variants of a single APD, for automatically doing the data mining for the different locations?
2.) is it possible to start an APD out of a query, with the particular results regarding filtering?
3.) Can we place a query directly on the data mining results (how?) or do we need to write the data mining results in a DSO first?
4.) What about the performance? Would it be practicable to do the data mining in runtime with the user waiting?
5.) Is the idea realistic at all? Do you have any other idea how to accomplish the requirement (e.g. without APD but with a query, specific filter and conditions)?
Edited by: Markus Maier on Jul 27, 2009 1:57 PM

Hi ,
you can see the example : go to se 80 then select BSP Application ,SBSPEXT_HTMLB   then select tableview.bsp , you will get some idea to be more clear for the code which you have written
DATA: tv TYPE REF TO CL_HTMLB_TABLEVIEW.
tv ?= cl_htmlb_manager=>get_data(
                         request = runtime->server->request
                          name    = 'tableView'
                              id      = ''tbl_o_table" ).    
IF tv IS NOT INITIAL.
  DATA: tv_data TYPE REF TO CL_HTMLB_EVENT_TABLEVIEW.
  tv_data = tv->data.
IF tv_data->prevSelectedRowIndex IS NOT INITIAL.
FIELD-SYMBOLS: <row> LIKE LINE OF sflight.
    READ TABLE ur tablename  INDEX tv_data->prevSelectedRowIndex ASSIGNING <row>.
    DATA value TYPE STRING.
    value = tv_data->GET_CELL_ID( row_index    =
                               tv_data->prevSelectedRowIndex
                                  column_index = '1' ).
endif.
endif,

Similar Messages

  • HT201699 My carrier is Straight Talk (using ATT network) and they require the user to enter the APN settings in order to access their data network. My Iphone 4s is factory unlocked but I can not get to the Cellular Data Network tab to enter the settings?

    My carrier is Straight Talk (using ATT network) and they require the user to enter the APN settings in order to access their data network. My Iphone 4s is factory unlocked but I can not get to the Cellular Data Network tab to enter the settings?

    Yes ATT hides the APN settings so when you try to use a st sim it automatically reads on AT&amp;T network so the APN settings are hidden and cannot be accessed however you can go to apn.straighttalk.com on you'r phone and select APN/data settings then select AT&amp;T then iPhone and a screen will pop up asking if you would like to install the profile for whatever reason it's not verified but works fine. You can also go to www.unlockit.co.nz and set up a straight talk APN profile that is verified not sure exactly what that means but both work to get the data working on the phone for straight talk but it does not make the MMS work. There are a couple other methods I have read about one is on howardforums using ibackupbot to manually change the files on the phone I haven't been able to get mine to stick using that method but other people have and there is a sim swap method to trick the phone to reveal APN settings using a tmobile sim I have not tried this but other people have with success. The last two methods mentioned will make both data and MMS work

  • How to  send ALV output data into Excel sheet format via Mail to the user?

    Hi friends,
    I have a doubt ie,
    How to  send ALV output data into Excel sheet format via Mail to the user?
    regards
    Moosa

    Hi,
    Provide the output internal table to the objbin in the below FM
    Send Message
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           EXPORTING
                document_data              = i_docdata
                put_in_outbox              = c_x
           TABLES
                packing_list               = i_objpack
                object_header              = i_objhead
                contents_bin               = i_objbin
                contents_txt               = i_objtxt
                receivers                  = i_reclist
    and specify the document type
      i_objpack-doc_type   = 'XLS'.
    and try.
    Regards,
    Nandha

  • Upgrade of our 10.4.11 laptop to 10.5 is accomplished and we now need to upgrade Quicktime and iTunes; however, the user name and password is now not working after the upgrade to 10.5.

    Object is to sync address and calendar between laptop with Max OS 10.4.11 and iPhone. Upgrade of our 10.4.11 laptop to 10.5 is accomplished and we now need to upgrade Quicktime and iTunes; however, the user name and password for the laptop is now not working after the upgrade to 10.5., though it was working prior to the upgrade, for file sharing.

    @ BDAqua > I tried your suggestion but no luck. holding opt+command just gave me a blue screen and it rebotted, pushing the disk out of the drive. Yes, the macbook has 1 gb of ram. I realize that the min req. call for 2 gb of ram so i've got an order in for another dimm to put into the machine. Thanks for your suggestions.
    @ a_brody > Yes. The machine was plugged into a power source. The disk promts you to do that and i recall aspect this form other installs. Thanks for the reminder tho! ( btw your second post is like greek to me man!) 
    @ Kuncklesmac > You're right about Snow Leopard being an upgrade from Leopard. I'm aware of this. And yes previously i've been told by Apple that I needed the Box Set (not the family pack.  i am using the family pack for OS Snow Leopard) to upgrade my 10.4.11 mac - they never mentioned adding ram but i figured that out on my own and an apple specialist recommended it when i purchased Snow Leopard and confirmed that I coul duse the Snow Leopard to upgarde from Tiger (10.4.11). I've also read extensively (as i said above) that it isn't necessary (always) to buy the box set. Several 10.4.11 users report having upgraded using the Snow Leopard upgrade disk only (not the Box Set) without trouble on intel macs (also see the apple link i posted). So i'm just ondering how they did it and i cannot. 
    Thanks fo rall yor help!

  • Hi, i have a MB Pro Intel C2D with Lion OS and i migrated the user to another MB Pro i5 Lion, after migrating I'm having a problem on Safari, it won't open and just crashing

    Hi, i have a MB Pro Intel C2D with Lion OS and i migrated the user to another MB Pro i5 Lion, after migrating I'm having a problem on Safari, it won't open and just crashing

    Shouldn't be having a problem, then. That's the version for ML. Try taking your question to the Safari forum - https://discussions.apple.com/community/mac_os/safari - that's where all the Safari experts hang out.
    Clinton

  • I tried to install the latest version of iTunes on my Windows PC, but the installation failed and I have the error message "Runtime Error R6034 An application has made an attempt to load the C runtime library incorrectly."

    I tried to install the latest version of iTunes on my Windows PC, but the installation failed and I have the error message "Runtime Error R6034 An application has made an attempt to load the C runtime library incorrectly."  When I then tried to run iTunes (assuming that, since the new install failed, my older version was still OK) I got the message "iTunes was not installed correctly.  Please reinstall iTunes.  Error 7 (Windows error 1114".  I tried then uninstalling iTunes and reinstalling it fresh, but encountered the same problems. Help!

    Try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • Mapping and Monitoring all the User and the Field exits

    Hello Dears,
    Are possible, with the Solution Manager to map and monitor all the user and the field exists existing in my ECC6 Productivity Environment?
    Anyone has some documentation?
    Regards to all.
    FS.

    Hello Gurus,
    Someone has any information about this question?
    Regards to all.
    FS.

  • After a quiz can you show the questions and answers for the user to review from passing the quiz

    After taking a quiz, is there a way to show the questions and answers for the user to review from passing the quiz.
    And the ones who has failed the quiz would be directed to the first slide again to take the quiz over.
    Thanks

    Rod
    I see that information about adding the review quiz button but on that last slide where it shows results, I want it jump back to slide 1 but it jumps to the first question of the slide. Is there a way around that?

  • Step to schedule to run the report and send to the users in Unix (10g AS)

    Hello;
    I'm looking for the script or the guide to schedule generate monthly report and send to the users such as using batch or cron job. Please help.
    Thanks in advance,
    TD

    Hi,
    There are Parameters DESTTYPE, DESFORMAT and DESNAME. You can set these parameters to get as you want.
    1) Output in Excel File
         ADD_PARAMETER(PL_ID, 'DESTYPE', TEXT_PARAMETER, 'FILE');
         ADD_PARAMETER(PL_ID, 'DESFORMAT', TEXT_PARAMETER, 'DELIMITED');
         ADD_PARAMETER(PL_ID, 'DESNAME', TEXT_PARAMETER, '<file_name>.XLS');2) output to printer
         ADD_PARAMETER(PL_ID, 'DESTYPE', TEXT_PARAMETER, 'PRINTER');
         ADD_PARAMETER(PL_ID, 'DESNAME', TEXT_PARAMETER, '<printer_name>');3) Email - Have to configure SMTP and all. ( i didn't checked it)
         ADD_PARAMETER(PL_ID, 'DESTYPE', TEXT_PARAMETER, 'MAIL');
         ADD_PARAMETER(PL_ID, 'DESNAME', TEXT_PARAMETER, '<email_id>');Regards,
    Manu.
    If this answer is helpful or correct, please mark it. Thanks.

  • Change Picking data, then call Delivery Note and Invoice in the background

    I have designed a GUI where the picking data (from table LIPS) is changed.  Now my SD consultant wants the program, when a SAVE or CONTINUE button is clicked, to do the Delivery Note and Invoice in the background.
    To quote:
    Your progrm must change the values in the delivery in txn VL02n, when the delivery is saved it updates LIKP and LIPS amongst othr tables. When the invoice / billing doc is created it is done with ref to the delivery. Billing doc created using txn VF01, the main tables of the billing doc are VBRK (header) and VBRP (item).  And for completion sake, tables VBAK and VBAP are the sales order tables!
    In my PAI module, how do I do the calling of these two functions?
    The consultant suggested I use a BDC. Why can't I use Call Transaction.... ?   What is the best way to do this?
    At the moment, my SAVE button updates an internal table of LIPS, and for test purposes it exits to List Processing to test if the amounts changed correctly.
    Hope someone can help.

    Hi
    Ok.
    Do you mean "Accual GI Date" in Item overview ?
    I have performed a test. When I check "Goods Issue delivery" indeed it has posting date in the past.
    Now for the invoice:
    I set
    "Billing date"
    "Serv. rendered" date
    and "Prining date" in the past.
    Would it be enough to post everything in the last month ?
    regards
    Rafal

  • Stored proc to pull data from INV/OM/ASCP and load into a user interface

    i'm trying to pull the data from inv, om and ascp into a user interface ? help me write a stored proc to write 3 procedures, with 3 custom tables for the 3 diff source systems i.e., OM/INV/ASCP and also provide these 3 programs in the request set so that when request set is run, it runs the programs one after the other.
    -please help me with a simple step by step process in doing so ?
    Thanks in advance !!
    Edited by: 1003397 on May 20, 2013 3:59 PM

    i'm trying to pull the data from inv, om and ascp into a user interface ? help me write a stored proc to write 3 procedures, with 3 custom tables for the 3 diff source systems i.e., OM/INV/ASCP and also provide these 3 programs in the request set so that when request set is run, it runs the programs one after the other.
    -please help me with a simple step by step process in doing so ?
    Thanks in advance !!
    Edited by: 1003397 on May 20, 2013 3:59 PM

  • How to display in sap-script the data which is input in selection screen by the user.

    Hii,
        I want to display the data in sap-script that has been input by the user in selection screen.
    Suppose the the user has done input for posting date from 25.1.2001 to 25.1.2005,what i want is to display this date in sap script.
    How can i do it.
    please help asap.
    Regards.

    Hi,
    If select-option name is s_erdat.
    then from value will be s_erdat-low and to value will be s_erdat-high.
    Arivazhagan S

  • Final Cut Server and Filters in the browser window

    Hi
    we have an issue with a client where they have put some filters in their browser and this is causing problems uploading them to FCSvr.
    This doesn't happen to every final cut pro project even though they all have filters in the browser
    Has anyone else had any issues with this and are there any ways to make sure all CP projects upload correctly?
    thank you

    What specific problems are you encountering?

  • How do I compare two csv files and not disable the user if the username is found in the 2nd file using powershell?

    Hi Guys
    I have two csv files with the following headers and I need to import both files into the script to check whether the StaffCode is present in the Creation/Renewal of Contract csv in a DisableAccount Script so I can stop any action to disable the account as
    the staff has renewed the contract with the company so the account should not be disabled.
    However my accounts are still being disabled. I am not sure now to construct the query so that it detects that the account is to be left alone if the staffcode is present in both files
    I does recognize that the $staffcodeN in the renewal file matches the $staffcode in the termination file
    but still proceeds to disable or set an expiry date to the account anyway based on the termination file. 
    How do I stop it from doing that?
    1)In the Creation/Renewal of contract file the following headers are present
         -  TranCode,StaffCode,LastName,FirstName,SocialSecurityNo,DateJoin,Grade,Dept,LastUpdateDate,EffectiveDate
    2)In the Disable of contract file the following headers are present
        - TranCode,StaffCode,LastName,FirstName,SocialSecurityno,LastDateWorked,Grade,Dept,LastUpdateDate,
    My data is not very clean , I have a-lot of special characters such as = , ' ,/ and \ characters to remove first before i can compare the data
    Thanks for the help in advance.
    Yours Sincrely
    Vicki
    The following is a short snippet of the code 
    $opencsv = import-csv "D:\scripts\Termination.csv"
    $opencsv2 = import-csv "D:\scripts\RenewContractandNewStaff.csv"
    foreach ($usertoaction in $opencsv) 
    $Trancode = $usertoactionTranCode
    $StaffCode = $usertoaction.StaffCode.replace("=","").replace('"','')
    $LastName = [string]$usertoaction.LastName.Replace("/","\/").Replace(",","\,")
    $FirstName = [string]$usertoaction.FirstName.Replace("/","\/").Replace(",","\,")
    $socialsecurityno = $usertoaction.SocialSecurityNo.replace("=","").replace('"','')
    $DateJoin = $usertoaction.DateJoin.replace("=","").replace('"','')
    $LastDateWorked = $usertoaction.LastDateWorked.replace("=","").replace('"','')
    $Grade = [string]$usertoaction.Grade
    $Dept = [string]$usertoaction.Dept
    $LastUpdateDate = $usertoaction.LastUpdateDate.replace("=","").replace('"','')
    $AccountExpiry = [datetime]::Now.ToString($LastDateWorked)
    foreach ($usertoaction2 in $opencsv2) 
    $TrancodeN = $usertoaction2.TranCode
    $StaffCodeN = $usertoaction2.StaffCode.replace("=","").replace('"','')
    $socialsecurityNoN= $usertoaction2.SocialSecurityNo.replace("=","").replace('"','')
    $DateJoinN = $usertoaction2.DateJoin.replace("=","").replace('"','')
    $GradeN = [string]$usertoaction2.Grade
    $DeptN = $usertoaction2.Dept
    $LastUpdateDate = $usertoaction.LastUpdateDate.replace("=","").replace('"','')
    $EffectiveDate = $usertoaction.EffectiveDate.replace("=","").replace('"','')
    $LastName2 = [string]$usertoaction2.LastName.Replace(",", "").Replace("/","").trim()
    $FirstName2 = [string]$usertoaction2.FirstName.Replace("/","").trim()
    # Use DirectorySearcher to find the DN of the user from the sAMAccountName.
    $Domain = [System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain()
    $Root = $Domain.GetDirectoryEntry()
    $Searcher = [System.DirectoryServices.DirectorySearcher]$Root
    $Searcher.Filter = "(sAMAccountName=$samaccountname)"
    $doesuserexist1 = $Searcher.Findall()
    if ($doesuserexist1 -eq $Null)
    {Write-Host $samaccountname "account does not exist"}
    elseif ($StaffCodeN -match $staffcode)
    write-host "user has renewed the contract, no action taken"
    else
    if(($lastupdatedate -ne $null)-or($LastDateWorked -ne $null))
                        write-host "Setting Account Expiry to"$accountexpirydate
    #$ChangeUser.AccountExpires = $accountexpirydate
               #$Changeuser.setinfo()
    if ($UserMailforwarding -ne $null)
    #Set Account expiry date to Last Date Worked
    # $ChangeUser.AccountExpires = $accountexpirydate
    # $Changeuser.setinfo()
     write-host "staff" $displayname "with staff employee no" $samaccountname "has                          
    mailforwarding" 
    Write-host "Please disable the account manually via Active Directory Users & Computers and 
    Elseif ($accountexpirydate -lt $todaysdate)
    #disable the account

    Hi Vicki,
    This Forum has an insert-codeblock function. Using it will make your script far more readable
    Your script is missing some parts, it is impossible to follow the problem.
    You are performing the same string cleaning action on $opencsv2 for each element in $opencsv, when doing it once should suffice. Why not start it all by cleaning the values and storing the cleaned values in new arrays?
    The Compare-Object function is great, why not take it out for a stroll on these lists, it might just safe you lots of unnecessarily complicated code ...
    You are creating a new $Domain, $Root and $Searcher object each iteration, when doing it once should suffice. Probably not much of a time-saver, but every little thing contributes.
    Try pinpointing the problem by doing extensive logging, not only by writing which action was taken, but writing the inidividual information (variables, mostly) before evaluation occurs. Your if/elseif/else looks sound, so if it's still not doing what you
    want, the ingoing data must be different from what you think should be there.
    Cheers,
    Fred
    There's no place like 127.0.0.1

  • OEM12c - Can you delete a service (db, schema) as a Cloud admin and not as the user that requested it?

    I configured the OEM 12c to provide DBaaS, ans Schema as a Service in a test environment.
    I was able to configure all the necessary settings, created the pools, admin users and end users.
    I created database and schema requests that were created successfully.
    My question is, Can the Cloud admin user delete the service that any user requested Via OEM or always has to be done by the end user that created the service via the Self Service Portal?
    Thanks,
    Daniel

    Will,
    The answer varies from service to service. For example, you can make simple
    changes to the catalog schema by editing the wlcs-catalog.properties file.
    Please refer to the documentation for more details.
    Sincerely,
    Daniel Selman
    "Will Young" <[email protected]> wrote in message
    news:3c8e30fa$[email protected]..
    >
    Hello,
    I've been combing through the docs, but I can't realy find a definitiveanswer
    for this. If I have an existing Order, Customer, Product catalog, etc.schema,
    can I integrate WL Portal 4.0 with it and not use the WLCS_* tables?
    As for as I can tell, I could re-write ALL the Pipeline Components thatdeal with
    data access. Is that the only way? Is that even advised?
    Thanks,
    Will Young

Maybe you are looking for

  • I can no longer get Photostream to work.

    I read somewhere that the only way to delete photos from photostream  was to turn it off, so I did.  I turned it off in the iCloud settings, then when the set up Photostream screen came up in iPhoto, I said "No Thanks."  Is there anything I can do to

  • Manually created submit buttons & mandatory fields

    Hi, I included a Submit & an Email button in some of my forms.  I've set them up as Regular buttons and coded them myself to do what I want eg: if(xfa.host.messageBox("Please save this form before emailing or data will be lost","Save Form",1,1))    

  • Error in reading socket

    hi all, I have a connection with a socket and I get the response of my request but sometimes i read some garbage data in the response like *"GCJ#���6JR��a)P)��$~G�a);)��$3���Q}�GXJR�g���~�X=��QJ�����J%�l{�����Q~o"* this garbage data included in the r

  • HT3702 need help with purchase please!!!

    My husband mistakenly hit the purchase button las night for an apple app and now it has been taken out of our account, but was deleted off the phone as soon has he realized that he hit the purchase button how do we get a refund please we need HELP!!!

  • Kernel-Pow​er Critical Error on W520

    Hey Everyone, Every now and then, I play a little Minecraft on  my W520. However lately, I'll be playing and the computer will completely lock up and I'll have to hold the power button down and turn it off. When I boot back up, I look in the event vi