Displaying master data attribute of selected variable

Hi friends ,
            I have a requirement to display the master data attribute of the material number selected by the user from the drop down help . We are using Web Layouts for user interface.
  For solving this i have developed a BSP application which calls the FM - ZVARIABLE_GET_DETAILS ( given by SAP in the HOW to for variables of type exit ) and gets the value for the variable of Material number. For this value I run a select on master data tables and display the attributes on the BSP page.
It work fine when the user opens his web layout for the first time . However when the user changes the Material no fromt he dropdown  my BSP still displays the old material numbers attributes . In debugging I found that the FM -ZVARIABLE_GET_DETAILS  is still giving the old value of the variable.
Please let me know how can i get the correct runtime value assigned to the variable ? It seems the FM ZVARIABLE_GET_DETAILS  gives the value which was saved last by the user.
thanks in advance

Hi BSPIAN,
you may have missed a hint in the How-to paper.
The value of the variable l_buffer_call (TYPE boole-boole) should be switched from 'X' to ' ' in order to avoid buffering the values. Then your FM will be called each time the value of Material changes.
Hope it workes!
Regards
Steve

Similar Messages

  • Error while creating Data Source for master data attributes

    Hi BI Experts,
    Well its been some time for me that I have been part of Extraction in BI.I primarily handled reporting in my last assignments.
    I was trying extraction with flat files in SAP BI 7(new to sap bi 7 but very much familiar with BW3.5) but failed in the activity during master data attributes and text upload in infoobject (say IOSP_Mat).
    Here is the procedure that I did after creation of characteristic IOSP_Mat.I created a source system for flat file followed by data source for Master data attributes, i selected all the parameters correctly.i.e. csv file format, data seperator as   ,
    and other settings, now when i am trying to look at the proposed data in the next tab using Load example data.its not showing the desired result.The columns that I have maintained in Flat File is  MAT_NUMBER and MAT_NAME (with say 100 data in the file)
    same is the result when I am trying to load the text data too columns maintained are
    (LANGUAGE MAT_NUMBER Short Description)(same 100 data).
    now i used to rsa1old transaction  to upload the file using 3.5 version.i created info source for master data/text/hierarchies for  IOSP_Mat
    now when trying to upload it using info package for master and text data,I observe its(the data) not maintained in the characteristic IOSP_Mat.
    When I monitored ,I figured the data has not been even uploaded to the PSA level.
    Can you BI experts tell me the answer for this.
    Thanks,
    Srijith

    apologies to all of you for late response,
    was busy with some other activities.
    I don't remember the exact message,but I remember it was not loaded to even the PSA level.I will try it again and post the exact message.
    Thanks again for your quick response.
    Once again sorry to all of you for my late response
    Thanks,
    Sri

  • Force read/refresh of master data attributes on query

    Hi there,
    We're having troubles with one input ready query that changes and attribute value (KYF) of one characteristic. That works fines and whe can save changed data on the infoprovider via DTP. Problem is when data is saved we need to refresh query as whe have both values on screen (original value as char attribute on rows) new value as input ready KYF, so after save we would like to see that both values are the same.
    Is there any way of force query no to read from caché as whe are changing master data attributes. I read something about IF_RSMD_RS_ACCESS class that can be implemented on Master Data access and force it there but sounds really hard so if this is the way can some of you guys give us some help.
    I hope I make myself clear on the explanation...
    Thanks in advance,
    Regards
    Carlos

    Dear All,
    The recent days that I tried working on changing master data attributes through BPS didn't work out.The Primary reasons was  that some of the attributes that I needed to change were not present in the transaction or planning cubes and the characteristics that are not part of your cube on which the planning area is based then you can not do changes on them.
    This is my undestanding .Please correct me if I am wrong.
    Besides , I was also thinking if we can do the same through portal.i.e retriving the master data infoobject ( based on the value seleceted for that infoobject by the user  )  and its attributes in the portal , edit them and save them back so that the updated values goes back to BW master data infoobject data base tables and updates the value.
    Eg . I have Natural Account master data infoobject in the BW with attributes fucntional area and expense center.Based on the user selection of any values for the Natural account lets say  01110 , then for 01110 natural account the portal should display the correspoding attributes values of fucntional area and expense center.Lets take this values as 10 , 20 respectively for fucntional area and expense center . What I want to do now is to change these attrbute values to 30 and 40  and I would like to save it back as the changed attribute values for that natural account for 01110 with new attribute values 30 & 40 respectively for fucntional area and expense center .
    Is this possible through portal and BW?
    Any idea on this would be appriciated.
    Regards,
    Ankit
    Edited by: Ankit Bhandari on Nov 21, 2008 12:21 PM
    Edited by: Ankit Bhandari on Nov 21, 2008 12:32 PM

  • Updating Master data attributes through BPS

    Hi All,
    Can we modify master data attributes via BPS? Like we have some Attribute characteristics for 'vendor' say 'class(good/bad/ok)' and we want that to be updated via BPS (not from R/3) then how it can be achived?
    Please help by explaining this.

    Hi,
    Create two variables one for vendor and other for status (variable of type attribute), give both the variables in the folder. User will select the vendor and the attribute status value in selections. Create an exit planning function to update the attribute.
    Import parameters
    i_area type upc_y_area
    i_variable type upc_y_variable
    i_chanm type upc_y_chanm
    Export parameters
    eto_charsel type upc_yto_charsel
    tables
    i_t_attributes structure rsd_s_iobjnm optional
    i_t_data structure rsndi_s_chavl optional
    In the code, Read the above two variable values selected by user. Then delete the existing entry of MD by calling the function RSNDI_MD_DELETE.
    Now update the master data with the new attribute value selected by the user in the variable by calling the function
    RSNDI_MD_ATTRIBUTES_UPDATE. After this activate the master data by calling RSDMD_MD_ACTIVATE.
    Hope this solves the issue.
    Bindu

  • Master Data Attributes issue in BEx

    Hi Everyone,
                            I have loaded Master Data Attributes and Texts for 0customer. 0Customer has one Display attribute. I add this into the Bex Query Designer.But the data for the display Attribute(SORT1) is not displayed in the Analyzer. I have maintained everything correctly. The Baclkend BI system has Data for the display attribute.
    Do we require to do any additional settings in Query Designer for the dat ato be shown when we drag the display attribute into Query Designer Panel. I have maintained the Display settings correctly in Query Designer
    Please Advise.
    Regards,
    Samir

    Hi,
    are you able to See no data in Field of Attribute(SORT1) or  are you not able to see field Attribute(SORT1) in report?
    if you are not able to see field Attribute(SORT1) in report, right click on 0Customer, select property and go to attribute tab. select Attribute(SORT1)  from left to right. click ok. you will get field Attribute(SORT1) in report.
    you are not able to See no data in Field of Attribute(SORT1). activate master data after maintaning master data and chech value is availble in attribute (SORT1)

  • Maintain key figure in master data attribute

    Hi,
    For some special requirement I have maintained  key figure in master data attribute but I am unable to use key figure attribute in infocube.  Please help.
    Thanks & regards,
    Goutam

    Hi,
    See in the below URL...under "Customer Exit Variables in BW/BI Reports", you can have all examples about Cust Exits and Replacement Path.
    http://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
    Thanks
    Reddy

  • Webi error for master data attributes if universe is on top of BI query

    Hi All,
    We are using BO XI R2 SP5 integrated with SAP BI 7.0.
    We have built a universe on top of a BI query and when we try to build a web intelligence report that includes master data attributes like Customer City,Customer Region etc BO throws the following error:
    Error 1:
    Database error: [SOFA Driver] : Error getting members for hierarchy (level=ZFI_I03/ZFI_I03_Q0003, member=[ZFI_I03___F172], opcode=[ZFI_I03___F172]) . System error in program CL_RSDM_READ_MASTER_DATA and form VALUEREAD-02- (see long text). Contact your Business Objects administrator or database supplier for more information. (Error: WIS 10901)
    For a universe built on a different BI query with master data attributes mentioned above,a different error occuring.
    Error 2:
    Your Web Intelligence session has timed out. Log out and log in again to InfoView. (Error: WIJ 77778)
    We have tried:
    1) We have executed the function module BAPI_MDPROVIDER_GET_DIMENSIONS with necessary inputs query/cube and we got correct output, like members, optional properties, selected properties and restrictions.But, still our problem remains same.
    2) Transaction u201CRSRTu201D and executed the query,transaction RSRV to check SID-tables and the related masterdata.
    Above steps we performed in response to SAP tickets 541052 / 2009,541131 / 2009 based on logs generated,but still the error persists.
    What is working:
    If a universe is built on top af an infocube directly, then there is no problem with master data attributes in webi report.
    Please let us know if you need more details to help us resolve this issue.

    Hi Naresh,
    based on the MDX you can identify that those are navigational attributes and thats why the issue is not happening when talking to the cube directly because when you connect to the cube directly the navigational attributes are not available.
    Take a look at note : 996197
    not sure if it will solve the problem because there are other notes when you search for the error message but this was most of the times the one that resolved the issue.
    the issue is in the BAPI functions
    Ingo

  • Error while loading to Master data attribute 0product

    Hi experts,
    While loading the data from 0material to 0product master data attribute i am getting a error ' 0MATERIAL : Data record 2421 (''300000072 '):Version '300000072 ' is not valid. I request u all to help me to solve this error.
    Diagnosis
        Data record 2421 & with the key '300000072 &' is invalid in value
        '300000072 &' of the attribute/characteristic 0MATERIAL &.
    System Response
        The system has recognized that the value mentioned above is invalid, and
        has processed this general error message. A subsequent message may give
        you more information on the error. This message refers to the same
        value, even though it does not state this explicitly.
    Procedure
        If this message appears during a data load, maintain the attribute in
        the PSA maintenance screens. If this message appears in the master data
        maintenance screens, leave the transaction and call it again. This
        allows you to maintain your master data.
    Please let me know what could be the problem....
    Regards,
    Prashanth
    Edited by: Prashanth Shetty on Jul 16, 2008 7:42 AM

    Hi,
       The issue is due to errorneous record.
    Delete the request in Master data and Try the following.
    1) Goto PSA --> filter the Status (Red or Green)
    Select the Red records and correct the data in which error is throwm.
    After correcting the data, save and Right click PSA and give Start update immediately.
    2) Load via Infopackage only to PSA and later update from PSA and check.
    Any one of the above 2 methods will solve the issue.
    Regards,
    Balaji V

  • 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.

  • 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.

  • Ignore duplicate records for master data attributes

    dear  experts ,
                   how & where can i  enable "ignore duplicate records" when i am running my DTP to load data
                     to master data attributes.

    Hi Raj
    Suppose you are loading master data to InfoObject and in PSA you have more than one records for Key.
    Let's assume you are loading some attributes of Document NUmber ( 0DOC_NUMBER) and in PSA you have multiple records for same document number. In PSA this is not a problem, as Key for PSA table is technical key and which is different for every record in PSA. But this is a problem for InfoObject attribute table as more than  one records for primary key ( here 0DOC_NUMBER) will create Primary Key consraints in database.
    This issue can be easily avoided by selecting "Handle Duplicate Records" in DTP . You will find this option under *update" tab of DTP.
    Regards
    Anindya

  • Cant fully load updated data to Master data attribute

    Hi BW expert,
    I meet an issue here, I am not able to load updated data to master data attribute. My loading selection is based on employee number range.
    e.g employee number 00001 to 10000
    However the data is successfully loaded to master data but lot of the attribute data are not updated. e.g 056, 057, 098, 0100.
    I checked in PSA, there is no data updated for the attribute.
    I checked in RSA3 in R/3, there are attribute data extracted.
    Please advice, why attribute data is not updated when I load it in a range number. The attribute only work when I load one employee number.
    Thanks.
    regards,
    Wesley Koo

    check this:
    Re: Error while running InfoPackage
    Master data/text of characteristic 0MATERIAL already deleted
    Master data/text of characteristic ZXVY already deleted
    Hope it helps..

  • Error when reading master data attribute in transformation

    Hi All,
    I have 0employee in source DSO and it is mapped to Cube transformation correctly.. There are other objects in cube which are the attribute of 0employee master... I map 0employee to these objects and in transformation i select read from master data then it throws up an error...
    bold S:RSTRAN:556 39 0EMPLGROUP 01 Standard Group 0EMPLOYEE
    Dont know why this error is popping up ...
    Any pointers on this...
    Thanks & Regards,
    Anup
    Edited by: Anup Chaudhari on Feb 20, 2012 1:29 PM
    Edited by: Anup Chaudhari on Feb 20, 2012 1:30 PM

    Hi,
    This is a strange error that everybody faces but you can try this way.
    1) select the target object Employee attribute in the transformation
    2) assign the source field in the transformation. the source field should be 0EMPID
    3) In this source field there is a coulmn called IOASSIGNMENT. Type 0EMPID at that point
    4) change the rule type from direct assignment to master data attribute. Now you can select the field 0EMPID.
    Regards,
    Siva

  • Missing authorization check to display master data error..

    Hi,
    We are in SRM7.0.
    After adding content in my shopping cart, I am trying to change the Account Assignment in the Item Details from Network to Cost Center or GL Account.
    Under Item Overview, after changing the Account Assignment to Cost Center, I go to "Assign Number" to add a Cost center..On clicking the matchcode search box,  I get selection entries like Cost Center, Controlling area etc..If I click on the Search box without keying anything, I get a "Missing authorization check to display master data error".
    I get the same error, when I try to select Assets under Account Assignment area and use search under Assign number. I dont get any errors on searching networks.
    Am we missing any authorization check in the backend ?
    Regards,
    Rajan.K

    Hello Rajan,
    You could use transaction ST01 in SRM to perform some 'authorisation' trace.
    It might give you some pointers to the issue.
    Regards,
    Franz

  • Transofmration :  Master data attribute

    Hello,
    I am on NW 2004S BI and ECC 6.0.
    In the transformation rule types, i can not find "Master data attribute of" .
    If this is the case in this version,in the infocube, how to load the data for a particular IO, which is an attribute of another IO ? 
    In the older versions, in the update rules, i can select either source, constant, master data attribute of,routine etc ..
    Any advice? 
    Regards,
    Ravi

    Hi Ravi,
    We have "Master Data Attribute" as a Rule type of Transformation in NW2004S BI also.
    Where in the previous version BW3.x you have option to create the Master Data Read Rule only between
    DataTarget to DataTarget
    or
    Infosource to DataTarget.
    But, The New Enhancement of NW2004S BI is, Even you can read the Master Data Attribute in Transformation have builded between DataTarget (InfoCube or ODS) and DataSource also.
    How to assign the InfoObject for Master Data Read?
    Select Target Field.
    Select the source InfoObject from where you want to read Master Data.
    When you have to choose the "Master Data Read" as the Rule Type. Then You will get the entry block next to Rule Type.
    Click F4, then it will give the Attribute automatically.
    Hope this helps you.
    Regards,
    Vamsi

Maybe you are looking for