Copying KF values to another KF

Hi,
I have to copy the previous months value of a KF to the Current months value of another KF. Can anyone please say how it can be done?
Regards,

Hi Suprio,
Did you try using period offset? Sample config available on SAP2 model in key figure actuals qty prior year.
Regards,
Aditya G

Similar Messages

  • PL/SQL Looping a table and copying some values to another one...

    hi all!!!
    i'm totally new to pl/sql, and i need to create an interaction to do the following..
    my scenario is:
    i have a table called "references" that contains 2 columns (new_id, old_id).
    then i have another table called "ref" which also contains 2 columns (old_id, other_id).
    ok the point is this:
    in the table references i have stored the references between 2 products (the old one and the new one) by storing their ids.
    now what i have to do by knowing this, is to insert in the table "ref" a new entry for every old_id that is already stored there, but changing it with the new_id that i can get from the other table (references).
    let's see an example:
    table references:
    new_id - old_id
    11 - 3
    12 - 7
    13 - 5
    table ref:
    old_id - other_id
    3 - tu7r
    7 - asduih
    7 - anotherone
    7 - 44444
    5 - 6754f
    so the result that i want is that the new ids (11,12,13) has to be copied to the table "ref" with the same "other_id" as their correspondants in "references" table.. the result would be:
    table ref:
    old_id - other_id
    3 - tu7r
    7 - asduih
    7 - anotherone
    7 - 44444
    5 - 6754f
    11 - tu7r
    12 - asduih
    12 - anotherone
    12 - 44444
    13 - 6754f
    i don't know how to build up a loop or something to reach this aim!!
    thanks for your time guys!!!
    Edited by: ElMazzaX on Nov 17, 2011 3:15 PM

    You do not need pl/sql to do this.
    If I understand your datamodel correctly, this join will get you those records you need to insert:
    select
    references.new_id, ref.other_id
    from references
    join ref
       on ref.old_id = references.old_id;Try that select - it it works, then you can simply do:
    insert into ref (old_id, other_id)
    select
    references.new_id, ref.other_id
    from references
    join ref
       on ref.old_id = references.old_id;SQL is quite enough - no PL/SQL loop necessary ;-)

  • Copy selected values from a table control into another table control

    hi there,
    as seen in the subject i need to copy selected values from a table control into another table control in the same screen. as i dont know much about table controls i made 2 table controls with the wizard and started to change the code... right now im totally messed up. nothing works anymore and i don't know where to start over.
    i looked up the forums and google, but there is nothing to help me with this problem (or i suck in searching the internet for solutions)
    i have 2 buttons. one to push the selected data from the top table control into the bottom tc and the other button is to push selected data from the bottom tc into the top tc. does somebody has a sample code to do this?

    you're funny
    i still don't get it... can't believe, there is no tutorial or sample code around how to copy multiple selected rows from a tc.
    here's my code, maybe you can tell me exactly were i have to change it:
    tc1 = upper table control
    tc2 = lower table control
    SCREEN 0100:
    PROCESS BEFORE OUTPUT.
      MODULE status_0100.
      MODULE get_nfo. --> gets data from the dictionary table
      MODULE tc1_change_tc_attr.
      LOOP AT   it_roles_tc1
           INTO wa_roles_tc1
           WITH CONTROL tc1
           CURSOR tc1-current_line.
      ENDLOOP.
      MODULE tc2_change_tc_attr.
      LOOP AT   it_roles_tc2
           INTO wa_roles_tc2l
           WITH CONTROL tc2
           CURSOR tc2-current_line.
      ENDLOOP.
    PROCESS AFTER INPUT.
      LOOP AT it_roles_tc1.
        CHAIN.
          FIELD wa_roles_tc1-agr_name.
          FIELD wa_roles_tc1-text.
        ENDCHAIN.
        FIELD wa_roles_tc1-mark
          MODULE tc1_mark ON REQUEST.
      ENDLOOP.
      LOOP AT it_roles_tc2.
        CHAIN.
          FIELD wa_roles_tc2-agr_name.
          FIELD wa_roles_tc2-text.
        ENDCHAIN.
        FIELD wa_roles_tc2-mark
          MODULE tc2_mark ON REQUEST.
      ENDLOOP.
      MODULE ok_code.
      MODULE user_command_0100.
    INCLUDE PAI:
    MODULE tc1_mark INPUT.
      IF tc1-line_sel_mode = 2
      AND wa_roles_tc1-mark = 'X'.
        LOOP AT it_roles_tc1 INTO g_tc1_wa2
          WHERE mark = 'X'.    -
    > big problem here is, that no entry has an 'X' there
          g_tc1_wa2-mark = ''.
          MODIFY it_roles_tc1
            FROM g_tc1_wa2
            TRANSPORTING mark.
        ENDLOOP.
      ENDIF.
      MODIFY it_roles_tc1
        FROM wa_roles_tc1
        INDEX tc1-current_line
        TRANSPORTING mark.
    ENDMODULE.                    "TC1_MARK INPUT
    MODULE tc2_mark INPUT.
      IF tc2-line_sel_mode = 2
      AND wa_roles_tc2-mark = 'X'.
        LOOP AT it_roles_tc2 INTO g_tc2_wa2
          WHERE mark = 'X'.             -
    > same here, it doesn't gets any data
          g_tc2_wa2-mark = ''.
          MODIFY it_roles_tc2
            FROM g_tc2_wa2
            TRANSPORTING mark.
        ENDLOOP.
      ENDIF.
      MODIFY it_roles_tc2
        FROM wa_roles_tc2
        INDEX tc2-current_line
        TRANSPORTING mark.
    ENDMODULE. 
    thx for anybody who can help with this!

  • Copying position value from one layer to another

    Hy!
    This is Pierluig, from Italy.
    I'm a noob in after effect scripting language, but not so new to programming
    Anyway, this is the question:
    I have a composition with one layer on it. let's say firstlayer.
    The layer has two effects on it: topeffect and bottomeffect.
    Bottomeffect is an effect called (Transform).
    In my script, I want another layer (let's say secondlayer) to set his position from the position of the bottomeffects of the firstlayer.
    Problem is, the property "Position" of the secondeffect of the toplayer is calculated trough an expression.
    This expressions use a function, and this function is not recognized by the script language
    I've tried something like:
      var myArr = ["0","0"];
      myArr = firstlayer.property("Effects").property("(Transform)").property("Position");
      secondo.Position.setValue(time,myArr);
    And I got the error: Undefined, is not an object.
    I've tried lots, tons of variation, and i've got lots, tons of variation in the error message , but always an error.
    So the question is: how can i get my goal?
    And my goal is to say, trough a script, after effect to set a property to a layer copying that property from another layer, assuming the layer from wich i copy the property get the property values trough an expression.
    Hope I've been clear
    Any help will be reallyappreciated, and I'll remember the helpers in my pray
    Pierlu

    Hi Pierlu,
    You can use the valueAtTime() method to retrieve a value pre- or post-expression. Here's some sample code:
    var firstLayer = comp.layer("firstlayer");
    var secondLayer = comp.layer("secondlayer");
    var firstLayerPosition = firstLayer.property("Effects").property("Transform").property("Position").valueAtTime(0, false);
    secondLayer.position.setValue(firstLayerPosition);
    Hope this helps.
    Jeff

  • To copy texbox value from one dataset to another in SSRS 2005

    Hi All,
    I have two Datasets
    The difference between this 2 dataset is
    DataSet1 gives data from filter Date1 and Date2 where Data1 and Date2 are the user entered dates
    Dataset2 gives data from filter Date1 and TodayDate wher Date1 is user entered date and TodayDate is Now()(Todays Date)
    I need to copy the textboxvalue from DataSet2 to Dataset1 
    I tried using below expression in DataSet1
    'ReportItems!textbox173.Value'
    But gave the below error 
    Any help much appreciated
    Thanks
    Pradnya07

    Hi Simran08,
    According to your description that you have two DataSets and three filters in the report:Date1,Date2,TodatDate, you trying to use the expression in the DataSet1’s table to get one TextBox’s value from DataSet2 which caused some error, right?
    I have tested on my local environment and can reproduce the issue. The error caused by the expression “ReportItems!textbox173.Value“ you are using is not an supported function when getting dynamic values from another DataSet. Exactly, we already have the
    Lookup function as Visakh16 mentioned to do this copy, but this function supported in the SSRS 2008 R2 and the later version.
    So, I recommend that you to consider two methods below:
    If the two Datasets’s table have the same fields and you can join these two tables and create only one dataset.
    If you don’t want to follow step1, you can upgrade to the new version 2008  R2 or later version, then use the Lookup function to get the value from DataSet2.
    SQL Server 2008  R2 and later version, you can use a lookup function to get values from another dataset. You can find out more here:
    http://msdn.microsoft.com/en-us/library/ms170438.aspx
    If your problem still exists, please feel free to ask.
    Regards
    Vicky Liu

  • Issue with customer exit for copying one variable value to another

    Hello Gurus,
    I need to copy the value of a single value variable into another single customer exit variable.
    I coded as below.
      WHEN 'customer_exit_var'.
        IF I_STEP = 2. "after the popup
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
          WHERE VNAM = 'user_input_Variable'.
            CLEAR L_S_RANGE.
            L_S_RANGE-LOW = LOC_VAR_RANGE-LOW.
            L_S_RANGE-HIGH = ''.
            L_S_RANGE-SIGN = 'I'.
            L_S_RANGE-OPT = 'EQ'.
            APPEND L_S_RANGE TO E_T_RANGE.
            EXIT.
          ENDLOOP.
        ENDIF.
    I used the condition <= for the customer exit variable in the report. But, it is considering only single value, but not all the values <= to the give value.
    Please help me in this regard,
    Thanks,
    Aarthi.

    Thanks for your immediate response Govind.
    My report is restricted based on two dates. Date1 and Date2. Need to consider all records whose dates are <= Date1 and <= Date2.
    Date1 and Date2 should have same values. But user inputs only Date1.
    So, I created Date1 as Single, User Input Variable restricted the query with <=Date1.
    Next I created Date2 as Single, Customer Exit Variable and restrcited the Query with <=Date2.
    In CMOD I used the above code to assigne Date1 Value to Date2.
    When I execute the report, say I give todays date in the report (Dec, 12, 2007). Date2  has to consider all the values <= Dec 12, 2007. But, in my case it is considering only Dec 12, 2007, but not the before dates.
    So, Please help me in solving this problem.
    Thanks,
    Aarthi.

  • How to copy one column BLOB value into another column of another database.

    How to copy one column BLOB value into another column of another database.
    BLOB value contains word document.
    I thought of copy the BLOB value into a text file and then update the new column value by the same text in textfile. Will this work?
    Is there any other better way to do this?

    You're welcome
    BLOB fields contains binary data. I don't think you can do this
    Also if I view the BLOB as text. Can I copy it and insert into the new database.
    I think your options are as I said. Datapump or CTAS
    Best Regards

  • Copy the value from one item into another

    Hi,
    I have a page with 2 items on it: Field1 and Field2. When the user enters a value in Field1 and tabs out, I want to copy the value to Field2.
    I have changed the setField1 method in the VORowImpl to call setField2 passing in the same value.
    In the JHeadstart definition file I have set the Depends On Item property of Field2 to be Field1.
    When I run the page and put a value in Field1 the page autosubmits as expected and the setField1 method runs. Unfortunately, the value does not appear in Field2.
    Any ideas?
    Thanks,
    Gavin

    Hi Steven,
    Checking the box does indeed get the value from Field1 into Field2.
    What I want to do, though, is to populate Field2 from Field1 only if Field2 is empty. Unfortunately, Field2 is now cleared before the setter of Field1 executes and so it always overwrites Field2.
    Any ideas?
    Thanks,
    Gavin

  • How to cell register the date/time when you put a value in another cell

    Hello guys!
    How do I get a cell (eg A2) tell the date and time when I put a value in another cell (eg A1) in Numbers?
    For example, I want to register a cell to read my electricity meter.
    I write in cell A1: 45809. When placing this value in A1, I want to appear (on A2) the date and time when I did that record automatically. Is it possible?
    I hope you understood the question!
    Thank you in advance to those who try to help.

    There is not automatic time stamping of on entry of a time.  One suggestion I've seen has a cell that has the current date and time.  Everytime you cahnge any cell that cell will update.  You can then copy that cell and paste the value into your date/time cell adjacent to the meter reading:
    Create a new, plain table:
    Now in cell A1 enter the formula "=now()"  short hand for this is:
    A1=now()
    now resize the table so it is a table that is 1 cell by 1 cell by selecting any cell, then dragging the table size control in the bottom right corrner towards cell A1:
    It should look like this when you have completed this task:
    Now create another new, plain table and enter "Date" for cell A1, and "Meter Reading" for B1:
    Now you can enter a meter reading (I entered "45671").  Now select the CELL that has current date and time from the first table at the very top, and copy:
    Now select the cell in the date column where you want to put the current date and paste values by using the menu item "Edit > Paste Value":

  • Error while copying Z program to another enviroment

    Hi, experts
    I have a Z program into one client's enviroment, which works fine. I tried copying this program into another client's enviroment, and i get the following error message, while syntax check:
    "RC_IN1 must be a byte-type field. (Typ X or XSTRING)."
    And this error is on the following form:
    form xor using rc_in1 type c rc_in2 type c rc_out type c.
      data:
        li_abit type i,
        li_bbit type i.
      rc_out = space.
      if rc_in1 <> space.
        do 8 times.
          get bit sy-index of rc_in1 into li_abit.
          get bit sy-index of rc_in2 into li_bbit.
          if li_abit <> li_bbit.
            set bit sy-index of rc_out to 1.
          else.
            set bit sy-index of rc_out to 0.
          endif.
        enddo.
        if rc_out = space.
          rc_out = rc_in1.
        endif.
      endif.
    endform.
    When I check into one client's enviroment, it does not gives error. Only in THAT client.
    Why is this happening?
    Thanks in advance,
    Brian Gonsales

    Hi,
    are the both client environments hav same version (ECC 6).
    In ECC 6 version type X is not allowed.
    To avoid this problem,
    you need to declare the field of TYPE C.
    you need to get the value from Cl_ABAP_CHAR_UTILITIES.
    Regards
    Sandeep Reddy

  • Copy from column  to another column in same table

    Hi,
    Working on EBS Version : 11.5.10.2
    Table Name : ASO_QUOTE_HEADERS_ALL
    COLUMNS :
    QUOTE_STATUS_ID NUMBER
    ATTRIBUTE6 VARCHAR2(240 BYTE);
    Need to copy from quote_status_id to attribute6 for that quote_header_id
    example if quote_status_id = 10 then it should copy in attribute6 = 10 for quote_header_id = 69312
    again if changed to quote_status_id = 10077 then it should replace with attribute6 = 10077
    for quote_header_id = 69312
    i wrote a procedure posted below:
    CREATE OR REPLACE procedure SLC_STATUS_CAPTURE (p_quote_header_id IN number) is
    BEGIN
    UPDATE aso_quote_headers_all SET attribute6 = quote_status_id
    WHERE quote_header_id = p_quote_header_id;
    end SLC_STATUS_CAPTURE;
    then calling this trigger through table level
    BEGIN
    SLC_STATUS_CAPTURE(:OLD.QUOTE_HEADER_ID);
    END;
    it is giving an error.
    Please i need some help.
    Thanks and Regards
    Vijay

    John Spencer wrote:
    As others have mentioned, you cannot change column values in a statement level trigger. Also, you cannot
    update the table that the trigger is firing on. If I understand correctly, you want to copy the value of
    quote_status_id into attribute6 whenever a row is inserted or updated. If that is correct, then you only need a simple trigger like:
    create trigger trigg
    before insert or update of aso_quote_headers_all
    for each row
    begin
    :new.attribute6 = :new.quote_status_id;
    end;Thought why anybody would want to do this is beyond me - you already have the info
    in your attribute6 column - what's the point in simply copying it to another column in
    the same table?
    Paul...
    John

  • How to copy the value of object in jdk 1.6

    Hi,
    I want to copy a object from another with out reference.
    clone(0 is not accessable , only can use super.clone() , but if my class don't have the clone() method at all then ..
    can any body tell me how i can do this..
    thanks in advance

    I think i have not able to describe the problem.
    Well lets have a example
    public class A{
    String value1="";
    public A(){
    public String getValue1() {
              return value1;
         public void setValue1(String value1) {
              this.value1= value1;
    Now ,
    A object1 = new A();
    object1.setValue1("first") ;
    A object2 = new A();
    object2 = object1;
    here giving the reference ...so what is happening if i change object1, object2 will also be updated..
    I don't want this ..instade of this i just want a copy of "object1" for object2 , so that object2 will always have same value and will not depend on object1 updation.
    How to do that ? and i don't want also copying each variable value while coping.

  • Javascript to copy input fields to another input field..

    Hi,
    I have Permanent address fields(input text fields) (address line 1,2,city, state , country,zip code)  and present address fields with same input fields as premanent address
    and i have a check box is present address different with value Y when checked and N when unchecked
    so based on the check box checked and unchecked the permanent address should copy to present address.
    i dont know how to use java script in adf
    so some one  please help me to do this.
    thanks in advance
    cheers

    Hi Suchith,
    I will tell you how to achieve your case using the framework itself;
    1.- Add to your checkbox a setPropertyListener for each field you want to copy. So for the first one addressLine1 I assume the component value resides in your binding layer, you do
    from=#{bindings.yourCheckBox.inputValue eq 'Y' ? bindings.addressLine1.inputValue : null}
    to=#{bindings.otherAddressLine1.inputValue}
    type='valueChange'
    And the same for each field. All in the checkbox component.
    Since this is a business rule, you should always aim to write this kind of logic in the model layer so you can create a method in your ViewObjectRowImpl named copyAddress() and in there you copy the values from one field to another field. Then you expose this method in the client interface and execute it when clicking the checkbox. Add autosubmit=true and partialTrigger to the panel containing your other fields to be refreshed.
    Once again I am making a lot of assumptions about your model, but that is why you always need to first state the version of your JDeveloper, then give a clue about your model and where are the fields being stored and so on. So people can help you better.
    Regards

  • Creating Variable with Replacement Path to get value from ANOTHER Variable

    Hi all,
        Is anyone has created the Variable with Replacement Path to get the value from another User Entry Variable, PLEASE ? 
    First created the User Entry Variable (ZV_X) and it accepts the date range like '01/01/2009 - 01/31/2009'. Next created the Characteristic variable (ZV_Y) of Replacement Path for which source variable will be ZV_X and we should get the 'FROM Date' (01/01/2009) from the selection (ZV_X) into it (ZV_Y).
    While creating the Characteristic variable (ZV_Y) of Replacement Path, I didn't find my newly created ZV_X variable in the list of available variables under 'Variable' header in 'Replacement Path' tab and it is causing the error 'Source to replace variable ZV_Y is not defined'. How could I create the Characteristic variable of Replacement Path for my requirement, PLEASE ?
    The following is from help.sap..com:
    Replace with Characteristic Value
    Text and formula variables with the processing type Replacement Path can be replaced with a corresponding characteristic value. In the variable editor, on the General tab page, you specify under Reference Characteristic the characteristic that is to be referenced by the replacement. On the Replacement Path tab page, you can choose whether the variable is replaced with the From or the To Value and with the Key or the Name of the characteristic value. You can also specify the Offset Start and Offset Length for the output.
    Replace with Variable
    Characteristic value variables, hierarchy variables, text variables, and formula variables with the Replacement Path processing type can take their values from a different variable.
    The following prerequisites need to be fulfilled:
    Variable
    ●      The variable must not be input-ready
    ●      The variable must represent a single value
    Source Variable
    ●      The source variable must not be a hierarchy node variable
    ●      The source variable must be input-ready
    ●      The source variable must be available in the query
    ●      The source variable must represent a single value or an interval
    In the variable editor, on the Replacement Path tab page, you specify the source variable from which the value is to be determined. The value is either determined from the key, the external attribute of the key, the description, or the attribute value. You can specify an Offset Start and an Offset Length for the output here. The variable is replaced on the variable screen upon each data release.
    Thanks,
    Venkat.

    Hi Eve,
    It is possible to connect the 2 queries using a Replacement Path characteristic variable. You would need to create the variable on the char whose values you want to pass from Q1 to Q2. The variable will be of type replacement path and you will need to enter the name of Q1 from which it will get the values. Make sure that you include this char in the query definition of Q1 and Q2. In Q2 you will restrict the characteristic using this variable. DO not use this variable (replacement path) in Q1.
    In your query properties check if you have turned on the checkmark for Release for OLE DB for OLAP (3rd tab). If the check mark is there, then remove it.
    We are using the scenario in a couple of places, and it works very well.
    Hope this helps...

  • Save the selected value from listbox with its respective tab control dropdown selcted values in another listbox

    Hi all,
    I am making a vi where I have to save the selected value from listbox with its respective tab control dropdown selcted values in another listbox.Whenever I select Item1 then the heading change and respective tab will open for that item.But Now I just want to save the selection and put it in another ListBox.SO that I can renmove or add according to my wish. Plz help me.
    Solved!
    Go to Solution.
    Attachments:
    my_vi.png ‏83 KB

    Hi, I successfully make the vi to insert itmes from listbox1 to listbox2.Whenever I select itmes 1 in listbox 1 it display same elected item in listbox2 , but it not appending the items in listbox2.Like If 1 is selected in listbox1 then 1 will display , next time after saving when I selct next item like 3 then in listbox 2, 1 is replaced by 3,it dont come in second row of listbox2.Hope I am able to explain.\
    Plz help me to resolve this.
    Attachments:
    listbox_update.vi ‏11 KB

Maybe you are looking for

  • Problems with Creative Mediasource-shutting d

    For the past 24 hours I have been unable to use Creative Mediasource. Every time I get into the program to transfer songs from my computer to my MuVo a window pops up saying that there is a problem and Mediasource has to shut down. Then Windows sends

  • Macbook pro runs slow, sometimes it is more than a minute to load a webpage and sometimes freezes.

    My MacBook Pro is running very slowly, sometimes more than a minute to open a webpage or access a link on the page.  Using Safari and sometimes it freezes and the force quit window doesn't appear using option-command-escape.  Then only holding down t

  • Vendor Master Activity

    I want to clean up our Vendor Master File. I need to get a list of all Vendors with no activity over the last 3 years. It's seems this would be a standard report but I do not see one that meets this needs. How do I get  a list of Vendors that can be

  • Undo Feature not Working

    I have just upgraded to 3.0.1. Command Z and selected from Edit drop down menu - refuses to undo brush strokes?? Any body else having this issue???

  • Mouse stopped working

    Hi. I have a death adder mouse i recently bought for my mac, 10.4.11, and it stopped working. No matter which mouse i use, it doesn't work. It just stays in this one spot about 200 pixels from the left and 50 from the top. When i move it violently, i