miércoles, 15 de abril de 2015

How to reset SAP* user in BW on HANA system

                          

09:07 // Mark Foerster
Hello Jack,
the table USR02 typically isn't buffered any more, so that change should be simple. Log on to the HANA server as sidadm.
hdbsql -i $$ -u SAPSR3 -p password_of_sapsr3
($$ is the instance number of the HANA database)
hdbsql=> update USR02 set uflag=0 where mandt='000' and bname='SAP*'

lunes, 13 de abril de 2015

Creando Agregados y data Rollup 7.X

http://scn.sap.com/community/data-warehousing/bw/blog/2013/07/07/basics-of-cube-aggregates-and-data-rollup

Important tables in SAP BW 7.x

 

Listing of commonly used tables in SAP BI

Listed below are some of the tables commonly used in SAP BW 7.x - however the same has not been tested in NW2004s and please make corrections if required. Some of this material has gone through a lot of eyeballs before making it to the final list and could contain some older references / incorrect references , however most of them have been validated.
Transfer Structure
 
RSTSTransfer Structure List
RSTSFIELDTransfer Structure fields
RSTSRULES Transfer Structure rules
RSAROUTTText name of Transfer Routine
DD03TText for R/3 Transfer structure Objects
Update Rules 
RSUPDROUTUpdate rules List
RSUPDDAT  Update rules with routines
RSUPDKEY   Update rule key fields
RSUPDINFOInfoProvider to Infosource correlation
Embedded ABAP coding for Transfer / Update Rules 
RSAABAPABAP source code per object routine
InfoPackage 
RSLDPIOLinks datasource to infopackages
RSLDPIOT InfoPackage Text Description
RSLDPRULEABAP source code for InfoPackages
RSLDPSEL  Hardcoded selections in InfoPackages
RSMONICDPContains the request-id number by data target
RSPAKPOSList of InfoPackage Groups / InfoPackages
ProcessChain
 
RSEVENTCHAIN  Event Chain Processing Event Table
RSEVENTHEAD   Header for the event chain
RSEVENTHEADT   Header for the event chain
RSPCCHAINProcess chain details
RSPCCHAINATTR Attributes for a Process Chain
RSPCCHAINEVENTS Multiple Events with Process Chains
RSPCCHAINT Texts for Chain
RSPCCOMMANDLOGSystem Command Execution Logs (Process Chains)
RSPCLOGCHAIN Cross-Table Log ID / Chain ID
RSPCLOGSApplication Logs for the Process Chains
RSPCPROCESSLOGLogs for the Chain Runs
RSPCRUNVARIABLES Variables for Process Chains for Runtime
RSPC_MONITORMonitor individual process chains
Queries
 
RSZELTDIRDirectory of the reporting component elements
RSZELTTXTTexts of reporting component elements
RSZELTXREFDirectory of query element references
RSRREPDIRDirectory of all reports (Query GENUNIID)
RSZCOMPDIRDirectory of reporting components
RSZRANGESelection specification for an element
RSZSELECTSelection properties of an element
RSZELTDIRDirectory of the reporting component elements
RSZCOMPICAssignment reuseable component <-> InfoCube
RSZELTPRIOPriorities with element collisions
RSZELTPROPElement properties (settings)
RSZELTATTRAttribute selection per dimension element
RSZCALCDefinition of a formula element
RSZCELQuery Designer: Directory of Cells
RSZGLOBVGlobal Variables in Reporting
RSZCHANGESChange history of reporting components
Workbooks
 
RSRWBINDEXList of binary large objects (Excel workbooks)
RSRWBINDEXTTitles of binary objects (Excel workbooks)
RSRWBSTOREStorage for binary large objects (Excel workbooks)
RSRWBTEMPLATEAssignment of Excel workbooks as personal templates
RSRWORKBOOKWhere-used list for reports in workbooks
Web templates
 
RSZWOBJStorage of the Web Objects
RSZWOBJTXTTexts for Templates/Items/Views
RSZWOBJXREFStructure of the BW Objects in a Template
RSZWTEMPLATEHeader Table for BW HTML Templates
InfoObject 
 RSDIOBJ                              Directory of all InfoObjects
RSDIOBJTTexts of InfoObjects
RSDIOBJ  Directory of all InfoObjects
RSDIOBJTTexts of InfoObjects
RSDATRNAVNavigation Attributes
RSDATRNAVTNavigation Attributes
RSDBCHATRMaster Data Attributes
RSDCHABASBasic Characteristics (for Characteristics,Time Characteristics, and Units)
RSDCHA Characteristics Catalog
RSDDPAData Package Characteristic
RSDIOBJCMPDependencies of InfoObjects
RSKYF Key Figures
RSDTIMTime Characteristics
RSDUNIUnits
InfoCube
 
RSDCUBE Directory of InfoCubes
RSDCUBETTexts on InfoCubes
RSDCUBEIOBJObjects per InfoCube (where-used list)
RSDDIMEDirectory of Dimensions
RSDDIMETTexts on Dimensions
RSDDIMEIOBJ InfoObjects for each Dimension (Where-Used List)
RSDCUBEMULTIInfoCubes involved in a MultiCube
RSDICMULTIIOBJMultiProvider: Selection/Identification of InfoObjects
RSDICHAPROCharacteristic Properties Specific to an InfoCube
RSDIKYFPROFlag Properties Specific to an InfoCube
RSDICVALIOBJInfoObjects of the Stock Validity Table for the InfoCube
  
RSDCUBEMULTIInfoCubes concerned with MultiCube
RSDICMULTIIOBJMultiProvider: Selection/Identification of InfoObjects
Aggregates
 
RSDDAGGRDIRDirectory of Aggregates
RSDDAGGRCOMPDescription of Aggregates
RSDDAGGRTText on Aggregates
RSDDAGGLTDirectory of the aggregates, texts
ODS Object 
RSDODSODirectory of all ODS Objects
RSDODSOTTexts of all ODS Objects
RSDODSOIOBJInfoObjects of ODS Objects
RSDODSOATRNAVNavigation Attributes for ODS Object
RSDODSOTABLDirectory of all ODS Object Tables
PSA 
RSTSODS Directory of all PSA Tables
DataSource (= OLTP Source) 
ROOSOURCE  Header Table for SAP BW DataSources (SAP Source System/BW System)
RODELTAMBW Delta Procedure (SAP Source System)
RSOLTPSOURCEReplication Table for DataSources in BW
InfoSource 
RSIS Directory of InfoSources with Flexible Update
RSISTTexts on InfoSources with Flexible Update
RSISFIELDInfoObjects of an InfoSource
Communications Structure 
RSKSCommunications Structure for InfoSources with Flexible Update
RSKSCommunications Structure (View) for Attributes for an InfoSource with Direct Update
RSKSFIELDTexts on InfoSources with Flexible Update
RSISFIELDInfoObjects of an InfoSource with Flexible Update
Transfer Structure 
RSTSTransfer Structure in SAP BW
ROOSGENGenerated Objects for a DataSource (Transfer Structure, for example in SAP Source System)
Mapping
 
RSISOSMAPMapping Between InfoSources and DataSources (=OLTP Sources)
RSOSFIELDMAPMapping Between DataSource Fields and InfoObjects
InfoSpoke 
RSBSPOKESELSETInfoSpoke Directory and Selection Options
RSBSPOKEVSELSETInfoSpoke Directory with Selection Options and Versioning
RSBSPOKEList of all InfoSpokes with attributes maintained with transaction RSBO which include the name of
the Source & Target Structures
RSBSPOKETList of all InfoSpokes with the Short & Long Descriptions (only one of these can be maintained).
RSBSTEPIDMESSContains all the messages that have been recorded during the execution of an InfoSpoke. This table can
be added to using the ABAP Class/Method i_r_log->add_sy_message.
SAP BW Statistics 
RSDDSTATBasic Table for InfoCubes/Queries
RSDDSTATAGGRDetail Table for Aggregate Setup
RSDDSTATAGGRDEFDetail Table of Navigation for each InfoCube/Query
RSDDSTATCONDInfoCube Compression
RSDDSTATDELEInfoCube Deletions
RSDDSTATWHMWarehouse Management
Misc 
RSFECBW Frontend Check. Useful for checking the installed SAP GUI versions on user machines.
RSSELDONEInfoPackage selection and job program, there in field UPDMODE the update status (INIT/DELTA/FULL)
RSPSADELPSA Table deletion
TBTCPJob Schedule Definition
TBTCOJob Schedule Result
RSMONMESSMonitor Messages
RSERRORLOGCheck loading errors in table
V_RSZGLOBVReport Variables view table
DEVACCESSDeveloper Keys table
TSTCAll Transactions in the system
RSDDAGGRDIRDirectory of the aggregates
ROIDOCPRMSControl parameters for data transfer from the source system
SMEN_BUFFCObjects in User's Favorites
TSTCTTransaction Codes with Text
DD03Lfield names and corresponding data element names
DD03LTDescription of each data element
DD02LAll SAP Defined Table Names
DD02LTDescription of All SAP Defined Table Names
Web Item
 
RSZWITEMHeader Table for BW Web Items
RSZWMDITEMBW Web Metadata: Template Item ( Dataprovider, Item, ... ).
RSZWITEMXREFCross Reference of Web Items
RSZWMIMEIOBUFFERBuffer for Translation MIME Rep. to IO
RSZWOBJStorage of the Web Objects
RSZWOBJTXTTexts of Templates/Items/Views
RSZWOBJXREF Structure of the BW Objects in a Template
RSZWTEMPLATE Header Table for BW HTML Templates
Archiving 
RSARCHIPROBW Archiving: General Archiving Properties
RSARCHIPROIOBJBW Archiving: General Archiving Properties
RSARCHIPROLOCBW ARchiving: General Local Properties
RSARCHIPROLOCSELBW Archiving: Archived Data Area
RSARCHIPROPIDBW Archiving: Program References of InfoProvider
RSARCHREQBW Archiving: Archiving Request
RSARCHREQFILESBW Archiving: Verfified Archive Files
RSARCHREQSELBW Archiving: Request-Selections
Open Hub Destination 
RSBOHSERVICETPOpen Hub: Service Types
RSBREQUESTDELTAOpen Hub: Cross Reference Outbound/Inbound
RSBREQUESTMESSOpen Hub: Log for a Request
RSBREQUIDOpen Hub: Requests
RSBREQUID3RDOpen Hub: Status of 3rd Party Requests
RSBREQUIDRUNOpen Hub: Table with Status for a Request
RSBSTRUCTUREOpen Hub: Generated Structures and Tables

lunes, 6 de abril de 2015

BW and In-Memory Storage

oday I’m going to talk to you a bit about how data is stored in BW and why proper planning for storage is important.  Let’s say for example, you have a large project coming down the pipeline and are unsure of how this new data being introduced into your production landscape will affect the BW environment.   You probably have a mature SAP installation at your company, and chances are you are using a Business Warehouse Accelerator (BWA) appliance or HANA (don’t forget to factor these in).  It’s essential to plan a strategy with the database administrators as they are directly impacted by each and every new project.  New projects mean more data being added, which means more space required within the database.
The 10% rule – BWA Sizing:
An easy way to ballpark how much memory is required to index BW data onto your BWA is to follow the 10% rule.  That means for every Gigabyte of BW data, around 100 MB will be needed for BWA storage.  Thankfully, the TREX engine that BWA runs is capable of efficiently compressing and storing of data in memory at 1/10th the size of what BW stores it at.  This allows you to fit more data in BWA without having to worry too much about space constraints.
Database storage vs in-memory storage
Data can be stored cheaply on a disk based database versus an in-memory database.  Each type has their pros and cons.  Disk based storage is cheap, but the catch is slow performance.  In-Memory is fast, but extremely expensive.  That’s why it’s important for companies to properly plan for and balance out their data distribution to only index into memory the best candidates.
BWA and the 50% rule
BWA is made up of a series of blades.  Let’s use HP’s 36GB blades for examples sake.  If your appliance has 14 blades, you would have 504 GB of space for data storage, right? Wrong.  BWA has its own 50% rule.
Per SAP’s best practices, only half of each blade can be filled with data meaning only 18GB of each 36GB blade is usable for indexing.  18GB*14 blades = 252GB.  The other 18GB is used for processing and computing.  As you creep over the 50% index storage number, expect to see performance degrading exponentially.
Our BWA is full, now what?
RAM within BWA is very, very expensive.  Unless everything is being used equally within the BWA, I would recommend performing an As-Is assessment of all indexed InfoCubes and remove the least utilized InfoCubes to free up space for more popular cubes.  RSDDBIASTATUSE is a handy BW table that stores the execution history of queries against the BWA by cube.  Take a look at query execution history to better identify the slackers.  You will be surprised by how much space you could easily regain by removing a few hogs.
How much space is a cube taking up on BWA memory?
Transaction TREXADMIN allows you to view exactly how much space a table is taking up on BWA.  Focus solely on the F table which consists of both the E and F tables from the BW side.  There is no E table on BWA, just F.
Firstly, we type in an InfoCube we know is indexed in BWA.  In this example I’m using cube 0PCA_C01.  Navigate to the Index Admin tab and type *0PCA_C01* in order to pull all relevant tables for this cube.  Now focus on the F table and the Memory Size column.  This cube is taking up 211,292 KB or 0.2 GB of BWA’s total memory.

How much space is a cube taking on BW disk?
Transaction DB02 allows you to view size at a database level.  Go into BW Analysis and access both the E and F cube object areas.  Below you can see each row from each area.  If you combine both of these, you will have around 3.5GB of data.

As you can see the compression ratio can change drastically from cube to cube.  3.5GB of data on BW for this cube only takes up 0.2 GB on BWA!  Feel free to leave comments below and share with your friends and colleagues.

  SAP BW 4hana DTP ABAP Filter Range using DTP Routine data: lv_date_low TYPE sy-datum, lv_date_high TYPE sy-datum, lv_date TYPE dats, lv_mo...