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
Similar Messages
-
Update Master Data Attributes yellow in DTP
Hi All,
After loading the master data DTP, the request becomes greeen but the "Update Master Data Attributes" step is still yellow. Let me know how to overocome this error
Thanks,
SathyaHi,
This is a master data full load and it updates more than 1 lakh records. Technically the Overall and technical status of my DTP request becomes Green but when i go to the details tab and drill down the data package the "Update Master Data Attributes" still remains yellow so i dont think my load will update the attributes for my info object successfully.
Is there a solution to overcome or did anyone face this similar issue?
Thanks
Sathya -
Is it possible to update master data attributes from an ODS?
HELLO ALL,
we have records coming into our ods like the following:
costcenter1, subcostcentera, subcostcenterb, manager responsible, costs (kf).
This is a custom flat file load from a legacy system.
We would like to just create an update rule from the ODS to the cost center mater data characteristic attributes.
Is this possible?
thank youYes its possible to update the master data attributes from an ODS.
Define your master data characteristics as a infoprovider.
Create a update rule on Characteristic with ODS as a source and do general mapping.
For step by step, pls refer..
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/library/business-intelligence/g-i/how%20to%20implement%20flexible%20master%20data%20staging -
Master Data Save Through BPS - BI and BPS Related
Hi,
I have 2 questions regarding BI and BPS working together.
1.Does all infoobject used in BPS layout have to be master data enabled to avoid BPS created master data? By this I mean, if an infoobject doesn't have 'with master data' check box enabled, and has only'with text' enabled, the new masters created in BPS gets saved to the infoobject? Is this how it is expected to behave?Is there a work around to avoid creating master data from BPS?
2.We have a multiprovider for actuals and budget. Budget comes from BPS which has only cal quarter. But the budget and actuals cube have year and quarter. In the actuals we are deriving quarter and year from trnasaction date in update rule. But for budget, we have only quarter being entered by user. Is there a way to derive the year and store in budget infocube so that reports derived out of the multiprovider can show year correctly for both budget and actuals?
Thanks
Suja>1. BPS cannot create master data at all and that setting is irrelevant fo bps. Users can only forecast on existing master data.
This is wrong. If your infoobject doesnt have master data, then values inputted in layouts will be written into the infoobject.
>1.Does all infoobject used in BPS layout have to be master data enabled to avoid BPS created master data?
By this I mean, if an infoobject doesn't have 'with master data' check box enabled, and has only'with text' enabled, the new masters created in BPS gets saved to the infoobject?
yes
>Is this how it is expected to behave?
I think, yes
>Is there a work around to avoid creating master data from BPS?
The only way, i suppose, to create infoobject with master data -
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
CarlosDear 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 -
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
ChrisPROGRAM 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 ThangarajHi,
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 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 -
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 Koocheck 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.. -
Extraction through master data attribute not working
Hi All,
In my ODS, i have a field Sales Document Item, with attributes ship-to-party, sold-to-party, etc.
Now, ship-to-party and sold-to-party are extracted using the update method master data attribute of Sales Document Item.
For some of the Items, the ship-to-party and sold-to-party are getting extracted properly, but for others, they are returned as blank; even though these records are present in the master data for Sales Document Item.
Kindly provide your inputs for this issue...Hi Apeksha,
Check your transformations.for those "ship-to-party and sold-to-party "
Thanks,
Vijay. -
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,
RaomonDATA: 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 -
Master data Attribute of ( Update rule)
Hi SDN,
I Just want to know the procedure to create update method of Master data Attribute of . coild any one tell me step by step
Regards
sujan3. Creation of data targets
In left panel select info provider
Select created info area and right click to select Insert Characteristics as info provider
Select required info object ( Ex : Employee ID)
Under that info object select attributes
Right click on attributes 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.
cheers
John -
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
SiriHi!
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 -
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,
ManjulaHi Manjula,
Flexible Uploading
Transaction code RSA1LEAD 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 -
Update SEM/BPS buffer --- update Master data
Hi all,
in a planning layout I had the need to modify the master data (attributes of a IO). Therefore I use a planning function type exit and call sm30 to modify the p and x table.
After returning to the planning layout still the old attributes of the InfoObjekt are shown.
Is there a function to modify the data in the buffer or to force the BPS to reload the data from BW?
If you are in a Layout and change/load the master data in BW you have the same problem. You have to exit the transaction (upspm) before the changes of the Master data take effect in BPS.
Thanks for your help!Hello Pierre,
If you are using the web the you could call the function module API_SEMBPS_REFRESH to refresh the buffer. Before that I would save the data (using API_SEMBPS_POST) to make sure the data is not lost.
You cannot use this refresh when in the GUI as the refresh destroys the BPS buffer etc on the server and the GUI does not automatically restart the necessary buffer instance etc.
Best regards,
Gerd Schoeffl
SAPNetWeaver RIG BI EMEA
Maybe you are looking for
-
i just recently last month got a new itouch 5th generation ipod touch...recently after i had bought it, i noticed that i can't take self photos on my camera...if i am on the regular app taking a regular shot and try to switch it, it just freezes on m
-
Assign logical system to client
I understand that we assingn a logical system to a client in tcode SALE. However my Q is if say i have one receiver system YXD/800 and another receiver system RXD/800 .... when i try to assign client 800 to these 2 receiver systems it allows me to en
-
ERROR : MSC-01015 Process finished with error(s)
Hi, every expert, When I install SAP BW3.5(NETWEAVER4.0) on linux_x86_64bit , and it appears the error when install DATABASE INSTANCE, The error is ' MSC-01015 Process finished with error(s), check log file /tmp/sapinst_instdir/NW04/SYSTEM/ABAP/ORA/U
-
Material master drawing attachment
Dear all, I want to attached PDF drawings to material master. But i want scenario like if once i link drawing in mm master then it will automatically attached with all documents like PR PO which is created for the particular material. No need to atta
-
Why can't i see "Find iPhone" App under cellular data so I can turn it on?
Why can't i see "Find iPhone" App under cellular data so I can turn it on?