SAP BI Cube Creation Using a function Module
- Overview…………………………………………………………………………
- Format……………………………………………………………………..
- Examples (with code)
- Cube Create……………………………………………………………..
- Cube Change…………………………………………………………….
- Cube Activate……………………………………………………………
1 Overview:
During development of sap BI system, we might have a requirement of creating customized cube in SAP BI, to create lots of cubes manually. This program takes the input from .CSV file and passed this file to program which fetch the parameters from the .CSV file and provide input to program, which will create cube/cubes.
Format:
Create cube (include line item dimension and navigation attribute):
Create a .CSV excel file which contains the details of cube in following
order.
Infocube | Textlong | Infoarea | Dimension | Dimension_text | Infoobjects | Infoobject-type | Navigation_attr | Line_item_dimension |
1st Column : Infocube name.
2nd Column: Cube Description (long text).
3rd Column: InfoArea name.
4th Column: Dimension name (Start with Cube name follow with 1-9
and A-D).
5th Column: Dimension Description (long text).
6th Column: Infoobjects name.
7th Column: Infoobjects type.
8th Column: Navigation Attribute (Put ‘X’ in this column, if any
infoobjects contains any attribute ).
9th Column: Line item dimension (To create any line item dimension
put ‘X’ in this column with corresponding dimension).
(Above snap shot show the default view of the program)
Examples:
1 Cube Create:
Create a .CSV file ( e.x. Create_cube_example.csv )
Cube Name:
ZSALE10 – Billing
ZSALE11 – Client
Dimensions of Cube ZSALE10:
ZSALE101 – Bill_details
ZSALE102 – Billing doc
ZSALE103 – Country
ZSALE10U – UNIT
ZSALE10T – TIME
Characteristics in cube ZSALE10
Dimension Characteristics
ZSALE101 ZQFGJHAR
ZSALE102 ZDEMO6
ZSALE102 ZDEMO7
ZSALE103 ZQFWWCSO
ZSALE10U 0UNIT
ZSALE10T 0CALMONTH
Keyfigures in cube ZSALE10
Keyfigures
0QUANTITY
Dimensions of cube ZSALE11
ZSALE111 – Client
Characteristics in cube ZSALE11
Dimension Characteristics
ZSALE111 ZQFMANDT
ZSALE111 ZQFBUKRS
ZSALE111 ZQFWWCLS
Keyfigures in cube ZSALE10
Keyfigures
ZQFVVA600
ZQFVVD03
Select the radio button for creating cube/cubes and pass the file path in below screen in .CSV file format.
Output:
Output in T-code – RSA1:
Output in T-code – RSA1 (Display infocube):
Cube: ZSALE10
Cube: ZSALE11
Output in T-code – RSA1 (Display infocube):
Pseudo Code (Create Cube):
1 Cube Change:
If cubes are already created in sap BI system. And you wants to change/ modify the dimensions and infoobjects (i.e. structure of cube) then select the cube change radio button and pass the .csv file of changed cube.
Example:
In below example we are going to changes the dimension and infoobjects of cubes ZSALE10 and ZSALE11.
Before modify:
Cube: ZSALE10
Dimensions:
ZSALE101 – Bill_details
ZSALE102 – Billing doc
ZSALE103 – Country
ZSALE10U – UNIT
ZSALE10T – TIME
Characteristics:
Dimension Characteristics
ZSALE101 ZQFGJHAR
ZSALE102 ZDEMO6
ZSALE102 ZDEMO7
ZSALE103 ZQFWWCSO
ZSALE10U 0UNIT
ZSALE10T 0CALMONTH
Keyfigures:
0QUANTITY
Output in T-code – RSA1 (Display infocube):
Cube: ZSALE11
Dimensions:
ZSALE111 – Client
Characteristics:
Dimension Characteristics
ZSALE111 ZQFMANDT
ZSALE111 ZQFBUKRS
ZSALE111 ZQFWWCLS
Keyfigures:
ZQFVVA600
ZQFVVD03
Output in T-code – RSA1 (Display infocube):
Placed the modified structures of cube/ cubes into .csv file.
Select the radio button for modifying cube/cubes and pass the file path in
below screen in .CSV file format.
Output:
Output in T-code – RSA1:
After Modify:
Output in T-code – RSA1 (Display infocube):
Cube : ZSALE10
Dimensions:
ZSALE101 – Bill_details
ZSALE103 – Country
ZSALE10U – UNIT
ZSALE10T – TIME
Characteristics:
Dimension Characteristics
ZSALE101 ZQFGJHAR
ZSALE103 ZQFWWCSO
ZSALE10U 0UNIT
ZSALE10T 0CALMONTH
Keyfigures:
0QUANTITY
Output in T-code – RSA1 (Display infocube):
Cube : ZSALE11
Dimensions:
ZSALE111 – Customer
ZSALE112 – Customer
Characteristics:
Dimension Characteristics
ZSALE111 ZQFMANDT
ZSALE112 ZQFBUKRS
Keyfigures:
ZQFVVD03
Output in T-code – RSA1 (Display infocube):
Code (Cube Chage/ modify):
Very helpful program to save a lot of manual work in creation of customized cubes in BW
Thanks for sharing.
Keep it up.
good one
Brilliant idea at the first place and much needed Time saver!!
helpful program!!
will save lots of manual efforts.
Thanks for sharing
Thanks Om for such a helpful post...
Great Document 🙂
Thanks for sharing
Kind Regards
Manna Das
Gr8 effort... Good document n thanks for sharing ...
KP
Thanks prashanth.
Good document ..Just a quick ques whats the T-code for accessing the program for creating cube ??
Hi Sanyukta,
it depends on you what t-code you want, i created custom t-code ZUTIL to access my program.
This program may need some updation for functioning well. hope you will put your efforts to make this program better.
All the best 🙂
Regards,
Om Ambulker
Nice one......
Really helpful stuff for Major developments.. Thanks Om
Thanks Om, very helpful. But where can I find the code? Thanks.
Hi  Former Member
good one.
i am looking for your wrapper tool for creating multiple infoobjects, can you please provide me the same. i am not even finding it in archieve path as well.
thanks
Raj
Dear Om,
Would you mind sharing a full code example and csv examples for this?
Thanks,
Shai
Hi Shai ,
have you created the cube changes program which is given above . I have created same code but dimensions is being not updated . Please let me know if you have any idea ?