MB5B & MMBE display wrong result in stock qty

Dear gurus,
I'm facing a problem in tcode MB5B & MMBE. there are one material (batch active), in MMBE there are stock exist but when i display in MB5B in open periode there are stock otherwise in end periode there no stock exist & there are no material document exist in MB5B. i'm also check in MB51 there are no exist history for the material.
Please for the advise.
Thanks a ton for repply.
ARA

in MB5B i put start periode 01.01.2010 & end periode 29.09.2010...so after execute, in periode 01.01.2010 there are stock & in periode 29.09.2010 there are stock too (sorry in my 1'st explanation i told in end periode there no stock) but in detail section there are no material document exist which can explain from where the stock is from...so this behaviour is very strange is'nt it ?

Similar Messages

  • Content Search Web Part displaying wrong Results for anonymous Users.

    HI Forum Group,
    I am getting Wrong results for my content search web part. The requirement is to show the News Description for the selected news item.
    I have a catalog site which stores News like 
    News1
    News2
    News3
    as Items. and i have connected this catalog in publishing site which is anonymous. In the publishing site created one page "News.aspx"added search results webpart which shows all the news item. Added one page "Description.aspx" to show
    description to show the selected news item.
    When ever user selects any news from news.aspx page it will redirected to description.aspx with the selected item ID
    The "Description.aspx" the search results page gets the data based on the URL by QueryString parameter as shown below
    The problem is, if i multiple items to open in tabs all the items are showing the data same as the first selected item, though the article ID is different.
    Thanks
    Sithender

    Hi,
    Thank you for your feedback on how you were successful in resolving this issue.
    Your solution will benefit many other users, and we really value having you as a Microsoft customer.
    Have a nice day!
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Query displaying wrong results

    Hi
    I have developed a query, in dev and transported to quality.
    everything worked fine in dev, after transport to quality, the query output is displaying data incorrectly
    for one particular infoobject. value is fourtimes the original value in the cube.
    Ex. cube has output for x field as 2.5
    query has the output as 15.0. This behaviour is observed only in quality after transport.
    Dev query is still working fine.
    I think even retransport would not solve the issue, since Dev is fine.
    Plz suggest,
    Regards

    Dear Sanju,
    Iu2019m going to try helping you regarding your question,
    Something, when you usually transport a query, something lose a variable, or structure, or calculate key figure, or restrict key figure. I suggest you; check all of component of query in development and quality system, through BEx Query Designer.
    Be sure, that the data that you try to display isnu2019t impact be reporting authorization.
    Compare the date in InfoProviders in both system development and quality system, through Tcode LISTCUBE.
    Try to execute the query through Tcode RSUDO for check some authorization behavior, see the log through Tcode RSECPROT.
    I hope this suggestion can help you to answer your question,
    Luis

  • Display the value of stocks per month

    Dear all,
    A user asked me if it was possible to display the values of stocks or the quantity of stocks per month for the current year?
    I tried MB52, MMBE, MB53 but there is no field to select a period, MC.B, MC.9 but the results can not be displayed by month.
    My company doesn't have WM.
    Thanks a lot for your help.
    Olivier

    HI
    Using T-code MB5B - Stock on Posting Date, the following input data to be given as follows.
    Company Code : ______
    Plant : _______
    Storage Location : ______ if required to be selected
    Selection Date : _________ to ___________ (01.05.2010 to 31.05.2010-Month)
    Stock Type - selected Valuated Stock
    List of Scope click category and following options to be tick marked
    With Opening Stock Without Closing Stock
    With Opening Stock With Closing Stock, Changed
    With Opening Stock With Closing Stock, Unchanged
    Settings - Totals Only - Non Hierarchical Representation Layout /ZMB5B tick marked
    The above input data given & options are tick marked, Executed the report shown opening, Receipt,Issues,Closing stock, UOM, Opening value, Receipt Value, Issue Value, Closing Value, Currency in columnar (like Excel format).
    Hope, it is very useful for you.
    Regards,
    K.Rajendran

  • Delivered qty and put in stock qty not updated after GR reversal

    Hi,
    We encountered a strange issue while making a 102 movement for a production order.
    Planned order qty  - X
    Production order qty  - X+Y
    Confirmed Qty  - X
    GR posted for Splits of Qty X
    GR Posted for Qty Y
    At this time Quantities in Production shows like
    Planned Order   X
    Order               X+Y
    Delivered          X+Y
    Commited        X
    As wrong posting has been done for Qty Y, GR reversal has been carried for Y. After Reversal
    Deliveried Qty and Put in Stock qty still shows X+Y.
    This is an issue as settlement can not done as it has difference in quantities. This issue was nver observed earlier.
    Looked for any available SAP note for this issue and couldn't get one. Any help to fix this issue or reference to any SAP note is appreciated.
    Regards,
    ppcon

    Hi,
    Look into the Transaction : COGI.
    If the entry is there act upon the entry.
    If this is the case, suggested is to schedule the Program : "CORUPROC" in thr regular intervals.
    Hope this helps..
    Revert for further discussion..
    Regards,
    Siva

  • How to display the results in order by based on search value

    Hi All,
    how to display the results in the below order.
    CREATE TABLE TEST( SONGID  NUMBER, TITLE   VARCHAR2(200))
    INSERT INTO TEST(SONGID,TITLE) VALUES (10,'AHMADZAI, MIRWAIS (CA)/ MADONNA (CA)');
    INSERT INTO TEST(SONGID,TITLE) VALUES (11,'CICCONE, MADONNA (CA)');
    INSERT INTO TEST(SONGID,TITLE) VALUES (12,'DALLIN, MADONNA LOUISE/STOCK');
    INSERT INTO TEST(SONGID,TITLE) VALUES (13,'MADONNA');
    INSERT INTO TEST(SONGID,TITLE) VALUES (14,'MADONNA (A)/ AHMADZAI, MIRWAIS (C)');
    INSERT INTO TEST(SONGID,TITLE) VALUES (15,'MADONNA (CA)');
    INSERT INTO TEST(SONGID,TITLE) VALUES (16,'MIRWAIS AHMADZAI, MADONNA');     
    INSERT INTO TEST(SONGID,TITLE) VALUES (17,'MIRWAIS (CA)/ MADONNA (CA),AHMADZAI');
    INSERT INTO TEST(SONGID,TITLE) VALUES (18,'MADONNA (CA),CICCONE');
    SELECT *FROM  TEST WHERE INSTR (TITLE, 'MADONNA') > 0
    output:
    SONGID     TITLE
    10     AHMADZAI, MIRWAIS (CA)/ MADONNA (CA)
    11     CICCONE, MADONNA (CA)
    12     DALLIN, MADONNA LOUISE/STOCK
    13     MADONNA
    14     MADONNA (A)/ AHMADZAI, MIRWAIS (C)
    15     MADONNA (CA)
    16     MIRWAIS AHMADZAI, MADONNA
    17     MIRWAIS (CA)/ MADONNA (CA),AHMADZAI
    18     MADONNA (CA),CICCONE
    Expected output :
    13     MADONNA
    14     MADONNA (A)/ AHMADZAI, MIRWAIS (C)
    15     MADONNA (CA)
    18     MADONNA (CA),CICCONE
    ...if user searches with 'MADONNA' , I have to display the results like title starts with 'MADONNA' first then rest of the records.
    Please let me know is it possible to display the results in that order.
    Regards,
    Rajasekhar

    This may be a bit more accurate:
    SQL> SELECT *
      2  FROM   TEST
      3  WHERE  INSTR (TITLE, 'MADONNA') > 0
      4  ORDER  BY INSTR (TITLE, 'MADONNA')
      5           ,TITLE
      6  ;
                  SONGID TITLE
                      13 MADONNA
                      14 MADONNA (A)/ AHMADZAI, MIRWAIS (C)
                      15 MADONNA (CA)
                      18 MADONNA (CA),CICCONE
                      12 DALLIN, MADONNA LOUISE/STOCK
                      11 CICCONE, MADONNA (CA)
                      17 MIRWAIS (CA)/ MADONNA (CA),AHMADZAI
                      16 MIRWAIS AHMADZAI, MADONNA
                      10 AHMADZAI, MIRWAIS (CA)/ MADONNA (CA)

  • This Formula(Function) compiles but does not display any result

    Please can anybody help me resolve this issue.The code below is a code for a formula(function) column in oracle report, i have complied this code and it successfully complied but it does not display any result for the column having a stock balance in the entire report.
    function CF_STOCK_BALFormula return Number is
         v_all_positive NUMBER;
         v_all_negative NUMBER;
    begin
         IF :transaction_type IN ('RECEIPT', 'RETURN') THEN
              IF :cp_stock_bal IS NULL OR :cp_stock_bal = 0 THEN
                   :cp_stock_bal := :opening_balance + :cp_stock_bal + :quantity;
              ELSE
                   :cp_stock_bal := :cp_stock_bal + :quantity;
              END IF;
         ELSIF :transaction_type IN ('ISSUE') THEN
              IF :cp_stock_bal IS NULL OR :cp_stock_bal = 0 THEN
                   :cp_stock_bal := :opening_balance + :cp_stock_bal - :quantity;
              ELSE
                   :cp_stock_bal := :cp_stock_bal - :quantity;
              END IF;
         END IF;
    RETURN (:cp_stock_bal);
    end;
    Edited by: Gbenga on Jan 17, 2012 11:30 PM

    Please can anybody help me resolve this issue.The code below is a code for a formula(function) column in oracle report, i have complied this code and it successfully complied but it does not display any result for the column having a stock balance in the entire report.
    function CF_STOCK_BALFormula return Number is
         v_all_positive NUMBER;
         v_all_negative NUMBER;
    begin
         IF :transaction_type IN ('RECEIPT', 'RETURN') THEN
              IF :cp_stock_bal IS NULL OR :cp_stock_bal = 0 THEN
                   :cp_stock_bal := :opening_balance + :cp_stock_bal + :quantity;
              ELSE
                   :cp_stock_bal := :cp_stock_bal + :quantity;
              END IF;
         ELSIF :transaction_type IN ('ISSUE') THEN
              IF :cp_stock_bal IS NULL OR :cp_stock_bal = 0 THEN
                   :cp_stock_bal := :opening_balance + :cp_stock_bal - :quantity;
              ELSE
                   :cp_stock_bal := :cp_stock_bal - :quantity;
              END IF;
         END IF;
    RETURN (:cp_stock_bal);
    end;
    Edited by: Gbenga on Jan 17, 2012 11:30 PM

  • Stock qty/value on specifiec date

    Hi All
    Can anybody explain how  can we find the Stock qty and value on paricular date period through the table instead of transaction MB5B.I am waiting for your valid inputs.
    Thanx

    This is not possible as SAP only captures stock data at month level. Transaction MB5B actually uses posting date in material document to provide stock for a particular posting date; it does not read a table that provides stock data by posting date. Now if you need to view stock data at a particular month, this should be possible by viewing a combination of regular stock tables (e.g., MARD for regular storage location stock, MBEW for valuated stock at plant level, MKOL for consignment stock), and their historical data tables (e.g., MARDH, MBEWH, MKOLH).
    Please keep in mind that the period data in these tables does not get updated every month. They are updated only if there is a stock posting affecting these tables on that particular month. As such, you will need to come up with the logic to project data for a particular month based on these tables, which should be possible using data from these tables.
    Revi

  • MCBZ report how to get total stock qty calculation?

    Dear Guru,
            if i checking one material in Tcode:MMBE having unrestricted stock is 356 & reserved qty is 56. After this when i am executing report MCBZ-- Current stock reqmt list & get Total stock qty is 120 for same material.
    can any one tell me how it is calculated (i.e. Total Stock).
    My requirement is we want to see a report which shows diffrence bewtwwen satfey stock & total stock. so i am using this report, if any othere suggestion then please reply me.
    Best Regards,
    Dev

    Dear,
           You can see in MD04 t-code here u can find safety stock and inventory stock.
    Regards
    Ravi

  • JSP page display wrong time when compared to the server time

    Hi,
    This problem seems to weird but it is happening
    I have web application running where time is displayed in the page. In this application time is very critical. Currently, time is an hour behind the orginal time.
    I checked the server it is displaying proper time.
    As a matter of troubleshooting, I wrote a java program and run the program in the same server, where the application is running. The java program returns me proper time , but JSP is still displaying time an hour behind. To trouble shoot further, I created a test jsp page to just display the time and accessed the time and the jsp displayed wrong time as well, an hour behind.
    I am running[ tomcat 4.0.3 and j2sdk1.4.3 in suse linux enterprise server 9.0
    My Java program
    import java.util.*;
    import java.text.*;
    public class TestDate
    public static void main(String s[])
         try{
              DateFormat DF = new SimpleDateFormat( "dd/MM/yyyy");
    DateFormat DT = new SimpleDateFormat("hh:mm aa");
              SimpleDateFormat fmt=new SimpleDateFormat("HH.mm");
              Calendar cal= Calendar.getInstance();
              java.util.Date dt=cal.getTime();
              String curdt=DT.format(dt);
              System.out.println("Server Time" + curdt + "\n");
              int hh = cal.get(Calendar.HOUR);
              int mm = cal.get(Calendar.MINUTE);
              int aa = cal.get(Calendar.AM_PM);
              System.out.println("Time" + hh +":"+mm+":"+aa+"\n");
         }catch(Exception e) {
         e.printStackTrace();
    This display Time3:30:1
    My JSP Page
    <%@ page import="java.util.*,java.text.*"%>
    <%
    Calendar calen;
    calen = Calendar.getInstance();
    int hh=calen.get(Calendar.HOUR);
         int mm=calen.get(Calendar.MINUTE);
         int aa=calen.get(Calendar.AM_PM);
    %>
    <%=hh%> <%=mm%> <%=aa%>
    This display 2 30 1
    When I run Date in linux server it gives 3:30 PM EST 2004
    I am really confused, why this is happening, If you have any solutions or idea please post the solution.

    My guess is that the weirdness is caused by Daylight savings time.
    I will presume that you and the server are in the same timezone :-)
    Alternatively it could be caused by getting a different Locale.
    Try the following
    Print out "date.getTime()" value (ie long representing number of millis)
    They should be the same (or close) in both the app and in JSP
    Try simple date format in your JSP as well - what does that result in?
    Print the calendar object, and look for the difference.
    It might be in Locale, Timezone, or whether DST is set or not.
    Hope this helps,
    evnafets

  • How to access oracle in javabeans and display the result in jsp

    In my project ,i use the javabean to access the database and do the calculations and i display the result in the jsp page,,,
    any body can help me with your precious codes
    kodi...

    any body can help me with your precious codesStepped in the wrong place, try reading something on JDBC.

  • DB02 table space overview display wrong sizes

    Hi all
    I get this result when I run the transaccion DB02 and table space overview
    Tablespaces: Main data   (Last analysis: 13.12.2009 04:00:29)
    PSAPSR3                 55,000.00     2,458.31
    PSAPSR3700           44,980.00     2,128.50
    PSAPUNDO               5,060.00     4,921.94
    PSAPTEMP               2,000.00     2,000.00
    SYSTEM                                 880          14.38
    SYSAUX                                 340          20.75
    PSAPSR3USR                       20               14
    Its displaying wrong informaction. The correct its the informatcion below and I get with a detailed analysis.
    Tablespaces: Main data   (Last analysis: 21.07.2010 13:04:51)
    PSAPSR3                     75,000.00     4,352.13
    PSAPSR3700          44,980.00     1,634.44
    PSAPUNDO              5,060.00     4,752.81
    SYSTEM                                880     10.25
    SYSAUX                                360     23.5
    PSAPSR3USR                      20     13.31
    PSAPTEMP                          0     0
    I think is for the date of the last analysis, but I dont know how to update my table space overview analysis: i will appreciate it any one cant tell me how to update the analysis.
    Best regards.
    Edited by: Alvaro Olmos on Jul 21, 2010 8:16 PM

    To refresh the table space overview do :
    DB02 ->Refresh->there you will find two options choose second one
    And it will refresh the tablespaces.
    Or you can also schedule update stats job daily to update it automatically.
    Regards,
    Shivam

  • How to display the results of the grouping horizontally

    Hello,
    I still cannot understand what am I doing wrong when trying to display the results of the grouping horizontally. Here is the original thread: How to group report vertically
    In the Section expert, for Detail section, I check the box Format with Multiple columns. Under the Layout tab, I check Format groups with multiple columns and set the width of the column at 3.3 in. This should give me 3 columns for Landscape orientation.
    Now if I select Printing direction Down then Across, I just have the regular vertical grouping.
    If I check Across then Down, then I do get 3 columns, but all the records in the Detail section are also spread across first instead of staying in the column.
    There should be something else that I should do to get the display like this:
    Header1    Header2    Header3
    record11   record21   record31
    record12   record22   record32
    record13   record23   record33
    etc.            etc.            etc.
    Thank you.

    I'm not at all sure columns are gonna help here, as there is no way that I am aware of to tell Crystal to start a new column.
    The only way that I can think of to achieve what you are trying to accomplish is to do something like this:
    In your group header's Suppress formula, keep track of the first (/ next) three groups that you want to print, using something like (basic syntax):
    global grouplist(3) as string
    global groupcount as number
    groupcount = groupcount + 1
    grouplist(groupcount) = {db.GroupingField}
    ' The NextIsNull below implies End-of-Data...
    if groupcount = 3 or NextIsNull({db.GroupField}) then
      formula = false  ' print the group header
    else
      formula = true  ' suppress the group header
    end if
    Then, create three formula fields to get each value in grouplist().  The group header format will then show the three formula fields.  Underneath these three formula fields, add subreports, which will show the details for one specific group.  The subreports should have a parameter for which group's details to show.  Use the three formula fields as the link to the three subreports.
    In the group footer, clear out the grouplist() array, and set groupcount to zero.
    This report will take a while to run, because having three subreports next to each other makes it difficult for Crystal to determine page formatting.
    HTH,
    Carl

  • Last Date on which stock Qty was zero

    Dear Gurus,
    LIS structure S032 can tell us the date of last GR,Cons., Iss. & movement date. is there any field which tell us the last date on which stock qty was zero ?
    Regards,
    FR

    Dear Bijay Pradhan,
    Thank you so much for your response, actualy we are using MCBA to desing a report by which we are determining the data since then the nmaterial has not consumed but we are facing the problem when consuption made and after consumption stock was zero and after 4 or 5 month only GR made  but no consumption made so when we generate report then system shows that the material has not consumed since last 4 or 5 months whcih is wrong because if no consumption made after the stock was zero then system should consider GR date for our report.
    can you plz guide me how to resolve the issue?
    Thanks & regards,
    FR

  • Can't get the table display my results

    OK After some good hours of debugging i am able to display my results on JTable for my queries. But i got another problem now. When i select Query2 from my JComboBox and click on execute button nothing happens, same thing for query3 and 4. The only thing which works is QUERY1 why? what am i doing wrong?
    import java.awt.FlowLayout;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    import javax.swing.JOptionPane;
    import javax.swing.JTable;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.table.TableModel;
    import java.awt.event.ActionEvent;
    import java.sql.Connection;
    import java.sql.Statement;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.ResultSetMetaData;
    import java.sql.SQLException;
    import java.util.Vector;
    public class DatabaseProgramming extends JFrame implements ActionListener{
         static final String JDBC_DRIVER = "com.mysql.jdbc.Driver";
         static final String DATABASE_URL = "jdbc:mysql://localhost/employees";
         static final String USERNAME = "jhtp6";
         static final String PASSWORD = "jhtp6";
         private static final String QUERY1 = "SELECT * FROM employees WHERE DEPARTMENTNAME = 'SALES'";
         private static final String QUERY2 = "SELECT * FROM hourlyEmployees WHERE hours >= '30'";
         private static final String QUERY3 = "SELECT * FROM commissionEmployees ORDER BY commissionRate DESC";
         private String names[] = {"QUERY1", "QUERY2", "QUERY3", "QUERY4"};
         private Connection connection;
         private ResultSet resultSet;
         private Statement statement;
         private ResultSetMetaData metaData;
         private JTable resultTable;
         private JComboBox queryBox;
         private JButton button;
         private int number;
         private boolean connectedDatabase = false;
         private DefaultTableModel dtm;
         public static void main(String[] args) {
              DatabaseProgramming frame = new DatabaseProgramming();
              frame.setVisible(true);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         public DatabaseProgramming() {
              super("Testing Database");
              setLayout(new FlowLayout());
              //dtm = new DefaultTableModel(getColumnName(number),0);
              //     statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
                   //         ResultSet.CONCUR_READ_ONLY);
              queryBox = new JComboBox(names);
              queryBox.setEditable(false);
                   //queryBox.addActionListener(this);
                   button = new JButton("EXECUTE");
                   resultTable = new JTable();
                   button.addActionListener(this);
                   add(queryBox);
                   add(button);
                   add(resultTable);
                   //add(result);
                   setSize(400,400);
          public void actionPerformed(ActionEvent e)  {
              String selection = (String)queryBox.getSelectedItem();
                        if(selection.equals(names[0]))
                        validateQuery(QUERY1);
                        if(selection.equals(QUERY2))
                             validateQuery(QUERY2);
                        if(selection.equals(QUERY3))
                             validateQuery(QUERY3);
          public void validateQuery(String query) {
                   try {
                        Class.forName(JDBC_DRIVER);
                        connection = DriverManager.getConnection(DATABASE_URL, USERNAME, PASSWORD);
                        System.out.println("Yay Database Connected");
                    Vector col = new Vector();
                    Vector data = new Vector();
               statement = connection.createStatement();
                  resultSet = statement.executeQuery(query);
                  metaData = resultSet.getMetaData();
                  number = metaData.getColumnCount();
                  for(int i=1; i<=number; i++)
                       col.addElement(metaData.getColumnName(i));
                  while(resultSet.next()) {
                       Vector row = new Vector();
                       for(int i=1; i<=number; i++)
                            row.addElement(resultSet.getObject(i));
                       data.addElement(row);
                 resultTable.setModel(new DefaultTableModel(data,col));
                 resultTable.revalidate();
               catch ( SQLException sqlException )
                  sqlException.printStackTrace();
                  System.exit( 1 );
               catch(ClassNotFoundException e) {
                    e.printStackTrace();
               finally
                  try                                                       
                     statement.close();                                     
                     connection.close();                                    
                  catch ( SQLException sqlException )
                     JOptionPane.showMessageDialog( null,
                        sqlException.getMessage(), "Database error",
                        JOptionPane.ERROR_MESSAGE );
                     System.exit( 1 );
    }

    One last question how can i display the columnName on my JTable? Add the table to a scroll pane and the scroll pane to the frame.

Maybe you are looking for