Create aging bucket in BEx - based on  date variable

Hi everyone,
I have a report for which we need to create account receivable aging bucket to classify arrears (1>29 / 30>59 / etcu2026).
Our solution overall architecture is the following :
Source System (SAP) >  BW back end...Multiprovider > Super BEx Query > Universe > Webi Report
BW 7.0
BO XI 3.2 SP3.0
In this report, each bucket is defined by the difference between:
-     the Net Due Date (which is the due date of payment of the invoice)
-     and the Current Date (date for which the report is run u2013 can be the date of the day or a date in the past)
We can develop this either in BEx or in Webi, but to avoid potential performance issues in Webi, we take the try to develop this in BEx.
As you can easily imagine, this BEx query will be used for many reportsu2026so not only for this specific report.
What weu2019ve done so far:
1-     We created a variable to prompt the user with the date he wants to run the report for
           - ZTEST is an optional variable, single value, User input, based on characteristic 0CALDAY
2-     We developed RKF in BEx
-     Key Figure restricted by Amount
-     Net Due Date restricted by the variable ZTEST using the between function and an offset (to determine the range)
=> When we save the query we are getting a warning message saying u201CVariable ZTEST for characteristic Net Due Date has been converted to a required entryu201D
Why? (you probably knowu2026) Because my RKF is using a variable with an offsetu2026which automatically turn on my variable as mandatory and no more as optional.
Consequences:
-     In BEx: My variable, which is required to be optional (because we donu2019t have to have this field as mandatory for each and every report running on top of this query) is now mandatory.
-     In Webi: If I use the variable (funnel in webi), my report is working fineu2026but if I donu2019t use it in the webi report, I get an error message saying u201Cvalue required for ZTESTu201D
o     Funnel is configured as optional in the universe designer (so the issue is not coming from here)
=> 2 consequencesu2026same issue
Question: What can we do to keep our bucket logic running in BEx and avoid this variable to become mandatory?
Solutions (potential)
-     Create a custom exit routine to work around this issue u2013 how?
-     Create CKF/Custom exit to create our bucket (using ZTEST as an entry value to determine the range) and then use the created range in our RKF to restrict the amount u2013 how? Not so easyu2026
-     Build the logic in Webi
-     Any other suggestions?
Here we are, any advice would be really appreciated
Thank you guys
Regards
Henri

Hi peeps,
We finally find a solution for this problem! So I can share it with you.
The overall solution is pretty easy to understand.
1st step is to prompt with the user with a 0DATE variable. The date selected becomes a date input for the next step.
The variables is defined as a range [01/01/1900;variable_value)...in order to retrieve the right data set.
2nd step is to use this date to create our aging bucket, dates range.
To do so, we created 4 user exit variables (for each aging bucket).
3rd step is to use these ranges in RKF.
This way you get aging bucket dynamically defined by the user input pretty cool!
Regards
H

Similar Messages

  • An error occured while created webi rpt on BEx and displaying data?

    Hi Experts,
    I have a problem which many couldnt able to provide a better solution and solve it.
    Need your expert solutions.
    Installed SAP BI with BO(R/3) integration kit SP3.
    Created WEBI report on BEx report via Universe. While trying to load/ refresh/ retrieving the data for display it is throwing an  error message like the mentioned below.
    Query1: UniverseOnSAPBEx2
    A database error occurred. The Database error text is: The MDX query SELECT { [Measures].[ZPrice] } ON COLUMNS, NON EMPTY CROSSJOIN( [ZVNAME].[LEVEL00].MEMBERS, [ZVID1].[LEVEL00].MEMBERS) ON ROWS FROM [$ZICTEST] failed to execute with the error.
    UNKNOWN error. (WIS 10901)
    Some fields in the Cube/ BEx/ Universe/ WEBI that i have used are ZPrice, ZVendorId, ZVendorName etc.
    Regards

    this looks like an issue with
    "SAP BI and BO(R/3) with integration kit sp3"
    I think there may be a better forum

  • How to create a report in bex based on last data loaded in cube?

    I have to create a query with predefined filter based upon "Latest SAP date" i.e. user only want to see the very latest situation from the last load. The report should only show the latest inventory stock situation from the last load. As I'm new to Bex not able to find the way how to achieve this. Is there any time characteristic which hold the last update date of a cube? Please help and suggest how to achieve the same.
    Thanks in advance.

    Hi Rajesh.
    Thnx fr ur suggestion.
    My requirement is little different. I build the query based upon a multiprovider. And I want to see the latest record in the report based upon only the latest date(not sys date) when data load to the cube last. This date (when the cube last loaded with the data) is not populating from any data source. I guess I have to add "0TCT_VC11" cube to my multiprovider to fetch the date when my cube is last loaded with data. Please correct me if I'm wrong.
    Thanx in advance.

  • Create column headers in report based on data entered in Form

    Hi,
    I have a form with following fields being entered into a table: -- a start date for a project and then projected hours required on a monthly basis for X months
    Start Date mnth1_resource mnth2_resource mnth3_resource ...
    2/12/2011 30 20 80 ...
    6/3/2011 80 30 70
    3/12/2011 50 70 60
    4/10/2011 40 120 90
    I would like to create a report (interactive or otherwise) that will provide headers for the actual months of the calendar showing the full range of months to cover the dates included in the data: e.g. if the above data was the only data entered then:
    Feb Mar Apr May Jun Jul Aug Sept
    30 20 80
    50 70 60
    40 120 90
    80 30 70
    Where mnth1 is the month of the start of the project--
    Would appreciate any hints on how to accomplish this.
    Thanks,
    Pat

    Hi,
    Thanks for the response. I see how a crosstab type report works great for data that is static and all in the table, however, in my case the issue is that the columns will vary depending on the start date of the project. So even though the user is only entering 12 months of projection, the total number of columns will depend on the start date of the latest project. For example, if a project does not start till June of 2011 and goes out 12 months, the actual column headers will need to go out to May 2012. Likewise the first column will be dependent on the earliest start date month-- like Feb 2011 in the sample data.
    Pat

  • Creating no. of spool requests based on data

    Hi all!
      I am preparing a smartform showing the schedule deliveries of purchase orders of all vendors within a specified period. A new spool request is to be generated for each vendor's schedule deliveries. How can I raise a new spool request when the vendor no. is changed? Is it possible? If yes,please suggest.
    Edited by: Jayasri P. on Apr 21, 2008 12:31 PM

    Hi Nehal!
      I have passed the parameter of type SSFCRESCL in the function module fm_name(i.e. 2nd f.module in my program).But it's throwing a dump when executing saying that parameter of specified type doesn't allow to pass through this function module an it allows only fields of a particular type .What is the type of LS_COMPOSER?
    I have declared the variable as : LS_COMPOSER TYPE SSFCRESCL .
    LS_COMPOSER-TDNEWID = 'X'.
    CALL FUNCTION FM_NAME
           Exporting
               t_lfa1 = t_lfa1
               OUTPUT_OPTIONS = LS_COMPOSER
           TABLES
               it_ekko =it_ekko
               it_ekpo = it_ekpo
               it_eket = it_eket.
    What's going wrong with this?

  • Age Bucket in sql

    Hi all,
    I need to solve it by using procedure.
    I have follwoing table:-
    Item NO|Date|Lot_No|Location|Quantity|Barcode No|State
    I need to create age bucket with 0-10 days,10-20 days and 20-30 days based on dynamic date.
    suppose i Pass @date='2010/2/1'
    Then i need to calculate 0-10 days(21jan-31 jan[Last 10 days])
    ,10-20(11jan-20 jan) days and 20-30(1jan-10jan) days 
    then my output is like:-
    Item NO|Lot_No|Location|Quantity|Barcode No|State|0-10 days|10-20 days|20-30 days

    suppose the data:-
    Item NO|      Date      |Lot_No |Location|Quantity|Barcode No|         State
    1            2010/1/1       1     Delhi     10          B1             New Delhi
    1            2010/1/5       1     Delhi     05          B1             New Delhi
    2            2010/1/5       3     Punjab    10          B5             Chandi
    1            2010/1/11      1     Delhi     10          B1             New Delhi
    1            2010/1/17      1     Delhi     10          B1             New Delhi
    2            2010/1/18      3     Punjab    10          B5             Chandi
    1            2010/1/21      1     Delhi     10          B1             New Delhi
    1            2010/1/30      1     Delhi     15          B1             New Delhi
    Expected Output:-
    Note:-Grouping should be done On Item NO,Lot_No,Location and Barcode No
    Item NO|Lot_No|Location|Barcode No|State      |0-10 days|10-20 days|20-30 days
    1       1      Delhi     B1         New Delhi    15       20         25
    2       3      Punjab    B5         Chandi       10       10         0

  • Key Date Variable in Webi

    Hi
    I have one webi report created on top of BW/ Bex Query and im using the KeyDate variable as my exchange rate conversion date. So, whenever i run the Webi Report it prompts a screen where i can key in the Date.
    Whenever i repoint the universe to the new unverse which is created on the same bex Query, the keydate variable isn't working anymore.
    Can anyone help me on this, i need to repoint several reports to this new universe.
    Regards,
    Siva

    Well, there are several versions in the old universe and just to avoid confusion i created a new universe.
    There is a warning message when i remap the webi report universe. this is the error message i got "An Internal Error Occured while calling 'ProcessDPcommands' API . (Error: ERR_WIS_30270)"

  • Receivable Aging Report for India based on Invoice Date

    We have a reporting/legal need for our India location to report the aging of their receivables based on the invoice date of the documents rather than the net due date.  Is there an existing report available that already does this?
    Currently when you use FBL5N and related aging reports RFDOPO10 etc. it calculates the arrears from the net due date.  They need to calculate the arrears from the document date.

    The report S_ALR_87012168 still does not allow me to choose that I want to calculate the arrears from the document date rather than the net due date:
    I guess what they really need to know is how old the receivables are based on the date they were created.
    As in the example below, current aging reports use the Net Due to calculate a days in arrears of 6 days (based on current date of 2008/11/05).
    Ty Doc. Date  Pstng Date Bline Date Net due dt Arrea
    RV 2008.09.30 2008.09.30 2008.09.30 2008.10.30     6
    What they need is the number of days in arrears based on the document date (2008.09.30) which would increase the numer of days the receivable has been open to 36.

  • Creating webi/crystal report on BEx and retrieving data, an error ocured?

    Hi Experts,
    I have a problem which many couldnt able to provide a better solution and solve it.
    Need your expert solutions.
    Installed SAP BI with BO(R/3) integration kit SP3.
    Created WEBI report on BEx report via Universe. While trying to load/ refresh/ retrieving the data for display it is throwing an error message like the mentioned below.
    Query1: UniverseOnSAPBEx2
    A database error occurred. The Database error text is: The MDX query SELECT { Measures.ZPrice } ON COLUMNS, NON EMPTY CROSSJOIN( ZVNAME.LEVEL00.MEMBERS, ZVID1.LEVEL00.MEMBERS) ON ROWS FROM $ZICTEST failed to execute with the error.
    UNKNOWN error. (WIS 10901)
    Some fields in the Cube/ BEx/ Universe/ WEBI that i have used are ZPrice, ZVendorId, ZVendorName etc.
    Regards

    looks like it could be the same issues as your other post.

  • Customize AP Trial Balance XML Data Definition for adding Aging Buckets

    Hi
    I have to customize AP Trial Balance Report XML Data Definition Template for adding Aging Buckets & Supplier details in R12 , Could you let me know how i can modify XML file?
    Thanks
    Pravin

    Hi,
    My requirement is different from the one which is in below link.
    I need to add Aging Buckets & Supplier details to AP Trial Balance report (R12) , here i need to modify the XML Data definition template.
    Please help me, very urgent.
    Thanks
    Pravin

  • Calculation based on date key figures in BEx

    Hi Friends,
    Hi Friends,
    I need to creat report for sales order data, which involved the calculation based on dates.
    In my cune iam having the data at the granual level with the dates as key figures. the calculation that i need to do is VTW = Actual PGI date - Customer want date.
    1) whn i run the report at the granual level my VTW is working correctly. No issues.
    2) when i run the report at higher levels the date fields are updated with X, as the system is unable to aggrigate the dates. The dates are at the material level in  a sales order. I need to show the VTW at the sales order level (each one of the two dates are same for all the materials). So, when i run the report with out mataril at the sales order level...i wanto sea the bothe date fields in a single line and also the VTW calculated as the different between throse two dates.
    3) Once we get the VTW correctly at the sales orde level. if i drill down the report for material, i want to sea both the dates in every record againest the matarial, but the VTW only aginest the first record...that is againest the sales order. I dont waht the VTW value repeated/duplicated for all the records againest the sales order,as VTW makes sence only at the Sales Order level.
    Please suggest me hwo i can achive the resulsts by meeting both Point 2 and 3.
    Thanks for ur help...in advance.
    Thanks,
    Renu

    Hi..
    I have the data from the extractore and in the cube as below.
    SALES ORDER    ITEM                MATERIAL            DATE1                         DATE2
    101                        Item1               Mat1              01/01/2010                15/01/2010
    101                        Item2               Mat2              01/01/2010                15/01/2010
    101                       Item3                Mat3             01/01/2010                15/01/2010
    I need the reports as below...
    Report1:
    SALES ORDER        DATE1                         DATE2                  VTW (DATE2 - DATE1)
    101                        01/01/2010                15/01/2010                14
    currently iam getting this Report1 output as below...
    SALES ORDER        DATE1                         DATE2                  VTW (DATE2 - DATE1)
    101                             X                                   X                           42
    Report2: Out put required as below
    SALES ORDER     ITEM                MATERIAL            DATE1                         DATE2      VTW (DATE2 - DATE1)
    101                        Item1               Mat1              01/01/2010                15/01/2010              14
    101                        Item2               Mat2              01/01/2010                15/01/2010
    101                   I     tem3                Mat3             01/01/2010                15/01/2010
    currently iam getting this Report2 output as below...
    SALES ORDER     ITEM                MATERIAL            DATE1                         DATE2      VTW (DATE2 - DATE1)
    101                        Item1               Mat1              01/01/2010                15/01/2010              14
    101                        Item2               Mat2              01/01/2010                15/01/2010               14
    101                   I     tem3                Mat3             01/01/2010                15/01/2010               14
    As VTW is need to be measued at the sales order level and we always have the DATE1 & DATE2 as same for all the itesm, it should be shon as only 14 in the first record. It mean once iget the required output from Report one in a single line with VTW as 14, it should not repeat with every line , when i dril down the report for Items or materials.
    Even if i can generate oly report2 as required in a single sheet ...that will be enough.
    Plas kindly provide some solution as how we can achieve this,
    Thanks,
    Renu

  • Best way to create detail records based on data in the master record..

    Hi,
    I am using 11gr1p1 and ADF stack.
    I have a master detail relation between 2 records. I have EO and entity associations. I want to create a number detail records based on the data on the master record.
    For example
    I have a Stay Record which has begin and end date I need to create the DailyStay Record for each day for the range of begin and end date of StayRecord.
    Where should I do this? In EO implementation or in VO implementation.?
    Thanks

    Where should I do this? In EO implementation or in VO implementation.?If your child record should in no case be created without those default values, then EO.
    Otherwise, to increase reusability of your EO, then in the VO over the view link (i.e. other VO's would still be able to use your EO without having the child VO created with these defaults).
    This way your ViewObjects can also be used in a context where you don't want to copy from the masterFrank, If there's another UI flow that is so drastically different that it does not want things defaulted, then it probably needs a different VO altogether (on the same underlying EO though)

  • Creating iCal entries based on date/time appearing in text on any app

    One thing I like about iCal's integration with Apple Mail is that the mail client is able to sense dates and times in email messages and then allow you to create iCal entries. But it seems that this date and time sensing is only limited to Apple Mail when technically users could potentially want to create iCal entries when a date and time appears on any app, such as on a web page in a web browser, in a PDF, or a word processing document. It seems logical then for iCal to be integrated with OS X's text services, so that at least if I highlighted a date and time, I could right click on it and bring up an option to create an iCal entry on based on that date and time.
    Does anyone know if this feature is natively supported (for which I have yet to enable), or is there a third party app out there that will allow me to do this?

    Just a quick update. I tried the first two -- text2cal and Calendar Creator -- and they don't seem to work on OS X 10.6.6.
    However, on another note, I found some discussion regarding Snow Leopard's enhanced data detectors being natively able to do what I've been looking for. But I just can't seem to get it to work on my computer:
    "Enhanced Data Detectors now link dates, times and other items found in text to actionable items in other applications, like iCal. For example, a drop-down menu that automatically appears when you select the time or date parts in a text enables you to create a new iCal event from a selected date or show the date in iCal." From this link: http://www.geek.com/articles/chips/5-cool-snow-leopard-features-that-apple-doesn t-want-you-to-see-yet-20090520/

  • Divide Customers based on Aging Bucket

    Is there any way we can split the customers of different profile class having different aging buckets defined?

    Hmmm.... you can put me in the "Ancient" bucket. :-)
    By the way, what is an "aging bucket"?

  • How can the dunning letter shows O/S amt and corresponding aging bucket?

    Hi,
    I am going to implement the dunning letter setup in R12. Our user request to have the dunnng letter layout which should show all regular dunning details but also the aging info of the outstanding invoices, i.e. which aging bucket the outstanding amount will be shown. Anybody have idea and help? Thanks a lot.
    Edmond

    Thank you Nagarajan.  I have a dunning letter created in Crystal Reports for our client.  It is fairly limited in scope, it just has the customer name and address, invoice numbers and dates, amounts due and the text they wanted in it.
    I can import it into B1 9.0 and set it as the default for Dunning Letter #1 and it runs, but unlike other formats where there is a DocEntry and/or ObjectID and a ?DocKey@ or ?ObjectId@ parameter, how do I limit the report to just one customer?  Typical document layouts run for the document that's on the screen.  In the dunning process, the report runs once for every customer when the Dunning Letter Method is set to "One Letter per BP".  I have to limit the report to one customer at a time.  Right now, each dunning letter based on the Crystal report is identical and it contains all the data for every customer.
    So, does anyone have any ideas for what selection criteria needs to be included in the Crystal report to have it select just one customer from the dunning wizard tables?  Thanks.
    Michael
    Edit: I created a ?WizardID@ parameter and a ?CardCode@ parameter to limit the report to a single dunning wizard event and a single customer.  While it works fine in Crystal itself, it doesn't work in B1 at all.  I had thought that by limiting the report in this way, it would only create dunning letters for a single customer.

Maybe you are looking for