Assigning a value to my Kef figure which is an attribute of an infoobject

I've created a KF and the value it needs assigned is an attribute of another object.  How do I assign this?  I don't see an option like this in the update rule anywhere.

Actually I would do it a little different...
To better improve the load performance, let us pull all the entries into the internal table at the start routine level..
<b>START ROUTINE:</b>
[code]DATA: BEGIN OF IT_LEADDAY OCCURS 0,
LEAD_DAYS LIKE /BI0/MROUTE-/BIC/ZLEADDAYS,
ROUTE LIKE /BI0/MROUTE-ROUTE,
END OF IT_LEADDAY.
$$ end of global - insert your declaration only before this line   -
The follow definition is new in the BW3.x
TYPES:
  BEGIN OF DATA_PACKAGE_STRUCTURE.
     INCLUDE STRUCTURE /BIC/CS8ZCO22P02.
TYPES:
     RECNO   LIKE sy-tabix,
  END OF DATA_PACKAGE_STRUCTURE.
DATA:
  DATA_PACKAGE TYPE STANDARD TABLE OF DATA_PACKAGE_STRUCTURE
       WITH HEADER LINE
       WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
FORM startup
  TABLES   MONITOR STRUCTURE RSMONITOR "user defined monitoring
           MONITOR_RECNO STRUCTURE RSMONITORS " monitoring with record n
           DATA_PACKAGE STRUCTURE DATA_PACKAGE
  USING    RECORD_ALL LIKE SY-TABIX
           SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
  CHANGING ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
$$ begin of routine - insert your code only below this line        -
fill the internal tables "MONITOR" and/or "MONITOR_RECNO",
to make monitor entries
SELECT /BIC/ZLEADDAYS ROUTE
FROM /BI0/MROUTE INTO TABLE IT_LEADDAY
FOR ALL ENTRIES IN DATA_PACKAGE
WHERE ROUTE = COMM_STRUCTURE-ROUTE and OBJVERS = 'A'.
SORT IT_LEADAY BY ROUTE.[/code]
<b>UPDATE ROUTINE:</b>
[code]READ TABLE IT_LEADDAY WITH KEY
ROUTE = COMM_STRUCTURE-ROUTE.
IF SY-SUBRC = 0.
      RESULT = ITAB_LEADAY-LEAD_DAYS.
ENDIF.
if abort is not equal zero, the update process will be canceled
  ABORT = 0.
$$ end of routine - insert your code only before this line         -*
ENDFORM.[/code]

Similar Messages

  • How to populate values in DP key figure which is not present in Info Cube

    Hi
    We have a special Key figure in Demand Planning created for uplaoding Forecasts coming directly from customer,
    This key figure is not present in Info Cube and data doesnot pupulate in this key figure through Info cube build,
    Hence data in this key figure is to be loaded externally , Customer sends his forecasts through EDI messages, Now we want to update forecast from external customer in to this  special key figure,
    Please suggest some ways
    Thanks and regards,
    Nitin Lavhe

    Hi
    I think you can get loaded this information in the cube in any other key figure which is available in the info cube. Then while loading the data into planning area using TSCUBE, you can define the key figure assignment.
    In which you define data from which key figure of infocube has to be get loaded into which key figure of planning area. Here you can define the respective key figures.
    Please let us know if it helps you. Please let us know if you require any more information from our side.
    Thanks
    Amol

  • Want to assign a value to a dff (from a sql )whenever the record is saved

    Hi
    I am new to OAF and would like to know how can i extend my VO and assign a value returned by a sql which returns a value on the basis of some fields from some fields in the same VO .
    Thanks
    Narinder

    Narinder,
    You can extend the SEEDED VO by creating a new VO and using the extends property in the VO wizard to refer to the seeded VO. Now in the new VO query you can make changes as appropriate to retrieve your values. The last step is to substitute this VO in the Applicatin so that the newly created Custom VO is used instead of standard to make sure your changes are visible.
    Best would be to read the section on Substitution in the Dev guide.
    Regards
    Sumit

  • Assign a value from dropdownlist to input field value on BSP page

    Hi,
    I'm new to SAP and ABAP. We have a CRM project in which I have to maintain BSP pages.
    Now, coming to my problem: I have a input field with
    value = "//BTAdminH/HeaderInfo"
    This field is normally maintainable. The required function is now to set this field as not maintainable/readonly. Then, the value should be set automatically to an value, which will be selected from a dropdownListBox. After saving, the value HeaderInfo should have the same value like the selected value from the dropdownListBox.
    How can I now set the field as readonly (this should be the easier part) and
    how can I set the value for the HeaderInfo to the value of the selected value from the dropdownListBox?
    If I set it directly like this
    value = "//BTActivity/Priority"
    it is shown on the BSP page correclty, but it is not saved as HeaderInfo.
    Please help me.
    Enja

    Hello Gokul,
    test was only for test purposes! I am using as a separator the plus sign!
    But this is not the problem!
    In debugging, the local variable has the concatenated value! So, this is working!
    oncatenate ls_ddlb1-value ls_ddlb2-value ls_ddlb3-value into lv_headerinfo SEPARATED BY ' + '.
    But when I assign the value of my set_headerinfo to the local variable, then it is returning only the separator sign!!!
    if BTAdminH->GET_HEADERINFO( 'HEADERINFO' ) is initial.
        BTAdminH->SET_HEADERINFO( attribute_path = 'HEADERINFO' value = lv_headerinfo ).
      endif.
    If I declare the local variable as one of the dropdown values, then it is getting populated also for set_headerinfo
    lv_headerinfo  =ls_ddlb1-value.
    So, the assigning is also working! But it is not working, when the local variable equals more than one value! I hope that I could explained it in the right way for you!!!!
    So. why is the value for set_headerinfo not the same as the one for the local variable! The local variable has the correct value after the concatination.
    Regards
    Enja

  • Assigning Javascript value to ABAP variables

    Hi Experts,
    I have written the HTML code mixed with Javascripts to create a table in the 'View' of a BSP Component.
    I was able to set the value of assign the value of ABAP parameters into HTML fields.
    This table has some input fields. I need to fetch the value of input parameters which has been entered by screen on an event which is present in Overview Page.
    I can calulate the value mentioned in input field but i am not able to assign the same value to ABAP parameter for further processing.
    I have already referred the following link but it did not work.
    Assign Javascript variable to Abap variable
    Please help me how i should i acheive it.
    Thanks In Advance,
    Rajeev Singh

    Hi,
    I am not understanding your problem and what you want due to description, but it seems to be very similar to a post which I answered very recently [here|How to return values from a BSP page to Javascript;.

  • Assigning return value of a javascript function to a variable

    hi.
    I have a javascript function which returns string.
    I wanna assing return value of that function to variable.
    for example:
    <script>
    funtion writeMe()
    var ex;
    ex="try"
    return ex;
    </script>
    Then in body of JSP page. I wanna do something like:
    <% String st;%>
    Now I wanna assign the value that returned from writeMe function ("try") to st string.like:
    <%st= writeMe();%>. but of course it doesn't work. how can I do that?

    thnx. but actually what I want to do is sending some values produced by javascript to a barchart object. is it impossible too?
    I mean my script function returns something like "100, 200, 300". I wanna pass that values to barchart. when I want to add aplet tag to jsp code instead of writing:
    <param name="s1_value" value="100,200,300">
    I want to write somethin like:
    <param name="s1_value" value="myscriptfunction()">
    is it possible in JSP? I saw an example like this in asp. it was like:
    <param name="sampleLabels" value="<%call func1()>">. but in JSP it seems like call tag doesn't work. Is it possible in JSP?

  • Error in ECA when assigning the value to structures

    Hi,
    There are errors in ECA when we execute our function modules.               
    Say a script has 3 interfaces (just an example)
    1) In the first command interface, there is a reference to a structure which has 3 nested structures within, in which the inner most 3rd structure is filled.   
    2) In 2nd interface, the inner most structure in null.                      
    3) In third interface, it is trying to initialize only those elements       
    that were already initialized and we get a empty node error for the 3rd 
    nested structure, when it tries to assign the value .
    Here is the error message that we encounter
    "The Node IT_TABLE_INPUT_DATA[1]-DATA[2]-COMPARE_OPERATOR of Object VS_EDIT_LIST Does Not Exist"*     
    Please help us in resolving this issue.
    Thanks,
    Asha
    Edited by: Asha Nagaraj on Jan 19, 2009 11:57 AM

    Hi,
    We tried to parameterize in the node level rather than Struture level, still the same problem persists, becoz
    1. In the first command interface the value has been assigned to internal node
    2. In the second command interface there is no value to assign, so null value is assigned to that node
    3. in the third command interface, when it tries to assign the value to the node which was assigned "null" in the previous interface, we are encountering that issue. it is not able to find that node
    Let me know if u need further info.
    Thanks,
    Asha

  • Assigning a Value to Text

    Okay so I am new to numbers and still trying to figure out a few things. My problem is I am trying to assign a value to text. It's nothing complicated I'm just trying to create a work schedule and I want a value of 1 (indicating 1 hour) assigned to each cell that has text in it.
    For instance John Doe is working in the office from 8-1. Each column has a heading that indicates that hour and each row is assigned to one employee. I'd like to highlight from 8-1 for John and insert the text "Office" in each cell and have it calculated at the end as 5 hours (1 for each cell that has the text office).
    Thanks for the help!
    Amsel

    As far as I know, the spreadsheet doen't behave this way.
    Highlighting a cell or a range of cells is not sufficient to trigger a function.
    In column D the formula is:
    =IF(C=TRUE,"Office","")
    in the footer cell of column D the formula is:
    =COUNTIF(D,"Office")
    Yvan KOENIG (from FRANCE vendredi 15 août 2008 15:03:41)

  • Assigning a value to a Constant

    I have OWB 10..0.1.31 on XP as Client installed.
    I want to assign a value to a constant; I did the following:
    Picking the Constant from the toolbox->assigned a name to the constant ->added an attribute to the outputgroup, the name is TODAY DATE; I then did an right click on the attribute, I expected, that a window will pop-up, which shows me, among others, the Expression-button; instead of that, the Constant-Editor pops-up again, so I am not able to assign the Constant a value.
    Does anybody does have an idea, where my mistake is ?
    Regards,
    Rüdiger

    Hi Rüdiger
    When you click on the attribute in the constant operator in the mapping canvas, the Attribute Properties should be refreshed in the mapping editor (it is a dockable panel in the mapping editor). In this panel there are a bunch of properties for the attribute (representing your constant) and one of them is the Expression. Click on the right hand column of the property inspector table next to Expression and the expression editor will appear....
    Cheers
    David

  • Assign a value to a global variable - form personalization

    Hi All,
    We have a requirement in which we want to display a message depending upon the out parameter of the procedure in form personalization.
    We are using 'Builtin' with the buitin type 'Execute a Procedure'.
    And the argument passed is :
    *='declare
    l_request_id Number;
    l_out_come VARCHAR2(10);
    begin
    apps.xx_sr_email_pkg1.xx_sr_email_p1
    ('''||${GLOBAL.XX_CUST_ACCOUNT_ID.VALUE}||''',
    '''||${GLOBAL.XX_INCIDENT_ID.VALUE}||''',
    '''||${GLOBAL.XX_EMAIL_TYPE.VALUE}||''',l_request_id);
    :GLOBAL.XX_REQUEST_ID := l_request_id;
    end'*
    But its not assigning the value of l_request_id to the gloabal variable XX_REQUEST_ID.
    Can you please help?
    Thanks

    I don't have a solution but a work around.
    What if you create a function that accepts the same in parameters and returns the message.
    And then you create an action of the type message and in the message you call the function such as
    = select xx_sr_email_pkg1.sr_email_f1 .... from dual
    Sandeep Gandhi

  • 3 Decimal place values for Amount Key Figure

    Hi Experts,
    I have created an ODS in BI 7.0. This has a amount key figure which is getting calculated by a routine. Now The value that is getting calculated is getting stored into the ODS with only two decimal places.
    For example if the value that is gettig calculates is 0.187 by the code, the values that is getting stored is 0.19.
    This is not related to Bex display. We need to store the values 0.187 in the system and not 0.19.
    The Amount key figure that we are using is of unit 0DOC_CURRENCY . In Additional properties,  'key figure with maximum precision' check box is ticked is . We have not defined any decimal places for the BEX Display.
    Kindly help us in this matter.

    Hi Saurabh,
                  If you wish to change the decimal precision for your 0DOC_CURRENCY... you can use t.code CUNI to change the number of decimal places.  But, then this would be global effect wherein whereever this infoobject is used it would be reflected with the changes you made in CUNI.  Also check if you have authorization to change this. 
    Regards,
    Kishore

  • Not allows to assign default value to input field using values in datastore

    Hi Masters,
    Consider that I have one input field in a form. I should assign default value to it. I should assign to it, the value which i have stored in a datastore. When i run the application, if i give default value as 123 ,then it is working fine i.e., it is showing 123 in the textfield in form , but if i give the default value as STORE@ProductId, then it is not displaying that value in the form.
    Please help me out.
    Thanks & Regards,
    Kaushik Sreeram

    Hi,
    i faced this problem and here's what i concluded:
    There's no way you can set default value for input field dynamicly, since the default value of input control is caculated only once (i think on initializing of the iView). The input control and the data store are initialized at the same time, STORE@productID is empty that time...
    If you don't need to recieve value through the input field you're trying to initialize, but just to display the value from the store - I suggest you try using another control - Expression Box. It's value is calculated continiously, just like the Label's, and you can refere to it later.
    Regards,
    Yulia

  • Assignment field value different from sort key

    Dear Forum,
    I notice in the customer line item, the assignment field value different from sort key.
    sort key for customer i maintain as doc number + fiscal year, but i notice some line item's assignment is not this information.
    for example, billing posting. some customer line item assignment is document + fiscal year but some are delivery number in assignment field. no changes made in log file.
    may i know why?
    thanks

    dear,
    as i did mention, customer master sort key no change and in the same customer line item, assignment field which carry delivery number also no change log.
    may i know where to see the subsitution? i do not think that is due to substitution.
    thanks

  • How to assign a value to ODI Variable using ODI Procedure

    Hi ,
    Is it possible to assign a value to a ODI Variable using ODI Procedure ?
    If it is possible how we can do that.
    BEGIN
    IF #Counter=1
    Then
    #Next_Increment:=#Counter+1;
    End if;
    END;
    In my example I have 2 ODI Variables #counter and #Next_increment.
    I am trying to assign VALUE TO A ODI VARIABLE #next_increment from another ODI Variable #counter.
    thanks
    prasanna

    Prasanna,
    I have a similar requirement where I need to assign values to ODI variables within a procedure. How do we make use of an ODI package to accomplish this ?
    Actually, I have a sequence of ODI steps, and there is a call to a procedure 'LOG ERROR' from every step which gets called in case error occurs in any step. I just need to identify from which step the error came.
    Please help.

  • About value type and key figure type

    Hello Gurus,
              please explan the different usage of about value type and key figure type.  what is the typical values for both infoobjects ?
    Many thanks,
    Frank

    Hi,
    0METYPE is a key figure-specific info object usually used to define semantics of the individual business key figures in BW (for example, actual, commitment, plan, target values).
    Its a bi specific field which is filled from extract structure field named MEASTYPE table COSR
    Refer to OSS Note 523742 for how it is filled and the following link for additiona information.
    http://help.sap.com/saphelp_nw70/helpdata/en/91/ddd52b9ef30645a338e28aae443807/frameset.htm
    Note 523742 - BCT-CO: BW key figure model and R/3 tables for trans. data
    This note provides information on the key figure model in the area of BW Content CO-OM. It also gives an overview of the DataSources for transaction data and the corresponding source tables and value fields in the R/3 System.
    The key figure model for currency fields in the area of CO-OM contents affects the following info object of type key figure:
    0AMOUNT Amount
    The key figure itself does have any business semantics.
    The semantics of the individual business key figures in BW (for example, actual, commitment, plan, target values) is determined using combinations of values for the following key figure-specific info objects (see also the account model in SEM-BPS, note 407563):
    0METYPE Key figure type
    0VTYPE Value type for reporting
    --> 0VTDETL Details of the value type
    --> 0VTSTAT Statistics indicator for the value type.
    For example, using transaction SE16, the possible characteristics of the values of this InfoObject can be taken from the above-mentioned master data tables in R/3.
    The business key figures on the InfoCubes of the standard BW content were defined as restricted key figures using this semantics of the key-figure-specific characteristics.
    The conversion of the R/3 transaction data in the BW key figure model is carried out in the extractors using the ROMI_GET_VTYPE_AND_DETAIL function module. It primarily happens using the specified conversion tables.
    The following dependencies exist for the source tables of the DataSources:
    COSP_VTYPE for COSS, COSP, COVP,
    COSB_VTYPE for COSB,
    BPXX_VTYPE for BPGE, BPJA, BPEE
    If an R/3 source record cannot be converted using these tables, it may not be extracted to BW.The application log of the R/3 DataSource transaction RSA3 contains entries for the unconverted values after the test run.(The log function for the CO-OM DataSources was considerably improved by the correction for note 523655).
    The application log for the extraction runs from BW can be evaluated using transaction SLG1 (Object: RSAP, object information: RSAP_INFO)
    Furthermore, the semantics of a key figure are still determined by the time characteristics and the following key-figure-specific info objects:
    0CURTYPE Currency type (for more information, see note 517909),
    0DB_CR_IND Debit/credit indicator (for more information, see note 065075),
    0VERSION CO version
    -Vikram

Maybe you are looking for

  • Unable to see the Solid DB in ATG9.4

    HI All, I have installed the ATG9.4 from the oracle site. At the time of installation I had select the ATG Web Commerce from the product pack and I had choose the Microsoft Windows (32-bit) and then I had select "Oracle ATG Web Commerce (9.4) Media P

  • Adobe Acrobat X & Scan to Brothers MFC printer?

    Does anyone know how to get the right drivers so Adobe Acrobat X can scan from Brother's MFC-8860 DN? Would appreciate some help.  An adobe technician put me on hold 73 minutes ago and hasn't come back.

  • How to display search results in a table or in different columns

    Hi              How can i display search results in multiple columns or in a table so that the user can sort the results based on a particular property displayed in the search results. Thanks in advance Regards, Vidya

  • Broadcasting a Message using PI

    Hi everyone,       I want to configure the following scenario. I would name the Scenario  as Broadcast The requirement is 1 Sender and Multiple Receivers (for Eg: 3 receivers) both would be file formats for example About Broadcast Broadcasting means

  • Problem in get streaming attachment in client side

    Dear friends, I am trying to create a client program which received a streaming attachment. i am using Jdeveloper-- Id ,Oc4j-- application server,Ubuntu---Os. i think i have a problem in--- Vector params = new Vector(); params.addElement(new Paramete