Reportingques
Reportingques
Bex:-
-Bex analyzer
Info provider:-
-Any object we can design and run Bex query this is called info provider.
3).Bex WAD:-
Charecterstics properties:-
FIGURE 1 : PFA
FIGURE 2 : PFA
Query properties:-
New Selection:
Note:-
-We use Exceptions to provide alerts on to the Report based on the key figure
value.
- Active
- Cell Restriction
Note Scenario:-
-When we calculated a new key figure based on the existing key figures by
performing some calculations and using some pre defined functions.
-It is global can be used in all the reports designed on same info provider.
New formula:-
-It is a same as a calculated key figure but new formula is local and it has
more than 6 functions than the calculated key figure.
CKF/New formula:-
-But we can only use the key figure, which is used as the structure elements in
new formula.
Purpose:-
-To make the more node levels like formula and new selections
-Reusable component
-Remove reference
-If we use saved structure it will not allowed to make the changes to make the
changes we go to the structure in report structure and give right click remove
reference with this we have that structure to make changes within the query it is
called remove reference.
Cell definitions:-
-We use this when we want to perform some calculating specific to each
cell on a Coolum.
-We can implement cell definitions only when we have 2 (Two) structures
in a reporting.
Exceptions:-
-Exception means to provide the alerts to the particular coloum for analysis
Note:-
-We have the flexibility to give exception on hierarchy node wise also.
Filter:-
-If we put object in this area it will not shown result set as well as
navigation block.
Free Charecterstics:-
-If we put a Charecterstics into free charecterstic it will not shown in the
result set after as per our requirements we have the flexibility to make drilldown
and dril across and filter here
VARIABLES
Variables:-
Types of variables:-
2) Text variable
3) Formula variable
4) Hierarchy Variables
-We use variables to define the description of key figure, CKF, RKF, NS, NF
query description dynamically
Processing types:-
Types:-
3). Authorizations
4). Replacement
Processing types
Charecterstics Variable x x x x x
FIGURE 3: PFA
**N/A means not available that combination
Case 1:
Note:-
* We have the flexibility to make the restriction on info object we can use that in
other cube reports but that info object must be there in a cube.
Authorization objects:-
S_RS_COMP
S_RS_CUBE
Note:-
Ex:-
Steps:-
Step 1:-
S_RS_RREPU (Select)
Adopt reference
S_RS_
Info area
Info cube
Generate
Save it
Ex 2:-
Go to the Authorization relevant and click the check box and active
the info object
Step 2:-
Authorization object
Create
Description
Give customer no
Save it
Step 3:-
Change
Save it
Step 4:-
Info area
Info cube
Generate
Step 5:-
Step 6:-
-SUIM
-Roles
Note:-
-SU53 is a T-Code for Display authorization data for user Like (SAPUSER)
Note:-
-All the business content variables will have the processing types
Note:-
-If we select this checkbox we will get popup box in front end does
not we can’t get.
Note:-
Purpose:-
If we select this checkbox, we have the flexibility to make the changes like
filter as well as drill down drill across.
Note:-
-Popup box we have the save also variant as well as use that in other
usage.
Note:-
-Personalization
-For these type of variable the values is processed by using ABAP/4 code
Case 1:-
0CALDAY:-
Steps:-
1). Create the Charecterstics value variable with customer exit on 0CALDAY
Project
Attribute
Create
Short text
Save
Package
Save it
Enhancement assignment
Change
RSR00001
Save it
Note:-
-One project can have multiple enhancements, but the same enhancement should
not assign multiple projects
Components
{EXIT_SAPLRRSO_001}
5). Go to the component and implement the logic as per the requirement - CMOD
Component
Change
Change
WHEN ‘ZYDATE’.
CLEARE L_S_RANGE.
L_S_RANGE-SIGN = ‘I’.
L_S_RANGE-OPT = ‘EQ’.
L_S_RANGE-LOW = SY-DATUM.
WHEN ‘ZYDATE’.
CLEARE L_S_RANGE.
L_S_RANGE-SIGN = ‘I’.
L_S_RANGE-OPT = ‘BT’.
L_S_RANGE-LOW = SY-DATUM-1.
L_S_RANGE-HIGH = SY-DATUM.
Case 2:-
Steps:-
Step:-1
Step:-2
WHEN ‘ZY’.
CLEAR L_S_RANGE.
L_S_RANGE-SIGN = ‘I’.
L_S_RANGE-OPT = ‘EQ’.
L_S_RANGE-LOW = SY-DTUM
+0(6).
Case 3:-
Current week:-
Steps:-
Step:-1
Step:-2
WHEN 'YCW'.
CLEAR L_S_RANGE.
EXPORTING
DATE = SY-DATUM
IMPORTING
WEEK = ZV_WEEK.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
L_S_RANGE-LOW = ZV_WEEK.
Case 4:-
Steps:-
Step:-1
Step:-2
WHEN 'Z_YTD'.
CLEAR L_S_RANGE.
ZV_YEAR = SY-DATUM+0(4).
CONCATENATE ZV_YEAR '0101' INTO ZDATE.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'BT'.
L_S_RANGE-LOW = ZDATE.
L_S_RANGE-HIGH = SY-DATUM.
Case 5:-
Steps:-
Step:-1
Step:-2
WHEN 'Z_MTD'.
CLEAR L_S_RANGE.
ZV_YEAR1 = SY-DATUM+0(4).
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'BT'.
L_S_RANGE-LOW = ZDATE1.
L_S_RANGE-HIGH = SY-DATUM.
Case 6:-
Steps:-
Step:-1
Step:-2
WHEN'ZYWTD'.
EXPORTING
DATE_IN = SY-DATUM
IMPORTING
DATE_OUT = VFDATE.
L_S_RANGE-LOW = VFDATE.
L_S_RANGE-HIGH = SY-DATUM.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'BT'.
Case 7:-
I_STEP2:-
Steps:-
Step:-1
Step:-2
-Create customer exit variable on cal year/week and ready for input must
be deselect and mandatory
Step:-3
-And go to SE38 for implementing ABAP code
WHEN 'Z_IST2'.
IF I_STEP = 2.
CLEAR L_S_RANGE.
IF INTERN_RANGE-VNAM = ZDATE.
ZDATE = INTERN_RANGE-LOW.
ENDIF.
ENDLOOP.
EXPORTING
DATE = ZDATE
IMPORTING
WEEK = ZWEEK.
L_S_RANGE-LOW = ZWEEK.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
ENDIF.
Text Variable:
-We use Text Variable to make the description of the KF,CKF,RKD,NS.NF and
Query Description dynamic.
Processing types:
- SAP Exit
Case 1:
Ex:-
Edit
Variable name
Description
Variable name
Description
WHEN ‘ZBALANCE’.
CLEAR L_S_RANGE.
L_S_RANGE-SIGN = ‘I’.
L_S_RANGE-OPT = ‘EQ’.
L_S_RANGE-LOW = SY-DATUM.
Case 3:
(And here we create text and also give processing by as Replacement variable)
Select and drag any key figure from left blog to right blog and restriction on
clamonth2 and create variable customer with processing by as User entry
Case 4:
Formula variables:-
Processing Types:-
-SAP Exit
Case 1:-
Case 1:-
Purpose:-
-If we make formula variable on CKF then we have the flexible to make
calculations with in pop up box.
-Edit
-Formula variable
-New variable
-Variable name
-Description
Case 2:-
Case2:-
-On conditions
Case 3:-
-There are two scenarios one is we can use a characters in calculations and
key figures what the any info objects which hold the attributes as key figures we
can use that key figures in calculation part by using formula variable with
replacement path.
Scenario 1:-
-No of day’s b/w actual goods date and planed goods date
-Create Formula
-New variable
-Technical name
-Description
-Replacement path
-Date
-Number
-Quantity
And finally w create two variables in formula variable one for actual goods issued
date and one more for Planned goods date and drag into that both into formula
screen and (Variable1-variable2) then we will get no of days b/w that dates
Scenario 2:-
Formula variable with replacement path :-( By using Attribute, key figures)
-To get the sales cost from the attribute key figure
-Create Formula
-New variable
-Technical name
-Description
-Replacement path
-Attribute
-Date
-Number
-Quantity
-Finally in key figure we have quantity and we need the standard price for
getting sales cost so we use quantity direct calculations and use formula variable
what we have done and put that both quantity and formula variable into formula
screen and run the query.
Hierarchy Variable:
Processing Types:
- SAP Exit
Case 1:
- Product hierarchy
Processing Types:
- Authorization - 40
- SAP Exit
BEX ANALYZER
-Settings icon
Case 1:
- Formatting (Charts, Multiple queries in single sheet as well as different sheets)
For a chart……………..
-Layout icon
-Attach charts
-Properties
-Interaction
Case 2:
-Here we have the flexibility to move those from one area to another
to another area in a sheet.
-Layout icon
-All
Purpose to make this activity it will shown those properties of about query as
well as user name changed date time etc,,,,
Case 3:
- Workbook Template
Case 4:
Case 5:
- Multiple Queries in Single Sheet
Case 6:
Case 7:
- BEx MAP
- .SHX
- .SHP
- .DBF
Case 8:
- VB Macros
Dim i As Integer
Dim j As Integer
i = resultArea.Rows.Count
j = resultArea.Columns.Count
v_cols = 1
v_rows = 1
For v_cols = 1 To j
For v_rows = 1 To i
End If
Next v_rows
Next v_cols
End Sub