BPC 7.5 NW - COPY DATA in ScriptLogic

Hi we have this code ok.
*WHEN CTA_HHRR
*IS BAS(REMUNERACIONES)
*REC( FACTOR = ([CTA_HHRR].[PARAM_000000001],[Centro_De_Costo].[Dummy]),BAS(REMUNERACIONES) )
*ENDWHEN
Now, we need copy data value inserted in ACCOUNT1 for 2010.ENE to FEB.2010 until 2010.DEC.
But MONTH is Dinamic, Code need work for any YEAR, 2010 or 2011, or 2012, etc.
We all time insert value in Current view for  ????.ENE
After value is inserted in ????.ENE need run ScriptLogin for Copy Values from ????.ENE to ????.FEB until ????.DEC
For all ACCOUNTS inside BAS(REMUNERACIONES).
After COPY process, we run Code:
*WHEN CTA_HHRR
*IS BAS(REMUNERACIONES)
*REC( FACTOR = ([CTA_HHRR].[PARAM_000000001],[Centro_De_Costo].[Dummy]),BAS(REMUNERACIONES) )
*ENDWHEN
This Code Ajust IPC value, after call Currency Convert to USD and PEN.
We insert in Include :
*include COPIA.LGF
*include FXTRANS.LGF
Working good.
FXTRANS.LGF
*RUN_PROGRAM CURR_CONVERSION
      CATEGORY     = %CATEGORY_SET% 
//GROUP = NON_GROUP 
      TID_RA = %TIME_SET%
      R_Entity = GLOBAL
      OTHER = [Centro_De_Costo=%Centro_De_Costo_SET%]//For More than one other scope parameters: OTHER = [CentroDeCosto=%ENTITY_SET%;INTCO=%INTCO_SET%...]
*ENDRUN_PROGRAM
Thank you.

This code working:
*XDIM_MEMBERSET CATEGORY = PLAN
*XDIM_MEMBERSET Centro_De_Costo = Dummy
*XDIM_MEMBERSET CTA_HHRR = BAS(REMUNERACIONES)
*XDIM_MEMBERSET Empleado = %Empleado_SET%
*XDIM_MEMBERSET RPTCURRENCY = LC
*XDIM_MEMBERSET TIME = %YEAR%.JAN
*XDIM_MEMBERSET MEASURES = "PERIODIC"
*WHEN TIME
*IS %YEAR%.JAN
*REC(FACTOR=1, TIME = TMVL(1,2010.JAN))
*REC(FACTOR=1, TIME = TMVL(2,2010.JAN))
*REC(FACTOR=1, TIME = TMVL(3,2010.JAN))
*REC(FACTOR=1, TIME = TMVL(4,2010.JAN))
*REC(FACTOR=1, TIME = TMVL(5,2010.JAN))
*REC(FACTOR=1, TIME = TMVL(6,2010.JAN))
*REC(FACTOR=1, TIME = TMVL(7,2010.JAN))
*REC(FACTOR=1, TIME = TMVL(8,2010.JAN))
*REC(FACTOR=1, TIME = TMVL(9,2010.JAN))
*REC(FACTOR=1, TIME = TMVL(10,2010.JAN))
*REC(FACTOR=1, TIME = TMVL(11,2010.JAN))
*ENDWHEN
But not want coding in ScriptLogin : 2010 i need var
This code Working only for first line or single line the REC:
*XDIM_MEMBERSET CATEGORY = PLAN
*XDIM_MEMBERSET Centro_De_Costo = Dummy
*XDIM_MEMBERSET CTA_HHRR = BAS(REMUNERACIONES)
*XDIM_MEMBERSET Empleado = %Empleado_SET%
*XDIM_MEMBERSET RPTCURRENCY = LC
*XDIM_MEMBERSET TIME = %YEAR%.JAN
*XDIM_MEMBERSET MEASURES = "PERIODIC"
*WHEN TIME
*IS %YEAR%.JAN
*REC(FACTOR=1, TIME = %YEAR%.FEB )
*ENDWHEN
This code not working:
*XDIM_MEMBERSET CATEGORY = PLAN
*XDIM_MEMBERSET Centro_De_Costo = Dummy
*XDIM_MEMBERSET CTA_HHRR = BAS(REMUNERACIONES)
*XDIM_MEMBERSET Empleado = %Empleado_SET%
*XDIM_MEMBERSET RPTCURRENCY = LC
*XDIM_MEMBERSET TIME = %YEAR%.JAN
*XDIM_MEMBERSET MEASURES = "PERIODIC"
*WHEN TIME
*IS %YEAR%.JAN
*REC(FACTOR=1, TIME = %YEAR%.FEB )
*REC(FACTOR=1, TIME = %YEAR%.MAR )
*REC(FACTOR=1, TIME = %YEAR%.ABR )
*REC(FACTOR=1, TIME = %YEAR%.MAY )
*REC(FACTOR=1, TIME = %YEAR%.JUN )
*REC(FACTOR=1, TIME = %YEAR%.JUL )
*REC(FACTOR=1, TIME = %YEAR%.AGU )
*REC(FACTOR=1, TIME = %YEAR%.SEP )
*REC(FACTOR=1, TIME = %YEAR%.OCT )
*REC(FACTOR=1, TIME = %YEAR%.NOV )
*REC(FACTOR=1, TIME = %YEAR%.DEC )
*ENDWHEN
Any idea ?

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

  • What are the diffrent ways to copy data from one application to another?

    Hi,
    Can you guys tell me what are the different ways to copy data from one application to another application??
    I know we can do it through script logic using DESTINATION_APP.
    Is there any other way to copy data from one application to another application?
    Please help me
    Thanks,
    Charly

    You can also call a custom DTSX package in SSIS via the datamanager.
    there are at least 5 ways of transfering data in BPC between apps.
    1. Through the front end (excel etc) via evdre/evsnds
    2. Through Script logic using *Dest App
    3. Using BPC's standard export dtsx package via DM
    4. Using SSIS using BPC's custom SSIS tasks
    5. Through Script logic using stored procs.
    i am sure people will come up with more.
    remember if you use ssis and move data into any table but the wb, you need to process the cube afterwards.

  • When we get the actual data in BPC for planning, is the data consolidated

    I had a question regarding Planning. When we get the actual data in BPC for planning, is the data consolidated? Do we need to run the consolidation business rules( IC Booking, Matching, IC Eliminations) on the data before we can use it for planning? Per my understanding we have to run Currency Conversion on this...correct?
    Also, where do I get my actual data from? Does ECC/ Source system have data from all entities( CHQ, Region and Countries)?
    Please help!
    Thanks in advance

    Hi Kimi,
    In a hierarchical structure, the data is always loaded in to the base level, and the data is automatically rolled up to its parents.
    The currency conversion will also take place at the base level, and as mentioned earlier, the converted data will also be rolled up as per the hierarchy.
    The heading of this thread says planning. So, ideally, there wont be any legal (or statutory) consolidation. You might use the US elimination however, for eliminating the intercompany transactions, if any.
    The planning can be done as zero based (wherein the user has to enter the planned data manually from scratch) or non-zero based (wherein the planned data of previous year is copied and the user can change the data as required).
    The flow of events cannot be suggested by us. It has to be discussed with the business to understand how do they do the planning.
    Hope this helps.

  • Can not copy data within a realtime cube due to combination issues

    Hello all,
    I want to use a planning function on a realtime cube in order to copy data from from Co_area CO1 into Co_Area CO2. The Co_Are and the profit center are part of the realtime cube, but not the nav attribute of the profit center.
    When I test/run the planning function via a sequence in planning modeller I get an error message: The combination 'CO2/PCxy,#' is not valid, valid is 'CO2/PCxy,abcd': characteristic '0PROFIT_CTR' .
    Has this error something to do with the relationship of the master data of profit center and its nav attributes?
    Any help would be great.
    Best regards,
    Stefan form Munich/Germany

    I guess this problem is coming because of some wrong combination of records present in cube for controlling area 1. Make the below changes in the planning function. Dont include profit center in the level. Just include controlling area. Create a characteristic relationship of type derivation by master data attributes. Give source char as Controlling area and target as profit center. This will mantain consistency of char. combinations b/w controlling area and profit center in cube for the newly generated records.

  • ADF 11g can not select and copy data from cell of readonly table in IE

    hi,
    In ADF 11g, when render view object as readonly table with Single RowsSelection, using IE browser can not select and copy data from the cell, but it work in firefox.
    is it a bug?
    Edited by: kent2066 on 2009-5-18 上午8:46

    Hi Timo,
    Sorry forgot to mention versions.
    We are using 11.1.1.7 and IE 9.
    I tried in Google but could not get the solution.
    Kindly let me know solution for this.
    PavanKumar

  • OraRRP Error with "Unable to copy data file;Error code 2, check disk space"

    Hi,
    Some users get this message -"Unable to copy data file;Error code 2, check disk space" when run report with orarrp, but most users do not get it.
    I check free space at both server and client side, they are very sufficient.
    I also checked directory exists for REPORTXX_TMP variable.
    My user call reports via URL (rwservlet) and it occur for all reports.
    How I can solve this problem?
    Thanks in advance.
    Tawatchai R.

    Hi,
    have the same problem now. One user has temporarily problems to download .rrpa files via URL (rwservlet) request. Error code: -"Unable to copy data file;Error code 2, check disk space". Did you get a solution??
    Thanks in advance. Axel

  • Unable to copy data in planning

    Hi Gurus,
    I am unable to copy data using "copy data" in planning web application.
    getting an error "MSG_COPY_DATA_OPTIONS_FAILED: An error occurred while running the specified calc script. Check the log for details."
    here are the steps I checked:
    I checked whether planning and essbase are in sync.
    The DBA team says that there was no spikes in memory.
    when I take small data set it see data in target but the status in Job Console says processing for the past 45 min.
    I was copying only one month of data.
    please help.

    I see you must of read the two Oracle Support articles by what you wrote in your post.
    Have you checked the essbase app log? also it sometimes help to restart the planning web app when it happens.
    Also have a read of Re: Where is the calc script created when running the 'Copy Data' function ?
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Copy data of two rows together into a new row

    Hello everyone.
    I have a question about copying data of two existing rows together into a new third row.
    See this short example:
    This is the current situation. The rows STATE_1 and STATE_2 contain different separated information.
    In the past data were saved randomly in one of those rows.
    This is the table State:
    ID
    Cust_ID
    STATE_1
    STATE_2
    STATE_3
    1
    88
    Customer is waiting.
    Call from yesterday.
    2
    11
    Mr. Smith, no answer.
    Waiting until December
    3
    11
    Pls create PO.
    Old PO was cancelled
    4
    5
    No access to system.
    From now on everything has to be saved to the empty STATE_3 but I also need the old entries from the past which also have to be copied together into STATE_3
    like this:
    ID
    Cust_ID
    STATE_1
    STATE_2
    STATE_3
    1
    88
    Customer is waiting.
    Call from yesterday.
    Customer is waiting. Call from yesterday
    2
    11
    Mr. Smith, no answer.
    Waiting until December.
    Mr. Smith, no answer. Waiting until December.
    3
    11
    Pls create PO.
    Old PO was cancelled.
    Pls create PO. Old PO was cancelled.
    4
    5
    No access to system.
    No access to system.
    Is there an easy SQL-command?
    Thanks for any help.

    Hi,
    DB2000 wrote:
    Hello everyone.
    I have a question about copying data of two existing rows together into a new third row.
    See this short example:
    This is the current situation. The rows STATE_1 and STATE_2 contain different separated information.
    In the past data were saved randomly in one of those rows.
    This is the table State:
    ID
    Cust_ID
    STATE_1
    STATE_2
    STATE_3
    1
    88
    Customer is waiting.
    Call from yesterday.
    2
    11
    Mr. Smith, no answer.
    Waiting until December
    3
    11
    Pls create PO.
    Old PO was cancelled
    4
    5
    No access to system.
    When you say "row", do you mean "column"?
    DB2000 wrote:
    Because in this case STATE_1 and STATE_2 are only text of a log file/history.
    So I think 1NF isn't really violated and because of performance of the database in this case it's better to put obsolete rows together.
    Why do you think that?
    The definition of First Normal Form is that every column of every row contains 1 piece of information, not a variable number of pieces.  Whether or not that data is only text of a log file/history has nothing to do with it.
    You might claim you have good reasons (such as performance) for violating First Normal form, but you can't say that you're not violating it.

  • Copy data from one Table to another Table

    How can I copy data from one Oracle Table to another Oracle Table on a different server? Question 2: How can I clear all of the data in one Table with a single SQL script?
    Thanks...

    Question 1:
    I assume you have the privileges. If you don't, ask the DBA to give them to you. Then
    1. Login to database_source (It could be either the source or the target. Let's assume it's the source.)
    2. Create a database link to database_target: CREATE DATABASE LINK link_to_database_target CONNECT TO myuserid IDENTIFIED BY mypassword USING 'database_target'; Note the single quotes.
    3. Copy the table data: INSERT INTO targetowner.mytable@link_to_database_target SELECT * FROM sourceowner.mytable; COMMIT;
    Question 2:
    You have two options, but you may not have privileges for both.
    Option 1:
    DELETE FROM tableowner.tablename; COMMIT;
    Advantage: Since this is a DML (Data Manipulation Language) statement, you have to commit the transaction. Also, the data will be gone but the table size is NOT changed, so it's ready for accepting replacement data. DML statements can simply be executed not only from SQL scripts, but from PL/SQL scripts as well.
    Disadvantage: Slow, because all record deletion is logged, so you can recover from it by issuing a ROLLBACK; instead of the COMMIT; above. The table size is NOT changed, so if you are short of disk space or tablespace space, you have not resolved the issue.
    Option 2:
    TRUNCATE TABLE tableowner.tablename;
    Advantage: Since this is a DDL (Data Definition Language) command, you do NOT have to commit the transaction. (DDL commands automatically commit both before and after their execution.) The table size will be changed back to the initial extent size which is the minimum size a table can have and can only be set when the table is created. If it needs to be changed, the table has to be dropped and recreated with a different initial extent size. The statement execution of this command is not logged, therefore it's much faster then the DELETE.
    Disadvantage: No rollback. Being a DDL, this command cannot be executed straight from PL/SQL. If you need to issue this within PL/SQL, you will have to use dynamic SQL.

  • Copying data from one table to another table thru java

    Hi
    I have to copy data from table emp in Database A to table emp in Database B. My input would be table name and number of rows to be fetched. these rows i need to insert in table B.
    The problem over here is I won't be having any info. of table emp i.e the number of columns it has and their type.
    So is their any way i can copy the data from one table to other without having the info abt the number of cols and their type.
    TIA

    Cross post - http://forum.java.sun.com/thread.jspa?threadID=5169293&messageID=9649839#9649839

  • Copy data from one table to another

    Hello everyone,
    I have a student table with fields sno, sname. I created another table student1 with same fields sno, sname and with one new field class.
    Now i want to copy data from sno, sname of student table to sno, sname of student1 table when the class field in styudent1 has no data i.e., its null.
    Could any one let me know how to do this?
    Thanks,
    Prathima

    i want to copy data from sno, sname of student table to sno, sname
    of student1 table when the class field in styudent1 has no dataSo what is the join condition? What column in STUDENT1 tells us what row in STUDENT to copy?
    Cheers, APC
    Blog : http://radiofreetooting.blogspot.com/

  • I need to copy data from a table in one database (db1) to another table in

    Hi
    I need to copy data from a table in one database (db1) to another table in another database (db2).
    I am not sure if the table exists in db2,,,if it doesnot it needs to be created as well data also needs to be inserted...
    How am I supposed to this using sql statements..?
    I shall be happy if it is explained SQL also...
    Thanking in advance

    How many rows does the table contains? There are manyway you can achieve this.
    1. export and import.
    2. create a dblink between two databases and use create table as select, if structure doesnot exists in other database, if structure exists, use, insert into table select command.
    example:
    create a dblink in db2 database for db1 database.
    create table table1 as select * from table1@db1 -- when there is no structure present
    -- you need to add constraints manually, if any exists.
    insert into table1 select * from table1@db1 -- when there is structure present.
    If the table contains large volume of data, I would suggest you to use export and import.
    Jaffar

  • Copying data from a table in the Database to an internal table.

    Hello,
    How do I copy data that is a table that is in the database and and then load the data to an internal table in the ABAP/4 Aditor.
    Please help.

    hi,,
    do this way ...
    tables : mara.
    parameters : p_matnr like mara-matnr,
    start-of-selection.
    select <fields>  from mara into table it_mara
         where matnr = p_matnr.
      if sy-subrc = 0.
    endif.

  • Copying data from excel(more than one row) and pasting into table control

    I have a requirement to copy data from excel and have it pasted it into the corresponding fields table control when the user clicks on an icon.For the first part I used a class to copy it from the clip board.By the previous process,I get the data inside an internal table, but even after  trying to split the data using 'split at cl_abap_char_utilities=>horizontal_tab into table itab.' it's not working.The table and the excel file are of the same structure.
    Does anyone know any cause as to why it might not work?Is there any other way to achieve my objective?
    Bon

    Hi,
    try to get data into internal table as below
    TYPES :     BEGIN     OF             ty_data          ,
                zbukr     TYPE           payr-zbukr       ,
                hbkid     TYPE           payr-hbkid       ,
                hktid     TYPE           payr-hktid       ,
                rzawe     TYPE           payr-rzawe       ,
                chect     TYPE           payr-chect       ,
                laufd     TYPE           reguh-laufd      ,
                laufi     TYPE           reguh-laufi      ,
                lifnr     TYPE           reguh-lifnr      ,
                vblnr     TYPE           reguh-vblnr      ,
                rwbtr     TYPE           reguh-rwbtr      ,    "uncommented
                unique_no TYPE           char13           ,   " Added SAP Doc. No. and current year concate in NEFT,RTGS and Fund Transfer cases
                END       OF             ty_data          .
    DATA :      wa_file   LIKE LINE OF   it_file          ,
                wa_data   TYPE           ty_data          .
    DATA:      it_data1 TYPE              kcde_intern WITH HEADER LINE,
               wa_data1 LIKE LINE OF      it_data1.
    start-of-selection.
    CALL FUNCTION 'KCD_EXCEL_OLE_TO_INT_CONVERT'
          EXPORTING
            filename                = lv_file1
            i_begin_col             = '1'
            i_begin_row             = '4'
            i_end_col               = '11'
            i_end_row               = '60000'
          TABLES
            intern                  = it_data1
          EXCEPTIONS
            inconsistent_parameters = 1
            upload_ole              = 2
            OTHERS                  = 3.
        IF sy-subrc = 0.
          PERFORM format_data.
        ENDIF.
    FORM format_data.
      DATA : ld_index TYPE i.
      FIELD-SYMBOLS : <fs>.
      DATA it_tab LIKE wa_data OCCURS 0 WITH HEADER LINE.
          LOOP AT it_data1.
            MOVE it_data1-col TO ld_index.
            ASSIGN COMPONENT ld_index OF STRUCTURE
            it_tab TO <fs>.
            MOVE : it_data1-value TO <fs>.
        MOVE it_data1-value TO p_table.
            AT END OF row.
              APPEND it_tab.
              CLEAR it_tab.
            ENDAT.
          ENDLOOP.
           it_data[] = it_tab[] .
        ENDIF.
    endform.                    "format_data

Maybe you are looking for

  • Multi-room Launched

    Multi-room has just been offically launched at £5 per month. Possibly good and bad news... http://www.seenit.co.uk/bt-launches-multi-room-service-for-youview-based-bt-tv/

  • How do I force my Mac to update to a newer version of a Keynote file on iCloud?

    I teach college and use Keynote on a daily basis. Lately, when I've worked on a Keynote file at home, when I go to my office (the next day) and try to open the file, the newer version won't be available yet to select. I can open the old version, or t

  • RMAN backup with Standard Edition

    I want to backup Oracle RAC database using RMAN.I am using Standard Edition so flashback database option is not available and many RMAN related features are also not available.I have set flash recovery area of 30 GB. Now please tell me commands to ta

  • Project Code in J.E.

    Dear All, Please let me know even when the Project Code is mentioned in the Marketing document, why is this Code not updated in the J.E.???? Because of this when the Ledger of that Account is viewed as per Project Code it does not show any implicatio

  • TT ReadOnly Group fails with ORA-1017

    Please help... I actually got this to work at one point about a week ago. I opened an SR# to explore all the setup aspects of the accounts. Trying to create a simple readonly group now fails: Command> connect "dsn=HrData;uid=hr;pwd=...."; Connection