Five Ways to Enhance BI Functionality Using ABAP--Part III--BEx Variables
2009-03-19 15:43
411 查看
https://www.sdn.sap.com/irj/scn/wiki?path=/display/BI/Five%252bWays%252bto%252bEnhance%252bBI%252bFunctionality%252bUsing%252bABAP--Part%252bIII--BEx%252bVariables
This part I will explain the third point: BEx Variables.
We can use ABAP coding to fill a variable value.
Here we should use the standard SAP Enhancement 'RSR00001'.
Through TCODE: SMOD, fill in the enhancement, you can see the details.
In the function module of this enhancement, you will find include ZXRSRU01 where you implement your program code.
The exit is called four times, called '"steps" (I_STEP)
Step 1(I_STEP = 1): is called before the processing of the variable pop-up and gets called for every variable of the processing type,"customer exit." You can use this step to fill your varibale with a default or proposal value.
Step 2(I_STEP = 2): is called after porcessing of the variable pop-up. This step is called only for those variables that are not marked as "ready for input" and are set to "mandatory variable entry"
Step 3(I_STEP = 3): is called after all variable processing and gets called only once and not per variable. Here you can validata the user entries.
Step 0(I_STEP = 0): is called for variables that are used in authorizations objects.
Note: You can nto overwrite the user input values into a variaable with this customer exit. You can only derive values for other variables or validate the user entries.
Code in ZXRSRU01 is for your reference:
Comment: TIM_VAR is the variable that is created in BEx Query Designer and its type is customer exit so that it can be called through the function module.
In this demo, I put the I_STEP = 1, that means before the variable pop-up, I give the value 'current date' for this variable.
This part I will explain the third point: BEx Variables.
We can use ABAP coding to fill a variable value.
Here we should use the standard SAP Enhancement 'RSR00001'.
Through TCODE: SMOD, fill in the enhancement, you can see the details.
In the function module of this enhancement, you will find include ZXRSRU01 where you implement your program code.
The exit is called four times, called '"steps" (I_STEP)
Step 1(I_STEP = 1): is called before the processing of the variable pop-up and gets called for every variable of the processing type,"customer exit." You can use this step to fill your varibale with a default or proposal value.
Step 2(I_STEP = 2): is called after porcessing of the variable pop-up. This step is called only for those variables that are not marked as "ready for input" and are set to "mandatory variable entry"
Step 3(I_STEP = 3): is called after all variable processing and gets called only once and not per variable. Here you can validata the user entries.
Step 0(I_STEP = 0): is called for variables that are used in authorizations objects.
Note: You can nto overwrite the user input values into a variaable with this customer exit. You can only derive values for other variables or validate the user entries.
Code in ZXRSRU01 is for your reference:
Comment: TIM_VAR is the variable that is created in BEx Query Designer and its type is customer exit so that it can be called through the function module.
In this demo, I put the I_STEP = 1, that means before the variable pop-up, I give the value 'current date' for this variable.
相关文章推荐
- Using the five elements of fashion colors to create the best feng shui in auspicious Home
- Five Ways to Keep Up With Linux
- A Data Access Layer to persist business objects using attributes and reflection - Part III [无常译]
- 【ABAP】Creat a client-server demo to process a http request using SAP Web AS
- Five ways to eject a stuck CD or DVD from the optical drive
- [原创]C#中抓取网页方法小结 Ways to crawl web pages (get HTML) using C#
- [Angular] Two ways to create Angular Animation, using animation() or using state()
- 5 simple ways to troubleshoot using Strace
- Using JavaScript and CSS to Enhance Your ASP.NET Datagrid
- What are the best ways to determine what port an application is using?
- Five Ways to Rev up Your SQL Performance
- Five ways to maximize Java NIO and NIO.2--转
- Five Ways to Break Through the Glass Ceiling
- The C++ Source - A Pause to Reflect: Five Lists of Five, Part III - The Most Important C++ Software...Ever
- BI Java 补丁错误处理 :Cannot login to the SAP J2EE Engine using user and password as provided in the Filesystem Secure Store. Enter va
- (空中英语)Five Ways to Make a Difference in Your Community
- 5 simple ways to troubleshoot using Strace
- Many ways to communicate with your database using jQuery AJAX and ASP.NET
- Five Ways to Rev up Your SQL Performance
- How to expand the BOM using ABAP?