Error in tax summary report

Hi everybody,
I noted a wrong amount in tax summary report in field "Credit from previous month" in SAP B1 Version 8.8 PL18 : the credit calculated by SAP is incorrect (higher) than credit from previous month report. This field is not editable and I cannot correct it in order to write the correct amount.
Anybody knows how to correct it and how it is calculated ?
Thanks a lot,
Veronique

Hi,
Please check Note No. : 1522009  regarding the issue mentioned by you.
The issue is fixed on SAP Business One 8.8 PL19.
Kindly check.
Kind Regards,
Jitin
SAP Business One Forum Team

Similar Messages

  • TAX SUMMARY REPORT

    Hello Experts,
    From where i can get the tax summary report???

    hi divya
    please elaborate what exactly u meant by tax report if on certain date u want to see the amount of tax deduted then yes that u can see by opening the particular ledger that has been assigned with the tax code but if u want similar to purchase or sales register then i am sorry there is no customized report for it u would have to customize it
    Regards,
    Manish

  • TAX SUMMARY REPORT: Credit from previous months

    Dear experts, I have a problem in the Tax Summary Report. In this report there is a wrong value in the fiel "credit from previous months". The correct value is "0" but in the report I find another value.
    I print the report of the previous months and there is the same problem (wrong value of credit from previous months)
    SAP B1 A SP00 PL42.
    Thanks
    Paolo

    Create a new user is not a solution to my problem.
    There is a configuration file where SAP B1 stored the data of each user?
    Thanks.
    Paolo
    Edited by: Paolo Orlando on Aug 25, 2009 5:06 PM

  • Smartform for sales tax summary report

    Hi all!
    Is there a smartform for the Austrian sales tax summary report available? I have not found any hints At the moment, we "just" use a SAP-SCRIPT printout. Thank's for your help!
    Regards
    MARTIN JAGERSBERGER

    Hi Arvind,
    Check /people/navneet.dhami/blog/2010/11/04/some-useful-sql-scripts link and modify the query as per your requirement.
    Thanks,
    Neetu

  • NULL Value in Journal Entry and Wrong Tax Summary

    Hi people,
    I need your expert help for a big problem that appens to some customers.
    They run SAP BO 8.8 SP:00 PL:12
    This is the scenario:
    You insert a new documet,  A/R Invoice or A/P Invoice is the same, problem appear in all of them.
    After you insert the document, using SQL Server Management try this Select statment:
    Select * from JDT1 where JDT1.debit is null OR JDT1.credit is null
    A list of record where listed. And, this is the problem, NULL values are all in the VAT Lines in debit or credit colums.
    If you try to make a SUM(debit-credit) you discovery that, 1000,00-null=null
    Consequently, TAX Sumary report, that probably use arithmetic operation like me in SELECT statment,  count a wrong number when null values in DEBIT or CREDIT column in JDT1 for VAT declaration.
    How could I solve? And how i can make invoices store 0 rather than NULL in the VAT Line?
    Thanks in advance for your tips and solutions

    Thaks Neetu for your answer.
    I thinks there is a misurandertanding.
    My problem is not SQL.
    My problem is the SAP TAX Report.
    I used SQL only for check data and discover why SAP raise a wrong TAX Summary report.
    So, my question is: Why invoices write null values in journal entry, and how I can solve the problem that TAX summary report use null value in operations so the results are wrong.
    Thanks,
    Jonny Cortonicchi

  • KR TAX LOCALIZATION REPORT 실행시의 ORA-20000, ORA-06512 ERROR MESSAGE

    제품 : FIN_AP
    작성날짜 : 2002-12-02
    KR TAX LOCALIZATION REPORT 실행시의 ORA-20000, ORA-06512 ERROR MESSAGE
    ===================================================================
    PURPOSE
    Multi-Org 환경속에서 Kr Tax Localization Report 실행시의 ORA-20000, ORA-06512 Error Message 를 해결한다.
    Problem Description
    Kr Tax Localization의 Reports가 Error를 발생하고, View Log를 통해 확인한 Message가 다음과 같을 경우
    ORA-20000: APP-00001: Unable to find message:
    AR_NO_ROW_IN_SYSTEM_PARAMETERS
    ORA-06512: "APPS.ARP_STANDARD", 줄 999에서
    ORA-06512: "APPS.ARP_STANDARD", 줄 2246에서
    ORA-06512: "APPS.ARP_UTIL", 줄 29에서
    ORA-06512: "APPS.ARP_UTIL_TAX", 줄 111에서
    ORA-06512: "APPS.ARP_TAX_EXTRACT", 줄 6178에서
    ORA-06512: 줄 1에서
    Workaround
    Solution Description
    1) fnd_client_info.set_org_context(<org_id>);
    or
    2) v_org_id varchar2(10);
    v_org_id := fnd_profile.value('ORG_ID');
    fnd_client_info.set_org_context(v_org_id);
    .rdf 의 경우 : Before Report Trigger 에 추가
    .sql (Package Body, Procedure) 의 경우 : 각 Begin 절 이후
    Reference Documents
    -------------------

    제품 : FIN_AP
    작성날짜 : 2002-12-02
    KR TAX LOCALIZATION REPORT 실행시의 ORA-20000, ORA-06512 ERROR MESSAGE
    ===================================================================
    PURPOSE
    Multi-Org 환경속에서 Kr Tax Localization Report 실행시의 ORA-20000, ORA-06512 Error Message 를 해결한다.
    Problem Description
    Kr Tax Localization의 Reports가 Error를 발생하고, View Log를 통해 확인한 Message가 다음과 같을 경우
    ORA-20000: APP-00001: Unable to find message:
    AR_NO_ROW_IN_SYSTEM_PARAMETERS
    ORA-06512: "APPS.ARP_STANDARD", 줄 999에서
    ORA-06512: "APPS.ARP_STANDARD", 줄 2246에서
    ORA-06512: "APPS.ARP_UTIL", 줄 29에서
    ORA-06512: "APPS.ARP_UTIL_TAX", 줄 111에서
    ORA-06512: "APPS.ARP_TAX_EXTRACT", 줄 6178에서
    ORA-06512: 줄 1에서
    Workaround
    Solution Description
    1) fnd_client_info.set_org_context(<org_id>);
    or
    2) v_org_id varchar2(10);
    v_org_id := fnd_profile.value('ORG_ID');
    fnd_client_info.set_org_context(v_org_id);
    .rdf 의 경우 : Before Report Trigger 에 추가
    .sql (Package Body, Procedure) 의 경우 : 각 Begin 절 이후
    Reference Documents
    -------------------

  • Error in standard Customer Listing Summary report

    I have three questions about this report.
    1) Has this report by chance been deprecated? All of the environments that I have checked have the customer listing summary (and detail) concurrent program as NOT enabled. We are on oracle applications version 11.5.10.2.
    2) When I try to run the report wide open it fails with the message "process terminated by signal 10". I figure this is due to the fact there are over 1 million customers in the table and the server is running out of memory or something of that nature. Any other ideas as to why I'm receiving this error?
    3) The report will complete successfully if you include some parameters. I used customer number in this case and it worked; however, when I tried customer name low and customer name high. Any value I choose would result in the following error: REP-0091: Invalid value for parameter 'P_CUSTOMER_NAME_LOW', which seems to point to a data type error. I checked the value set, AR_CUSTOMER_NAME, and it has a char data type of size 360 which matches the data type varchar2 and size 360 of the database column, hz_cust_accounts.party_name. Any suggestions as to why I am receiving this error?

    1) Has this report by chance been deprecated? All of the environments that I have checked have the customer listing summary (and detail) concurrent program as NOT enabled. We are on oracle applications version 11.5.10.2.I believe not.
    XML Publisher and Concurrent Manager Integration [ID 276691.1]
    Publishing Concurrent Requests with XML Publisher [ID 295409.1]
    Customer Open Balance Report APPS-FND-01030 customer name ... is longer than maximum length 50 characters [ID 1118825.1]
    Why does Customer Name LOV parameter in Autoinvoice Import Program Gives APP-FND-01564: ORACLE error 24345 in fdlget? [ID 1058105.1]
    2) When I try to run the report wide open it fails with the message "process terminated by signal 10". I figure this is due to the fact there are over 1 million customers in the table and the server is running out of memory or something of that nature. Any other ideas as to why I'm receiving this error?Please check the CM/OPP log files for any errors.
    3) The report will complete successfully if you include some parameters. I used customer number in this case and it worked; however, when I tried customer name low and customer name high. Any value I choose would result in the following error: REP-0091: Invalid value for parameter 'P_CUSTOMER_NAME_LOW', which seems to point to a data type error. I checked the value set, AR_CUSTOMER_NAME, and it has a char data type of size 360 which matches the data type varchar2 and size 360 of the database column, hz_cust_accounts.party_name. Any suggestions as to why I am receiving this error?See if (When Customer Names Greater Than 50 Characters, Reports With This Parameter Have No Output Or Error [ID 307979.1]) helps.
    Thanks,
    Hussein

  • Service Level tracking summary report/ Error subreport

    Hi Everybody,
    I have SCOM 2012 SP1 RU2, after apply the RU2 and import the .mbp when I try to run the report Service Level tracking summary report I get this message:
    Any Idea?
    Regards!!!

    What's version of SQL Reporting Service?
    http://support.microsoft.com/kb/967749/en-us
    Also you can check below link, may be help you
    http://blogs.technet.com/b/mgoedtel/archive/2013/01/06/how-to-fix-the-om-2012-service-level-tracking-summary-report.aspx
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"
    Mai Ali | My blog: Technical | Twitter:
    Mai Ali

  • Error while opening the report.

    hi,
      Some time i am getting "500 Internal Server Error',while executing the report.Please check the following exception and  give the possible reason for getting this kind of problem.
    <b>   500 Internal Server Error</b>                                                                               
    BEx Web Application
    Failed to process request. Please contact your system administrator.
    <b>Error Summary</b>
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator.
    To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    <b>Root Cause</b>
    The initial exception that caused the request to fail, was:
    Termination message sent
    ABEND RSBOLAP (000): Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION
      MSGV1: SAPMSSY1
      MSGV3: UNCAUGHT_EXCEPTION
    com.sap.ip.bi.base.application.exceptions.AbortMessageRuntimeException: Termination message sent
    ABEND RSBOLAP (000): Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION
      MSGV1: SAPMSSY1
      MSGV3: UNCAUGHT_EXCEPTION
    at com.sap.ip.bi.base.application.message.impl.MessageManager.addMessageInternal(MessageManager.java:148)
    at com.sap.ip.bi.base.application.message.impl.MessageManager.addMessage(MessageManager.java:113)
    <b>Messages</b>
    ABEND: Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION
    ABEND: Error in BW:
    <b>System Environment</b>
    <b>Server</b>
    BI Java Release: 7 - Patch level: 0000000009 - Description: BI Web Applications Java - Additional info:  - Production mode: true
    BI ABAP Release: 700 - Patch level: 0009 - Description: SAP NetWeaver BI 7.0 (BIPCLNT300) - Additional info:  - Production mode: true
    Java Virtual Machine Classic VM - IBM Corporation - 1.4.2
    Operating System AIX - ppc64 - 5.3
    <b>Context</b>
    ACCESSIBLE false
    BEx Runtime Version 1
    CACHE true
    CONTENT_PADDING true
    COUNTRY 
    DEBUG false
    DEBUG_LEVEL 0
    DEBUG_MESSAGES false
    Initial Query String BUILDTREE=false&NAVIGATIONTARGET=navurl%3A%2F%2F7b8b73fe5fd57ae6c5c1a24aed5d1ac4&NAVPATHUPDATE=false&RELATIVENAVBASE=&SAP-LAFVERSIONS=portal%3A7.0.9.0.1%3Bur%3A7.0.9.0.1&SAP-PP-CONSUMERBASEURL=3A80&SAP-PP-PRODUCERID=com.lenovo.BIP_Lenovosap&TEMPLATE=Z_WEB_CR_ZCRMOPPI_Q0032&THEME=LenovoBlueTwo
    LANGUAGE en
    Master System Alias BIPCLNT300
    PROFILING false
    RTL false
    Request URL http
    SAP_BW_IVIEW_ID pcd:portal_content/d029033/com..BI_Reports/com.BI_Analytics/Z_WEB_CR_ZCRMOPPI_Q0032
    SAP_EXTERNAL_SID CLGF6EORaEN7Vivt8TVaQw==3eTBxzbQZSMLxB4o3h9+7w==
    THEME_NAME LenovoBlueTwo
    TRACE false
    TRAY_TYPE PLAIN
    Time Thu Oct 04 03:14:20 PDT 2007
    User EPSUPPORT (USER.R3_DATASOURCE.EPSUPPORT)
    <b>Full Exception Chain</b>
    Log ID 00145ED13086005200000889000C719A00043BA80CB04B89
    com.sap.ip.bi.webapplications.runtime.controller.MessageException: Error during conversion of the Web template "Z_WEB_CR_ZCRMOPPI_Q0032 from the master system     at com.sap.ip.bi.webapplications.runtime.impl.Page.processRequest(Page.java:2055)     at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller.doProcessRequest(Controller.java:841)     at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller.processRequest(Controller.java:775)     at com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService.handleRequest(BIRuntimeService.java:412)     at com.sap.ip.bi.webapplications.runtime.jsp.portal.components.LauncherComponent.doContent(LauncherComponent.java:21)     at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java(Compiled Code))     at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java(Compiled Code))     at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java(Compiled Code))     at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java(Compiled Code))     at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java(Compiled Code))     at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java(Compiled Code))     at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)     at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java(Compiled Code))     at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java(Compiled Code))     at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java(Compiled Code))     at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)     at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)     at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java(Compiled Code))     at java.security.AccessController.doPrivileged1(Native Method)     at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))     at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java(Compiled Code))     at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))     at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java(Compiled Code))     at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java(Compiled Code))     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java(Compiled Code))     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java(Inlined Compiled Code))     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java(Compiled Code))     at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java(Compiled Code))     at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java(Compiled Code))     at com.sap.engine.services.httpserver.server.Client.handle(Client.java(Inlined Compiled Code))     at com.sap.engine.services.httpserver.server.Processor.request(Processor.java(Compiled Code))     at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java(Compiled Code))     at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java(Compiled Code))     at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java(Compiled Code))     at java.security.AccessController.doPrivileged1(Native Method)     at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))     at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java(Compiled Code))     at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java(Compiled Code))Caused by: com.sap.ip.bi.base.exception.BIBaseRuntimeException: Error during conversion of the Web template "Z_WEB_CR_ZCRMOPPI_Q0032 from the master system     at com.sap.ip.bi.webapplications.runtime.jsp.portal.service.template.PortalTemplateAccessService.getTemplateContent(PortalTemplateAccessService.java:93)     at com.sap.ip.bi.webapplications.runtime.preprocessor.Preprocessor.parseTemplate(Preprocessor.java:161)     at com.sap.ip.bi.webapplications.runtime.xml.XmlTemplateAssembler.doInit(XmlTemplateAssembler.java:81)     at com.sap.ip.bi.webapplications.runtime.template.TemplateAssembler.init(TemplateAssembler.java:118)     at com.sap.ip.bi.webapplications.runtime.base.Template.doInit(Template.java:105)     at com.sap.ip.bi.webapplications.runtime.base.PageObject.init(PageObject.java:232)     at com.sap.ip.bi.webapplications.runtime.base.Container.init(Container.java:46)     at com.sap.ip.bi.webapplications.runtime.impl.Page.initPageObject(Page.java:3226)     at com.sap.ip.bi.webapplications.runtime.impl.Page.createPageObject(Page.java:3427)     at com.sap.ip.bi.webapplications.runtime.impl.Page.setTemplate(Page.java:4355)     at com.sap.ip.bi.webapplications.runtime.impl.Page.doSetTemplateCommand(Page.java:4091)     at sun.reflect.GeneratedMethodAccessor293.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))     at java.lang.reflect.Method.invoke(Method.java(Compiled Code))     at com.sap.ip.bi.util.MethodInvoker.callMethod(MethodInvoker.java:101)     at com.sap.ip.bi.webapplications.runtime.command.CommandProcessorHelper.processCommand(CommandProcessorHelper.java:410)     at com.sap.ip.bi.webapplications.runtime.command.CommandProcessorHelper.processCommand(CommandProcessorHelper.java:325)     at com.sap.ip.bi.webapplications.runtime.base.CommunicationProcessor.processCommand(CommunicationProcessor.java:144)     at com.sap.ip.bi.webapplications.runtime.impl.Page.processCommandInternal(Page.java:1418)     at com.sap.ip.bi.webapplications.runtime.impl.Page.processCommandSequence(Page.java:1713)     at com.sap.ip.bi.webapplications.runtime.impl.Page.doProcessRequest(Page.java:2424)     at com.sap.ip.bi.webapplications.runtime.impl.Page.processRequest(Page.java:1977)     ... 38 moreCaused by: com.sap.ip.bi.deploytime.BIBaseRareSystemException: BI runtime subsystem error: Retrieve MetadataResources Failed1.4.2com.sap.ip.bi.deploytime.metadataresourcecache.MetadataResourceCache:initialize Note call hierarchy     at com.sap.ip.bi.deploytime.metadataresourcecache.MetadataResourceCache.initialize(MetadataResourceCache.java:212)     at com.sap.ip.bi.deploytime.BISP2Jsp.transformDTT(BISP2Jsp.java:1130)     at com.sap.ip.bi.deploytime.BISP2Jsp.convert(BISP2Jsp.java:497)     at com.sap.ip.bi.webapplications.runtime.jsp.portal.service.template.PortalTemplateAccessService.getTemplateContent(PortalTemplateAccessService.java:88)     ... 59 moreCaused by: com.sap.ip.bi.base.application.exceptions.AbortMessageRuntimeException: Termination message sent ABEND RSBOLAP (000): Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION  MSGV1: SAPMSSY1  MSGV3: UNCAUGHT_EXCEPTION     at com.sap.ip.bi.base.application.message.impl.MessageManager.addMessageInternal(MessageManager.java:148)     at com.sap.ip.bi.base.application.message.impl.MessageManager.addMessage(MessageManager.java:113)     at com.sap.ip.bi.base.application.message.impl.MessageManager.addMessageInternal(MessageManager.java:144)     at com.sap.ip.bi.base.application.message.impl.MessageManager.addMessage(MessageManager.java:113)     at com.sap.ip.bi.base.application.service.RfcService.fillMessages(RfcService.java:221)     at com.sap.ip.bi.base.application.service.RfcService.doPostProcessing(RfcService.java:171)     at com.sap.ip.bi.base.application.service.rfcproxy.impl.RfcFunction.execute(RfcFunction.java(Compiled Code))     at com.sap.ip.bi.deploytime.service.validation_metadata.impl.ValidationMetadataService.getTransformData(ValidationMetadataService.java:53)     at com.sap.ip.bi.deploytime.metadataresourcecache.MetadataResourceCache.initialize(MetadataResourceCache.java:196)     ... 62 more
    Regards,
    Ravi.M

    hi,
         Any suggestion for the above query.
    here i am using federated portal concept,once i am opening this report in the portal only i am facing the above problem.
    Regards,
    Ravi.M

  • Urgent ,complaint summary report  ??

    Hi Gurus,
    "The new complaint summary report is missing Location from the Ship-to Name/Location and Sold-to Name/Location fields" this is the problem.
    Please let me know how to go abt this .. which tcodes do I need to refer.. do I need to look at CRMD_ORDER
    if yes then how do I look at the report ??
    I'll reward points for this ..

    Hi Ravi,
    Thanks for your reply ..
    Is this the right site .. I get an error message ...
    could you please send all the possible CRM Forum sites
    were I can place query.. to it...
    Rgds,
    Aryan

  • Stock summary report

    hi
    i am doing stock summary report
    i am checking the data with mc.9 standard report
    the total amount for particular month is not tallying with standard one.
    data is coming with all the materials and with opening nd closing balances...
    but it is taking the stock amount with inclusive of all taxes. i am using the field mseg-dmbtr.
    but i need the material stock amount without taxes.
    i tried with mbew table, but i didn't get closing stock amount.
    values is there correct value in mbew but i am not able to get the correct value..
    tell me anyother tables or give me any soln....
    thanks nd regards
    vidya

    Go through this......
    *& Report  Z_OPEN_CLOSE                                                *
    REPORT  Z_OPEN_CLOSE MESSAGE-ID YW2 LINE-SIZE 231 LINE-COUNT 45
    NO STANDARD PAGE HEADING.
    Type Declaration *
    TYPE-POOLS SLIS.
    Tables *
    TABLES: MKPF, " Material Document: Header Data
            MSEG, " Material Document: Item Data
            MARA,
            MARD,
            S031,
            EKKO,
            EKPO,
            LIKP,
            MAKT,
            J_1IWRKCUS,
            T001W,
            WB2_V_MKPF_MSEG2,
            MMIM_REP_PRINT,
            YW2_STKMOVEMENTS,
            YPLNT,
            MARDH.
    Internal Tables *
    DATA: I_WERKS LIKE J_1IWRKCUS OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF I_YPLNT OCCURS 0,
             PPLNT LIKE YPLNT-PPLNT,
             WPLNT LIKE YPLNT-WPLNT,
          END OF I_YPLNT.
    DATA: BEGIN OF I_MKPF OCCURS 0,
            MBLNR LIKE MKPF-MBLNR,
            MJAHR LIKE MKPF-MJAHR,
            BUDAT LIKE MKPF-BUDAT,
            VGART LIKE MKPF-VGART,
            BWART LIKE MSEG-BWART,
            MATNR LIKE MSEG-MATNR,
            WERKS LIKE MSEG-WERKS,
            LGORT LIKE MSEG-LGORT,
            MENGE LIKE MSEG-MENGE,
            MEINS LIKE MSEG-MEINS,
            KUNNR LIKE MSEG-KUNNR,
            ZEILE LIKE MSEG-ZEILE,
            XAUTO LIKE MSEG-XAUTO,
            SHKZG LIKE MSEG-SHKZG,
            MATNR1 LIKE MSEG-MATNR,
          END OF I_MKPF.
    DATA: BEGIN OF I_MARDH OCCURS 0,
           WERKS LIKE MARDH-WERKS,
           MEINS LIKE MARA-MEINS,
           MATNR LIKE MARDH-MATNR,
           LGORT LIKE MARDH-LGORT,
           LABST LIKE MARDH-LABST,
           LFGJA LIKE MARDH-LFGJA, "Added -MB
           LFMON LIKE MARDH-LFMON, "Added -MB
           PERIO(6),
           INSME LIKE MARDH-LABST,
           EINME LIKE MARDH-LABST,
           SPEME LIKE MARDH-LABST,
           RETME LIKE MARDH-LABST,
           O_STK LIKE MARDH-LABST, " Opening Stock
           C_STK LIKE MARDH-LABST, " Closing Stock
          END OF I_MARDH.
    DATA: BEGIN OF I_MARD OCCURS 0,
           WERKS LIKE MARD-WERKS,
           MATNR LIKE MARD-MATNR,
           LGORT LIKE MARD-LGORT,
           LABST LIKE MARD-LABST,
           INSME LIKE MARD-LABST,
           MEINS LIKE MARA-MEINS,
           EINME LIKE MARD-LABST,
           SPEME LIKE MARD-LABST,
           RETME LIKE MARD-LABST,
          END OF I_MARD.
    DATA: I_MARD1 LIKE I_MARD OCCURS 0 WITH HEADER LINE.
    DATA: I_MARDH1 LIKE I_MARDH OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF I_MKPF1 OCCURS 0,
            MBLNR LIKE MKPF-MBLNR,
            WERKS LIKE MSEG-WERKS,
            MATNR LIKE MSEG-MATNR,
            BUDAT LIKE MKPF-BUDAT,
            BWART LIKE MSEG-BWART,
            MJAHR LIKE MKPF-MJAHR,
            VGART LIKE MKPF-VGART,
            LGORT LIKE MSEG-LGORT,
            MENGE LIKE MSEG-MENGE,
            MEINS LIKE MSEG-MEINS,
            XAUTO LIKE MSEG-XAUTO,
            SHKZG LIKE MSEG-SHKZG,
          END OF I_MKPF1.
    DATA: BEGIN OF I_MKPF2 OCCURS 0,
           WERKS LIKE MSEG-WERKS,
           MATNR LIKE MSEG-MATNR,
           BUDAT LIKE MKPF-BUDAT,
           BWART LIKE MSEG-BWART,
           MJAHR LIKE MKPF-MJAHR,
           VGART LIKE MKPF-VGART,
           LGORT LIKE MSEG-LGORT,
           MENGE LIKE MSEG-MENGE,
           MEINS LIKE MSEG-MEINS,
           XAUTO LIKE MSEG-XAUTO,
         END OF I_MKPF2.
    DATA: BEGIN OF I_FINAL5 OCCURS 0,
           WERKS LIKE MSEG-WERKS, " Plant
           MATNR LIKE MSEG-MATNR, " Material
           LGORT LIKE MSEG-LGORT, " Storage Location
           BUDAT LIKE MKPF-BUDAT, " Posting Date
           MTART LIKE MARA-MTART, " Material Type
           SPMON LIKE S031-SPMON, " Month
           MAKTX LIKE MAKT-MAKTX, " Description
    meins(3), " UOM
            MEINS LIKE MSEG-MEINS,
            O_STK LIKE MARDH-LABST, " opening stock
            TRECEP LIKE MARDH-LABST, " total receipts
            PRODU LIKE MARDH-LABST, " Net Receipts - Production
            RECEP LIKE MARDH-LABST, " Net Receipts - Receipts
            SAL_RET LIKE MARDH-LABST, " Net Receipts - Sales Return
            TDISP LIKE MARDH-LABST, " total dispatches
            CUSTMR LIKE MARDH-LABST, " Net Dispatches - Customers
            OPLANT LIKE MARDH-LABST, " Net Dispatches - To Other Plant
            TLOSS LIKE MARDH-LABST, " Total Loss
            TRLOSS LIKE MARDH-LABST, " Transit Loss
            WHLOSS LIKE MARDH-LABST, " Warehouse Loss
            C_STK LIKE MARDH-LABST, " Closing Stock
            TRFSTK LIKE MARDH-LABST, "Transfer stock
            MENGE LIKE MSEG-MENGE,
            OTHADJ LIKE MARDH-LABST,
          END OF I_FINAL5.
    DATA: BEGIN OF I_FINAL OCCURS 0,
            WERKS LIKE MSEG-WERKS, " Plant
            MATNR LIKE MSEG-MATNR, " Material
            BUDAT LIKE MKPF-BUDAT, " Posting Date
            MTART LIKE MARA-MTART, " Material Type
            SPMON LIKE S031-SPMON, " Month
            MAKTX LIKE MAKT-MAKTX, " Description
    meins(3), " UOM
            MEINS LIKE MSEG-MEINS,
            O_STK LIKE MARDH-LABST, " opening stock
            TRECEP LIKE MARDH-LABST, " total receipts
            PRODU LIKE MARDH-LABST, " Net Receipts - Production
            RECEP LIKE MARDH-LABST, " Net Receipts - Receipts
            SAL_RET LIKE MARDH-LABST, " Net Receipts - Sales Return
            TDISP LIKE MARDH-LABST, " total dispatches
            CUSTMR LIKE MARDH-LABST, " Net Dispatches - Customers
            OPLANT LIKE MARDH-LABST, " Net Dispatches - To Other Plant
            TRFSTK LIKE MARDH-LABST, "Material Transfer stock
            TRLOSS LIKE MARDH-LABST, " Transit Loss
            WHLOSS LIKE MARDH-LABST, " Warehouse Loss
            TLOSS LIKE MARDH-LABST, " Total Loss
            C_STK LIKE MARDH-LABST, " Closing Stock
            OTHADJ LIKE MARDH-LABST,
           END OF I_FINAL.
    DATA: I_FINAL1 LIKE I_FINAL OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF I_FINAL_TEMP OCCURS 0,
            WERKS LIKE MSEG-WERKS, " Plant
            MATNR LIKE MSEG-MATNR, " Material
            MTART LIKE MARA-MTART, " Material Type
            MAKTX LIKE MAKT-MAKTX, " Description
            MEINS LIKE MSEG-MEINS,
            O_STK LIKE MARDH-LABST, " opening stock
            TRECEP LIKE MARDH-LABST, " total receipts
            PRODU LIKE MARDH-LABST, " Net Receipts - Production
            RECEP LIKE MARDH-LABST, " Net Receipts - Receipts
            SAL_RET LIKE MARDH-LABST, " Net Receipts - Sales Return
            TDISP LIKE MARDH-LABST, " total dispatches
            CUSTMR LIKE MARDH-LABST, " Net Dispatches - Customers
            OPLANT LIKE MARDH-LABST, " Net Dispatches - To Other Plant
            TRFSTK LIKE MARDH-LABST, "Material Transfer stock
            TRLOSS LIKE MARDH-LABST, " Transit Loss
            WHLOSS LIKE MARDH-LABST, " Warehouse Loss
            TLOSS LIKE MARDH-LABST, " Total Loss
            C_STK LIKE MARDH-LABST, " Closing Stock
            OTHADJ LIKE MARDH-LABST,
          END OF I_FINAL_TEMP.
    For Materials
    DATA: BEGIN OF I_MARA OCCURS 0,
           MATNR TYPE MARA-MATNR,
           MTART TYPE MARA-MTART,
           MEINS LIKE MARA-MEINS,
           LABST TYPE MARD-LABST,
           MAKTX LIKE MAKT-MAKTX,
          END OF I_MARA.
    DATA: BEGIN OF I_STKMVMNTS OCCURS 0,
           BWART LIKE MSEG-BWART,
           SHKZG LIKE MSEG-SHKZG,
           VZBEW LIKE YW2_STKMOVEMENTS-VZBEW,
          END OF I_STKMVMNTS.
    DATA: BEGIN OF I_FINALT OCCURS 0,
           WERKS LIKE MSEG-WERKS, " Plant
           MATNR LIKE MSEG-MATNR, " Material
           BUDAT LIKE MKPF-BUDAT, " Posting Date
           MTART LIKE MARA-MTART, " Material Type
           SPMON LIKE S031-SPMON, " Month
           MAKTX LIKE MAKT-MAKTX, " Description
    meins(3), " UOM
           MEINS LIKE MSEG-MEINS,
           O_STK LIKE MARDH-LABST, " opening stock
           TRECEP LIKE MARDH-LABST, " total receipts
           PRODU LIKE MARDH-LABST, " Net Receipts - Production
           RECEP LIKE MARDH-LABST, " Net Receipts - Receipts
           SAL_RET LIKE MARDH-LABST, " Net Receipts - Sales Return
           TDISP LIKE MARDH-LABST, " total dispatches
           CUSTMR LIKE MARDH-LABST, " Net Dispatches - Customers
           OPLANT LIKE MARDH-LABST, " Net Dispatches - To Other Plant
           TRFSTK LIKE MARDH-LABST, "Material Transfer stock
           TRLOSS LIKE MARDH-LABST, " Transit Loss
           WHLOSS LIKE MARDH-LABST, " Warehouse Loss
           TLOSS LIKE MARDH-LABST, " Total Loss
           C_STK LIKE MARDH-LABST, " Closing Stock
           OTHADJ LIKE MARDH-LABST,
           MONTH(8) ,
          END OF I_FINALT.
    DATA: IMKPFT LIKE I_MKPF OCCURS 0 WITH HEADER LINE.
    DATA: IMKPFT1 LIKE I_MKPF1 OCCURS 0 WITH HEADER LINE.
    DATA: IMARDT LIKE I_MARD OCCURS 0 WITH HEADER LINE.
    DATA: IMARDHT LIKE I_MARDH OCCURS 0 WITH HEADER LINE.
    DATA: T_FINAL LIKE I_MKPF OCCURS 0 WITH HEADER LINE.
    DATA: IMKPFT2 LIKE I_MKPF OCCURS 0 WITH HEADER LINE.
    FCAT is used for the field catalog
    DATA: FCAT TYPE TABLE OF SLIS_FIELDCAT_ALV WITH NON-UNIQUE DEFAULT KEY
                      WITH HEADER LINE INITIAL SIZE 0,
    for excluding the ICONs from the application toolbar
          FEXC TYPE TABLE OF SLIS_EXTAB WITH NON-UNIQUE DEFAULT KEY
                     WITH HEADER LINE INITIAL SIZE 0,
    FS_LAYO is used for Grid Layout
          FS_LAYO TYPE SLIS_LAYOUT_ALV,
    FEVENTS to handle the events TOP OF PAGE & USER_COMMAND
          FEVENTS TYPE TABLE OF SLIS_ALV_EVENT WITH NON-UNIQUE DEFAULT KEY
                     WITH HEADER LINE INITIAL SIZE 0,
    FHEADER is used for List header
          FHEADER TYPE TABLE OF SLIS_LISTHEADER WITH NON-UNIQUE DEFAULT KEY
                     WITH HEADER LINE INITIAL SIZE 0,
    sort is used for sorting
          FSORT TYPE TABLE OF SLIS_SORTINFO_ALV WITH NON-UNIQUE DEFAULT KEY
                     WITH HEADER LINE INITIAL SIZE 0,
          FCAT1 TYPE TABLE OF SLIS_FIELDCAT_ALV WITH NON-UNIQUE DEFAULT KEY
                    WITH HEADER LINE INITIAL SIZE 0,
          FS_LAYO1 TYPE SLIS_LAYOUT_ALV,
          GT_LIST_TOP_OF_PAGE1 TYPE SLIS_T_LISTHEADER,
          FEVENTS1 TYPE TABLE OF SLIS_ALV_EVENT WITH NON-UNIQUE DEFAULT KEY
                 WITH HEADER LINE INITIAL SIZE 0,
           FHEADER1 TYPE TABLE OF SLIS_LISTHEADER WITH NON-UNIQUE DEFAULT  
                  KEY WITH HEADER LINE INITIAL SIZE 0,
           G_STATU_071 TYPE SLIS_FORMNAME VALUE 'Z_PFSTATUS',
           ALV_VARIANT1 LIKE DISVARIANT.
    Variable Declaration *
    TYPES: TRFF_TYPE_DEC_6_5(6) TYPE P DECIMALS 5.
    DATA: FYEAR(4),
          MON(2),
          FYEAR1(4),
          MON1(2),
          OBAL LIKE MARD-LABST,
          CBAL LIKE MARD-LABST,
          INDEX TYPE I,
          COUNT,
          COUNT1 TYPE I,
          O_STK TYPE P DECIMALS 3,
          C_STK TYPE P DECIMALS 3,
          V_MJAHR LIKE MKPF-MJAHR,
          MONTHS TYPE TRFF_TYPE_DEC_6_5,
          MONTH TYPE I.
    Global variables for handling ALV functionality
    DATA: ALV_KEYINFO TYPE SLIS_KEYINFO_ALV,
          ALV_VARIANT LIKE DISVARIANT,
          ALV_LAYOUT TYPE SLIS_LAYOUT_ALV,
          ALV_REPID LIKE SY-REPID,
          ALV_PRINT TYPE SLIS_PRINT_ALV,
          ALV_DETAIL_FUNC(30),
          ALV_DEFAULT_VARIANT LIKE DISVARIANT-VARIANT,
          ALV_COLOURIZE_FIELDS LIKE MMIM_REP_PRINT-COLOR.
    RANGES: R_BUDAT FOR MKPF-BUDAT.
    *Added by Prabhu for year on 26.4.05.
    DATA: IDATE LIKE R_BUDAT OCCURS 0 WITH HEADER LINE.
    Selection Screen Elements *
    SELECTION-SCREEN BEGIN OF BLOCK BLK WITH FRAME TITLE TEXT-001.
      SELECT-OPTIONS: S_WERKS FOR MARD-WERKS OBLIGATORY NO INTERVALS.
      PARAMETER: P_SPMON LIKE S031-SPMON NO-DISPLAY .
      SELECT-OPTIONS: S_MATNR FOR MARA-MATNR OBLIGATORY,
                      S_LGORT FOR MSEG-LGORT NO-EXTENSION NO INTERVALS,
                      S_MBLNR FOR MKPF-MBLNR,
                      S_BUDAT FOR MKPF-BUDAT OBLIGATORY .
    SELECTION-SCREEN END OF BLOCK BLK.
    SELECTION-SCREEN BEGIN OF BLOCK BLK3 WITH FRAME TITLE TEXT-004.
          PARAMETER : MTART LIKE MARA-MTART DEFAULT 'FERT' NO-DISPLAY.
    SELECTION-SCREEN END OF BLOCK BLK3.
    SELECTION-SCREEN BEGIN OF BLOCK BLK2 WITH FRAME TITLE TEXT-003.
    SELECTION-SCREEN END OF BLOCK BLK2.
    ADDED BY PRABHU FOR DAY-WISE REPORT.
    SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-007.
      PARAMETERS: D1 RADIOBUTTON GROUP P1 DEFAULT 'X',
                  M1 RADIOBUTTON GROUP P1,
                  Y1 RADIOBUTTON GROUP P1.
    SELECTION-SCREEN END OF BLOCK B3.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-006.
    PARAMETERS: ALV_DEF LIKE DISVARIANT-VARIANT.
    SELECTION-SCREEN END OF BLOCK B2.
    DATA: S_BUDAT1 LIKE S_BUDAT OCCURS 0 WITH HEADER LINE."prabhu
    Initialization *
    INITIALIZATION.
      PERFORM ALV_INIT.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR ALV_DEF.
      PERFORM ALV_F4.
    At Selection Screen
    *AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_spmon.
    PERFORM monat_f4.
    At Selection Screen *
    AT SELECTION-SCREEN.
    checking for the layout
      PERFORM ALV_CHECK.
    authorisation check for the Plant
    PERFORM auth_check.
    Validation for the Plant
      PERFORM VALIDITY_CHECK.
      IF MTART NE 'FERT'.
        MESSAGE E041 WITH 'Material Type must be FERT Only...'.
      ENDIF.
      IF D1 = 'X'." On 26.4.05.
        P_SPMON0(4) = S_BUDAT-LOW0(4).
        P_SPMON4(2) = S_BUDAT-LOW4(2).
      ELSE.
        P_SPMON0(4) = S_BUDAT-LOW0(4).
        P_SPMON4(2) = S_BUDAT-LOW4(2).
      ENDIF.
      LOOP AT S_BUDAT.
        IF S_BUDAT-HIGH IS INITIAL.
          S_BUDAT-HIGH = S_BUDAT-LOW.
          MODIFY S_BUDAT.
        ENDIF.
      ENDLOOP.
      IDATE-LOW = S_BUDAT-LOW.
      IDATE-HIGH = S_BUDAT-HIGH.
      CALL FUNCTION 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
        EXPORTING
           I_DATE_FROM = IDATE-LOW
           I_DATE_TO = IDATE-HIGH
       IMPORTING
    E_DAYS =
          E_MONTHS = MONTH
    E_YEARS =
      DATA: I(3) TYPE C.
      I = S_BUDAT-LOW+4(2).
      CLEAR: R_BUDAT.
      REFRESH: R_BUDAT.
    *added by Prabhu for Only for Oneday.on 18.5.5
      IF MONTH EQ '0'.
        MONTH = MONTH + 1.
      ENDIF.
    *added by Prabhu for Only for Oneday.on 18.5.5
      DO MONTH TIMES.
        R_BUDAT-LOW = S_BUDAT-LOW.
        APPEND R_BUDAT.
      ENDDO.
      I = 0.
      LOOP AT R_BUDAT.
        R_BUDAT-LOW4(2) = S_BUDAT-LOW4(2) + I.
        I = I + 1.
        R_BUDAT-LOW+6(2) = '01'.
        MODIFY R_BUDAT.
      ENDLOOP.
      LOOP AT R_BUDAT.
        CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'
           EXPORTING
             DAY_IN = R_BUDAT-LOW
           IMPORTING
             LAST_DAY_OF_MONTH = R_BUDAT-HIGH
          EXCEPTIONS
            DAY_IN_NO_DATE = 1
            OTHERS = 2
        MODIFY R_BUDAT.
      ENDLOOP.
      LOOP AT R_BUDAT.
        IF R_BUDAT-LOW4(2) = S_BUDAT-LOW4(2).
          R_BUDAT-LOW = S_BUDAT-LOW.
          MODIFY R_BUDAT.
        ENDIF.
        IF R_BUDAT-HIGH4(2) = S_BUDAT-HIGH4(2).
          R_BUDAT-HIGH = S_BUDAT-HIGH.
          MODIFY R_BUDAT.
        ENDIF.
    For Summary on 26.4.05.
        IF Y1 = 'X'.
          CLEAR R_BUDAT.
          REFRESH R_BUDAT.
          R_BUDAT-LOW = S_BUDAT-LOW.
          R_BUDAT-HIGH = S_BUDAT-HIGH.
          APPEND R_BUDAT.
          CLEAR R_BUDAT.
        ENDIF.
      ENDLOOP.
    At Selection Screen *
    AT SELECTION-SCREEN OUTPUT.
    Start of Selection *
    START-OF-SELECTION.
      V_MJAHR = P_SPMON+0(4).
    Get plant distinction warehouse/production
      PERFORM GET_PLANT_DISTINCTION.
    Collect the data from various tables
      PERFORM GETDATA_FG_STOCK.
    here the number of rows in the output table is found
      PERFORM OUTPUT_TABLE_CHECK.
    here the top of the page code is written, that is to be displayed
    in the output
      PERFORM Z_TOP_OF_PAGE.
    here ALV layout properties are set
      PERFORM Z_LAYOUT_SETTINGS.
    ALV EVENTS for TOP OF PAGE and for USER COMMAND
      PERFORM Z_ALV_EVENTS.
    The field catalog is defined for the Primary List is defined in
    the subroutine CREATE_FIELD_CATALOG include program ZPRRDOCR_FCAT
      PERFORM Z_CREATE_FIELD_CATALOG.
    This is for displaying the output
      PERFORM Z_REUSE_ALV_GRID_DISPLAY.
    *& Form getdata_fg_stock
    Getting data from standard tables
    FORM GETDATA_FG_STOCK.
    For getting the Start date & end date of the month
    PERFORM get_month_dates.
    Getting the Opening Stock from MARDH table
      IF MON EQ '01'.
        MON1 = MON.
        FYEAR1 = FYEAR.
        MON = '12'.
        FYEAR = FYEAR - 1.
      ELSE.
        MON1 = MON.
        FYEAR1 = FYEAR.
        MON = MON - 1.
        FYEAR = FYEAR.
      ENDIF.
      PERFORM GET_RECORDS_FROM_DB.
    *added for Month Summary on 26.4.05.
      LOOP AT R_BUDAT.
        S_BUDAT-LOW = R_BUDAT-LOW.
        S_BUDAT-HIGH = R_BUDAT-HIGH.
    *for Month
        P_SPMON0(4) = S_BUDAT-LOW0(4).
        P_SPMON4(2) = S_BUDAT-LOW4(2).
    *for summary.
        IF Y1 = 'X'.
          LOOP AT S_BUDAT.
            S_BUDAT1-SIGN = 'I'.
            S_BUDAT1-OPTION = 'NB'.
            S_BUDAT1-LOW = S_BUDAT-LOW.
            S_BUDAT1-HIGH = S_BUDAT-HIGH.
            APPEND S_BUDAT1.
            CLEAR S_BUDAT1.
          ENDLOOP.
        ENDIF.
        IMKPFT[] = I_MKPF[].
        IMKPFT2[] = I_MKPF[].
        IMARDT[] = I_MARD[].
        IMARDHT[] = I_MARDH[].
        PERFORM MONTH_WISE.
        PERFORM PROCESS_MOVEMENTS.
        PERFORM CALCULATE_OPENING_STOCK.
        PERFORM UPDATE_NON_TRANSACTION_ITMS.
        PERFORM DELETE_EMPTY_RECORDS.
        CLEAR: IMARDHT,IMARDT,IMKPFT1,IMKPFT,I_FINAL,I_FINAL5.
        REFRESH: IMARDHT,IMARDT,IMKPFT1,I_FINAL,I_FINAL5,IMKPFT.
      ENDLOOP.
      CLEAR: R_BUDAT.
      REFRESH: R_BUDAT.
    *end of changes for month.
    ENDFORM. " getdata_fg_stock
    FORM MONAT_F4 *
    F4-Hilfe für Monat *
    FORM MONAT_F4.
      DATA: BEGIN OF MF_DYNPFIELDS OCCURS 1.
              INCLUDE STRUCTURE DYNPREAD.
      DATA: END OF MF_DYNPFIELDS.
      DATA: MF_RETURNCODE LIKE SY-SUBRC,
             MF_MONAT LIKE ISELLIST-MONTH,
             MF_HLP_REPID LIKE SY-REPID.
      FIELD-SYMBOLS: .
    Wert von Dynpro lesen
      GET CURSOR FIELD MF_DYNPFIELDS-FIELDNAME.
      APPEND MF_DYNPFIELDS.
      MF_HLP_REPID = SY-REPID.
      DO 2 TIMES.
        CALL FUNCTION 'DYNP_VALUES_READ'
          EXPORTING
            DYNAME               = MF_HLP_REPID
            DYNUMB               = SY-DYNNR
          TABLES
            DYNPFIELDS           = MF_DYNPFIELDS
          EXCEPTIONS
            INVALID_ABAPWORKAREA = 01
            INVALID_DYNPROFIELD  = 02
            INVALID_DYNPRONAME   = 03
            INVALID_DYNPRONUMMER = 04
            INVALID_REQUEST      = 05
            NO_FIELDDESCRIPTION  = 06
            UNDEFIND_ERROR       = 07.
        IF SY-SUBRC = 3.
    Aktuelles Dynpro ist Wertemengenbild
          MF_HLP_REPID = 'SAPLALDB'.
        ELSE.
          READ TABLE MF_DYNPFIELDS INDEX 1.
    Unterstriche durch Blanks ersetzen
          TRANSLATE MF_DYNPFIELDS-FIELDVALUE USING '_ '.
          EXIT.
        ENDIF.
      ENDDO.
      IF SY-SUBRC = 0.
    Konvertierung ins interne Format
        CALL FUNCTION 'CONVERSION_EXIT_PERI_INPUT'
          EXPORTING
            INPUT         = MF_DYNPFIELDS-FIELDVALUE
          IMPORTING
            OUTPUT        = MF_MONAT
          EXCEPTIONS
            ERROR_MESSAGE = 1.
        IF MF_MONAT IS INITIAL.
    Monat ist initial => Vorschlagswert aus akt. Datum ableiten
          MF_MONAT = SY-DATLO(6).
        ENDIF.
        CALL FUNCTION 'POPUP_TO_SELECT_MONTH'
          EXPORTING
            ACTUAL_MONTH               = MF_MONAT
          IMPORTING
            SELECTED_MONTH             = MF_MONAT
            RETURN_CODE                = MF_RETURNCODE
          EXCEPTIONS
            FACTORY_CALENDAR_NOT_FOUND = 01
            HOLIDAY_CALENDAR_NOT_FOUND = 02
            MONTH_NOT_FOUND            = 03.
        IF SY-SUBRC = 0 AND MF_RETURNCODE = 0.
    ASSIGN (MF_DYNPFIELDS-FIELDNAME) TO <MF_FELD>. " ==>> note 148804
    <MF_FELD> = MF_MONAT.
          CALL FUNCTION 'CONVERSION_EXIT_PERI_OUTPUT'
            EXPORTING
              INPUT  = MF_MONAT
            IMPORTING
              OUTPUT = MF_DYNPFIELDS-FIELDVALUE.
          COLLECT MF_DYNPFIELDS.
          CALL FUNCTION 'DYNP_VALUES_UPDATE'
            EXPORTING
              DYNAME               = MF_HLP_REPID
              DYNUMB               = SY-DYNNR
            TABLES
              DYNPFIELDS           = MF_DYNPFIELDS
            EXCEPTIONS
              INVALID_ABAPWORKAREA = 01
              INVALID_DYNPROFIELD  = 02
              INVALID_DYNPRONAME   = 03
              INVALID_DYNPRONUMMER = 04
              INVALID_REQUEST      = 05
              NO_FIELDDESCRIPTION  = 06
              UNDEFIND_ERROR       = 07. "<<== note 148804
        ENDIF.
      ENDIF.
    ENDFORM.                                                    "MONAT_F4
    *& Form get_month_dates
    Calculating the Month Start & End Date
    FORM GET_MONTH_DATES.
      IF M1 = 'X'.
        FYEAR = P_SPMON+0(4).
        MON = P_SPMON+4(2).
        CONCATENATE FYEAR MON '01' INTO R_BUDAT-LOW.
        R_BUDAT-SIGN = 'I'.
        R_BUDAT-OPTION = 'BT'.
        CALL FUNCTION 'BKK_GET_MONTH_LASTDAY'
          EXPORTING
            I_DATE = R_BUDAT-LOW
          IMPORTING
            E_DATE = R_BUDAT-HIGH.
        APPEND R_BUDAT.
        CLEAR S_BUDAT.
        REFRESH S_BUDAT.
        S_BUDAT-SIGN = 'I'.
        S_BUDAT-OPTION = 'BT'.
        S_BUDAT-LOW = R_BUDAT-LOW.
        S_BUDAT-HIGH = R_BUDAT-HIGH.
        APPEND S_BUDAT.
      ELSE.
        FYEAR = P_SPMON+0(4).
        MON = P_SPMON+4(2).
        CONCATENATE FYEAR MON '01' INTO R_BUDAT-LOW.
        R_BUDAT-SIGN = 'I'.
        R_BUDAT-OPTION = 'BT'.
        CALL FUNCTION 'BKK_GET_MONTH_LASTDAY'
          EXPORTING
            I_DATE = R_BUDAT-LOW
          IMPORTING
            E_DATE = R_BUDAT-HIGH.
        APPEND R_BUDAT.
      ENDIF.
    ENDFORM. " get_month_dates
    *& Form output_table_Check
    checking for records for output
    FORM OUTPUT_TABLE_CHECK .
      DESCRIBE TABLE I_FINALT LINES INDEX.
      IF INDEX EQ 0.
        MESSAGE I041 WITH TEXT-005.
        LEAVE LIST-PROCESSING.
      ENDIF.
    ENDFORM. "OUTPUT_TABLE_CHECK
    *& Form Z_TOP_OF_PAGE
    for setting the details in the top of page *
    has no formal paramters *
    FORM Z_TOP_OF_PAGE.
      DATA: V_MON(2),
      V_YR(40),
      V_FIN(18),
      V_FIN1(48),
      LOW(10),
      HIGH(10).
      V_MON = P_SPMON+4(2).
      V_YR = P_SPMON+0(4).
      FHEADER-TYP = 'H'.
      FHEADER-INFO = 'Stock Register Report (FG Stock)'.
      APPEND FHEADER.
      CLEAR FHEADER.
    *if m1 = 'X'.
    CONCATENATE 'Month = ' v_mon '.' v_yr INTO v_fin.
    fheader-typ = 'H'.
    fheader-info = v_fin.
    APPEND fheader.
    CLEAR fheader.
    *endif."prabhu on 18.5.5
      IF D1 = 'X'.
        CLEAR S_BUDAT.
        LOOP AT S_BUDAT.
          CONCATENATE S_BUDAT-LOW6(2) '/' S_BUDAT-LOW4(2) '/'
          S_BUDAT-LOW+0(4) INTO LOW.
          CONCATENATE S_BUDAT-HIGH6(2) '/' S_BUDAT-HIGH4(2) '/'
          S_BUDAT-HIGH+0(4) INTO HIGH.
          CONCATENATE 'Date = ' LOW ' - ' HIGH INTO V_FIN1.
          FHEADER-TYP = 'H'.
          FHEADER-INFO = V_FIN1.
          APPEND FHEADER.
          CLEAR FHEADER.
        ENDLOOP.
      ENDIF.
    ENDFORM. " Z_TOP_OF_PAGE
    *& Form Z_LAYOUT_SETTINGS
    this is done for setting the properties for the layout of the *
    grid *
    has no formal paramters *
    FORM Z_LAYOUT_SETTINGS.
      FS_LAYO-ZEBRA = 'X'. " Output in Zebra pattern
      FS_LAYO-DETAIL_POPUP = 'X'. " A popup window appears to give
      FS_LAYO-DETAIL_TITLEBAR = TEXT-022.
      FS_LAYO-COLWIDTH_OPTIMIZE = 'X'.
    ENDFORM. " Z_LAYOUT_SETTINGS
    *& Form Z_ALV_EVENTS
    This is used for handling the events TOP OF PAGE and the USER *
    COMMAND event *
    has no formal paramters *
    FORM Z_ALV_EVENTS.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          I_LIST_TYPE = 0
        IMPORTING
          ET_EVENTS   = FEVENTS[].
      READ TABLE FEVENTS WITH KEY NAME = 'TOP_OF_PAGE'.
      IF SY-SUBRC = 0.
        FEVENTS-FORM = 'Z_TOPOFPAGE'.
        MODIFY FEVENTS INDEX SY-TABIX.
        CLEAR FEVENTS.
      ENDIF.
      READ TABLE FEVENTS WITH KEY NAME = 'USER_COMMAND'.
      IF SY-SUBRC = 0.
        FEVENTS-FORM = 'Z_USER_COMMAND'.
        MODIFY FEVENTS INDEX SY-TABIX.
        CLEAR FEVENTS.
      ENDIF.
    ENDFORM. "Z_ALV_EVENTS
    *& Form Z_CREATE_FIELD_CATALOG
    here the field catalog is created for the primary list *
    no formal parameters *
    FORM Z_CREATE_FIELD_CATALOG.
    for the Plant
      FCAT-FIELDNAME = 'WERKS'.
      FCAT-KEY = 'X'.
      FCAT-OUTPUTLEN = '000005'.
      FCAT-JUST = 'L'.
      FCAT-SELTEXT_M = 'Plant'.
      FCAT-DDICTXT = 'M'.
      FCAT-INTTYPE = 'C'.
      FCAT-DATATYPE = 'CHAR'.
      APPEND FCAT.
      CLEAR FCAT.
    for the Material Type
      FCAT-FIELDNAME = 'MTART'.
      FCAT-KEY = 'X'.
      FCAT-OUTPUTLEN = '000006'.
      FCAT-JUST = 'L'.
      FCAT-SELTEXT_M = 'MatTyp'.
      FCAT-DDICTXT = 'M'.
      FCAT-INTTYPE = 'C'.
      FCAT-DATATYPE = 'CHAR'.
      APPEND FCAT.
      CLEAR FCAT.
    for the Material No.
      FCAT-FIELDNAME = 'MATNR'.
      FCAT-KEY = 'X'.
    fcat-hotspot = 'X'.
      FCAT-OUTPUTLEN = '000018'.
      FCAT-JUST = 'L'.
      FCAT-SELTEXT_M = 'Material'.
      FCAT-DDICTXT = 'M'.
      FCAT-INTTYPE = 'C'.
      FCAT-DATATYPE = 'CHAR'.
      APPEND FCAT.
      CLEAR FCAT.
    for the Material Description
      FCAT-FIELDNAME = 'MAKTX'.
      FCAT-KEY = ''.
      FCAT-OUTPUTLEN = '000040'.
      FCAT-JUST = 'L'.
      FCAT-SELTEXT_M = 'Description'.
      FCAT-DDICTXT = 'M'.
      FCAT-INTTYPE = 'C'.
      FCAT-DATATYPE = 'CHAR'.
      APPEND FCAT.
      CLEAR FCAT.
    for the Unit of Measure
      FCAT-FIELDNAME = 'MEINS'.
      FCAT-KEY = ''.
      FCAT-OUTPUTLEN = '03'.
      FCAT-JUST = 'C'.
      FCAT-SELTEXT_M = 'UOM'.
      FCAT-DDICTXT = 'M'.
      FCAT-INTTYPE = 'C'.
      FCAT-DATATYPE = 'UNIT'.
      APPEND FCAT.
      CLEAR FCAT.
    for the Plant
      FCAT-FIELDNAME = 'MONTH'.
      FCAT-KEY = 'X'.
      FCAT-OUTPUTLEN = '08'.
      FCAT-JUST = 'L'.
      FCAT-SELTEXT_M = 'MONTH'.
      FCAT-DDICTXT = 'M'.
      FCAT-INTTYPE = 'C'.
      FCAT-DATATYPE = 'CHAR'.
      APPEND FCAT.
      CLEAR FCAT.
    for the Opening Stock
      FCAT-FIELDNAME = 'C_STK'.
      FCAT-HOTSPOT = ' '.
      FCAT-OUTPUTLEN = '000016'.
      FCAT-JUST = 'L'.
      FCAT-SELTEXT_M = 'Opening Stock'.
      FCAT-DDICTXT = 'M'.
      FCAT-INTTYPE = 'Q'.
      FCAT-DATATYPE = 'QUAN'.
    fcat-do_sum = 'X'.
      FCAT-JUST = 'R'.
      FCAT-NO_ZERO = 'X'.
      APPEND FCAT.
      CLEAR FCAT.
    for the Total Receipts
      FCAT-FIELDNAME = 'TRECEP'.
      FCAT-HOTSPOT = ' '.
      FCAT-OUTPUTLEN = '000016'.
      FCAT-JUST = 'L'.
      FCAT-SELTEXT_M = 'Total Receipts'.
      FCAT-DDICTXT = 'M'.
      FCAT-INTTYPE = 'Q'.
      FCAT-DATATYPE = 'QUAN'.
      FCAT-DO_SUM = 'X'.
      FCAT-JUST = 'R'.
      FCAT-NO_ZERO = 'X'.
      APPEND FCAT.
      CLEAR FCAT.
    for the Production
      FCAT-FIELDNAME = 'PRODU'.
      FCAT-HOTSPOT = ' '.
      FCAT-OUTPUTLEN = '000016'.
      FCAT-JUST = 'L'.
      FCAT-SELTEXT_M = 'Production'.
      FCAT-DDICTXT = 'M'.
      FCAT-INTTYPE = 'Q'.
      FCAT-DATATYPE = 'QUAN'.
      FCAT-DO_SUM = 'X'.
      FCAT-JUST = 'R'.
      FCAT-NO_ZERO = 'X'.
      APPEND FCAT.
      CLEAR FCAT.
    for the Other Plant Receipts
      FCAT-FIELDNAME = 'RECEP'.
      FCAT-HOTSPOT = ' '.
      FCAT-OUTPUTLEN = '000016'.
      FCAT-JUST = 'L'.
      FCAT-SELTEXT_M = 'Othr Plnt Recpts'.
      FCAT-DDICTXT = 'M'.
      FCAT-INTTYPE = 'Q'.
      FCAT-DATATYPE = 'QUAN'.
      FCAT-DO_SUM = 'X'.
      FCAT-JUST = 'R'.
      FCAT-NO_ZERO = 'X'.
      APPEND FCAT.
      CLEAR FCAT.
    Sales Return
      FCAT-FIELDNAME = 'SAL_RET'.
      FCAT-HOTSPOT = ' '.
      FCAT-OUTPUTLEN = '000016'.
      FCAT-JUST = 'L'.
      FCAT-SELTEXT_M = 'Sales Return'.
      FCAT-DDICTXT = 'M'.
      FCAT-INTTYPE = 'Q'.
      FCAT-DATATYPE = 'QUAN'.
      FCAT-DO_SUM = 'X'.
      FCAT-JUST = 'R'.
      FCAT-NO_ZERO = 'X'.
      APPEND FCAT.
      CLEAR FCAT.
    Total Dispatches
      FCAT-FIELDNAME = 'TDISP'.
      FCAT-HOTSPOT = ' '.
      FCAT-OUTPUTLEN = '000016'.
      FCAT-JUST = 'L'.
      FCAT-SELTEXT_M = 'Total Dispatches'.
      FCAT-DDICTXT = 'M'.
      FCAT-INTTYPE = 'Q'.
      FCAT-DATATYPE = 'QUAN'.
      FCAT-DO_SUM = 'X'.
      FCAT-JUST = 'R'.
      FCAT-NO_ZERO = 'X'.
      APPEND FCAT.
      CLEAR FCAT.

  • CRM 2011+An error has occurred during report processing. (rsProcessingAborted)

    Hi,
     i have installed CRM 2011 on-premise version in Server A. Database and CRM 2011 Reporting Extenison in Server B. Both the server are 64 bit server and IIS 7.0 . i can able to browse the Report server url. USer as been added in Sql DB Logins and
    as permission to Reportserver and ReportservertempDB.
    i can able to access the CRM Reports only using Admin Credenttials that is from the credential which Report server is installed and configured
    Error in server 1: 
    Web service request SetDataSourceCredentials to Report Server
    (http://servername/Reportserver_XXXSQLSRVR)failed with SoapException. Error: An error has occurred during report processing. (rsProcessingAborted).
    Error in Server 2: took this error From error log file
    processing!ReportServer_0-1!7e4!03/16/2011-10:34:51:: e ERROR: Data source 'CRM': An error has occurred. Details: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Cannot create a connection to data source 'CRM'. ---> Microsoft.Crm.Reporting.DataExtensionShim.Common.ReportExecutionException:
    Caller S-1-5-21-1587242514-2812063576-513219026-1110 has insufficient privilege to run report as user 9f69b98c-c73d-e011-bd85-842b2b6567dd
    processing!ReportServer_0-1!7e4!03/16/2011-10:34:51:: e ERROR: An exception has occurred in data source 'CRM'. Details: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Cannot create a connection to data source 'CRM'. ---> Microsoft.Crm.Reporting.DataExtensionShim.Common.ReportExecutionException:
    Caller S-1-5-21-1587242514-2812063576-513219026-1110 has insufficient privilege to run report as user 9f69b98c-c73d-e011-bd85-842b2b6567dd
    processing!ReportServer_0-1!7e4!03/16/2011-10:34:51:: i INFO: DataPrefetch abort handler called for Report with ID=. Aborting data sources ...
    processing!ReportServer_0-1!7e4!03/16/2011-10:34:51:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: An error has occurred during report processing., ;
     Info: Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: An error has occurred during report processing. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Cannot create a connection to data source 'CRM'.
    ---> Microsoft.Crm.Reporting.DataExtensionShim.Common.ReportExecutionException: Caller S-1-5-21-1587242514-2812063576-513219026-1110 has insufficient privilege to run report as user 9f69b98c-c73d-e011-bd85-842b2b6567dd
    Eventvwr error in server 2:
    Failed to unload app domain DefaultDomain. The following exception occurred: Error while unloading appdomain. (Exception from HRESULT: 0x80131015).
    I tried the Following ways to fix it
    1.added User as content manager
    2.In CRM apppool i have Admin in identity column
    its really paining when i'm unable to access the CRM 2011 Default Reports. got stucked for a day.
    Thanks, Saraswathy Kumaravelu

    Hi All,
    I encountered this same issue today after installing CRM 2011.
    CRM 2011 on Server A
    SQL and SSRS 2008 R2 on Server B
    I found that I got the same errors described here when running the standard reports even after I had installed the Reporting Extension (CRM 2011 replacement for CRM 4.0 Data Connector). The reason I got the error was because the 'Data Source Type' had not
    been updated in Report Manager.
    Here's how I resolved:
    1. Browse to Report Manager (http://SERVERB/Reports)
    2. Open the Organisation_MSCRM folder
    3. Click Show Details
    4. Open the MSCRM_DataSource
    5. Change the Data Source Type from Microsoft SQL Server
    to Microsoft Dynamics CRM SQL
    *Note: - This option is only available once Reporting Extension has been installed on SSRS Server.
    6. Clear the contents of the Connection String box
    7. Set the Connect Using: option to Credentials Supplied by user running the report
    but do NOT check the
    Use as Windows Credentials when connecting to the DataSource option.
    8. Click Apply
    9. Restart the SQL Reporting Services Service in
    Reporting Services Configuration Manager
    10. Test by running one of the Standard CRM Reports (e.g. User Summary)
    Ta Da!! - Success!!
    Hope this helps!

  • Error: FF805 Tax statement item missing for tax code

    Hi all,
    We are getting an error when releasing billing document to accounting in 4.7system.
    Error: FF805 Tax statement item missing for tax code O0
    No tax item exists for tax code O0 in a G/L account item. A possible cause is an incorrect transfer of
    parameters by the application to the Accounting interface.
    Please give your inputs and will be rewared.
    Quick reponse will be appreciated.
    Thanks & Regards.

    Dear Mehak,
    I am sorry for the late reply, but I started (in fact) to work in SDN Forum this year, even I entered earlier.
    We have many FF805 errors reported by customers and the same solution has resolved the problem. Please note that the SD-FI interface changed from earlier releases. The note 400766 eplxains the checks made.
    So it is possible that now you get error message FF805, when in an earlier release you didn't get it, eventhough no customizing change.
    Please review note -> 392696   R/3 Tax Interface Configuration Guide
    However please note => In the vast majority of cases, error FF805 occurs because of an error in your pricing procedure. The attached note 112609 explains in detail how tax codes are transfered to conditions.
    The note 400766 explains the checks performed by the system on the Tax codes:
    1. system checks whether there is a revenue line for each tax line.
    2. in the reverse case, for each revenue line containing a certain tax indicator there must be a tax line with this indicator.
    If the tax condition has condition value zero and condition base value zero, then it is not transferred to FI.
    If you have revenue lines containing a tax indicator XX, but no tax line with tax indicator XX, then the error FF805 issues, and it is justified. => Please check these informations.
    -> EXAMPLE
       If tax condition MWST has base amount zero and value zero; for this reason it is not passed to accounting. But, according to the criteria reported by note 112609, its tax indicator EG: A7
       has been assigned to the condition EG: ZBR1.
       So in accounting there would be a revenue line with tax indicator A7, but there isn't any tax line with indicator A7 (because MWST doesn't pass to FI). The note 400766 states situation is unallowed, and error FF805 is justified.
    IMPORTANT: Just a hint, any issue with FI, kindly report in the forum:
    Expert Forums - SAP Solutions - ERP Financials
    There you will find a lot of people that works with FI and can help you with future issues, including me
    I hope I could help you
    Kind Regards,
    Vanessa Barth.

  • Summary report w/over 90 summary elements

    Post Author: JackG
    CA Forum: Crystal Reports
    Using CR XI Professional edition ..... What would be the best approach to provide a summary report with over 90 different database element summaries from a SQL Server database?  I've created one document with all of the categories to summarize and also have started creating subreports to summarize the related report sections.
    Problem is, the data seems to get out of whack.  When I change selection criteria (only slightly) it can change a summary count in a whole other section.
    Any ideas?
    Thx.
    JackG

    Post Author: JackG
    CA Forum: Crystal Reports
    There are 12 'sections' (A thru U ... obviously not including all letters) to the report
    each section can have as few as 2 or as many as 25 summaries relating to that section's data/table source in the database.  In other words, section 'A' gets data from one table; section 'B' gets data from one or more tables ... and that's where it goes whacky. 
    each of these sections has been already 'built' in the MS SQL Server database by the stored procedures and resides in temporary tables that, again, i can't access because of the error mentioned previously.  And because of this restriction, I am trying to recreate the SQL process in Crystal ... and it's giving me fits!
    Here's a crude text of what the report looks like (exported from CR).  Each section's entries are labeled like  'B1', 'B2', etc.  The values at the end of the line represent the calculated (Running Total) value when the report is presented.
    JackG
                                         REFERRAL STATISTICS            Reporti        YTD                                                                    g Month A1  Total Number of Referrals from HHSS                               5                                   INITIAL REFERRAL CONTACT          Reporti        YTD                                                                     g Month B1   Total Number of Referrals Contacted                              5 B2   Total Number of Referrals Contacted Within 5 work days           3
    B3   Percentage Contacted Within 5 Days (# contacted within 5 days/r B4   Total Number of Referrals Scheduled                              5 B5   Total Number of Referrals who Showed                             2 B6   Show Rate (%) (Referrals who showed/referrals scheduled)
                                             CASELOAD SIZE              Reporti        YTD                                                                    g Month C1   Total Number of individuals served in EF Components             252                                    COMPONENT ACTIVITIES           Reporti       % = Ea                                                                    g Month    component /                                                                               total componen
    D1   Unsubsidized Employment (Total) (D23D3D4d7)                  168.D2   Unsubsidized Employment (30 hours a week or more)                84D3   Unsubsidized Employment (29 hours a week or less)                84D4   (A) Microbusiness Enterprise-(Total) (D5D6)D5   (gross wages minus business expenses/$5.15) (30 hours a week orD6   (gross wages minus business expenses/$5.15) (29 hours a week or
    D7   (gross wages minus business expenses/$5.15) (29 hours a week orD8   Subsidized Private and Public Sector EmploymentD9   Work Experience ComponentD10  On-the-job Training ComponentD11  Job Readiness Component                                           0D12  Job Search ComponentD13  Total Job Search/job readiness
    D14  Number of individuals in Job Search for (4) consecutive weeksD15  Number of individuals in Job Search for more than (12) weeksD16  Number of individuals in Job Readiness for (4) consecutive weekD17  Number of individuals in Job Readiness for more than (12) weeksD18  Total in Job Search/Job Readiness for (4) consecutive weeksD19  Total in Job Search/Job Readiness for more than 12 weeks - (???D20  Community Service Component
    D21  Vocational Training ComponentD22  Job Skills Training Directly Related to EmploymentD23  Education Directly Related to EmploymentD24  Satis. attendance at Sec School or Course of Study toward CertiD25  Providing Child Care Services to an Individual who is ParticipaD26  Post Secondary Education (State Only)D27  Other Activities (Others)
    D28  Total Component Services Provided for this monthTOTAL THAT MEET FEDERAL WORK PARTICIPATION RATE W/CORE AND NON-CORE HOURSE1   Percentage of Total meeting Fed work participation/Total indivi                                ENTERED EMPLOYMENT STATISTICSF1   Total Number Entered Employed 30+ hours per week                 12F2   Total Number Entered Employed 29 or less      4F3   Total Number of Entered Employment after entering Job Search Co   0F4   Total Number of Entered Employment within 90 days of entering    16Job Search Component 

  • Summary Report with 4 Dimensions and 5 Facts

    Hello OBIEE Czars:
    I have a problem.
    I am trying to make a summary report with 4 Dimensions and 5 Facts.
    Out of that only 2 Dimensions are Confirmed.
    Now when I try to bring in all the facts, I get view display error.
    I searched forum for similar issues.
    So I have tried following so far.
    1) Add other dimensions as source and set level to Total for those dims.
    - After doing this, I dont get view display error, but I get blank rows for couple of facts.
    2) I am already aggregating all the measures.
    Please help me out.
    This forum has been very helpful so far.
    Thanks.
    ~Vinay

    Hi
    This method seems fine until you run a request that includes a filter on an unconformed dimension.
    The SQL itself should be quite straightforward (see below) but the BI Server instance does not seem to be joining this data correctly after posting the 2 separate queries to the database.
    SELECT
    x.dim1, x.dim2
    x.fact1_agg_measure
    y.fact2_agg_measure
    FROM
    SELECT
    dim1, dim2
    SUM(fact1.measure) fact1_agg_measure
    FROM
    dim1,
    dim2, --UNCONFORMED+
    fact1
    WHERE
    .... .... join fact1 to dimensions as normal
    AND dim2 = 'BUSINESS_IDENTFIER'
    GROUP BY
    dim1, dim2
    ) x,
    SELECT
    dim1
    SUM(fact2.measure) fact2_agg_measure
    FROM
    dim1,
    fact2
    WHERE
    .... .... join fact2 to dimensions as normal
    GROUP BY
    dim1
    ) y
    WHERE
    x.dim1 = y.dim1
    The result set returned in Answers is firstly a correctly aggregated record plus ALL rows from the second query above ??
    Just wondering if anyone else has come across this issue?
    cheers
    Tony

Maybe you are looking for

  • HP Laserjet 2100M not printing with 10.6

    Hi, I've been trying to print a document all evening on my HP Laserjet 2100M with the HP 100 Mbps network module. I've tried it on both my iMac and my MBP, no help there. The printer program is saying that it is sending the job to the printer, but th

  • Header row in ALV Grid, based on the data in the table

    Hi All, I have a requirement wherein, based on the data in the table used for ALV, i need to add rows as sort of header in the ALV display. For e.g. my table has Appl No.  Item  Material  Desc.           Cost                 -> Column Heading 1      

  • User Exits for Invoice creation ,cancellation and sales return

    Hi Gurus, Pl help me it's very urgent. I did not find any user exit invoice creation so i wrote the following code in include program MV60AF0B_BELEG_SICHERN. This code is to update the Z*table while saving invoice ,cancellation and sales return. The

  • Cannot find class javax.swing.JOptionPane

    Hello, I imported the class import javax.swing.JOptionPane;and written as a first line of my code in the form of a .java file. but error occurs as : cannot find the class javax.swing.JOptionPane. What should I do. Thank you.

  • RV220W : Some Errors in logs

    Hello, I have some errors in the RV220w log files, and i dont know the reason of these errors Mon Mar 26 19:59:48 2012(GMT+0100) [rv220w][System][PLATFORM] /pfrm2.0/bin/bwLimitConfig /tmp/system.db 18 dot11STA 2 failed. status=-1 Mon Mar 26 19:59:48