viernes, 8 de mayo de 2015

Hierarchy to a Flat File

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/0403a990-0201-0010-38b3-e1fc442848cb?overridelayout=true

Uso 0FI_GL_10 o el 0FI_GL_14

http://mohammadusama.blogspot.com/2014/06/when-to-use-0figl10-and-0figl14.html

Use 0FI_GL_14:


0FI_GL_14 provides you detail level information of account number at day level. (ie posting date). All line items in fbl3n can be reported.

Daily debit and credit and balance for the period selected can be reported in local and foreign currency. 

Mainly applicable for Expense line items(P&L line items).

Uses AIED delta method so DSO is required. Install 0FIGL_O14 DSO.



Use 0FI_GL_10:

Provides you cumulative balance at posting period level. 

Relevant report in ECC is S_PL0_86000030.

Mainly used to report Balance sheet line items where cumulative balance is to be reported. For eg, Fixed assets, current assets and current liabilities G/L accounts.

Uses AIE delta method so DSO is required. Install 0FIGL_O10 DSO.


Alternately 0FI_GL_12 can also be used. But cumulative balance have to be calculated using start routine in 
transformation rule from datasource to cube. No Need of DSO as it works on ADDD(additive delta method) so cube directly loaded. 

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.

miércoles, 25 de marzo de 2015

This Content replaces the existing "SAP HANA Cookbook"

First Guidance
 
The First Guidance documents are the beginning of a series of documents that should help to better understand the various concepts of SAP BW powered by SAP HANA.The documents are still “work in progress”, so these guides are not intended to be exhaustive.. The purpose of these documents is to deliver additional information besides SAP Help and blogs to get a better understanding of the concepts of SAP BW on SAP HANA.


 
 
SAP First Guidance - Business Warehouse on SAP HANA Installation (Updated version: reflects now the 7.31/7.40 releases as well, the usage of the SL toolset (SWPM, SUM, etc.) and the current SAP HANA 1.0 SP08 release and there actual revisions.)
After BW on HANA is already available since mid April 2012 this document was enhanched a few times since the first version.
On base of this information this "SAP First Guidance" document is released to support Basis administrators in running and  and configuring a Business Warehouse on a SAP HANA system. SAP First Guidance - Business Warehouse on SAP HANA installation provides answers to major questions and issues as well as workarounds and additional details to complement standard SAP Guides and SAP notes. This SAP First Guidance document has no claim of completeness, but it is the most complete starting point for an successfull implementation.
For more information please contact roland.kramer@sap.com
 
 
 
SAP First Guidance - Migration BW on HANA using the DMO option in SUM
the database migration option (DMO) is an option inside of the software update manager (SUM) for combined update and migration: update an existing SAP system to a higher software release and migrate to SAP HANA database in one technical step. As the technical SUM steps are the same, this “SAP First Guidance” document should make all customer-specific documentation obsolete. It is the complementary documentation to the existing Notes and SUM/DMO Upgrade Guides.
DMO can be used with every BW Release starting from 7.0x and onwards. It makes the two step approach (upgrade/migration) and the usage of the BW post copy automation (BW-PCA) obsolete. It can also be used within a Release, e.g. to go from 7.40 SP06 on anyDB to migrate to 7.40 SP07 on HANA.
For more information please contact roland.kramer@sap.com
 
 


SAP First Guidance - Implementing BW-MT for BW-aDSO
SAP BW 7.4 SP08 powered by SAP HANA is the next milestone for enterprise data warehousing with BW on HANA and provides the next level of simplification for BW .In addition, SAP BW on HANA Virtual Data Warehouse capabilities have been enhanced for even more flexibility. In midterm the advanced DSO shall replace the main BW InfoProviders with persistency (InfoCube, DSO, PSA). The classic InfoProviders are of course still supported and do co-exist with the advanced DSOs.
For more information, please contact roland.kramer@sap.com
 
 


SAP First Guidance - SAP NLS Solution with Sybase IQ
This “SAP First Guidance” document provides all the necessary information to help quickly implement this newly released option:
Store historical BW data on an external IQ server to optimize the  system size  when preparing  to migrate to SAP BW powered by SAP HANA.
The SAP NLS solution with Sybase IQ also helps to keep down the TCO for investing in the SAP In-Memory when historical (“frozen”) data is stored on a less sophisticated device, which acts like a “BW Accelerator on Disk”. SAP Sybase IQ is therefore the perfect smart store for this kind of data.
Please note that the SAP NLS solution can be used with all database versions supported by SAP BW 7.3x. SAP HANA is not necessary. The document is a “work in progress” and is not intended to be exhaustive.  It does however contain all information required for successful implementation of the SAP-NLS solution with Sybase IQ. SAP-NLS can be used with every SAP supported database, where SAP IQ will be the seconday database for data reallocation.
For more information, please contact roland.kramer@sap.com
 
 
SAP First Guidance - SEM/BW Modelling in SolMan 7.1 with MOPZ
Due to constant Questions about the Upgrade to NetWeaver 7.3x and 7.40 including SEM Add-On Components, we created a SAP First Guidance Document which describes the successfull Definition of a SAP BW 7.0/7.01 System with the SEM Add-On Installed on top.  With this Information you will be able to integrate the stack.xml in the SUM (software update manager) process and the DMO (database migration option) DMO process included in SUM as the first input is the location of the stack.xml which defines the download directory for SUM. Furthermore the interaction of the stack.xml in the upgrade process enables you a smooth Integration into the Upgrade Process included in DMO.
For more information please contact roland.kramer@sap.com
 
 
 
 
SAP First Guidance - BW Housekeeping and BW-PCA
The system copy procedure of SAP BW systems and landscapes is complex for a number of reasons. There is a large number of configuration settings (such as connections and delta queue handling for data loading) and system copy scenarios of SAP BW (each with different landscape aspects).  These have to be handled as part of every system copy, regardless of whether the system copy is part of the migration to SAP HANA or if you want to perform regular system copies of your SAP BW landscape. BW-PCA can be used from SAP BW 7.0 onwards depending on the SPS level.
Additionally see the usage and implementation of the BW Houskeeping Task List and the Pre/Post Task Lists for Upgrade/Migration. These are Included in the database migration option (DMO) as part of the software update manager (SUM). Additional Details also can be found on the BW ALM Page.
For more information please contact roland.kramer@sap.com
 
------------------------------------------------------------------------------------------------------------
 
 
SAP First Guidance SAP BW 7.40 on HANA - HANA Analysis Processes
Starting with SAP BW 7.4 SP5 on HANA a new feature to analyze data from certain perspectives, for example to calculate ABC classes or to calculate scoring classes, is introduced. This new feature is called SAP HANA Analysis Process and enables the data warehouse modeler to analyze the data using different predefined or own written functions or scripts. HANA provides the integration numerous specialized libraries like PAL, AFL, R to understand the correlation of the data in the existing EDW.
 
SAP First Guidance - SAP BW 7.40 on HANA - View Generation
The focus of this document is the exposure of BW data natively in HANA as HANA views that point directly to the data and tables managed by BW. This enables HANA-native consumption of BW data.
 
 
 
SAP First Guidance - SAP BW 7.30 on HANA - Inventory InfoCubes
This SAP first guidance document describes the handling of non-cumulative InfoCubes on SAP HANA. As the handling of Inventory InfoCubes changed within SAP BW 7.30 based on SAP HANA, this document wants to briefly describe the differences. for better understanding it is recommended to read How to Guide based on previous release How to Handle Inventory Management Scenarios in BW.
 
 
SAP First Guidance - SAP BW 7.40 SP05 on HANA - OpenODSView
In SAP BW 7.4 SP05 on HANA the new metadata object Open ODS View is introduced, which provides the data warehouse modeler with a flexible, easy to use tool to integrate external data in the EDW Core Data Warehouse.
 
 
SAP First Guidance - SAP BW 7.40 SP05 powered by SAP HANA - CompositeProvider
A CompositeProvider is an InfoProvider in which you can combine data from BW InfoProviders such as InfoObjects, DataStore Objects, SPOs and InfoCubes, or SAP HANA views such as Analytical or Calculation Views using join or union operations to make the data available for reporting. This paper explains how to create a CompositeProvider in SAP BW 7.4 SP5 using the BW modeling tools in SAP HANA Studio.

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