【转】BEx : Characteristic Variable with Replacement Path

本文介绍了一种在BEx查询中利用已存在的TOP-5供应商查询作为替换路径的方法,以此来分析特定年份每个月的TOP-5供应商。通过这种方法可以确保分析只包括那些全年都是TOP-5的供应商。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

转自:http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/5408

官方:http://help.sap.com/saphelp_nw04s/helpdata/en/2c/78a03c1178ad2ce10000000a114084/content.htm

 

We often create Text/Formula Variables with Replacement Path on Characteristic value in BEx Query Designer. Not sure how many of you have tried Characteristic Variable with Replacement Path on Query?

While working for TOP-N Vendor Report I encountered the need of Replacement with Query, and just thought to share the solution with all the SDNers.

We already have Report to Calculate TOP-5 Vendors of the Year, and recently I got new requirement to update this report for analyzing the TOP-5 Vendors of the year over all the months of the given year. I tried simple approach by creating multiple selections for all the months individually in Columns, and created condition of TOP-5 for all the months. But it didn’t work in the way I was expecting. It included TOP-5 Vendors of each month individually, which added some new vendors to analyze in my report. Then I tried the same solution with the Replacement Path on TOP-5 Vendor Query (which I was already having in my system), and finally it worked fine for me.

Below is the detailed explanation of the scenario that I discussed and the problem I faced with the alternative approach, and how it solved with the approach of Replacement Path on Query:

  1. Running TOP-5 Vendor Report already exist in the system:


    image


    image
    TOP-5 Vendors of the Category ‘FACILITIES’ for the year 2006 on the basis of Amount.
  2. Now I need to Analyzing these TOP-5 Vendors over last 12 months (01/2006 to 12/2006). For this I created new report with 12 selections restricted by each month. For testing I have restricted it directly with (01/2006, 02/2006….12/2006), but we can also replace it with Dynamic Variable based selection.


    image

  3. Created Condition of TOP-5 for each selection ( Months).


    image

  4. The output of the newly created report is having additional Vendors that were not in the TOP-5 Vendor Report. As Condition is based on each month, month-N may be having some Vendors that are in the TOP list for that month, but not for overall year. But my requirement is to analyze only those months that are TOP Vendors of overall year.


    image

  5. Here is the approach which I tried by Creating Variable on Vendor Characteristic with Replacement Path on TOP-5 Vendor Query.


    image

  6. Included Calendar Year/Month Characteristic in Columns.


    image

  7. After running the newly created query we can see Category, and Calendar Year Variables on the selection screen even though they are not the part of Query Definition. As we are using TOP-5 Query as Replacement Path, its taking all the variables of that query in the selection screen of the newly created query.


    image

  8. Finally I got the Output as per my Requirement. (You can verify the amount total from the TOP-5 Vendor Report Diagram of step1)


    image
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值