Copy data between accounts on BPC 7.5 default logic

Hi gurus,
I have default logic code that does not work. I need to copy value from an account to another from real to budget data.
I have this code:
*XDIM_MEMBERSET PERIODO=%PERIODO_SET%
*XDIM_MEMBERSET ESCENARIO=REAL,PPTO
*XDIM_MEMBERSET SOCIEDAD=%SOCIEDAD_SET%
*XDIM_MEMBERSET GROUPS=LC
*XDIM_MEMBERSET FLOW=F_CIE
*CALC_DUMMY_ORG CUENTA = PARENTH1
*IGNORE_STATUS
*WHEN ESCENARIO
*IS PPTO
*WHEN CUENTA
*IS #BAI
*WHEN SIGNEDDATA
*IS <>0
*REC(EXPRESSION=GET(ESCENARIO="REAL",CUENTA="630"),NOADD,ESCENARIO="PPTO",CUENTA="630")
*ENDWHEN
*ENDWHEN
*ENDWHEN
*COMMIT
Where is my mistake???
Thanks a lot for your help!!!!
Have a nices day!

Hi Jordi,
Could you try to replace *IS #BAI with a single account (any one account that contains data) and see if that works.
BR,
Arnold

Similar Messages

  • Copy data between Apps filtered by  workstatus

    Hello all gurus,
    BPC 7.5 NW
    I am copying data between apps. I want to do it with abap code because I use BADI.
    I dont want to copy all data, only data that have been filtered by WorkStatus. I cant use DESTINATION_APP in Script Logic because I need to filter
    Structure app is the same. Origin app is APP_A and destination app is APP_B.
    I only copy data if Workstatus is 'Approved'
    App: APP_A                 App: APP_B
    Dim1 WS
    Dim2 WS
    DIm3 WS
    Dim4
    Dim5
    If workstatus(DIM1, DIM2, DIM3) = "Approved" then
            Copy Dim1,..,5 belongs to APP_A to APP_B
    else
                    Nothing
    end if
    Example:    2014,Actual,Account1,E1toN,Act1toN   copy to  2014,Actual,Account1,E1toN,Act1toN (same rows, same structure)
    Note: Act1toN= act1, act2, act3,...actN
    Then, my filter is
    SETAPP = WB
    APP_A = BHN
    Worstatus table--> /1CPMB/LKWSWBBHN
    Select statuscode from /1CPMB/LKWSWBBHN where DIM1=2104, DIM2=Actual,Dim3=Accoun1
    if statuscode='5' then  // 5 is Approved (statid) in UJW_STATCODE
         copy data  2014,Actual,Account1,E1toN,Act1toN belong APP_A  copy to  2014,Actual,Account1,E1toN,Act1toN belong APP_B(same rows, same estructure)
    end if
    if you need more information dont hesitate to ask
    thanks
    Gustavo

    The main How-To page: Enterprise Performance Management (EPM) How-to Guides - Business Process Expert - SCN Wiki
    Please read BADI related How-to for BPC NW 7 and 7.5 (BADI's for BPC 7 can be used in 7.5).
    Try this: How To Custom BADI for Rounding Off Values in SAP BUSINESSOBJECTS Planning and Consolidation, Version for SAP NetWeaver
    Also read badi sample in help.
    In order to write data to another cube you have to use write_back_int with the appropriate application selected.
    B.R. Vadim
    P.S. Read also here: Useful ABAP code in BPC 7.X NW version
    Message was edited by: Vadim Kalinin - P.S. Added

  • Copy data between 2 localisations

    My client is using Sap business one 2007A. he has a database with localization "Spain". he created another database with UK localization. he needs to copy the accounting entries from the first to the other one. copy express doesnt allow to copy data between 2 localization (only settings). is there any way to copy data between 2 localizations

    You may export accounting entries from the first db and DTW to the second one.
    Thanks,
    Gordon

  • Different ways to copy data between two schemas in one instance

    Hi there,
    I am searching a good way to copy data between two schemas in the same instance.
    Both schemas have an identical structure such as triggers, tables, views and so on. The only difference is the purpose: one is the productivity system and one is for development.
    I looked at datapump but I do not explicit want to export / import. I want to keep the data in the productivity schema as well as copy it to the other schema. Any ideas? I found out there is a copy statement but I dont't know how that works.
    Thank you so far,
    Jörn

    Thank you for your replies!
    I also thought of creating a second instance for development and move the dev - schema to it. I just don't know whether our server can handle both (performance?). Anyway the idea is to have a possibility to quickly rebuild the data inside a schema without indixes or triggers, just pure data. I thought the easiest way would be to copy the data between the schemas as they are exactly the same. However if you tell me DataPunp is the best solution i won't deny using it :).
    When you export data a file is created. does that also mean that the exported data is deleted inside the schema?
    best regards
    Jörn
    Ps: Guido, you are following me, aren' t you? ;-)

  • Copy data between cubes

    I need to copy data between two cubes (through a business rule). Can I do it using Partition/Replication? If so, does anyone have an example on how it is done? I'm currently using @XREF, but that does not transfer data for blocks that don't already exist in target database.
    I'm very new to this so a detailed description will help.
    Thanks for your help.

    Yes, partitions are great. I like to use replicated partitions because I can control the data, and deal with integrity issues etc. Your usage may vary.
    Basically, you go to your "Source" database, go to the partitions menu, and "Create New Partition". You then walk through each of the tabs in the partition menu
    Type Tab: Choose the type. Let's say a "replicated" partition.
    Connection Tab: Choose what databases will be connected with the partition
    Areas Tab: I like to check the "Use Text Editor" to just type out the formulas. Also check the "Show Cell Count" to have some confidence your formulas are working as planned. Here you define what data moves from source to target. For example I might setup the following
    Source:
    ("Actuals Data"),
    @LEVMBRS("Province",0),
    @GENMBRS("Company",2)
    Target:
    ("Actuals Data"),
    @LEVMBRS("Province",0),
    @GENMBRS("Company",2)
    If the names don't match, you can adjust that in the advanced properties or mapping properties. (If you have multiple slices of data - use the advanced mapping).
    Now validate and save

  • Copying data between Applications

    Hello all,
    Is there a recommended approach to copying data between applications within the same application set? I have a cube that's the mirror image of another cube, excluding the difference in dimension names. I want to pass data from one cube to another cube. I am hoping this is something that can be done through DM using one of the standard packages provided by SAP.
    Thanks,
    Rob

    Hi Rob,
    Apart from using Data Manager option to copy data between applications, please also explore "Destination_App" statement in your script logic as you mentioned both the applications are mirror images of each other. Please check for sap help or SP02 doc addendum for more insight into destination app logic. There is also BADI option to take aggregated data from one application to another. There is a how-to-guide available for this.
    Please check which one of these options suit better for your requirement.
    Cheers,
    Santosh

  • Copying data between models

    Hi Gurus,
    I need help in copying data between models. Below is the scenario.
    Model A (Source model)
    It contains plan data:
    Important dimensions: Facility, Product, Time
    Model B (Target model)
    Important dimensions: Facility, Product, Time; Additional dimensions: Cost Center, Cost Element
    Model C (For lookup while copying data)
    Important Dimensions: Facility, Product, Time, Cost Center, Cost Element
    Task:
    Copy data from A to B and populate cost center and cost element in B by lookup C (key for lookup is Facility, Product, Time)
    Please let me know the required steps to do the job.
    Can we do it using logic script and avoid BADI?
    Which data package should I use?
    Thanks.

    Hi Vadim,
    It seems like I can move the data from A to B while data gets saved in A using input screen.
    So far I have written below which is working fine. For now I am hard coding the cost center, now I need to know how to lookup to the other model. Please review and let me know. Thanks.
    *XDIM_MEMBERSET P_ACCOUNT = VOLUME, REVENUE
    *XDIM_MEMBERSET P_CATEGORY = Forecast
    *DESTINATION_APP = PLANNING_RETRACTION
    *ADD_DIM COST_CENTER = 3000011
    *WHEN P_ACCOUNT
    *IS "VOLUME", "REVENUE"
    *REC(EXPRESSION = %VALUE%)
    *ENDWHEN

  • How can I copy filters between accounts?

    I seem to remember, back when I first switched my email to Thunderbird about two years ago, that I could duplicate message filters between email accounts rather than recreating them manually. Now I cannot find any way to do this. I'm reinstalling everything on my system, and while I copied my Thunderbird folder in its entirety from my backup, the filters carried over on only my primary account; my other accounts have no filters attached to them.
    I have nine different email accounts set up in Thunderbird (and no, I cannot consolidate them or forward some of them into another, as these need to remain separate for a variety of reasons), and about half of my filters should run on all nine accounts (they apply color-coded tags based on source and keywords). I tried a filter import-export extension, but it wouldn't import anything. And I really don't want to manually recreate two dozen filters across nine accounts, one filter at a time.
    If I can't copy or duplicate the filters from within Thunderbird, is it possible to go into the file system and copy individual files within the Thunderbird folder to accomplish the same result? I haven't identified anything in that folder that would allow this, but that doesn't mean it's not there—only that I don't know how filters are stored.
    Suggestion for a future revision: Change filter management so that multiple accounts can use the same filter without having to duplicate anything. You can have a master filter list where you set up the actual filters, and each email account has a window where you choose which filters that account uses and what order they run in for that account. I can envision exactly how it should look and work, but I don't have the programming skills to write it myself, either as an extension or for inclusion into the main codebase. (I'm not even sure the way I would want this to work can be done as an extension, as it seems to me it would require a deep under-the-hood change in how filters and accounts are matched.) I'd be happy to provide interface mock-ups and detailed descriptions of the desired functionality, if there's someone interested in doing the actual coding.

    Yes you can,
    The filter-files are in your "profile"\mail\"account"\
    and in "profile"\imapmail\"account"\ and are named msgFilterRules.dat
    You can open it in a texteditor (Notetab) and edit or you can copy from one account to next. Be a bit careful so you dont use filters where you dont want to.

  • Auot-copying Data between Spreadsheets

    How do you create a summary spreadsheet based on data in other spreadsheets in other folders and automatically updated when opened? In other words, copy data from one spreadsheet to another by simply identifying the source field .... I was able to do it in Office back when I was a Windows user.

    psu63 wrote:
    I was able to do it in Office back when I was a Windows user.
    psu63,
    That's no guarantee that you can do it in iWork. External links are weak in iWork, but getting a bit stronger with each upgrade. We're looking for an upgrade in the next few months, just a guess, and maybe table cell links between documents will be added. You can register your wishes from the Numbers Menu - select Provide Numbers Feedback.
    For now, consolidate your data into one document if you want to link the tables.
    Welcome to the discussions,
    Jerry

  • Copying data between members in essbase

    Hi Team,
    I have essbase 11.1.2.2 and I have the below dimensions,
    1)accounts
    2)location
    3)Time
    4) ITEM
    Under ITEM dimension I have the below members. I need to copy data from India and America to India_history and America_history respectively.  Can you please help me how I can perform the below task. India_history and America_history and Country_history are the new members which I created for this task.
    ITEM
    |----|- Country
              |- India
              |- America
         |-Country_history
              |-India_history
              |- America_history

    Hi Tim,
    Thanks for your response. Yes, its a BSO cube.  I am new to calc script. Will the below script work? I am bit confused with the Fix command.
    FIX (@LEVMBRS("Time","Lev0,Time"));
    DATACOPY "India" to "India_history";
    DATACOPY "America" to "America_history";
    ENDFIX

  • Copying data between two tables with different structures

    I have two tables. second table has three extra fields at the end. How can I copy data from first table to the other? I tried the following but it does not seem to work:
    INSERT INTO second_table ((select * from first_table),'text','text',5)
    Please help. Thanks

    INSERT INTO second_table SELECT col1, col2, col3, .., 'text', 'text', 5 FROM first_table;
    Cheers!
    r@m@

  • Copying data between databases

    Hi Gurus,
    Is there any way to copy data from one DB to another DB, other than COPY command ?
    My reqt is this. I want to copy data from one DB to another one periodically (weekly basis). I'm trying to create a USER JOB for this and call a PL/SQL proc in the JOB. As COPY is a SQL/PLUS command, I think I can't use it in a DB procedure. Any help is appreciated. Thanks a lot.

    Hi,
    Thanks for the reply. It works now.
    It was my fault while creating the database link. The SQL*NET version was NET8 and I created the DB link with 'USING t:XXX:XXXX'. So the link was using SQL*NET old version and I was getting ora-6401 (Invalid Driver Designation). Now I recreated the link private DB link) and it works fine.
    Thanks for your help.

  • Copy data between productive and test system

    Hi everybody,
    I need to copy data from one cube in productive system into the same cube in the test system.
    How can I do it?
    Regards
    Erwin

    If you need to copy data from one system to another maybe you can do a Data Refresh or a SAP_DATA System Copy.
      If you wan't only to copy data from 1 Cube to another in other system you shoul'd try transforming the data on the Cube to a Report or maybe an ODS and then dowload it to a CVS archive, and then make a Transformation From PC_FILE to ODS and Cube o from PC_FILE to Cube.
    Hope it's work.
    Grettings.
    Ignacio.

  • How to copy data between two tables row by row

    Hi All,
    I have three tables TableA and TableB and TableC
    I wanted to write a stored procedure to copy data row by row from TableA to TableB and then update TableC by replacing any record that has the old id (before copying) to the new id after copying the data.
    here is the steps 
    iterate throw all the rows in tableA ( probably with a foreach)
    in each iteration we will do the following:
    Get current ID (identity) for each record in TableA ( will call it @oldID)
    Insert the row in TableB
    Get the new ID for the row from TableB will call it (@NewID)
    find rows in tableC that has the (@oldID)
    replace all ids in tableC with @oldID to @NewID
    Thanks in advance

    0
    TableA and TableB are identical they should have the same columns 
    TableC columns will be ( ID, TableA_ID , Notes)

  • Problem copying data between tables

    Hello Members,
    Its my first day using SQL queries on oracle 10g database.I used the following query to copy selected feilds of a table :
    CREATE TABLE SAMPLE_TEMP as (SELECT CUSTOMER, BALANCE FROM CUSTOMER_ALL)
    The CUSTOMER_ALL table has over 2 million records. I was successful in creating a table and copying data, but the new table could populate only 52978 records.
    ---- Sample data in my table
    CUSTOMER     BALANCE
    6.28899273     0
    6.28899274     0
    6.28899275     0
    6.28899289     625.12
    6.28899292     2666.24
    How do I go about fixing this ? Do i need to declare a structure and assign the number of records i will store to it ? Any guidance will help me get started.
    Regards
    newbie

    Hello,
    If the CUSTOMER_ALL table is a live table, there may have been new records INSERTed since you copied the data, therefore you will have different counts.
    To check on the data difference:
    SELECT CUSTOMER, BALANCE FROM CUSTOMER_ALL
    MINUS
    SELECT CUSTOMER, BALANCE FROM SAMPLE_ALL

Maybe you are looking for

  • ODI reading Excel via ODBC on Linux

    I've got ODI loading data from Excel via ODBC with everything running on Windows, and it runs fine! But will this work when I run ODI on a Linux platform? Will I have to buy some kind of ODBC driver for Excel under Linux? Has anyone done this before?

  • Creating Mulitple Reports and Excel

    I have created a sale report in CR 2008.  This report looks at each reps performance on a monthly basis.  The reports need to be run daily and sent to the Sales Managers.  Each manager has several reps that report to them.  I need to know if I am abl

  • Postfix for Solaris 10 x86

    Hi, Is there a pre-compiled package for Postfix 2.x available on Solaris x86 platform? I heard that Sun was compiling bunch of open source freeware for x86 platform and supporting it too. The official Postfix site has a link to an old binary for SPAR

  • Copy the standared output type to custome one

    Hi, i need to copy the BA00 output type to custome output type say ZB00. then it will appear my custom output type while we output a sale order. kindly give solution for this...

  • Cmc rights to use Security Query Export functionalities

    In Cmc when I create a Security Query  it shows the list of rights a user has on Business Objects objects, and that's fine, however when I try to export those results I get a message like this: You don't have rights to 'Schedule document to run' (id: