Unable to clear previous month stock

Dear All,
I am facing issues in activating batch management.
I have gone through many threads on SDN,however thry didn't help me much.
I have two queries:
1. I can see previous period stock in material master but I am not able to see its details in MB5B.
    I want to see where this stock is placed actually and how I can clear this stock.
2. Also, there is nsome stock in quality in current month,but there is no inspection lot for it.
    Please tell me how to clear quality stock for current as well as previous month.
Waiting for an early reply.
Regards,
Nidhi

1. I can see previous period stock in material master but I am not able to see its details in MB5B.
   I want to see where this stock is placed actually and how I can clear this stock.
Have you checked it in  report - MB5L ? or MB5T,MB52,MMBE.
Do PI adjustment using MI07 / MI10.
2. Also, there is some stock in quality in current month,but there is no inspection lot for it.
    Please tell me how to clear quality stock for current as well as previous month.
Take help of QM consultant why inspection lot is not generated ? or analyze movements happened
for material which bring stock to quality & take suitable action to clear it.

Similar Messages

  • Unable to clear out the stock in SAP

    Hi Expert!
    Need your help. I have an issue, my user wants to clear out the stock in SAP because they are the old stock and there's no stock in actual warehouse for those materials actually. it is just in the system taht showing those materials have stock in warehouse. but however, she's unable to clear out the stock. So when i check in the system, the materials are batch managed and still have open POs dated on 2003 which has already old.  Is it the reason why she can't clear the stock? Do i need to ask her to off the batch management for those materials,then delete the POs and then only she able to clear the stock? Please advise on the solution..
    Thanks.

    hi
    do the physical inventory and adhust stock
    1) Create physical inventory doc using MI01
    2) Post the Physical Inventory stock Using MI04 ( Mark Tick if the stock is Zero)
    3) Post the doc in Using MI07
    Note : Give the batch no if the material is activated the batch

  • UD ICCO SPCO STUP- unable to clear the stock in Quality View.

    Hi!
                    In a QM -Module for a particular material status is showing as "UD ICCO SPCO STUP" in QA32. Usage Decision is done for this particular item. But it is showing the stock in MMBE Tcode. Its unable to clear in QA32.
    I tried QA12 and also QVM2 for this stock moving from Quality Inspection to Unrestricted stock. but i am unable to do so.
    Could any body plz help me to clear the stock from the Quality View.
    Thank you!
    -M.Suba

    Hi,
    Since lot status is "UD ICCO SPCO STUP", the stock posting against that lot is already done.
    Is batch management active ? is so then check whether you are getting  stock of that batch in Quality in MMBE.
    Chances of some other lot for same material  having status SPRQ are more, go to QA32 put specific material  and select all lots, then apply the filter to status field  and search for SPRQ status availability. You will find some lots of same material  for which UD given but stock posting not made.
    Please check and revert.
    Best Regards,
    Shekhar

  • Unable to clear Stock from Inventory

    Hi All,
    We have a issue where in user is unable to clear stock from inventory , basically these stocks are sales order stocks. When we check for sales orders they are not available in the system now.
    When we try to do MB1B using movement type 413E, we get the error message saying the sales order does not exist.
    Kindly reply  is there is any way to clear this stock as the sales order is not existing in the system.
    Regards,
    Gopal

    Please check this answered link:
    Re: Material showing in system.
    how to scrap sales order stock if the referenced sales order is deleted.
    Remove Sales Order Stock from MMBE.
    Re: deleted sales order
    Edited by: Afshad Irani on Jun 1, 2010 2:41 PM

  • Clearing up negative stock approach during month end

    Dear all,
    I have a question with regards to how to clear up negative stock during month end.
    Currently our system allows negative stock due to our company process requirement. However, these negative stocks will need to clear-up by finance or warehouse during month end.
    May I know what is the best approach (including tcode, and business process) for this activity?
    Thanks.
    tuff

    >
    yagnesh bhatt wrote:
    > HI,
    >
    > if you want to clear -ve stock,
    > 1)you have to take receipt of material.. either against reference document docuemnt (like PO) or without document.
    > 2) you can also post physical inventory doument, if there is inconsistency between actual physical stock of material and stock in SAP.
    >
    >
    > YB
    regarding your point 2: it is not possible to clear negative stock with phyiscal inventory, as you cannot even create a inventory document if you have negative stocks.

  • Is it possible to see how many COGI errors I have cleared in previous month and in which transaction I can able to see that record?

    Is it possible to see how many COGI errors I have cleared in previous month and in which transaction I can able to see that record?

    Mukundan,
    Refer Below SAP Note 1868084 - FAQ: Transaction COGI
    Question:
    Is it possible to log the actions in transaction COGI?
                  Answer:
    SAP Note 309050 provides a modification but it can only be used temporarily. Also refer to SAP Note 1894587 in this context. It provides a report for displaying and deleting the data records in the log table AFFWPRO.
    BR
    KK

  • Unable to clear change records

    Hi ,
    We are facing an issue where the there are few 261 records in COGI from previous period and a different storage location , but unable to clear inspite of changing the storage location with sufficient quantity of stocks . It is still displaying the message ' Deficit of stocks in that storage location'. Please provide your suggestions.

    Hi Crazy,
         Please make sure that you have had enough stock at sloc on specific period.You can analyse the stock by posting date in MB5B. Please check any existing reservation blocked the stock, then clear the reservation and post.
    Thanks

  • How to get previous month data from current month values

    Hi Experts,
    I have made one universe from BW Query in which Fiscal year period is entered in interval.
    I have made a universe from that and want to develop webI reports on top of that.
    In my webI reports, i have used one cross tab. In Rows section i have added Company Code and in Column section i have used Fiscal Year/Period and in Value section i have added Sales Value. I want this value of previous month.
    Requirement:
    Ex.
                            Feb'09          Mar'09     and so on...
    Comp_code1   Sales of Jan'09         Sales of Feb'0f         and so on....
    I am getting this.
    Ex.
                            Feb'09          Mar'09     and so on...
    Comp_code1   Sales of Feb'09         Sales of Mar'09         and so on....
    I hope i have clear my requirements.
    Please help as soon as possible.
    Thanks in Advance,
    Rishit

    Hi Rishit,
    Follow the below steps to get the desired result.
    Step1: Convert your fiscal year period from char to a date in your database or in your designer however its feasible.
    to_date('substr('009.2009',2)','mm.yyyy')
    you will get the result 01 sep 2009
    Step2: Convert this format to 01/09/2009 by using date functions.
    Step3: Create a Detail associated to the 'date' field (typically your fiscal period).
    Step4: Create a cross tab Like : Rows section should have Company Code and in Column section should have 'date'(created detail) and in Value section should be Sales Value.
    you should get the following result.
    01/02/2009 01/03/2009 and so on...
    Comp_code1 Sales of Feb'09 Sales of Mar'09 and so on....
    Step5: Use the following formula in your Column (date) formula bar.
    =(<date>-1)-DayNumberOfMonth(<date>-1)+1
    You will get the following result:
    01/01/2009 01/02/2009 and so on...
    Comp_code1 Sales of Feb'09 Sales of Mar'09 and so on....
    Format the cell according to your reruirement.
    Let me know if you will get any break in the above steps.
    Regards,
    Swati.

  • Last day of previous month for data load

    Hi,
    I have to load data from the previous month into the psa and then into an infocube. I was wondering as to how to get the last of the previous month to write a code in ABAP. I will be writing the code at the infopackage level in the data selection. I could load data from the 1st of the previous month to the 1st of the current month. This will be an additional load of 30,000 records for the 1st of every month, since I will be loading 30,000 records everyday, I was wondering if I could limit the load from the 1st of every previous month to the last day of that month. This will be a repetitive loading.
    DATA: CURR_MM(2) TYPE N,
    CURR_YYYY(4) TYPE N,
    CURR_DD(2) TYPE N,
    PREV_MM(2) TYPE N,
    PREV_YYYY(4) TYPE N,
    PREV_DD(2) TYPE N,
    YYYY_MM(6),
    YYYY_MM1(6),
    DATE LIKE SY-DATUM.
    DATE = SY-DATUM.
    CURR_YYYY = DATE+0(4).
    CURR_MM = DATE+4(2).
    CURR_DD = DATE+6(2).
    PREV_DD = 1.
    IF CURR_MM = '01'.
    PREV_MM = '12'.
    PREV_YYYY = CURR_YYYY - 1.
    ELSE.
    PREV_MM = CURR_MM - 1.
    PREV_YYYY = CURR_YYYY.
    ENDIF.
    concatenate PREV_YYYY PREV_MM PREV_DD into YYYY_MM.
    concatenate CURR_YYYY PREV_MM PREV_DD into YYYY_MM1.
    read table l_t_range with key
    fieldname = 'BLDAT'.
    l_idx = sy-tabix.
    l_t_range-low = YYYY_MM.
    l_t_range-high = YYYY_MM1.
    l_t_range-sign = 'I'.
    l_t_range-option = 'BT'.
    modify l_t_range index l_idx.
    p_subrc = 0.
    Mind you this code will load data from 1st of the previous month to the 1st of current month. I just don't want to load that extra "1st day" of current month data as I have 30,000 records everyday.
    Say for example, I want to load data from 1st Mar to 31st Mar or 1st Feb to 28thFeb. How should I modify the above code.
    Is there a formula to get the last date of the previous month. That's all I need. This would solve the problem.

    try this routine. it will return a range from 1st day to end of the month.
    DATA: l_s_range TYPE rsr_s_rangesid,
              E_T_RANGE TYPE  RSR_T_RANGESID.
    DATA: year(4) TYPE n,
          month(2) TYPE n,
          day(2) TYPE n,
        ld_keydate  TYPE sydatum,
          ld_lastday  TYPE sydatum.
      REFRESH e_t_range.
      CLEAR l_s_range.
      year  = sy-datum(4).
      month = sy-datum+4(2).
    *Months with 31 days in year
      IF month = '01' OR
         month = '03' OR
         month = '05' OR
         month = '07' OR
         month = '08' OR
         month = '10' OR
         month ='12'.
        day = '31'.
      ENDIF.
    *check for leap year: provoking sy-sybrc <> 0
      IF month = '02'.
        day = '29'.
        MOVE:   '02'        TO ld_keydate+4(2),
                year        TO ld_keydate(4),
                day         TO ld_keydate+6(2).
        CALL FUNCTION 'DATE_CHECK_PLAUSIBILITY'
          EXPORTING
            date   = ld_keydate
          EXCEPTIONS
            OTHERS = 1.
        IF sy-subrc <> 0.
          day = '28'.
        ENDIF.
      ENDIF.
    *months with 31 days in year
      IF month = '04' OR
         month = '06' OR
         month = '09' OR
         month = '11'.
        day = '30'.
      ENDIF.
      MOVE: year              TO ld_lastday(4),
            month             TO ld_lastday+4(2),
            day               TO ld_lastday+6(2).
      l_s_range-low  = sy-datum.
      l_s_range-high = ld_lastday.
      l_s_range-sign = 'I'.
      l_s_range-opt  = 'BT'.
      APPEND l_s_range TO e_t_range.

  • Sample ABAP routine code to load only previous month data in INFOPACKAGE

    Hi all,
    I want to create one ABAP routine in InfoPackage (Variables change to selection values with background processing) for 0CALMONTH ( Calender year month) so that whenever this infopackage is executed it should fetch only previous month data.
    Can anyone please provide any sample code for that.
    Thanks in advance.
    Uday shankar.

    Hi
    Please check with below code, hope this will resolve your issue
    WHEN: 'ZLASTP'.
         CLEAR: h_period, h_gjahr.
         CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
           EXPORTING
             i_date               = sy-datum
       I_MONMIT             = 00
             i_periv              = 'AF'
          IMPORTING
            e_buper              = h_period
            e_gjahr              = h_gjahr
    EXCEPTIONS
       INPUT_FALSE          = 1
       T009_NOTFOUND        = 2
       T009B_NOTFOUND       = 3
       OTHERS               = 4
         IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
         ENDIF.
         IF h_period = '001'.
           h_gjahr = h_gjahr - 1.
           h_period = '012'.
         ELSE.
           h_period = h_period - 1.
         ENDIF.
         CLEAR l_s_range.
         CONCATENATE h_gjahr h_period INTO l_s_range-low.
         l_s_range-sign = 'I'.
         l_s_range-opt  = 'EQ'.
         APPEND l_s_range TO e_t_range.

  • Calculating receipts from previous month based on the sales of current mont

    Hi Gurus,
    I have a requirement where i need to display sales for a quarter and need to display receipts from the previous quarter. For example consider that i am displaying sales from week1-Aug to Week4-October, I need to display receipts ( R_Net_RCPTS) from Week1-july to Week4-September. In that way If i select Wk1-Aug for sales it should display Wk1-july receipts. i need to do this in Webi by creating appropriate variables.
    I have got prompts on year and Fiscal Week
    I have given year as 2011 and The "08: Fiscal Week From:" as "Wk1-Aug" to "08: Fiscal Week To:" as "Wk4-Oct"
    I HAVE GONE THROUGH ALMOST ALL RELATED THREADS, BUT COULDN'T FIND ANY SOLUTION. ITS REALLY URGENT. PLEASE HELP ME AND I WILL FOR SURE GIFT POINTS.

    HI
    Your explanation is not clear whether u want to display current quarter data or you would like to see only previous month data ?
    Which dimension you are taking for week ? how data would be like ?
    Edited by: K.sunil on Nov 21, 2011 9:14 AM

  • Framemaker v11 Books unable to clear all change bars from documents

    I have converted all Framemaker v10 documents to v11 by opening and saving. However when opening the Book v11 for these documents and applying the 'clear all change bars' option a book error log message advises that the documents cannot be opened as they are in a previous version! When performing the same function on the individual documents outside of the Book this works fine. But unable to clear all change bars within a book when selecting all the files in one go. Is there a bug with Books in v11?

    My version is FM11.0.0.380 so I will install the patches. I did open all documents up from within the book and then individually saved them, then i applied the 'clear all change bars' and this worked. It just does not seem right that you can clear the change bars from the documents from outside the book but when you try it from within the book it says cannot open document as it was created with a previous version. I have managed to get it working but would be good to know if it is a book bug or not. I will try it on another Book when I have upgraded to the latest patch.

  • Table for previous period stock

    Please provide me the table name or report from which I can get only quality stock in previous monht
    I just need the quality stock in previous month
    need a table

    xxxxH tables certainly have correct data, just not in good readable form.
    you need to use a function module to retrieve the previous  period stock:
    A calculation of previous period data for table MARD could have the following form.
      select * from mard into table mard_tab where werks = 'ABCD'.
      call function 'MARD_EXTEND'
        exporting
          xvper = 'X'
        tables
          mard_tab = mard_tab.
    table MARD_TAB is filled with the previous period information.

  • Which SQL function to use to get previous month's data?

    Hi
    The reporting need: Display of two month's payroll run results....current and previous (based on the parameter passed) in Oracle Discoverer.
    Data source: A table in which run result values are stored. Of course to be linked to number of other tables.
    Can somebody guide me on which SQL function to use to get the data for previous month?
    Secondly, as Discoverer does not support parameters, I cannot put parameter in the query itself. I'll be applying parameter later while generating my report.
    Please advice.
    Thanks and regards,
    Aparna

    It's not very clear in my head... but you can try :
    SQL> select * from test;
    ENAM        SAL DT
    TOTO       1000 30/05/06
    TOTO       1001 20/04/06
    TOTO       1002 11/03/06
    TATA       2000 30/05/06
    TATA       1500 20/04/06
    TUTU       3500 30/05/06
    6 rows selected.
    SQL> select ename, dt, sal currmonth,
                case when trunc(lag(dt,1,dt) over (partition by ename order by dt),'MM') = trunc(add_months(dt,-1),'MM')
                     then lag(sal,1,sal) over (partition by ename order by dt)
                     else null end prevmonth
         from   test
    SQL> /
    ENAM DT        CURRMONTH  PREVMONTH
    TATA 20/04/06       1500
    TATA 30/05/06       2000       1500
    TOTO 11/03/06       1002
    TOTO 20/04/06       1001       1002
    TOTO 30/05/06       1000       1001
    TUTU 30/05/06       3500
    6 rows selected.
    SQL>
    SQL> Nicolas.
    Just an additional question : do the previous month is current month-1, or is there hole in month suite (e.g. the previous month can be current month-2) ?
    Message was edited by:
    N. Gasparotto

  • SAP Trans.Code-To view the previous month's OSP Report

    Pl.mention the SAP trans.code for view the OSP status as on previous month.For an example,I want to see the status of OSP stocks as on 30.11.2010.How can I see?From MBLB,we can see the current OSP stock status.Is there any trans.Code for view the previous month OSP stock status?
    Regards

    hi,
        there is no t code specific to your requirement, but you can get the details through MB51, by metioning repective date and movement types like 541,543 etc..
         hope this will help..
    Regards
    Manohar

Maybe you are looking for