How to use Master Data Attribute of in Update Rule's Formula

Hi experts.
In update rule, there is an option to use <b>Master Data Attribute of</b>. However, due to user requirement, I need to use that in <b>Formula</b> instead.
<b>Field to update:</b>
Profit Center
<b>Logic:</b>
If Cost Center is empty
Then Profit Center
Else
Master Data Attribute of Cost Center
I use the following formula at the moment but it is not 100% correct.
<b>IF( Cost Center = '', Profit Center, Cost Center )</b>
Appreciate if anyone could help me out.
Thanks!

Hi,
The easier thing to do will be to use a Update Routine.
Logic will be as follows :-
If Cost center iss initial.
Result = Profit Center
else.
result = Cost center.
endif.
Regards
SM

Similar Messages

  • Master data attributes declaration in update rules

    Hi Everyone,
    can any one tell me, How do we use attributes of master data in update rules..need syntax for using attributes of customer.... like comm_structure-/bic/......etc
    post code is attribute of customer, How do I use it in update rule
    thanks
    Siri

    Hi!
    if you have customer as attribute in your Infosource and Postcode as acharecteristic in your data target then you just need to select ther 3rd type of update rule "MAster data attribute of" and specifxy 0Cusotomer beside
    with regards
    ashwin

  • How to  extract  master data  attribute from  r/3 to bw give steps details

    how to  extract  master data  attribute from  r/3 to bw give steps details screenshots

    Hi
    Go through the below process to extract Master Data Attribute from R/3
    Hi,
    Maintaining Generic DataSources
    Use
    Regardless of the application, you can create and maintain generic DataSources for transaction data, master data attributes or texts from any transparent table, database view or SAP Query InfoSet, or using a function module. This allows you to extract data generically.
    Procedure
    Creating Generic DataSources
    1. Select the DataSource type and specify a technical name.
    2. Choose Create.
    The screen for creating a generic DataSource appears.
    3. Choose the application component to which you want to assign the DataSource.
    4. Enter the descriptive texts. You can choose any text.
    5. Select the datasets from which you want to fill the generic DataSource.
    a. Choose Extraction from View if you want to extract data from a transparent table or a database view. Enter the name of the table or the database view.
    After you generate the DataSource, you have a DataSource with an extraction structure that corresponds to the database view or transparent table.
    For more information about creating and maintaining database views and tables, see the ABAP Dictionary Documentation.
    b. Choose Extraction from Query if you want to use a SAP Query InfoSet as the data source. Select the required InfoSet from the InfoSet catalog.
    Notes on Extraction Using SAP Query
    After you generate the DataSource, you have a DataSource with an extraction structure that corresponds to the InfoSet.
    For more information about maintaining the InfoSet, see the System Administration documentation.
    c. Choose Extraction Using FM if you want to extract data using a function module. Enter the function module and extraction structure.
    The data must be transferred by the function module in an interface table E_T_DATA.
    Interface Description and Extraction Process
    For information about the function library, see the ABAP Workbench: Tools documentation.
    d. With texts you also have the option of extracting from fixed values for domains.
    6. Maintain the settings for delta transfer, as required.
    7. Choose Save.
    When performing extraction, note SAP Query: Assigning to a User Group.
    Note when extracting from a transparent table or view:
    If the extraction structure contains a key figure field that references a unit of measure or a currency unit field, this unit field has to be included in the same extraction structure as the key figure field.
    A screen appears on which you can edit the fields of the extraction structure.
    8. Edit the DataSource:
    &#9675; Selection
    When you schedule a data request in the BI scheduler, you can enter the selection criteria for the data transfer. For example, you can determine that data requests are only to apply to data from the previous month.
    If you set the Selection indicator for a field within the extraction structure, the data for this field is transferred in correspondence with the selection criteria in the scheduler.
    &#9675; Hide field
    You set this indicator to exclude an extraction structure field from the data transfer. The field is no longer available in BI when you set the transfer rules or generate the transfer structure.
    &#9675; Inversion
    Reverse postings are possible for customer-defined key figures. Therefore inversion is only active for certain transaction data DataSources. These include DataSources that have a field that is marked as an inversion field, for example, the update mode field in DataSource 0FI_AP_3. If this field has a value, the data records are interpreted as reverse records in BI.
    If you want to carry out a reverse posting for a customer-defined field (key figure), set the Inversion indicator. The value of the key figure is transferred to BI in inverted form (multiplied by –1).
    &#9675; Field only known in exit
    You can enhance data by extending the extraction structure for a DataSource by adding fields in append structures.
    The Field Only Known in Exit indicator is set for the fields of an append structure; by default these fields are not passed to the extractor from the field list and selection table.
    Deselect the Field Only Known in Exit indicator to enable the Service API to pass on the append structure field to the extractor together with the fields of the delivered extract structures in the field list and in the selection table.
    9. Choose DataSource ® Generate.
    The DataSource is saved in the source system.
    Maintaining Generic DataSources
    &#9679; Change DataSource
    To change a generic DataSource, in the initial screen of DataSource maintenance, enter the name of the DataSource and choose Change.
    You can change the assignment of a DataSource to an application component or change the texts of a DataSource. Double-click on the name of the table, view, InfoSet or extraction structure to get to the appropriate maintenance screen. Here you make the changes to add new fields. You can also completely swap transparent tables and database views, though this is not possible with InfoSets. Return to DataSource maintenance and choose Create. The screen for editing a DataSource appears. To save the DataSource in the SAP source system, choose DataSource ® Generate.
    If you want to test extraction in the source system independently of a BI system, choose DataSource ® Test Extraction.
    &#9679; Delta DataSource
    On the Change Generic DataSource screen, you can delete any DataSources that are no longer relevant. If you are extracting data from an InfoSet, delete the corresponding query. If you want to delete a DataSource, make sure it is not connected to a BI system.
    NR

  • Master data attributes with direct update...its very urgent

    Hi all,
    Could anyone tell me how to laod the master data attributes with direct update in the infopackge..
    provide steps to create master data attributes and how to load..
    Thanks,
    Manjula

    Hi Manjula,
    Flexible Uploading
    Transaction code RSA1—LEAD YOU TO MODELLING
    1. Creation of Info Objects
    • In left panel select info object
    • Create info area
    • Create info object catalog ( characteristics & Key figures ) by right clicking the created info area
    • Create new characteristics and key figures under respective catalogs according to the project requirement
    • Create required info objects and Activate.
    2. Creation of Data Source
    • In the left panel select data sources
    • Create application component(AC)
    • Right click AC and create datasource
    • Specify data source name, source system, and data type ( Transaction data )
    • In general tab give short, medium, and long description.
    • In extraction tab specify file path, header rows to be ignored, data format(csv) and data separator( , )
    • In proposal tab load example data and verify it.
    • In field tab you can you can give the technical name of info objects in the template and you not have to map during the transformation the server will automatically map accordingly. If you are not mapping in this field tab you have to manually map during the transformation in Info providers.
    • Activate data source and read preview data under preview tab.
    • Create info package by right clicking data source and in schedule tab click star to load data to PSA.( make sure to close the flat file during loading )
    3. Creation of data targets
    • In left panel select info provider
    • Select created info area and right click to create ODS( Data store object ) or Cube.
    • Specify name fro the ODS or cube and click create
    • From the template window select the required characteristics and key figures and drag and drop it into the DATA FIELD and KEY FIELDS
    • Click Activate.
    • Right click on ODS or Cube and select create transformation.
    • In source of transformation , select object type( data source) and specify its name and source system Note: Source system will be a temporary folder or package into which data is getting stored
    • Activate created transformation
    • Create Data transfer process (DTP) by right clicking the master data attributes
    • In extraction tab specify extraction mode ( full)
    • In update tab specify error handling ( request green)
    • Activate DTP and in execute tab click execute button to load data in data targets.
    4. Monitor
    Right Click data targets and select manage and in contents tab select contents to view the loaded data. There are two tables in ODS new table and active table to load data from new table to active table you have to activate after selecting the loaded data . Alternatively monitor icon can be used
    honor with points if this helps,
    Sudhakar

  • Using master data attribute in BEx Query u0096 formula

    Hello,
    I want to use the master data attribute (Eg. Customer master 0CUSTOMER, 0ALTITUDE (Geo Location Height)) in query formula calculation. How do I do this?
    Please help me.
    Thank you
    Subbu

    Hi Subramaniam,
    You can definately use the master data attributes in the formula calculation if that is a numeric value (logically u can use a characteristic in formula).
    for e.g Net weight from 0MATERIAL can be used through formula variable in formula but Color is a characteristic and there is no point in using that in a formula.

  • Can't assign an infoobject using master data attribute of

    I've added in 0purch_group to my cube and I want to assign it using the master data attribute selection but it doesn't bring back anything to choose from.  the attribute is 0mat_plant_purch_group and I've made it navigational.  any ideas?

    So do you say that you dont have mat_plant included in ur cube.
    Then what are trying to get into the field with out a source field. How do you want to fill the value if you dont have mat_plant - i mean which of 100 values of matplant and attribute values should be populated.

  • Using "Master Data Attribute of" in the Update Rule

    Hi,
    In my update rule of, i want to replace the master data attribute of my characteristic instead of using its source characteristic. For example. <i>InfoObject ZSTORECODE</i> has an attribute <i>ZSTORENAME</i>. My objective is to use the Store Name instead of a Store Code.
    I initially thought of using <i>"Master Data Attribute of"</i> in the update rules. However, I always end of with having an error of <i>"No Values."
    </i>
    Hope you guys can help me with this!
    Thanks,
    Raomon

    DATA: V_NSTC_SN2,
    V_KFC_COSTC LIKE RSGENERAL-CHAVL.
    V_KFC_COSTC = DATA_PACKAGE-KFC_COSTC.
    CALL FUNCTION 'RSAU_READ_MASTER_DATA'
        EXPORTING
          I_IOBJNM                      = 'KFC_COSTC'
          I_CHAVL                       = V_KFC_COSTC
    *   I_T_CHAVL                     =
    *   I_DATE                        =
    *   I_FLG_WHOLE_TABLE             =
          I_ATTRNM                      = 'NSTC_SN2'
      IMPORTING
    *   E_STRUCTURE                   =
    *   E_TABLE                       =
          E_ATTRVAL                     = V_NSTC_SN2
        EXCEPTIONS
          READ_ERROR                    = 1
          NO_SUCH_ATTRIBUTE             = 2
          WRONG_IMPORT_PARAMETERS       = 3
          CHAVL_NOT_FOUND               = 4
          OTHERS                        = 5
    RESULT = V_NSTC_SN2.
    Another Example Code:
    index on infoObject

  • Using Master data Attributes

    Hi All,
    How do I use the attributes of master data in reporting if they are defiend as Keyfigures?
    Appreciate your Help in Advance.
    Regards,
    Harika

    Hi
    I think I am not much Clear with my question.Let me explain with an example.
    I have 0mat_plant for which I have enhanced a zfield (Zverpr). Now that I want this field to be available for reporting.
    I want Mat_Plant Zverpr in the report to be displayed.
    HArika.

  • Using Master Data attribute and compounded IO in Transformation

    Good day
    I have the following issue in a transformation.
    I want to u201CRead Master Datau201D from IO u2018ZSIDCONTRu2019 to display data for an attribute u201CContract Durationu201D (Key Figure).
    IO u2018ZSIDVEHCNu2019 is also compounded to master data IO u2018ZSIDCONTRu2019.
    The Source field of Rule = field u201CID_CONTACTu201D
    In my transformation my Rule Type = Read Master Data and the u201CFrom Attrib. ofu201D field = ZSIDCONTR and the IO Assignment is also = u2018ZSIDCONTRu2019.
    If I test this rule then the following error message is displayed:
    Characteristic ZSIDVEHCN compounded to ZSIDCONTR is missing in
    transformation source   
    How do I add the compounded characteristic ZSIDVEHCN to the transformation rule?
    Thanks in advance.
    Cj

    Hi,
    You should add the InfoObject ZSIDVEHCN to your target and define a mapping rule to fill it up from your datasource.
    Only when both objects are available in your mapping you will be able to perform a master data selection (since they are compounded).
    If this object is not available in your source, you should define a mapping rule to fill it up (constant? ...)
    Hope this helps.
    Best regards,
    Michel Hoefkens

  • How to maintain master data attribute of 0WS_QUEST & 0WS_QSTNNR SRM Web Sur

    Hello All,
    We are implementing BI reporting based on SRM Adhoc analysis.
    Info-object 0WS_QUEST & 0WS_QSTNNR has both Master data & Text.
    I could only find the Text data source in system for 0WS_QUEST (0WS_QUEST_TEXT) & for 0WS_QSTNNR (0WS_QSTNNR_TEXT).
    Is the Master data for 0WS_QUEST & 0WS_QSTNNR  is maintained via ETL ? If so, what data source need to be used ?
    Or Master data for 0WS_QUEST & 0WS_QSTNNR is maintained with in BW via some special transaction ? If so, what is the T Code to be used ?
    For Example - Like for 0SR_VE_GID1 - Master data maintenace via T Code - SRM_VE_GROUPING & Text via ETL (Data source 0SRM_VEGRID_TEXT)
    Appretiate your input.
    Thank you very much in advance.
    Regards,
    Viresh

    Dear All,
    The text flow for 0WS_QUEST & 0WS_QSTNNR is sufficient to make available Criteria from source system questionnaire in BW.
    After the text load (even it does not generate SID) we can already use Tcode SRM_VE_GROUPING & SRM_VE_WEIGHTING for customization of groupping and weighting in BW.
    Regards,
    Viresh

  • Can routine replace "master data attribute of" update rule for performance?

    Hi all,
    We are working on CRM-BW data modeling, We have to look up agent master data for agent level and position for each transaction data. So now we are using "Master data attribute of" update rule. Can we use routine instead of "Master data Attribute of" ? Will it improve the loading performance? Since we have to load 1 lack transaction records , where as we have 20,000 agent details in agent master data.My understanding is, for each record in data package the system has to go to master data table and bring the agent details & store in cubes. Say one agent created 10 transactions, then this option "master data attribute of" will read the agent master data 10 times even though we are going to pull same details for all 10 transactions from master data. if we use routine, we can pull the agent details& storing in internal table removing all duplicates and in update routine we can read the internal table.
    Will this way improve performance?
    let me know if you need further info?
    Thanks in advance.
    Arun Thangaraj

    Hi,
    your thinking is absolutely right!
    I don't recommend to use the standard attribute derivation since it will perform a SELECT to the database for EACH record.
    Better implement a sorted table in your start routine; fill it with SELECT <fields> FROM <master_data_table> FOR ALL ENTRIES OF datapak WHERE OBJVERS = 'A' etc...
    In your routine perform a READ itab ... BINARY SEARCH.... I believe that you won't be able to go faster...
    hope this helps...
    Olivier.

  • How to convert  unit of measures in bex on master data attribute values

    Hi All,
    i need to convert the unit of measure in Masterdata Attribute values... that means ) ' 0grooss_wt'. this is attribute as a keyfigure of ' 0material' .. this ' 0gross_wt' values has to convert in KGs. at Present ' 0gross_wt' values are in KG and Grams...
    I can change these values in update rules by writting Routine.. But I need to convert it in KGS at BEX Query Designer Level..
    I need calculate like this
    quantity sold * Gross Weight.
    here Gross Weight is the formula variable which replacing the values of gross weight...
    i tried by creating conversion types in RSUOM t-code. but it works on keyfigures of infocube.. not on attribute values of master data...
    is there procedure in formula variable it self to convert unit of measure before replacing the values.....
    or is there any other  solution to  this Problem...
    Thanks in advance..
    regards
    ravi.p

    Hi
    Have you tried to create a variable for ths kf with exit. I thnk it is possible here
    Assign points if useful
    Regards
    N Ganesh

  • How to change specified hierachy node to master data attribute automatic?

    Dear BW experts:
             How to change specified hierachy node to master data attribute automatically? I have a retail business: I have a fixed material group hierachy in R3 Retail ,Now I will extract the material group hierachy ,my goal is that the specified material group hierachy node as dimension in query ,not show hierachy level,So I need change specified material group hierachy node to material group's attribute.
    Anybody solve the requests?
            Thank you for your help in advance !

    If I understand your requirement correctly, you need to have a specific Material Group Hierarchy level (Say Level 2) to be an attribute of Material Group. Usually, this level represents a Brand or Segment, or something with specific meaning.
    If this is correct, here are the things you need to do:
    1) Create an InfoOnject for this specific attribute representing the specified hierarchy level
    2) Add this InfoObject to Material Group as an navigational attribute
    3) Select this navigational attribute in your InfoProvider
    4) Create a transformation routine for this navigational attribute in Material Group Transformation so that the specified hierarchy level for Material Group will be found and populated. The detail of this routine will depend on your specific requirement. Also, you have to make sure Material Group Hierarchy is updated before Material Group attributes are loaded. If you are not family with ABAP, please ask an ABAPer to help you for the Transformation Routine.
    5) Include this navigational attribute in your query along with other required InfoObjects.
    Hope this help and good luck!
    Bill

  • Map My Update Rule from a Master Data Attribute

    Hello experts,
    I haven't tried this scenario yet, hope you can help me, the Issue is this
    I have 2 InfoObjects ZPSCHRCHY and 0PROFIT_CTR from InfoCube WBS cost and allocations I want both the InfoObjects to be mapped to 0PROFIT_CTR attribute of 0WBS_ELEMT master data object, I have tried the Master Data Attribute but only 0PROFIT_CTR is an attribute of the Master Data.how can I mapped ZPSCHRCHY and 0PROFIT_CTR to 0PROFIT_CTR?, Is creating a start routine for it must be used? Thank you very much
    Regards and Thanks
    Chris

    PROGRAM UPDATE_ROUTINE.
    $$ begin of global - insert your declaration only below this line  -
    TYPES:
    BEGIN OF r_MD_WBS_ELEMENT,
       WBS_ELEMT  like /BI0/PWBS_ELEMT-WBS_ELEMT,
       OBJVERS    like /BI0/PWBS_ELEMT-OBJVERS,
       PROFIT_CTR like /BI0/PWBS_ELEMT-PROFIT_CTR,
    END of r_MD_WBS_ELEMENT.
    DATA: t_MD_WBS_ELEMENT  TYPE STANDARD TABLE OF r_MD_WBS_ELEMENT,
           wa_MD_WBS_ELEMENT TYPE r_MD_WBS_ELEMENT.
    $$ 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/CS8ZPSG030.
    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
      REFRESH: t_MD_WBS_ELEMENT.
          SELECT WBS_ELEMT
                 OBJVERS
                 PROFIT_CTR
          INTO TABLE t_MD_WBS_ELEMENT
          FROM /BI0/PWBS_ELEMT
       FOR ALL ENTRIES IN DATA_PACKAGE
         WHERE WBS_ELEMT   = DATA_PACKAGE-WBS_ELEMT.
        IF sy-subrc EQ 0.
        Do nothing
        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.

  • Modelling 1:N relationships using Master Data

    Hello All,
    I was trying to store the Bill of Material data in BW and was confused as to how model this as master data. The bill of material is basically a BOM number with a number of components in it. i.e. a 1:N relationship between the BOM and the components.
    I was thinking of modelling this by compounding the Component (which has quite a number of attributes) with the BOM.
    But practically the scenario is such that, today the BOM contains certain components, but someone can delete a component later in R3. I want this information to be reflected as well in BW, but i suppose BW will not take care of this in the above compounding technique.
    What is the best way to model such a scenario in BW. Is there a trick or is the only way to do this is do some checking in the update routines and then delete from the master data tables.
    Please let me know your opinions.
    Best Regards,
    Dabre

    Hello All,
    Does anyone have a similar kind of experience in modelling a 1:N kind of relationship using master data ? And where the N values could change or be deleted ?
    Please share your experiences.
    Best Regards,
    Dabre

Maybe you are looking for

  • Can't Upgrade from OS 9.2.2 to OS X 10.3 - Apple Screen with "Beach Ball"

    Hey, I am trying to upgrade from OS 9.2.2 to OS X 10.3 Panther. So I purchase Mac OS X 10.3 Panther v.10.3.2 Retail, from eBay, used. I get my software in, and all three install discs are there, including the Xcode disc. So I throw 'Install Disc 1' i

  • Read data from 3 tables in sender JDBC Adapter

    Hi All, I doing a scenario JDBC to IDOC I need to read 3 tables of ORACLE.  how JDBC sender adapter will retrieve data from more than 3 ORACLE tables and also i need to update control status fields of these tables. Please provide me the syntax for th

  • Download error -5000

    I purchased music but receive repeated download errors (-5000).  I've checked and updated all "permissions" but still cannot download the music for which I've already been charged!  Help please!

  • IPod Classic, component video, and 480i

    I have a Sanyo 27" CRT TV with component video in, but it only supports 480i. My [Sony] DVD player and Nintendo Wii work perfectly via the component input. I just tried connecting an iPod Classic to the TV with the Apple Component Video Cable. I have

  • URGENT. I keep getting error update 27 while trying to update my iphone 5s to 8.3!!!!

    Okay first things first I already tried to update it over the air but then it got into a bootloop which means it won't go past the apple logo screen when i try to turn it on. So i got it into recovery mode and i've been given two options: to update i