Five Ways to Enhance BI Functionality Using ABAP--Part III--BEx Variables

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值