Bussiness logic/technical flow for  report with tcode MB5B

Guys,
Please send me any Functional Spec or Technical Spec of the standard SAP report with tcode MB5B ( Stock as on posting date). Any document explaining logic or technical flow is very much useful to me..I need to understand the logic and what are all the underlying tables used. I will assign more points to anyone who help me.

MB5B - Stock on posting date
The report Stock for posting date lists a company's own stocks in a particular time period (earliest date/Time 00:00, latest date/time 24:00).
The posting date is used for selection. Note that the posting date may be different from the entry date (date entered in the system) as well as the document date.
Starting with the current stock balance, the report uses the material documents to calculate the stock balance for the specified posting date.
Requirements
You need authorization to display material documents for all chosen plants (authorization object Material documents: plant, activity 03).
Output
Thisreport issues a list with the following information for each material:
Stock quantity and stock value on first date
Total and value of all receipts
Total and value of all issues
Stock quantity and stock value on last date
List of the material documents that were posted in the specified time period
To go to the detail screen for the material document item, place the cursor on a material document and choose Goto -> Document item
If you require more data and want a detailed evaluation, you can enhance the current layout or choose another existing layout via Settings -> Layout.
Tables Used :
t001; t001w; t001l; mchb, mbew,mseg.
Thanks

Similar Messages

  • User-exit for report RPCAIDP0 (tcode: PC00_M19_CAID)

    Dear Gurus,
    Does anyone know user-exits for report RPCAIDP0 (tcode: PC00_M19_CAID) ?
    Thank you in advance,
    PSC

    Depends on what you want to do Priscilla, i have quite an experience with RPCAIDP0 report and it's not the easiest report to change the standard without copying to an customer report. Also, in the previous year, SAP changed the logic of the report quite a bit in order to have the same logic as in RPCIIDP0, so they created a class (CL_HR_PT_EMPLOYEE_TAX_DATA) in which they encapsulated all the data retrieval regarding payroll results, so it's not that dificult to enhance the class itself but it's a bit dificult to get the logic right away. I have done this for several clients, so if you can be more specific maybe i can help you.
    Best regards.

  • OLAP tools for reporting with OPM

    Has any one used OLAP tools for reporting with OPM?
    If not, has anyone used Discoverer with OPM?
    Thanks in advance,

    What version of OPM are you using?
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by venkateswara pilla ([email protected]):
    Has any one used OLAP tools for reporting with OPM?
    If not, has anyone used Discoverer with OPM?
    Thanks in advance,<HR></BLOCKQUOTE>
    null

  • Crystal Report Viewer Credential Prompt for Report with Dynamic Parameters

    The .NET Crystal Report Viewer is prompting for database credentials when launching a report containing dynamic parameters. This only occurs for reports created with SAP Crystal Reports 2011 designer. Reports created with Crystal Reports XI designer (where dynamic parameters were first introduced) work correctly.
    The credential prompt window contains the following fields:
    - Server Name: <server name> (disabled)
    - Database Name: <database name> (disabled)
    - User Name: <empty> (enabled)
    - Password: <empty> (enabled)
    - Use Single Signon Key: false (disabled)
    The values in the prompt window which are disabled are the database connection values used during the design of the report in the SAP Crystal Reports 2011 designer.
    Expected Result:
    - No prompt for database credentials.
    - Values read from the database should be populated in a drop down for the dynamic parameters.
    Environment:
    - Visual Studio 2010 (C#)
    - Windows 7 Enterprise
    - SAP Crystal Reports runtime engine for .NET Framework 4
    - SAP Crystal Reports, version for Visual Studio 2010
    - SAP Crystal Reports 2011
    The database connection is being set to use a DSN. It must be a DSN as the calling application is only aware of the DSN/Username/Password values. These values are being passed to the Crystal Report Viewer contained in a Windows form.
    The database connection for the report is being set as follows:
    foreach (InternalConnectionInfo internalConnectionInfo in this.report.DataSourceConnections)
        // Must set the UseDSNProperties flag to True before setting the database connection otherwise the connection does not work
        if (internalConnectionInfo.LogonProperties.ContainsKey("UseDSNProperties"))
            internalConnectionInfo.LogonProperties.Set("UseDSNProperties", true);
        // Supposed to set the database connection for all objects in the report (ie. main report, tables, sub reports)
        internalConnectionInfo.SetConnection(this.DSN, string.Empty, this.LoginName, this.Password);
    The SetConnection method's signature is as follows:
       SetConnection(string server, string database, string name, string password)
    As you can see from the code snippet above I am setting the DSN name as the server parameter, blank for the database parameter (a database connection using DSN should only require DSN name/Username/Password) and the database username and password respectively.
    Is this a SAP bug?
    Is this the correct way of setting the database connection to use a DSN?
    Is there some other properties that need to be set somewhere else in the report through code?
    Any help would be greatly appreciated.

    Thanks for the pointer to the database connection code generator. After taking a look at the output from the tool I was able to finally get the dynamic parameters to load and populate properly without prompting for credentials. I needed to tweak the outputted code a bit to match my requirements of using a DSN only connection.
    Instead of updating the database connection properties contained within the Report.Database.Tables collection from the CrystalReports.Engine namespace, I changed it to replace the database connection properties in the Report.ReportClientDocument.DatabaseController.Database.Tables collection from the CrystalDecisions.ReportAppServer.DataDefModel namespace. For one reason or another, using the RAS namespace solved the problem.
    Below is the updated code with the change made:
    using RAPTable = CrystalDecisions.ReportAppServer.DataDefModel.Table;
    foreach (InternalConnectionInfo internalConnectionInfo in this.report.DataSourceConnections)
        // Must set the UseDSNProperties flag to True before setting the database connection
        if (internalConnectionInfo.LogonProperties.ContainsKey("UseDSNProperties"))
            internalConnectionInfo.LogonProperties.Set("UseDSNProperties", true);
        // Sets the database connection for all objects in the report (ie. main report, tables, sub reports)
        internalConnectionInfo.SetConnection(this.DSN, string.Empty, this.LoginName, this.Password);
    // The attributes for the QE_LogonProperties which is part of the main property bag
    PropertyBag innerPropertyBag = new PropertyBag();
    innerPropertyBag.Add("DSN", this.DSN);
    innerPropertyBag.Add("UserID", this.LoginName);
    innerPropertyBag.Add("Password", this.Password);
    innerPropertyBag.Add("UseDSNProperties", "true");
    // The attributes collection of the tables ConnectionInfo object
    PropertyBag mainPropertyBag = new PropertyBag();
    mainPropertyBag.Add("Database DLL", "crdb_ado.dll");
    mainPropertyBag.Add("QE_DatabaseType", "OLE DB (ADO)");
    mainPropertyBag.Add("QE_LogonProperties", innerPropertyBag);
    // Pass the database properties to a connection info object
    ConnectionInfo connectionInfo = new ConnectionInfo();
    connectionInfo.Attributes = mainPropertyBag;
    connectionInfo.Kind = CrConnectionInfoKindEnum.crConnectionInfoKindCRQE;
    connectionInfo.UserName = this.LoginName;
    connectionInfo.Password = this.Password;
    // Replace the database connection properties of each table in the report
    foreach (RAPTable oldTable in this.report.ReportClientDocument.DatabaseController.Database.Tables)
        RAPTable table = new RAPTable();
        table.ConnectionInfo = connectionInfo;
        table.Name = oldTable.Name;
        table.QualifiedName = oldTable.QualifiedName;
        table.Alias = oldTable.Alias;
        this.report.ReportClientDocument.DatabaseController.SetTableLocation(oldTable, table);
    this.report.VerifyDatabase();
    Thanks again Ludek for the help.

  • Aggregation issue for report with bw structure

    Hi,
    I am facing aggregation issue while grouping reports in webi.
    We have a BW query with 16 values, which we bring to bw as structure. Out of 16, 8 are percentage values (agg. type should be average).
    If we bring the data at site level, data is comming properly. But if we use same query and try sum/grouping( on region level), then percentage is getting added.
    Since it's a dashboard report with lots of filters, we cannot go for seperate query at each level(site, region, zone).
    How we can resolve this.. please give me suggestion.
    Regards
    Baby

    Hi,
    Since we were using structure, it was not possible to produce the required result in BO.
    We change structure to keyfigures and bring all of them in to BO. All the column formulas are now in BO side.
    Now it is working fine.
    Regards
    Baby
    Edited by: Baby on May 10, 2010 11:39 AM

  • How the data is fetched from the cube for reporting - with and without BIA

    hi all,
    I need to understand the below scenario:(as to how the data is fetched from the cube for reporting)
    I have a query, on a multiprovider connected to cubes say A and B. A is on BIA index, B is not. There are no aggregates created on both the cubes.
    CASE 1: I have taken RSRT stats with BIA on, in aggregation layer it says
    Basic InfoProvider     *****Table type      ***** Viewed at      ***** Records, Selected     *****Records, Transported
    Cube A     ***** blank ***** 0.624305      ***** 8,087,502      ***** 2,011
    Cube B     ***** E ***** 42.002653 ***** 1,669,126      ***** 6
    Cube B     ***** F ***** 98.696442 ***** 2,426,006 ***** 6
    CASE 2:I have taken the RSRT stats, disabling the BIA index, in aggregation layer it says:
    Basic InfoProvider     *****Table Type     *****Viewed at     *****Records, Selected     *****Records, Transported
    Cube B     *****E     *****46.620825     ****1,669,126****     6
    Cube B     *****F     ****106.148337****     2,426,030*****     6
    Cube A     *****E     *****61.939073     *****3,794,113     *****3,499
    Cube A     *****F     ****90.721171****     4,293,420     *****5,584
    now my question is why is here a huge difference in the number of records transported for cube A when compared to case 1. The input criteria for both the cases are the same and the result output is matching. There is no change in the number of records selected for cube A in both cases.It is 8,087,502 in both cases.
    Can someone pls clarify on this difference in records being selected.

    Hi,
    yes, Vitaliy could be guess right. Please check if FEMS compression is enabled (note 1308274).
    What you can do to get more details about the selection is to activate the execurtion plan SQL/BWA queries in data manager. You can also activate the trace functions for BWA in RSRT. So you need to know how both queries select its data.
    Regards,
    Jens

  • Functional and technical design for reports

    Hello BW gurus,
    I am responsible for creating/developing few reports in Prod Planning and Inventory Mgmt.
    Is there a template for the Functional Design and Technical Design for the reports?
    How do I go about making the functional and technical design?
    Thanks

    jackofalltrades,
    If you could give us the stage of the report -
    1. whether you are reporting from existing cubes and this report would be an additional one on a existing cube or
    2. The report has to be designed from the ground up ...
    Depending on the same - the entire lifecycle will be different and also whether the query is to be shown on the web or through excel will  be helpful.
    You could have a look at ASAP Templates in the meanwhile.
    Re: ASAP Methodology
    Arun

  • Changing JDBC Datasource Configuration for Report with Sub reports at once

    The Env  details are as follows
    CR Developer
    Version 14.0.2.364 RTM
    We are using JDBC Connection Datasource for our CR2011 report which contains 30+ sub reports. Each of the sub report uses a JDBC Datasource to connect to Postgres database and Since the JDBC connection string changes on each environment we need to edit each sub report every time we switch environments.
    Is there a easy way to accomplish this on all sub reports at one shot?
    I am aware that if we use ODBC connection it would be easy since we can just change the DSN config and it will start working. But we are not using ODBC connection since We are seeing that our report (with too many sub reports) crashes when we use ODBC driver for Postgres.
    Any help/suggestion would be appreciated.

    Hello,
    CR also has a fully support Java Reporting Engine. If you have Java developers available check out this forum:
    SAP Crystal Reports, version for Eclipse
    You can find more info and samples from here:
    http://wiki.sdn.sap.com/wiki/display/BOBJ/BusinessIntelligence%28BusinessObjects%29+Home
    And help.sap.com for the SDK reference material.
    Don

  • How to generate the ATR files for reports with out manually?

    Hi all,
    how to create the ATR files for reports in OBIEE 11g with out manually?
    is there any other method to create the ATR files by using the OBIEE Server?
    please provide me the solution for this?
    we are creating manually for each and every report, it is time taken process how can we generate ATR files automatically
    by using the OBIEE Server?
    Thanks,

    Hi,
    I am afraid not.ATR are attributes files contains the object's full name, access controllist (ACL), description, and so on.Each catalog object has a corresponding attributes file, I am not sure why do you have to generate the atr files.In case you need info about atr files: http://businessdecisionsystems.com/blog/?p=7
    If you have huge number of similar reports(with filter variations and same kind of layout), try to play around with the xml to minimize the development effort.
    Rgds,
    Dpka
    Edited by: Dpka on Oct 4, 2011 12:00 AM

  • How to find all purchase documents for project with tcode CNMM

    Hi all,
    I have some PRs generated for project by MRP  running, and i can't these PRs with tcode CNMM .
    How to set the system to show them ?
    Thanks .

    Hi Wayne Weng,
    CNMM transaction is for PROMAN.
    To get the PRs against a project please try ME5J transaction. This will provide you with all the Purchase Requisitions against a project.
    To get the POs against a project you may try ME2J.
    Hope this will help you.
    Venu

  • Logic required to for Report

    Hi BWers,
    We are looking for valuable suggestions for generating a query with actuals and target values for Distributors.
    We are getting Resale Quantity (Daily) from CRM for at for Every BP (Distributor) level.  And targets for those BP are maintained in CRM table for every quarter.
    Now we have derive all the following infoobjects from BP, Invoice date and Resale quantity.
    1. Actual sales quanity (either repot level or Infoprovider level) - Sum of Resale quant for Current month.
    2. CA Ist Month (Actual sale quantity for Previous month)
    3. CA 2nd Month (Actual sale qunat for previous to Previous).
    4. Target for curent quarter  is provided in CRM table, from there I am dividing into Target for 1st, 2nd and 3rd monts.
    The report out put format :-
    CA(Current Actals) 1st Month CA 2nd Month CA 3rd Month CA Current Month TA(target 1st Month)
    TA2nd Month TA3rd Month    Target Current Quarter    Target Previous Quarter.
    My questions are:
    1. How to achieve Current actual for previous 3 months (can we achieve in report level, with out Creating new infoobjects)
    2. How to get previous Quarter target can we achieve in report level, with out Creating new infoobjects)
    Pls povide the logic to derive all these things..
    All suggestions / solutions will be awareded with points..

    Hi Venkat,
    1.Current actuals till today means Total Actuals right ....so you can directly use the actual sales Keyfigure.
    other wise you can create formula and make sum of all months actual sales.
    2.MTD Gap is (current month sales - current date sales)
    so create two restricted Key fig on actual sales Keyfig , restrict first one with current month variable and 2nd one with current date variable.
    now create a formula and take the difference of these two key fig in your formula.
    if u r not clear feel free to ask .
    Thanks & Regards
         Tulsi

  • Edit link for Report with form

    Hi, I create report on Page1 with form on Page2 using Wizard. For this reports select always returns me only one record. On my report I see edit image, it has records 'id' value and branching me to Page2.
    I need edit link on another region in Page1. But I can't to assign for this link the same 'id' value for editing my record in Page2. How can I do it?
    Thanks!
    Kira.

    Kira,
    You are right, doing things this way is messy. One approach is to write APIs to support your data model. All queries/DML against tables should be done with these APIs. Having two levels of APIs has worked well for many applications: a transaction-level API (modules like fetch_empl_vacation_history, update_org_roles_master, create_incident_report) and a table-level API (modules like fetch_emp_rec, update_emp_rec, create_emp_rec). Transaction APIs call table APIs and table APIs do queries and DML against base tables. A typical page like the one you described might have one transaction-level API call to do the fetch from all the tables and populate all the page items in session state and one transaction-level API call after submit to perform the logical transaction that updates all the affected tables. APIs like these must also handle concurrency using an optimistic locking model. To repeat, the automatic row fetch and DML processing processes built into HTML DB are not intended to manage complex, multi-table transactions.
    You can create table-level APIs using SQL Workshop->Tasks Menu(Create Database Object)->Package->Build a package with methods on database table(s). If you experiment with that, some of this should make more sense.
    Scott

  • For report with material and workcenter

    my client reqd a report for the materials plan order and production generate for the period with respective week in specific workcenter.
    Hence for the plan order order and production order i am useing PLAF and AFPO but i am expecting a excelent tips  to get a workcenter wise report .As for the materials defined with production version i am getting by production line but for non production version material how do i fetch.
    Input will be plant and workcenter on the basis of that generated count  of plan orders and count of production orders need to appear.
    expecting a help from SAP PP gurus.............

    Hi,
    Before developing customized report please check with std. report COOIS.
    First give input as  List = order Header , profile, select Production order check box  alone  & workcenter/plant/date & excute .
    Then try with planned order check Box ,
    This will give sepearte list for Both production & plant order.
    u can use change layout option to design report  output as u need
    Please check & come back
    Regards
    pradeep

  • Unable to collect NIC data for reporting with MIB-II module

    Hi all,
    Here we have SunMC 3.6.1 set up with almost all the available modules, including the complete "MIB-II Instrumentation" one. We also have the "Performance Reporting Manager" feature, and want to use it to generate a hole bunch of performance reports for our Sun servers.
    The problem I am facing is that I try to collect data through the "MIB-II Instrumentation module". I browse into "Interfaces Group", and there I can see all the NICs I have on the system. I would like to record the "If In Octets" and the "If Out Octets" fields. I right-click on these fields, I select the "Attribute Editor", then I click on the "History" Tab, and I choose to save the history on the disk, at each 300 seconds, and the file type is "circular".
    Even after waiting for 24 hours, I don't have access to data that should be recorded. If the Performance Report Manager application, when I list the "data availability" for the server where I activated the collect, all I see is the "Kernel Reader" module collects I already activated: I don't see any "MIB-II Instrumentation" module there...
    On the "Server details" window, when I go the the "Module management" tab, if I choose "MIB-II Instrumentation" module, it is charged and activated. However, when I click on the "Rules" button, the only ones appearing are the following:
    IF Oper Status (1)   rCompare   -   -   -
    IF Oper Status (2)   rCompare   -   -   -
    IF Oper Status (3)   rCompare   -   -   -
    IF Oper Status (4)   rCompare   -   -   -and I find it to be exactly the same for the "MIB-II (Simple)" module... Could it be the reason why I cannot collect the "IF In Octets" and "IF Out Octets" fields?
    Is there a way I can collect more relevant statistics about network usage with SunMC, using the "MIB-II Instrumentation" module, or something else within SunMC?
    Thanks in advance!!
    Ben

    Hi Ben,
    Is there a way I can collect more relevant statistics
    about network usage with SunMC, using the "MIB-II
    Instrumentation" module, or something else within
    SunMC?It sounds like a general problem with PRM: though if the Data Availability tab shows it's pulling Kernel Reader data every hour, then it should show your MIB-II info as well.
    Even then octet counts aren't terribly useful: they're just big numbers that get bigger: you really need to see rates over time to get an idea of what your network is doing.
    You could try the SystemMonitor module that's part of PlusPack:
    http://www.halcyoninc.com/products/PlusPack/help/SystemMonitor/HALSolarisSystemAlert-network-h.html
    It shows MB/minute rates for each interface. If that's the type of info you need then you can enable those numbers for PRM or Reporter instead.
    Regards,
    [email protected]
    http://www.HalcyonInc.com

  • Controling Column Order for Report with Dynamic SQL

    Hi,
    I have a report region using Function block returning the SQL.
    The output of the function will look like the following
    SELECT NAME, CLASS1, CLASS2,CLASS3,CLASS4, AVERAGE_SCORE FROM XXXX;
    The number of CLASSn column will be determine by the function based on the data. If the person doesn't have any score on CLASS4, the the SQL would not have CLASS4 column.
    My problem with this is I can't control the order of column appearance.
    For e.g : If my previous SQL is without CLASS4, when I query a person with CLASS4. The CLASS4 column will appear after the AVERAGE_SCORE.
    NAME---CLASS1---CLASS2---CLASS3---AVERAGE_SCORE---CLASS4
    I want it to maintain AVERAGE_SCORE as the last column.
    Can you guys give a suggestion how to handle this?
    Additional info :
    - I am disabling the report header, setting it to None as the first row of the sql returned records is the header.
    Cheers,
    Joel

    Hi all,
    My report seems to be behaving correctly once i set it to "Use Generic Column Names (parse query at runtime only)" :)
    Cheers,
    Joel

Maybe you are looking for

  • How to merge the pdf files into single pdf?

    I need to merge the two (or) three pdf files into a single pdf via scripting. I used the below code for inserting(merging) the pages. this.insertPages({cPath: "Test.pdf"}) But its merginging(inserting) successfully. But the links not working after in

  • Oracle Apps Problem

    Hi, I am trying to create a sales order in oracle APPS by invoking a Apps adpater through Process_order API and facing the following problem. file:/D:/product/10.1.3.1/OracleAS/bpel/domains/default/tmp/.bpel_X12_4010_850_1.0_3d82ae6bde584c24576ce07e5

  • Receiver can't open Pages Document - Help!

    Hello, I have made track changes to a Pages document and need to send it to a colleague.  I tried to send it as an attachment to email (yahoo and gmail accounts) and it failed.  I then uploaded it to a Dropbox account but my colleage was not able to

  • How To set cut/copy/paste for JtextArea

    Hai i could not able to set cut copy paste in JTextArea pls help me in this filed.. thanx.

  • Drop zone has 100 opacity

    This is not what I want. I need 100, but the Properties show it set to 100, Blend Mode- Normal and Preserve Opacity is unchecked. Yet I still can see images behind this image as do all the sequential images. What other setting could there be? Opacity