Changing many queries with a "script"

A SAP-BI newbee here. I would like to add a characteristic to a cube and have all existing queries filter on this characteristic. Is there a way to create some sort of script to update all queries and automatically insert this filter so that the users don't need to manually touch each query?

Hi Robert,
You can find some sample code and tables here:
Re: Query-InfoObject - Tables
I think there are some more threads out here that have programs modifying the RSZ* tables.
Hope this helps...

Similar Messages

  • Changing SPRM 0 with a script ?

    Hi list,
    In have searched the archives but I did not found an answer or solution: Is there any way you can change SPRM 0 (menue language) with a script ???
    Any help would be great, Michael

    Hi Chris,
    let me first distinguish between a normal menue and a "language menue" which is a menue that is automatically created when you add a second language to the project. Lets say we have got English an Spanish as languages - so in the menue tab you have the option to choose between english and spanish. Now in the scripts I find no way to adress a menue according to it´s language. I can adress the main menue - but wether in english or spanish is no available option. Only choice would be to build a completly seperat menue called "main menue spanish" - okay, I could do that - but what reason is left there for the "language menues" - as nobody sets the DVD player correctly anyway?
    But maybe I miss the point - you say "select the correct language based on the users previous selection" - how exactly would you do that? I have stored the users choice in GRPM 0 (eng=0, span=1) and it does change the audiostream and subtitels like expected - how do I change the language ??
    michael

  • Change Page size with a Script

    I have made artwork in Illustrator that is set up as two page spreads on 1 artboard.
    I need to convert this to single page spreads.
    I.e. So for half the documents, I need to set the anchor point of the document to top left and half the width of the artboard.
    For the other half of the documents, I need to set anchor point to to right and half the width.
    Is this possible with scripting?
    I have look around online to find ways of accessing the document size and anchor point via scripting, but cannot seem to find any resources.
    Thanks for any help that can be offered.
    Edit: Also is it possible to create a new artboard with a script and assign it a name?

    here you go, this script splits the artboard in two
    // carlos canto
    // http://forums.adobe.com/message/5380624#5380624
    var idoc = app.activeDocument;
    var ab = idoc.artboards[0];
    var abBounds = ab.artboardRect;// left, top, right, bottom
    var ableft = abBounds[0]; // 0
    var abtop = abBounds[1]; // 612
    var abright = abBounds[2];
    var abbottom = abBounds[3];
    var abwidth = abright - ableft; // 792 // width
    var abheight = abtop- abbottom; // 0 // height
    var half = ableft + abwidth/2;
    var abright2 = half;
    ab.artboardRect = [ableft, abtop, abright2, abbottom];
    var ableft2 = half;
    var newAB = idoc.artboards.add([ableft2, abtop, abright, abbottom]);

  • Change Processor Speed with Apple Script?

    Can I use AppleScript to change the Processor Speed in System Preferences/Energy Saver pane?
    The background is that my PowerBook G4 is quite noisy when it's running on the highest speed. This is okey during the days but on the evenings and nights I want it silent (but still on), so instead of changing this manually I'm thinking of a Script to trigger this.
    Please help. :o)

    Hi Andreas
    yes this can be done using a bit of gui script, the script supplied can be saved as a "application, run only" and activated say from iCal or cron.
    "3" is Lowest, so just change the "3" in this line
    click menu item 3 of menu 1 of pop up button 1 of tab group 1 of window "Energy Saver"
    to 2 or 1 "2" is Highest, "1" is Automatic
    and then re-save the script with another name and activate it to change your settings back to where you started.
    tell application "System Events"
    if not (UI elements enabled) then set UI elements enabled to true
    tell application "System Preferences"
    set current pane to pane "com.apple.preference.energysaver"
    tell application "System Events" to tell process "System Preferences"
    set frontmost to true
    click radio button "Options" of tab group 1 of window "Energy Saver"
    click pop up button 1 of tab group 1 of window "Energy Saver"
    click menu item 2 of menu 1 of pop up button 1 of tab group 1 of window "Energy Saver"
    delay 0.5
    tell application "System Events"
    if (name of processes) contains "System Preferences" then tell application "System Preferences" to quit
    end tell
    end tell
    end tell
    end tell
    Budgie

  • [SOLVED] Change environment variables with Shell scripts

    How can I change the "BROWSER" environment variable with a shell script; so I can change it on the fly?
    Last edited by oldtimeyjunk (2012-10-31 12:57:42)

    If you just want to do it for BROWSER so that you can change your default web browser on the fly, you could set BROWSER to e.g. ~/bin/mybrowser and create a symlink to the browser you want at ~/bin/mybrowser. Then you could change the symlink at will.
    EDIT: man xdg-settings
    Last edited by cfr (2012-10-31 02:20:16)

  • Selecting pixels in a picture and changing their color with a script

    Hi, I'm brand new to photoshop scripting, and I want to make a script that takes every pixel of a color and replaces it with a new color,
    I'm having the hardest time finding any information on the internet on how to do it though.
    I do have some background in other coding, so the concepts are not new, just the language and functions.
    I know there's tools and filters already, but I want to make a script so I can add features.
    Any help would be appreciated.
    Thank you!
    (P.S. Is there a way to open and read code of a pre-exsisting filter, or is that impossible?)

    To create your own filters you would need to download the SDK I think you might find an example of a filter.
    With Photoshop this might be close...
    main();
    function main(){
    if(!documents.length) return;
    var sColour =new SolidColor;
    sColour.rgb.hexValue ='245887';
    selectColorRange(0,sColour);
    try{
    var SB = activeDocument.selection.bounds;
        }catch(e){return;}
    var FillColour =new SolidColor;
    FillColour.rgb.hexValue = 'ff0000';
    activeDocument.selection.fill(FillColour,ColorBlendMode.NORMAL);
    activeDocument.selection.deselect();
    function selectColorRange( fuzz, solidColor){
    var scaleA = (solidColor.lab.a + 128.5) / 256;
        var desc11 = new ActionDescriptor();
        desc11.putInteger( charIDToTypeID( "Fzns" ), fuzz );
            var desc12 = new ActionDescriptor();
            desc12.putDouble( charIDToTypeID( "Lmnc" ), solidColor.lab.l );
            desc12.putDouble( charIDToTypeID( "A   " ), solidColor.lab.a + scaleA);
            desc12.putDouble( charIDToTypeID( "B   " ), solidColor.lab.b + scaleA);
        desc11.putObject( charIDToTypeID( "Mnm " ), charIDToTypeID( "LbCl"), desc12 );
        desc11.putObject( charIDToTypeID( "Mxm " ), charIDToTypeID( "LbCl" ), desc12 );
    executeAction( charIDToTypeID( "ClrR" ), desc11, DialogModes.NO );
    Using Christophs suggestion...
    //Use 1 pixel to colour
    app.activeDocument.colorSamplers.removeAll();
    var mySampler = app.activeDocument.colorSamplers.add([new UnitValue(1,'px'),new UnitValue(1,'px' )]);
    //Get original colour
    var oColour = new SolidColor();
    oColour = mySampler.color;
    app.activeDocument.colorSamplers.removeAll();
    //Select colour
    var sColour = new SolidColor();
    sColour.rgb.hexValue ='31618f';
    activeDocument.selection.select([[0,0],[1,0],[1,1],[0,1]], SelectionType.REPLACE, 0, false);
    activeDocument.selection.fill(sColour,ColorBlendMode.NORMAL);
    //Replacement Colour
    var rColour = new SolidColor();
    rColour.rgb.hexValue ='ff0000';
    activeDocument.selection.similar(0, false);
    activeDocument.selection.fill(rColour,ColorBlendMode.NORMAL);
    activeDocument.selection.deselect();
    //Replace original colour.
    activeDocument.selection.select([[0,0],[1,0],[1,1],[0,1]], SelectionType.REPLACE, 0, false);
    activeDocument.selection.fill(oColour,ColorBlendMode.NORMAL);
    activeDocument.selection.deselect();

  • Change ARD settings with bash script?

    Hello my fellow friends.
    First i am sorry for my bas English but hope you survive.
    I was wondering if it was possible to write a script that activated and deactivated ard?
    I looked in Controlpanel -> shared and its a option to stop or start a service so it must be possible true terminal or?
    Is there anyone that can point me in the right direction?
    Thanks.

    Thanks.
    Something like the page you linked to was what i needed .
    But i did figure out how to ask the client for premission to remote controll them so the problem solved itself..
    Anyway, thanks Dave.

  • Need to find a scripts for changing default "Open with" iTunes app to Quick

    Hello all...
    I'm new to scripting but need a script really quickly...
    I was wondering if anyone knew where I could find a script that will change the default "Open with" of audio files placed within a certain folder on my desktop...
    I'm making sound clips with WireTap and dumping them in a folder called WireTapExports as .mp3. I then need to play them without using iTunes (and importing them by default) but going into the "Get Info" and manualy changing the "Open With" settings for each file is taking ages...and it's very irratating...
    Is there a way I can make all audio file put in that folder automaticaly open with Quicktime instead.
    I know this is quite easy to most but I've only just started looking at Applescript (i.e. a few days ago) and but I need this to work now...
    Many thanks in advance...
    PigeonCake...

    Not what you want, but if you hold the control key while getting info it changes to summary info which then lets you change the preferred application on a batch of files in one go.

  • IE with active scripting off, how many clicks!

    Watching on IE seems to take an unbelievable number of clicks to get watching started. What should be the link held in my favorites? I have the password saved and remember me etc chosen. I want to have active scripting off for my Internet zone and just want to add all BT and associate domains to the trusted list. I believe I have done this but it seems I have to: 1) change settings to allow active scripting for Internet. 2) sport.bt.com 3) login 4) loads of clicks before watch actually starts the viewing 5) turn active scripting back off before any other browsing How many times do I have to click Watch before BT accepts I want to watch it. Viewing actually works OK for me 20MB wifi, 50MB wired. I know there are other options such as FireFox, but should it really be this hard on IE?

    User troubleshooting after a restart is a reset. Hold the sleep/wake and home button together until you see the Apple logo and then release. The phone will reboot. If it happens again, then a restore from backup is the next step. If that does not correct the problem, then you restore the device as new, and without adding any content to the device you test for a period of time. If it works, then you can try restoring your backup again, but if the problem returns, then the problem is in your backup. You will have to restore as new again and sync your content back manually.
    It could have been a software glitch. Considering the number of devices sold, and the different configurations you will find with people setting them up, small things can happen. It is also easy to turn the device into Airplane mode with the Control Center. If it happens again, try the troubleshooting I listed. If none of that helps, then make an appointment at the Genius Bar of the nearest Apple Store or Authorized Apple Service provider for your location. It is an electronic device, things happen.

  • How to change a parameter with script

    Hi to All,
    Is it possible change to TRUE the Parameter "07_DICTIONARY_ACCESSIBILITY" with a script ?
    If Yes, how can perform this ?
    Thank You and Best Regards.
    Gaetano

    About 07_DICTIONARY_ACCESSIBILITY

  • WLC: Need to change pre-shared key with a script

    Hello,
    I need to change pre-shared key on a Guest Wi-Fi with a script.
    Does anybody has an idea how to find the right entry in the WLC 2125 MIB to change it through SNMP?
    Gorazd

    Hi,
    That is a textFramePreferences property
    mySelection.textFramePreferences.verticalThreshold = Number (range 0- 8640)
    ID Object Reference says:
    "...The maximum amount of vertical space between two paragraphs. Note: Valid only when vertical justification is justified; the specified amount is applied in addition to the space before or space after values defined for the paragraph..."

  • Change stage dimensions with script

    Is there a way to change the stage dimesions with a script
    please? Relates to another post below which I can't figure
    out.

    stage width & height properties are read only, you cant
    change the stage size by using actionscript.
    if you are displaying an swf object on a webpage, you may
    consider to change the swf object width & height parameters
    using javascript, & make sure your scaleMode is showAll.
    good luck

  • How to change multi Find-Change Queries into a scripting

    I was wondering if possible transcribe multi Find-Change Queries into a scripting?
    If it is possible, can someone tell me how?

    1) Buy something and charge the rest to a credit card.
    2) Ask Apple to keep the balance.
    iTunes Customer Service Contact - http://www.apple.com/support/itunes/contact.html

  • How can i change brush type with script?

    I can already set the width, size of it, but i cant find out how to change the type. Even script listener dont produce the needed code for it.

    Never mind. I managed to do it, script listener did produce the code, i just didnt find it at first. I meant brush style by type.

  • Error message with a script sending emails to multiple recipients.

    Hi all,
    I am very new with powershell scripting and I want to request your attention and help on this issue.
    I am getting this error message "Send-MailMessage: An invalid character was found in the mail header: ','" given by this script:
    Param (
    [string]$Path = "C:\Temp\",
    [string]$SMTPServer = "smtp.domain1.com",
    [string]$From = "[email protected]",
    [string[]]$To = "[email protected],[email protected]",
    [string]$Subject = "New backup file"
    $SMTPMessage = @{
    To = $To
    From = $From
    Subject = "$Subject at $Path"
    Smtpserver = $SMTPServer
    $File = Get-ChildItem $Path | Where { $_.LastWriteTime -ge [datetime]::Now.AddHours(-6) }
    If ($File)
    { $SMTPBody = "`nThe following files have recently been added/changed:`n`n"
    $File | ForEach { $SMTPBody += "$($_.FullName)`n" }
    Send-MailMessage @SMTPMessage -Body $SMTPBody
    I found the ForEach() approach but when I put it inside I get an infinite loop.
    Many thanks for any suggestions

    [string[]]$To = "[email protected],[email protected]",
    should be
    [string[]]$To = @("[email protected]","[email protected]")

Maybe you are looking for

  • My imessage is working when im signed into my apple id butmy phone number is still not activated, my imessage still says waiting for activation how do i fix it ?

    My imessage is working when im signed into my apple id butmy phone number is still not activated, my imessage still says waiting for activation how do i fix it ?

  • AS3 image stabilization

    I writing a motion detection script which works fine but there is a small amount of camera movement between frames and I need to automatically align the new frame with the old one to ensure the motion detection works well (the object I'm tracking is

  • Problem using/upgrading camera raw

    I have Windows 7/64 bit. When I first installed Photoshop CS5, I immediately upgraded Camera Raw. Later, after opening Bridge from Photoshop, I found I could not get Bridge to open a file in Camera Raw. I knew that Raw was working because I had previ

  • Get the Price

    Hi Experts,       I'm an ABAP consultant, new to SD.       Please let me know if there are any Standard Function modules to get the price of a product and its associated Tax or how I can do it. The scenario: When we create Sales Orders in Va01, for a

  • ITunes refuse to import music etc

    First, i tried to import a song that I wanted, and iTunes refuse to import it. At first, i thought i was alright and i synced, it synced DOUBLE of ALL the music. Tried to remove and failed, checked the "Sync only checked music", doesn't work. When i