Writing customized logics in BW reports

We have a infocube which stores YTD (Year to Date) figures of FS items. I was trying to get QTD (Quarter to Date) figure from YTD by doing subtraction. For example, For QTD figure of period 5 of the Year, I will take YTD figure of period 5 minus YTD figure of period 3. for QTD(Period 8), it will be YTD(period 8) - YTD(period 6).
However, in BW report I cannot find ways to write a 'if' statement to determine the period that is input (e.g. period 5 or 8 as above), so that I can then determine which quarter end to take for calculation (e.g. above period 3 or period 6)
Any help appreciated.
Regards
Chee Hui
Message was edited by: Chee Hui Ong

YOu can create a virtual key figure in your cube and use it for the calculation.
Virtual Key figures are used at the time of running the Query and they won't contain any data in the infocube.
You can write the user exit and popualte the keyfigure at run time.
Please see the below link for various discussions
Virtual Key Figures Doc
Hope it helps
Regs
Gopi.
Assign point if it helps ....

Similar Messages

  • Writing a custom plugin for Crystal Report Designer

    Hi,
    I need to add a custom functionality to Crystal Report Designer so that itu2019s available as a menu option is the CRD and should able to be selected by the Report Designer when they design a report using CRD. Is it possible to write and add custom plugins to the CRD? Is there a SDK available to do this or is there a specific method that I could use? Is this supported at all? I need to add the to Crystal Report Designer XI R2 but I could use Crystal 2008 is this is available in that version.
    Thank you in advance,
    Regards,
    Chanaka

    Hi Jamie,
    This sure looks promising  information for me this is exactly what I want to do. Can you direct me to a working Crystal Report 2008 .net Developer Guide and API reference? The chm files I got from searching doesn't seems to work
    [http://www.sdn.sap.com/irj/boc/crystalreports-sdk]
    [http://www.sdn.sap.com/irj/boc/sdklibrary#section7]
    [http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_dg_12_en.chm]
    [http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_apiRef_12_en.chm]
    Thanks,
    Regards,
    Chanaka

  • SRM Smartform - How to write custom logic to get data

    Hi Experts,
    I am new to SRM 7.0 now. I want to know where the code logic can be written to print the custom smart form?
    I have already create custom smarts form ZBBP_PO, and implement the BADI  BBP_OUTPUT_CHANGE_SF to pass the custom form name.
    But i don't know where to write the code for fetching the source data. In ECC, we can write the code in a separate report program. How it does in SRM now? It is said some class and method will print the form. How to find it? and how to add custom logic.?
    Or the logic of fetching source data should be embeded in the smart form? I don't like to write much more codes directly in smart form.
    Thanks!

    Yeah, I know it. but I don't want to write code logic into the Smartforms. in ECC, i always write the code in a separated program which will pass the data to smartform and call function module to print it.
    i just want to know whether i can write the code in somewhere else in SRM, not in smartform.

  • Customer Funded PO alert report

    Hi SAP Experts,
    I need to Develope Report its Customer Funded PO alert report,
    Eg:They have created one seprate customer GL account for Custmer. While creating PO they will Put Account Assinment Category K and & respective Customer GL account.
    My client wants based on GL acount and Goods recept posting date wise report so kindly suggest me how ican make logic for FS prepartion and how to link the all Table.
    Regards
    Santosh

    Hello,
    You can use the BAPI: BAPI_CUSTOMER_GETDETAIL2. In the EXPORT parameter you have a structure for Customer Addr. (CUSTOMERADDRESS LIKE BAPICUSTOMER_04).
    The PO BOX is in BAPICUSTOMER_04-PO_BOX.
    Hope this helps.
    BR,
    Suhas

  • How to hide some select-option of Logical Database in report?

    How to hide select-option of  Logical Database in report?eg . In Logical Database 'PNP' , my code is 'GET  PERNR' , excute the report , select-screen is displayed . I want to hide some select-options , such as PNPPERNR-LOW .
    Edited by: rongrong wang  on Mar 26, 2008 9:31 AM

    U need to write code in initialization as
    initialization.
    loop at screen.
    if screen-name = 'PNPPERNR-LOW'.
    screen-active = '0'.
    modify screen.
    endif.
    if screen-name = 'PNPPERNR-HIGH'.
    screen-active = '0'.
    modify screen.
    endif.
    endloop.

  • Customer and Vendor ageing report by ItemGroup@%@#$%@#$??

    Hi All
    How do we get Customer and Vendor ageing report by "ItemGroup"?
    I know there is a standard report in Business One which gives you the ageing report by Business Partner Group.  But I dont know whether it is possible to get by "ItemGroup".  Please help me and excuse me for weird requirement..
    Thanks

    Hi Gordon,
    that query is actually designed for getting the purchase reports with all the excise and other tax related information per line item in the marketing document.   my requirement is something different than this where the client wants to see the ageing report by Itemgroup. 
    Since ageing is based on the invoice due date it looks difficult to bifurcate the each individual line item, its group, its line total and their due date.  means we should add all the open invoices' line items to be grouped with its total based on the due date.  any other way to solve this?
    thanks

  • Customer Open Balance Aging Report S_ALR_87012178

    hello,
    we are using this report Customer Open Balance Aging Report S_ALR_87012178 but when run, it brings customers' names from VD03 search field, instead it would be handy to see full names from Name-field. I understand S_ALR_87012178 is a static report, but my question would be is there any other transaction/report which shows the same but with customers' full name?
    thanks in advance

    S_ALR_87012178 is the only standard customer aging report.
    Following two solutions I could think of to fit your requirements.
    Develop a custom report by copying standard customer reports that have full customer name and make changes according to your need.
    Or
    In report S_ALR_87012178 the customer name is populated in Address field. So you can use this field as your customer name and develop a custom report.
    Thanks

  • Error while creating logical port for Reporting

    Hi,
    In one of the training materials for Duet Enterprise, i saw the steps for creating logical port for the consumer proxy /IWTNG/CO_PXY_RECORDS_REPOSITO.
    When i am trying to create the logical port, i am getting an error saying,
    " SRT Framework exception: Error in WSDL access: Exception occurred in communication framework:Error in HTTP Framework:500 Native SSL error
    https://<server:port>/_vti_bin/OBAFileReceiver.asmx?wsdl "
    I would like to know is it really necessary to create this logical port for "Reporting Scenario" and is it not created automaticallly using the Installation Wizard??
    And in case it has to be created, how to resolve this SRT framework exception?
    ~ Ramanath.

    Hi,
    the consumer proxy  /IWTNG/CO_PXY_RECORDS_REPOSITO was used in Duet Enterprise SP01. Now with SP02 the consume proxy /IWTNG/CO_OBAFILE_RECEIVER_SOA is created.
    However, the SSL error that you are getting looks a little strange (it does not mean that there is an error, but it is worth checking):
    So can you go to SOAMANAGER -> Service Administration -> Single Service Configuration. In here select "Consumer Proxy" from the "Search by", Search Pattern "/IWTNG/CO_OBAFILE_RECEIVER_SOA" and Field: Both.
    You should find one entry. Select it and click "Apply Selection".
    Now go to the Configurations tab. Here you should see one Logical Port with name "LOGICALPORTFORREPORTING" with Creation Type "Manually Created". In fact this logical port was created by the Wizard.
    Click on Display and scroll down again. Now in the "Additional Information" tab there is a string after HTTP Destination, e.g. 0050568E3F5A1ED096F22339C44BAF83.
    Copy this value and go to your SAP GUI -> Transaction SM59.
    Here click on Find/Search and search for this HTTP Destination. You should find one Type G RFC Destination that has the target host of your SharePoint server and the path prefix /_vti_bin/OBAFileReceiver.asmx.
    Now you can test the service. Just click on Connection Test. The result should be a HTTP Response: 200.
    If not, then something went wrong with the automatic configuration and we should take another look at it (for example maybe the SSL certificate from SharePoint that was imported by the Wizard is not valid)
    Regards,
    Holger.
    PS. Don't use the "Ping Web Service" test from SOAMANGER -- unfortunately this is not working consistently.

  • Query , logical DB or report about plan maintenance and functional location

    Hi,
    I've to do a report about a list of plan maintenance. I've to show the functional location affected by the plans but in the table MPOS the field TPLNR doesn't exist.
    But I have maintenance plans that affects to functional location only. I've not found any useful logical database or report to show this information.
    Could anybody help to me?
    Thanks
    Best Regards

    Dear
    The SAP is provded the option please check once again
    Table MPOS- Field ILOAN 
    First take the ILOAN from ILOA table by object reference is 2 (Field: OWNER) in output.
    Then put the Loc/acct assignment value at input of the MPOS table which is u received from ILOA table

  • Customer due date analaysis report

    Hi
    In customer due date analysis report S_ALR_87012068 figures are different from customer local currency report.  In vendors due date analysis report figures matches with vendor local currency figures. But some different amount is showing in customer due date analysis report why it so? FBL5n also showing some different amount
    Can anybody help me.
    Thanks
    jaya

    Hi
    Thanks for your reply, no entry was posted in future date. Any option is there to check carry forward fiscal year run has been done or not. Because i have checked for this year 2008 i don't know about 2007 is done or not
    Can u help me
    thanks
    jaya

  • Wht r the standard tables for vendor customer and sales order report/

    Hi wht r the standard tables for vendor and customer reports and is how in normal we cannot use them for vendor reporting and etc ?

    Hi
    Customer is related to Sales Module
    So for a customer we fetch the reports of Sales orders , Deliveries and Billing doc's
    CUstomer and Vendor related tables with important fields:
    KNA1: Customer Master-General(KUNNR,NAME1,LAND1)
    KNB1: Customer Master(Company Code)(KUNNR,BUKRS,PERNR)
    KNC1: Customer Master Data (Transaction Figures)(KUNNR,BUKRS,GJAHR)
    KNVK: Customer Master Contact Partner(PARNR,KUNNR,NAME1)
    KNVV: Customer Master sales data(KUNNR,VKORG,VTWEG,KDGRP)
    KNBK: Customer Bank Details(KUNNR,BANKS,BANKL,BANKN)
    KNVH: Customer Hierarchy (HITYP,KUNNR,VKORG,VTWEG,SPART)
    KNVP: Customer Master Partner Functions(KUNNR,PARVW,KUNN2)
    KNVS: Customer Shipment data(KUNNR,VSTEL,TRANS)
    KNVI: Customer Tax data(KUNNR,ALAND,TATYP)
    LFA1: Vendor Master-General (LIFNR,NAME1,ORT01)
    LFB1: Vendor Master(Company Code)(LIFNR,BUKRS,PERNR)
    LFC1: Vendor Master (Transaction Figures)(LIFNR,BUKRS,GJAHR)
    Sales related Tables for a customer
    VBAK: Sales Document(Header Data) (VBELN, KUNNR)
    VBAP: Sales Document(Item Data) (VBELN,POSNR,MATNR,ARKTX,CHARG)
          Enquiry, Quotation, Sales Order are differentiated based on Doc.
          Type(VBTYP field) in VBAK,VBAP Tables( for Enquiry VBTYP = A,
          for Quotation 'B' & for Order it is 'C'.)
    LIKP: Delivery Table (Header Data)(VBELN,LFART,KUNNR,WADAT,INCO1)
    LIPS: Delivery Table (Item Data)(VBELN,POSNR,WERKS,LGORT,MATNR,VGBEL)
          (LIPS-VGBEL = VBAK-VBELN, LIPS-VGPOS = VBAP-POSNR)
    VTTK: Shipment Table (Header Data)(TKNUM)
    VTTP: Shipment Table (Item Data)( TKNUM,TPNUM,VBELN)
          (VTTP-VBELN = LIKP-VBELN)
    VTFA: Shipping Document Flow(TKNUM,VBELV,VBELN)
    VTPA: Shipping Partners data(VBELN,PARVW,KUNNR,PERNR)
    VTTS: Stages in Shipment(TKNUM,TSNUM,TSTYP)
    VTSP: Transport Stage/Shipment Item Allocation(TKNUM,TSNUM,TPNUM)
    VEKP: Handling Unit: Header(Packing)(VENUM,VSTEL)
    VEPO: Handling Unit: Item (Packing)(VENUM,VEPOS,VBELN)
    VBRK: Billing Table(Header Data)(VBELN,FKART,BELNR)
    VBRP: Billing Table(Item Data)(VBELN,POSNR,FKIMG,NETWR,VGBEL,VGPOS)
          (VBRP-AUBEL = VBAK-VBELN, VBRP-VGBEL = LIKP-VBELN)
          Apart from these tables there are lot of other tables which starts with
          ‘V’, but we use the following tables frequently.
    VBUK: All Sales Documents status & Admn. Data(Header)(VBELN,VBTYP)
          VBTYP= ‘C’(Sales Order) VBTYP=’J’(Delivery) VBTYP=’M’(Invoice) 
    VBUP: Sales Documents status & Admn. Data(Item)(VBELN,POSNR)
    VBEP: Sales Doc. Schedule Lines Data(VBELN,POSNR,EDATU,WMENG)
    VBKD: To get sales related Business data like Payment terms etc.(VBELN,ZTERM)
    VBFA: sales document flow data(VBELV,VBELN,POSNV,VBTYP)
    VBPA: Partner functions Data(VBELN,PARVW,KUNNR,LIFNR)
    VEDA: Contract Data(VBELN,VPOSN)
    VEDAPO: Contract Data(VBELN,VPOSN)
    Vendor related MM tables
    EBAN-- Pur.Reqn. Data (BANFN,BNFPO,BADAT,MATNR)
    EBKN-- Purchase Requisition Account Assignment(BANFN,BNFPO,VBELN)
    EINA—- Purchase Info.Record (General Data)(INFNR,MATNR,LIFNR)
    EINE-- Purchase Info.Record (Pur.Orgn Data )(INFNR,EKORG)
    ELBK-- Vendor Evaluation Header Data(LIFNR,EKORG,KLASS)
    EKKO-- Purchase Order Data (Header)(EBELN,BSTYP,BSART)
    EKPO-- Purchase Order Data (Item)(EBELN,EBELP,MATNR)
           RFQ and PO are differentiated by Doc Type(BSTYP)in EKKO table.
           For RFQ it is ‘A’ and for PO it is ‘F’.
    MKPF-- GRN Data (Header) (EBELN,BLDAT,BUDAT,XBLNR,BKTXT)
    MSEG-- GRN Data (Item)(MBLNR,BWART,LIFNR,MATNR,EBELN)
           Apart from this there are lot of tables which begin with 'M'& 'E', but we
           use the following very often.
    EKBE--PO History Data (EBELN,EBELP,BELNR,BLDAT,MATNR,VGABE)
    EKBZ--PO History with delivery Costs(EBELN,BELNR,LIFNR,XBLNR)
    EKET--Schedule lines data of a PO (EBELN,EINDT,SLFDT)
    EKES--Vendor Confirmations Data(EBELN,EBTYP,EINDT,XBLNR)
    Reward points if useful
    Regards
    Anji

  • Customer group wise sales report

    can somebody give me a clue as to how to take customer group wise sales report
    thanks

    HI,
    it will not get the sales report with customer group wise in standard SAP.
    in standard you will get the data for the following selection :
    a. Sales Office wise : MC-E
    b. Sales Organization wise : MC+2
    c. Material(Article) wise : MC+Q
    tell me one thing, whether u need the report customer group wise or customer account group wise.
    Regards,
    somu.

  • Consumer/customer relations payment load report

    is there any standard report for Consumer/customer relations payment load report.....for country specific

    Hi Rajan,
    There is a lot of scope for performance tuning the code:
    1. Read statement should be with BINARY SEARCH
    2. Select statement should have FIELDS in the same order as they exist in the table
    3. Select statement where clause should have fields in same order as they exist in the table.
    4. Internal tables seem to be having a huge number of fields. If possible, please limit the fields to only required fields in the internal table.
    Best regards,
    Prashant

  • Custom fields on me2k report

    Hello,
    I've need to customize te report RM06EK00 (me2k), I've make a copy Z* for adding my fields, but i cannot find, the structure used for output.
    Can someone help me??
    Thank in advance.
    Roberto

    Hi,
    I want to same thing for addtiong custom fields on me3n report, did you figure it out. please suggest
    thanks

  • How we can add custom field in standard report 2kee.

    Hi,
    How we can add custom field in standard report 2kee.
    I need one extra field to add in 2kee report for the same is there any customization req.
    Regards
    Ravi

    Ravi,
    Which extra field do you want to add or see?  Without specifying the field, it is difficult for one to tell you precisely whether you need a custom field or just change the layout to get the standard one.
    There are so many fields which exists but are not displayed when you execute 2KEE. You need to change the layout selections to your preference.
    Nonetheless, if the field you want to add does not already exist, then yes you can do customization.  Is there a customization requirement? No. But remember, you are making changes to SAP Standard program which will no longer be supported by SAP should in the case an issue arise in the future related to this very program.
    Have your abaper add the said field in the program or why not just create a query to pull the report?
    Elias
    Edited by: Elias Akorli on Sep 18, 2009 9:02 PM

Maybe you are looking for

  • ERP 6.0 to EHP4 - SHADOW_IMPORT_INC - Duplicate Error in table SPROXYDAT~

    During the upgrade with EHPI in phase SHADOW_IMPORT_INC (Imports included Add-on and Support Packages into the shadow tables and the new tables) i've got the following error: SHADOW IMPORT ERRORS and RETURN CODE in SAPK-604DZINISUT.KT2 2EETW000 5 dup

  • Block upon stock removal indicator in Storage type master data

    What is the significance of "Block upon stock removal" in storage type master data. Would it work if the storage type is bulk storage and SUT active?

  • How to extend sales views extension for purchase material?

    Dear MM experts, pl let us know how purchase material master is extended with sales views. we have defined material for purchase views only, now we have requirement of sales views for the same material. Please let us how this can be done. Thanks in a

  • Error uploading published course to LMS

    I am receiving an error message when I try to upload a published course into my LMS.  The file is really big (583 MB) so not sure if that is the problem.  I have been able to upload all my other published courses - which are smaller - with no problem

  • Matched presets-but poor video quality and audio-PE9

    I have posted a few threads like this before, but the problem has not been resolved. I have matched my 1920x1080 24p (Panasonic HDC-TM900) footage to the correct presets when I start a new project. When I play the clips in the timeline the quality is