BEX Query for Week, MTD, YTD  for Sales data

Hi,
I want to display the sales data for current  Calender day, Cal week, Cal Month to date, Cal Year to Date and also for previous year Cal month, Previous Year Calender Year to Date data.
Structure is like this. for displaying Sales data. No variables are used on selection screen regarding below structure.
Calender Day I CalWeek I CalMonth(current) I CalMonth(previous Year) I YTD(current) I YTD(previous Year)
Please suggest me I used the variable 0P_HAPCY is enough or I have to do any other setups.
Message was edited by:
        Kaveri

Kaveri,
     I think 0P_HAPCY doesn't work for all the columns. Well when the user enters date it will also have the year and month right? So what is the relevance of year entered by teh user.
For the data for calender day, you can get directly from the user entry.
For calweek data you need to derive week from the calday enetered by the user using customer exit.
Similarly for month to date, and year to date.
Use offsets on customer exit variables for previous year calmonth and previous year yera to date data.
Hope this helps you...

Similar Messages

  • Bex Query - Months & Weeks

    I want to create a graph in Bex Wad that shows key figures in Months & Weeks. Can this be done? For example in my graph I want the previous 6 months of key figures but for future key figures (it's forecast data) I want to show it in weekly time buckets. At the moment I have it in my head that I have the key figures as rows on a query and the calweek as the column. This will display the data for the time period I filter in on in weeks. How do I then introduce the previous months so I can then do the graph?

    Hi Joel.
    You need to use a structure for your time buckets to achieve this, because as you noticed, you can't show months when the object you have in the columns is weeks.
    So you need to know how far back and how far ahead in time you are going to go with this query/graph. You then have to create a selection in a structure for each of the required time buckets. The easiest will probably be if you can convince the user that the total time horizon is always based on the current date, because then you can use exit variables for your historic months based on the system date and likewise for your future weeks. If the user wants to input fx a week, it becomes more tricky, because some weeks belong to 2 different months and so you would need to know if the offset in time should be based on the start of the chosen week or the end.
    If you can get away with changing the requirement a little so that the historic months are not actually months but based on say 4 week intervals, you can do without exit variables and just use the regular offset functionality on variable for weeks.
    Good luck!
    Jacob

  • Bex Query Multiprovider: restrict same characteristic for different Infoproviders

    HI SAP Guru's
    I have scenario here where the multiprovider is made up of 3 DSO .....i have a infoobject 0CRM_OBJ_ID(transaction Number) in two DSO and i want to display both values in separate rows as AMC Number and Service order Number in the query
    1.AMC Number(restricted to AMC infoprovider)
    2.Service Order Number(restricted to Service infoprovider)
    if it was a key figure i could have created a restriction in the kefigure structure by making a selection. but it characteristic and if  i create a structure in rows its throwing error infoobject 0NFOPROV is used in both structures of the query
    Please Suggest how to do it thanks

    You can go ahead with the workaround Arun has suggested.
    Create a new CKF--Under that formula variable--Create a new formula variable--Processing by replacement path--Reference char--0crm_obj_id.
    Hit the replacement path--Replace variable with--infoobject--replace with key--Hit the currency/unit tab--Choose number under dimensions.
    Now drag this ckf in columns--restrict with infoprovider.
    Hope this helps.
    Regards,
    AL

  • In Bex Query day from calday value and sales in prev yr value not come

    Dear all
    right now i got output like
                                                                                Sales                         Sales in Prev Yr     
    Sales Organization         Day From Calday          Calendar Day        Sales Value                   Sales Value          
    1020                  Not assigned          05/1/2010                                    2,013,176.00 INR               
    1020                  Not assigned            05/1/2011                2,945.00 INR                                                  
    and i want output like base on date 05/01 how to do pl help
    Sales Organization         Day From Calday          Calendar Day        Sales Value                   Sales Value          
    1020                      05/01                      05/1/2010        2,945.00 INR               2,013,176.00 INR               

    Hi ,
    This is possible via customer exit.You can populate day on the bases of your date .
    Try this :
    WHEN 'tech name of exit var'.
    data : v_day type c length 5 ,
              v_day_val  type c length 5.
    IF i_step = 2.
    READ TABLE i_t_var_range INTO LS_T_VAR_RANGE WITH KEY vnam = 'date_value u2019.
    v_day  = LS_T_VAR_RANGE-high+4(4).
    concatenate v_day+2(2) '/' v_day(2) into v_day_val .
       ls_range-low = v_day_val .
       ls_range-opt = 'EQ'.
       ls_range-sign = 'I'.
       APPEND ls_range TO e_t_range.
    Hope this will be helpful .
    Regards,
    Jaya

  • Need transaction code for opening Bex query designer?

    Hi ALL,
      Can anyone help me with the transaction code for opening Bex query designer?
      Like RRMX for Bex Analyzer similarly i want for Bex query designer.
    Thanks & Regards
    Sameer Khan

    THERE IS NO TCODE FOR QUERY DESIGNER. BUT THERE IS AN ALTERNATIVE..
    OPEN BEX ANALYSER THROUGH RRMX
    OPEN A QUERY
    CLICK ON TOOLS-> EDIT QUERY
    THIS OPENS QUERY DESIGNER AND YOU CAN USE IT NORMALLY..

  • Use FI Posting date as a filter value, can I get YTD for current year?

    Dear Expert,
    I work on a BI report which calculate the YTD key figure (restricted by 0CYEAR and =< 0CMONTH).
    One of the requirement for the report is to allow user to enter a value for a date using FI Posting date (although this is optional).
    Without entering the value for FI Posting date, my report works fine.
    But once FI Posting date is entered, no data found.
    I expect that when the value for the FI Posting date is entered, the YTD value will be calcuated starting from the Jan 1 of that FI Posting year to the FI Posting date entered.
    But this seems not happen.
    Could you help me to resolve this problem?
    If there is a better solution, please let me know.
    Very appreciated.
    Arthur

    Hi Dipika,
    Thanks for your reply.
    In my report, FI Posting date is a free characteristic, which user can optionally select it and fiter it for a specific FI Posting Date. Do you consider it as a global filter?
    my query structure is as below:
    rows: profit center, department, manager
    columns: YTD for current year, YTD for Previous year, the difference betwwen the two
    The requirement is when user enter a FI Posting date, use it  to restrict the KF shown above.
    For example, if the FI posting date is March 15, 2008, then YTD for current year should be restricted by the period between Jan 1, 2008 and March 15, 2008 and YTD for previous year should be restricted by Jan 1, 2007 and March 15, 2007.
    Do you have any idea how to implement this requirement in term of FI Posting date?
    Thanks and appreciated.
    Arthur

  • YTDs for each month

    is there any way to create this in BEx Query? or maintain "YTD REv" values in Cube?
    Data in Cube
    Plantcalmonrev
    ABCJan $5
    ABCFeb $4
    ABCMar $6
    ABCApr $3
    If User Input is: Jan to Apr, Output should be
    Plantcalmonrev--YTD REv
    ABCJan $5 -- $5
    ABCFeb $4 -- $9
    ABCMar $6 -- $15
    ABCApr $3 -- $18
    If User Input is: Mar to Apr, Output should be
    Plantcalmonrev--YTD REv
    ABCMar $6 -- $15
    ABCApr $3 -- $18
    If User Input is: Apr, Output should be
    Plantcalmonrev--YTD REv
    ABCApr $3 -- $18
    thanks,
    Sam

    Hi,
    See the complete Exits help in the below url...See the all examples and then implement your Scenario.
    http://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
    Customer Exit Variables in BW/BI Reports
    Using Customer Exit Variables in BW or BI Reports Part - 1
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/business-intelligence/s-u/using%20customer%20exit%20variables%20in%20bw%20or%20bi%20reports%20part%20-%201.pdf
    How to use Customer Exit Variables in BW Reports: Part - 2
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/business-intelligence/g-i/how%20to%20use%20customer%20exit%20variables%20in%20bw%20reports%3a%20part%202.pdf
    Using Customer Exit Variables in BW/BI Reports Part - 3
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/10fc4382-afa6-2c10-1380-fa224fe4324f&overridelayout=true
    Using Customer Exit Variables in BW/BI Reports: Part - 4
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0fefc77-40e3-2c10-8da3-d4bfcb013387?quicklink=index&overridelayout=true 
    Calculating the Ageing of the Materials
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/business-intelligence/a-c/calculating%20the%20ageing%20of%20the%20materials.pdf
    Thanks
    Reddy

  • BEx Query- Making into Zero value in the blank row/column

    Hi All,
    I am running a query on multiprovider, say I have three characteristics (sales org, distribution, customer) & key figure (amount) in the layout. I am lookling the actual & plan data in the report.  If there is no plan data for the above combination of characteristics, in the report i am getting blank, instead of blank i want $0.00, how to do this?
    Regards,
    Anand

    Hi ,
    Could you please let me know how can we fix this issue.  I tried to create a new formula as KF+0 but it did not work.
    Hi ,
    This issue is in a Bex Query . We are looking for options on how to display blanks as zeros for keyfigures.In the below screen shot highlighted in red there is no data for march 2015 so it needs to display as zero and the overall result should be Zero.
    Issue : Overall Result for Cumulative Quantity FTE should pick up the last value which is Mar 2015 instead its displaying 2 as there is no data for Mar 2015.
    Thanks,
    Bharathi.

  • Analysis Office vs Webi report ---Bex query Data mismatch

    I have one Bex query.
    I insterted the query in Analysis office for Microsoft edition, and its pulling 985 records, but when i inserted the bex query in Webi report its pulling only 27 records. Any body faced similar problem, explain the solution..?
    Using BICS connction for webi report development.
    Environment: BI 4.1 SP5
    Anlaysis office version :  1.4 SP10

    Hi Ingo,
            If we make it database delegated then the Webi query returns no results. (Blank results). Moreover there is no exception aggregation
    We have tried the following and getting the result correctly,
    In the Bex Query We had a Time variable which was based on SAP exit. We removed the SAP exit variable from Bex Query and restricted the period for atime range.
    Then created a Prompt in Webi report for the time
    The result is matching.
    But still failed to undrstand this because other queries which have SAP exit variables works fine.
    Still working around for a convincing solution for this.. Will let you know
    Thanks and Regards
    Rajesh

  • SAP BW ,BEX query,Infocube with the universe problem

    Hi gurus,
    Plz throw some light....
    1. Now i can create the universe on the top of each bex query,but how to select<b> 2 or more query in the singel univers</b>e itself.Because this leads to me to create <b>lot of universe.
    </b>
    2. I <b>dont have option to select the infocube</b>..how i can select the infocube???only folder is there,when i click on it,<b>bex query is there,but how to select the INFOCUBE??
    </b>
    3. In the particular folder(infocube) itself i <b>cant find the all the bex query</b> available...for eg:i have 2<b>0 bex query in SAP BW but i see only 5 querys in universe...</b>
    plz guide me gurus...
    santose

    Hi,
    This is a normal behaviour.
    Please have a look on the deffierent Universe's guides:
    [Designer's Guide|http://help.sap.com/businessobject/product_guides/boexir31/en/xi31_designer_en.pdf]
    [Using SAP BW in Universe Designer|http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_sap_olap_universes_en.pdf]
    Moreover please have a look on SDN documentations:
    [OLAP universes best practices|http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/c0a45246-ce76-2b10-e688-f5c8206203eb]
    [Best Practices. Web Intelligence XI 3.x on SAP NetWeaver BI |https://wiki.wdf.sap.corp/wiki/display/globalregions/BestPractices.WebIntelligenceXI3.xonSAPNetWeaver+BI]
    [OLAP Universes - how to samples and recommendations |https://wiki.wdf.sap.corp/display/globalregions/OLAPUniverses-howtosamplesand+recommendations]
    Regards
    Didier

  • Unwanted LOVs - Universe on a BEx query on top of a Multiprovider

    BO XI 3.1
    BW 7.01
    OLAP Universe on a BEx query
    BEx query on top of a Multiprovider
    Multiprovider on 2 DSOs; lets say DSO1 and DSO2
    BEx query has a global filter for "INFOPROVIDER = DSO1"
    BEx query has a user input variable defined for "Field1" (Field1 is present in both DSOs)
    In BEx, F4 on Field1 variable entry gives the values of Field1 from DSO1. (which is what we want)
    Expected LOVs for the generated prompt for Field1 in the WEBI report: Values of Field1 from DSO1
    Problem:
    Actual LOVs returned in WEBI report: Values of Field1 from both DSO1 and DSO2
    Has anyone faced this before?
    Thank you

    Henry Banks wrote:
    > I have a suspicion the BEX property 'only values in infoprovider' isn't picked up/consumed by the BAPIs used by the MDX interface.
    That is correct. The BEx properties do not carry over to the BO side. In Webi 3.1 here are the default selections for LOVs (as far as I know)
    OLAP universe against BEx query on an infoprovider (Infocube, DSO, Multiprovider) - Only values in Infoprovider
    OLAP universe against BEx query on an Infoset - Values in the master data table
    My understanding now is
    OLAP universe against BEx query on a Multiprovider - Only values in ALL Infoproviders under the Multiprovider
    Henry Banks wrote:
    > Yes, this is confirmed by Note 1224318 - MDX: InfoProvider restriction for the member rowset
    > It's a BW limitation of the OLE DB for OLAP.
    I have seen this note before and according to it you can set an RSADMIN parameter MDX_JOIN_CUBE_DIME and have more control over the LOVs.
    MDX_JOIN_CUBE_DIME = "A" -> The read mode for all LOVs is Only values in master data
    MDX_JOIN_CUBE_DIME = "I" -> The read mode for LOVs is either master data or infoprovider depending on the infoobject settings
    Henry Banks wrote:
    > It might be easier to have to 2 data providers for this document, if you don't already, for plan and actual;  or 2 seperate bex queries.
    Well, that would work but it would defeat the purpose of having a Multiprovider for logical partitioning, wouldn't it?

  • Error: No data available while executing BEx query

    Hi BI expert,
    Please help me out as I am very new in BI. I am getting error "No data available" after executing query in BEx query designer.
    thanks

    Hi,
    Pl check for the Filter Conditions of the query.Have the same filters data  as that in the Cube/ODS.
    Hw is the Data Flow ???
    A)From ODS to Cube to Query ????
    or
    B)From ODS
    or
    C)From Cube
    1)Check on which Infoprovider the Query is built.
    2)If it is Cube then Check the data in the Cube.Right click Cube ,Display data and Execute.
    3)If data is avaliable in cube then it shud come in Query except for the Filter conditions .
    4)then check for the Filter conditions of the query.
    5)If data is not avaliable in Cube then check in ODS ????
    6))If data is not avaliable in ODS then check in PSA
    7))If data is not avaliable in PFA then check in R/3.
    Also search in SDN as to how the Data flows
    A) both from Flat File and 
    B)R/3 and FULL and DElta Load.
    That will give clear uinderstanding  !!!!!
    Rgds
    SVU123
    Edited by: svu123 on Dec 15, 2008 2:15 PM

  • BEx Query Transports (NW04s)

    I transported a few queries using transport connection collection from DEV to QA.
    <b>These were the first transports.</b>
    After these transports queries that had not yet been transported are requesting a request when they are being saved in query designer:
    <b>error msg:</b> BEx transport request '' is not available or not suitable; Choose an existing request.
    To correct this problem I created a standard BEx request in transport connection. But now, when a query is saved entries are entered in the standard request, even though the query was never transported. (??????)
    I thought the query would go to standard BEx request the first time it was changed after it was transported.
    Also, I want to create multiple requests assigned to different packages:
    How do I assign the BEx query elements to the packages for transport?

    You get that message when you try to modify a Query that has been previously transported, hence the "transport not suitable" message.  Therefore you need to assign a new transport to the query.  You can do this in two ways, Sameer mentioned one of the methods.  
    Sameer's solution is risky, keeping a transport open (assigned) picks up any changes made in the BW environment.  That means that if some other BW developer is modifying objects, they will be saved to your "assigned" transport.  Therefore you must be careful and coordinate with your BW team if you are to use this method.  You must also remember to "delete" the assigned transport to "close" it in Transport Connection.
    What I recommend is to go to Transport Connection via RSA1, object types, then query elements.  Collect the queries you wish to modify and create a new transport for them.  Next, make your query changes.  Make sure to exit all BW sessions (if you're on BW3.5) after you're done changing your query.  Then recollect the query in transport connection to pick up the new changes you made (assign it to the original transport).

  • Created Webi report using BEx Query.

    Hi All,
    I am going to upgrade in BW and using BEx  & Webi Report. I have created webi report using BEx query. Now I need to test data in webi report.
    Can anyone tell me how to test data?
    Regards,

    Hi,
    compare the webi report data with Bex report. more you can compare webi report with SAP R3 system for random records.
    Thanks,
    Amit

  • How set current month in Voyager using BEX Query 7.0

    Hi:
      I have a voyager workspace connected a SAP BI Query 7.0. My query shows information since 2007 to 2009
      How I can set current month in characteristics defined in slice section? I tried to use a exit variable in proposed values query section but it doesn't works, when I use filter section in my BEX query it show only  information for 1 month.
    Thanks
    Marta Díaz

    Hi,
    From the problem report i understand that you want to open the Voyager workspace with all the data, but want to analyze for only the current month. 
    You can achieve it in the following manner.
    a) Open the Voyager report.
    b) Click on the member selector of the slice.
    c) Deselect the default member and then select the current month.
    d) Click on OK button.
    This should show you the data for only the current month.
    If you want to make use of exit variable by using the SAP query designer then try using the current calendars month variable.
    You can also refer from the discussion below in the thread to create a variable.
    Dafault value previous month in BEx
    Hope this helps.
    Thanks

Maybe you are looking for

  • How can I print my calendar without the color codes?

    I need to print my 2005 and 2006 calendars (one month to a page) and then to highlight some of the line items for certain dates. I don't know how to get rid of the darn "color coding" so I just get a simple calendar with no group colors. I appreciate

  • Create purchase requisition from Sales Order

    Hi, Is there a transaction to convert directly a sales order into a purchase requisition or even purchase order? When our sales orders are too big our suppliers send the material directly to our customers and right now we do the PO manually. Best Reg

  • Spell Check Functionality in CRM 2007

    Hi Experts, Do we have spell check functionality in CRM 2007, If yes, How & where can we enable it ? For example if a sales representative/Manager types something in NOTES, they should able to spellcheck. Thanks & Regards Shiven

  • URGENT!!! : About JTable

    I want to change all content of a Table (create by class JTable), then I will show the Table with new content(new datum). How can I do that? Please help me !!! Thanks.

  • All of My Music and Videos Become Invisible!!!

    hi there. i have 2G 16gb itocuh. i gave my itouch to my friend after i take it back it was not truly working. i cant leave the music menü. i try to close and sleep it nothing happend and i try take screenshot after that all screen become white i left