Using HsGetValue and HsSetValue in same file

Is it possible to have one worksheet use HsGetValue formulas to retrieve data from Essbase, a second worksheet used for adjusting data, a third worksheet that adds the first two and then a final worksheet with HsSetValue referencing the third worksheet? For some reason, when I refresh (not refresh all) the first worksheet it submits data from the HsSetValue worksheet first and then retrieves the data instead of retrieveing the data for the POV on the worksheet and then allow for adjusting to be submitted back using refresh on the HsSetValue worksheet. Can these two not be independent on separate worksheets?
Thanks,
Kenny

hi,
use BDC Session method.
check below example it will help you
if you want to record for two transations then you will use same method as one transation.For example if you want to execute two transations like VA01(sales order) and VL01N(delivery).Here first you can record for both transactions seperately and in the function module calling you will call BDC_INSERT two times
First function module contains Tcode as VA01 and Bdcdata table as data for the va01 transaction and second table contains tcode as VL01N and Bdcdata table conatins data which contains the record data of the delivery recorded data.
PERFORM open_batch_session USING p_sessa.
  LOOP AT ltcap_int
    WHERE NOT tot_inc IS initial.
    ltcap_int-adj = ltcap_int-adj * -1.
    CONCATENATE ltcap_int-fund '/' ltcap_int-cfc INTO zuonr.
    PERFORM fill_bdc_header.
    PERFORM fill_bdc_lines.
    PERFORM post_entries.
    PERFORM insert_batch_session USING 'FB01'.
    ltcap_int-adj = ltcap_int-adj * -1.
  ENDLOOP.
  PERFORM close_batch_session.
perform start_batch_session using p_sessa.
Budgets
  WRITE p_fy TO c_fy.
  PERFORM open_batch_session USING p_sessb.
  LOOP AT ltcap_int
    WHERE NOT tot_inc IS initial.
    PERFORM rollup_header.
    PERFORM rollup_line.
    PERFORM rollup_save.
    PERFORM insert_batch_session USING 'FR21'.
    IF NOT ltcap_int-gsef_amt IS INITIAL.
      PERFORM rollup_header_gsef.
      PERFORM rollup_line_gsef.
      PERFORM rollup_save.
      PERFORM insert_batch_session USING 'FR21'.
    ENDIF.
  ENDLOOP.
  PERFORM close_batch_session.
perform start_batch_session using p_sessb.
We can process more than 1 transactions in session method.
For this we will create the internal tables equilant to transactions and
Between BDC_open_group and BDC_close_group we will call the BDC_Insert the no.of transactions times and populate the internal tables which contains the data pertaining to diffrent transactions.

Similar Messages

  • How can I do to acquire and save date in the same time and in the same file when I run continual my VI without interrupti​on.

    I've attached a VI that I am using to acquire amplitude from Spectrum analyzerse. I tried to connect amplitude ouput to the VI Write Characters To File.vi and Write to Spreadsheet File.vi. Unfortunately when I run continual this VI without interruption, labview ask me many time to enter a new file name to save a new value.
    So, How can I do to aquire and save date in the same time and in the same file when I run continual my VI for example during 10 min.
    Thank you in advance.
    Regards,
    Attachments:
    HP8563E_Query_Amplitude.vi ‏37 KB

    Hi,
    Your VI does work perfectly. Unfortunately this not what I want to do. I've made error in my last comment. I am so sorry for this.
    So I explain to you again what I want to do exactly. I want to acquire amplitude along road by my vehicle. I want to use wheel signal coming from vehicle to measure distance along road. Then I acquire 1 amplitude each 60 inches from spectrum analyzer.
    I acquire from PC parallel port a coded wheel signal coming from vehicle (each period of the signal corresponds to 12 Inches). Figure attached shows the numeric signal coming from vehicle, and the corresponding values “120” and “88” that I can read from In Port vi.
    So I want to acquire 1 time amplitude from spectrum analyser each 5
    period of the signal that I am acquiring from parallel port.
    So fist I have to find how can I count the number of period from reading the values “120” and “88” that I am acquiring from In Port (I don’t know the way to count a number of period from reading values “120” and “88”).
    Here is a new algorithm.
    1) i=0 (counter: number of period)
    2) I read value from In Port
    3) If I acquire a period
    i= i+1 (another period)
    4) If i is multiple of 5 (If I read 5 period)
    acquire 1 time amplitude and write to the same
    file this amplitude and the corresponding distance
    Distance = 12*i). Remember each period of signal
    Corresponds to 12 Inches).i has to take these
    values: 5,10,15,20,25,35,40,45,50,55,60............
    5) Back to 2 if not stop.
    Thank you very much for helping me.
    Regards,
    Attachments:
    Acquire_Amplitude_00.vi ‏59 KB
    Figure_Algorithm.doc ‏26 KB

  • How to use image and text in same component

    Hello
    Do you know how to use image and text in same component in java ?
    because i need this in my project ,which is chat application , to
    put the received text and any image if it is need within the text

    thanks levi_h
    JTextPane class extends JEditPane and allows you to embed
    images or other components within the text managed by the component

  • Write x y position and voltage to same file

    Hi,
    I've been writing a program to perform a 2D scan with stepper motors.  There are actually 3 in the program but only 2 perform the scan.  I have used a subvi to take 10 voltage measurements at each position in the scan.  What I'd like to do is record the X and Y position for each set of 10 voltage measurements.  I'm fairly sure I can record the position with the 'GetPosition' function for the motors, but am a little lost on how to get them to write to the same file, and whether or not those positions would correspond to the voltages taken there.  I have included my vi and the subvi used for reference.  If anyone has any suggestions on this problem I'd greatly appreciate it.
    Cheers
    RJ
    Attachments:
    xyz scan 015.vi ‏116 KB
    Keithley 2000 Read Multiple.vi ‏44 KB

    rjwilliams wrote:
    ... I'm fairly sure I can record the position with the 'GetPosition' function for the motors, but am a little lost
    on how to get them to write to the same file, and whether or not those positions would correspond to the
    voltages taken there.
    Well, this is a bit too diffuse. You seem to be writing to a file, but the code is nearly incomprehesible from a dataflow point of view.
    If you are not sure if the file contais the correct values, just run the program, proble the wires, and look at the file later. You should be
    able to tell if the are correct or not. Why should they be different? What values do you expect? What values do you get?
    I agree with Ray that you NEED to cleaup the code in order to troubleshoot. Your code is just a bewildering jumble of code fragments,
    trapped deep inside stacks of while loops and event structures, all tied together with confusing logic.  All you need is a simple state
    machine with one while loop containing one event structure.
    Message Edited by altenbach on 07-07-2008 07:48 AM
    LabVIEW Champion . Do more with less code and in less time .

  • File open menu will not open local files using open command but the same files will open if I double click them (permissions seem fine)

    Under File menu Open File will not open local files even those downloaded to the desktop by Firefox 5.
    If I double click on HTML file it does open
    Reinstalled. Same behaviour. Default Browser set correctly.
    Permissions set correctly. Odd behaviour.

    Are you sure it hasn't imported?
    Check for the track names (trackname only, not Album or Artist)) and see if they have a blank Artist and Album, because WAV files have no MetaData, so are kind of stupid as far as knowing anything about the Artist, Album & track id.
    You can't search by 'Untitled' either as there is literally, no name at all, but iTunes does pick up the actual physical track name in Finder and uses that. As an example, if you renamed your Aerosmith WAV file from say 'Toys In The Attic' to 'Love Song' it would import the track as 'Love Song' as that's all it can go by.
    There are a few iTunes AppleScripts that let you import from a file of WAV music, by looking at the enclosing Album in the enclosing Artist as that's how most PC progs create the WAV file structure.
    Mike

  • Using Applescript and Automator to manage files and folders

    Hi all.
    I need to make a simple action via applescript and-or automator to take the file it's been applied to (via the services) create a folder around it with the same name as the file.
    So far, I've searched the web, found some solutions but none are really working.
    Here's the script I found :
    set myFolder to findFolder()
    tell application "Finder" to set myFiles to files of myFolder as alias list
    repeat with aFile in myFiles
      set bName to my baseName(aFile)
      tell application "Finder"
      set folderExists to exists folder bName of myFolder
      if not folderExists then make new folder at myFolder with properties {name:bName}
      move aFile to folder bName of myFolder
      end tell
    end repeat
    ---------------- HANDLERS ----------------
    on baseName(myFile)
      tell application "System Events" to set {fileName, fileExt} to {name, name extension} of myFile
      return text 1 thru ((get offset of "." & fileExt in fileName) - 1) of fileName
    end baseName
    on findFolder()
      activate application "SystemUIServer"
      -- Bug pointed out by Lauri Ranta http://www.openradar.me/9406282
      tell application "Finder"
      activate
      set mySelection to (get selection)
      if mySelection ≠ {} then
      set mySelection to first item of (get selection)
      if mySelection's class = folder then
      set currentFolder to mySelection
      else if mySelection's class = document file then
      set currentFolder to parent of mySelection
      else if mySelection's class = alias file then
      set currentFolder to original item of mySelection
      end if
      else
      set currentFolder to target of front Finder window
      end if
      end tell
      return (currentFolder as alias)
    end findFolder
    And here's a page where they explain how to use automator and the Services to do what I <allmost> want, with some adaptation.
    But it still doesn't work.
    http://hbase.net/2011/08/17/move-selected-files-into-a-new-folder-using-applescr ipt-and-automator/
    So if anybody has an idea n how I could do this ?
    It It could either be a folder action (I drag and drop the files into a folder and boom, they get their folder around them)that I would set on a folder on a network drive, or locally, it doesn't matter, or a service (right clic on the file and boom folder around it.
    So if anyone could help with this I'd be grateful...

    Hi,
    Make an Automator Service (Service receives selected "Files or Folders"  in the "Finder.app").
    Use this script in the "Run AppleScript" action:
    on run {input, parameters}
        tell application "Finder"
            repeat with aFile in input
                if class of (item aFile) is not folder then
                    set {tName, fileExt} to {name, name extension} of aFile
                    if fileExt is not missing value and fileExt is not "" then
                        set tName to text 1 thru -((count fileExt) + 2) of tName
                        tell (get container of aFile)
                            if not (exists folder tName) then make new folder at it with properties {name:tName}
                            move aFile to folder tName
                        end tell
                    end if
                end if
            end repeat
        end tell
    end run
    This script work on files with a name extension.

  • I cant use photoshop and illustrator in same time....

    Hello!
    I have CS3 and i´ll try run photoshop and illustrator in same time. If i run first photoshop then illustrator not work and if i run illustrator then photoshop not work. :-/ What i pose to do??
    PC:
    AMD FX (Six-core)
    Memory 8G (XP 32bit -> ~4G)
    Thanx anyway!

    Read this probably the scratch disk you haqve is too full, and you will have to select a scratch disk that is not fragmented and has plenty of room to work. The scvratch disk is storing the various undo states for both Photoshop and Illustrtor.
    Illustrator has unlimited undos so that takes up a lot of scratch space if you do complex art work with many points being employed to create the art and Photoshop will do the same if you are using very high resimages with many layers.
    And in 32 bit the amount of RAM is limited which puts a strain on the scratch disk so it has to bve very large if you want it to work for you.
    This is what I recommend to you go 64 bit get another 8 GB of Memory at least and get a hard drive you can use as a swcratch disk that will not have any files on it or that you can partition to have a large amount of free space.
    You will have to read a little bit but you can start here:
    http://helpx.adobe.com/photoshop/kb/optimize-performance-photoshop-cs4-cs5.html#main_Memor y_Usage
    I am on a Mac myself and have 24GB of memory and feel I could still use anoter 8GBs but I do some motion graphics as well.
    Nut if you do a lot of Illustrator and Photoshop that can be just as big a drain on your resiources.

  • Will InDesign CS6 and CC have same file format?

    Hi all...
    A fairly simple question: Do anybody know whether InDesign CC will retain the same file format from InDesign CS6, so you can open files made in both application. Say you subscribe to CC and work for somebody who one have CS6? Will you did be able to use files without any issues?

    Thanks for the quick reply, Peter.
    If InDesign CS6 is indeed included - and I have read the same thing - it will do.
    It is a bit of a mess that the file format change from version to version, especially now when the CC apps is just going to be called CC and is always updated to the latest version. Eventualy we might have to work with CC 1.0, CC 1,5 and CC 2.0 files unless Adobe have some kind of brilliant solution. Oh well.... 

  • Is there a way I can stream video from my 2012 AirMac to the Apple TV using airplay and at the same time stream the audio to an air speaker?

    Is there a way stream video from a 2012 MacBook Air to a TV using Apple TV and at the same time steam the audio to an air speaker. Also the same question but using an ipad

    You can try one thing. Follow these steps:
    1. On your Mac, turn on AirPlay Mirroring and connect it to the Apple TV, so audio and video will stream from the Apple TV.
    2. Turn off the sound of the TV where you have connected the Apple TV.
    3. Then, make sure that you have turned on the AirPlay speakers. Then, open System Preferences > Sound > Output, and choose the external speakers, so sound will stream from these external speakers.
    This should work correctly

  • Use wire and wireless at same time

    My computer has wire and wireless network devices  together. Also I am using two WRT54G routers that one is conneted internet at next door and the other is in my office. Wire network is used to use internet and wireless is connected to use DVR(Digital Video Recorder). I know if I use one router with internet and DVR together, I wouldn't have any problem, but now I can't do that.
    When I enable both network device, I can't use internet because the default is wire one which isnt' connect with internet. That's why I have to disable wire when I use internet.
    What I ask you is I want use both at same time. That means when I want use internet, wire would be worked. Using DVR has no problem because wire is default.
    How can I reach my goal?

    How did you connect the two WRTs?

  • Satelitte C55-A Can't Use Keyboard and Mousepad at same time

    How do I change the settings so that I can use them both at the same time? I use them both for all my games, but I can't turn with my mouse pad when im walking with my keyboard keys (W,A,S,D). Does anyone know how to change this?
    I'm on Windows 8 btw.
    Thanks,
    -Evan

    There should be a setting for that in Mouse Properties, Evan. Something like "Disable touchpad while typing."
    Also, it's a "feature" of Windows 8.1.
       Button clicks for internal touchpads and pointing sticks are not responsive while or shortly after t...
    Windows 8.1 introduces a feature that is called accidental activation prevention (AAP). AAP helps ensure that unintended taps while you type on an integrated touchpad are suppressed. When this feature is enabled, taps and clicks from an integrated touchpad or pointing stick are suppressed for a while after the last keystroke..
    -Jerry

  • Using TOUCH_BEGIN and GESTURE_SWIPE on same item

    I have a mc that I want to react differently depending on how it's interacted with.  For example, if you hit it real fast (TOUCH_BEGIN) I want it to gotoAndPlay(2);  but if you are swiping and it get's touched in the swipe (GESTURE_SWIPE) I want it to gotoAndPlay(10);  I got the first part to work, but when I added GESTURE_SWIPE, the TOUCH_BEGIN call doesn't seem to work anymore.  How do I use both methods on the same mc? 

    You need create a personalized gesture
    var posX:Number;
    var PosY:Number;
    var tolerance:int=10;
    mc.addEventListener(MouseEvent.MOUSE_DOWN, onTouch)
    Fucntion onTouch(e:MouseEvent):void{
         //Campoture the initial position of the Touch
         posX=mouseX;
         posY=mouseY;
         stage.addEventListener(MouseEvent.MOUSE_MOVE, swipOrBegin)
    function swipOrBegin(e:MouseEvent):void{
         mc.removeEventListener(MouseEvent.MOUSE_MOVE, swipOrBegin)
         if(posX<mouseX+tolerance || posY<mouseY+tolerance || posX-tolerance<mouseX || posY-tolerance<mouseY){
         //TOUCH_BEGIN
         }else{
         //GESTURE_SWIPE
    function to init the

  • Using Bridge and LR with same folders/files

    Having organized, edited and rated my photos using Bridge CS4 but recently started getting seriously into LR3 I still want to keep that file structure, either in a transitional period or indefinitely.
    I normally use Bridge to import the photos, then spend some time creating sub-folders (one folder per event), organizing them. I'm hoping that I can add those (already organized) folders into LR, but can't figure out how. I see how I can import the photos, but I don't want that as I want to keep them all in the same location (they're all organized on the hard drive as I want them), just have LR "see" them so I can further edit and rate them. How do I do that?
    I also want LR to understand and see the edits I've made to my RAW files as well as my ratings, keywords etc.
    Are there other things I should keep in mind when having my photos work with both Bridge and LR?

    It's possible to work the way you do, but with Lr it's a bit awkward, particularly if you start editing (developing) your images in Bridge.
    You ask: " I'm hoping that I can add those (already organized) folders into Lr, but can't figure out how."
    You have to import the images. Without importing nothing can happen in Lr.
    So, open the Import Dialog. If it shows only the small window of the Import Dialog, click on the triangle in the bottom left corner, to expand the window.
    On the left side you'll see the <Source> panel. navigate to the folder in question and click on it to select it. You will see all images in this folder in the main window of the Import Dialog.
    Then in the top center of the Import Dialog select <Add>.
    <Add> is for importing images that are already on the hard drive and you do not want to change their location.
    <Move> is for importing images that are already on the hard drive and you do want to change their location.
    <Copy> is for importing images from camera / memory card.
    By selecting <Add> Lr will import the images in their present folder and will display the folder.
    Your Bridge edits will also be imported because on import Lr reads the image file and the xmp-file where Bridge has stored the metadata of your edits.
    But this is true only for import. Should you then decide for an image that has been imported in Lr to edit it in Bridge again, these edits would not automatically be visible in Lr. This is so because with imported images Lr stores all edits in its catalog, and does not display the metadata from the xmp-file where Bridge saves edits.
    But you can make Lr read and display these additional Bridge-edits by doing a <read metadata from file>. But this is problematic because <reading metadata from file> will overwrite any Lr edits.
    So you see that because of the fact that Lr works with its catalog while Bridge does not, editing images in Bridge and in Lr is a recipe for frustration. It can be done, but it's awkward and prone to mistakes.
    Therefore I would suggest to bite the bullet and henceforth use Lr as your only editor. Import images from camera in Lr, do all your editing in Lr.
    Since you are used to do edits in in Bridge Camera Raw, Lr will pose no big problems for you.
    But if you don't want to let go of Bridge right away, I'd suggest you do at least one thing: After importing the images in Lr refrain from further editing these images in Bridge.

  • Upgraded to Reader version 11.0.10, now I can not fill out a form and save as same file

    I used to be able to open a template pdf file and then fill out form fields (ie customer address, etc.), then save the pdf file to the same name.  After upgrading to version 11.0.10, the reader gives an error that I need to change the name or folder.  Any suggestions  on how to get around this?  Still works with Acrobat XI Pro on this computer, and Reader version 11.0.0 on another computer.  I can't change the name or save to a different folder because the pdf file is attached to a customer in a database program.

    Make sure the Preview panel in Windows Explorer is disabled.

  • How do you use voice and data at same time?

    I'm on a call and need to look up data from a file also on my phone. What's the simplest and most effective way to simultaneously do this? Thanks in advance.

    If you're with Verizon, you can only do this in a wifi area.
    The simplest way is to tap the home button and then tap the icon of what you want to do. You'll either have to use speakerphone or an earpiece in order to see the screen .

Maybe you are looking for