Opening stock entry without batch No.

Dear Pandits,
I am entering opening stock entry in 561 movement thro lsmw.
I do not have the batch No. without with will system allow to proceed or can I omitt the batch no. field
what are the mandetory fields ?
thanks
v balajee

Hi,
If your material is batch managed, a batch number should be inputted.
(1) This can be done automatically (if internal batch number assignment is set) by SAP else (2) you have to do it manually.
In case (1) you do not need to define the batch number when you upload the stock.
However, we are speaking initial stock upload, that means you already have the stock with batch numbers.
Even if you are able to upload the stock records with internally assigned batch, how will you be able to say wich new batch numbers corresponds to the old one???
(Maybe this won't be problem if you have not many stock records or the there's 1:1 relation between batch and storage bin...)
I would suggest to clarify this problem and upload proper batch numbers.
Regards,
Csaba

Similar Messages

  • Stock in mb52 without batch

    There is some stock in one store showing in mb52(without batch), there is no entry in MCHB table while there is entry in MBEW against this stock, we want to remove this stock, Please advice how can we remove this stock.
    Thanks
    Deven Sharma

    only batch stock is stored in MCHB,
    if the material is not managed in batches, then the stock is in MARD.
    MBEW has only the valuated part of the stock.
    you can use a physical inventory ot make stock zero, you can issue it to cost center with 201 or to scrap with 551.
    562 should only be used if you want reverse initial stock (which you entered mistakenly with 561, and you are still in go live phase. this movement should nto be used after a go live)
    Edited by: Jürgen L. on Aug 12, 2011 9:28 AM

  • Stock ageing report without Batch Management

    Hi Gurus,
    My client wants a Stock ageing report. But my concern here is can we achieve this  without batch management
    According to my client, Inventory ageing report should  show stock quantities and stock value as follows,
    1. Below one year
    2. Between one and two years
    3. Above two years
    We can accumulate the goods receipt as per Material document date and movement type according to the above age requirement.
    But, can we track goods issues from the above age groups without Batch Management.
    Experts Pls reply and If possible, pls explain how we can achieve this.
    Thanks
    NDS

    As you already noticed not only the input (GR) but the output (GI) is also important.
    The date of the GR is only one thing, but after that you received the goods in your SLoc you cannot make difference between stocks received at different times.
    As your stock is not distinguished in the system as per the GR date you cannot say that which sub-stock has been consumed during GI.
    So, without batch management you cannot achieve your goal in standard system.
    Of course, physically you can realize your idea by putting labels on different batches - this would mean batch management physically and not in SAP.
    If you use warehouse management you can use a workaround: the GR date is stored in the quants and this makes possible to track the age of the stock without batch management. Please check:
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/c6/f83b5e4afa11d182b90000e829fbfe/frameset.htm
    Regards,
    Csaba

  • To get rig of doing the same entry in batch split.

    Hi Evryone,
    We are trying to configure MTO Scenario but without PP. Following are the steps we have configured and are executed without errors:
    u2022 We have created a sales order with batch managed material, with special stock indicator E assigned to item category (TAN) in the sales order
    I receive the same fabric(material) with different batches from the production.T-code=mb1c,Mov type=521E.
    The fabric(batch managed material) and its quantity is packed in handling unit with Hu02.
    Now the handling units are in the stock.
    At the time of delivery i has to enter the each batch name of the same material and its quantity again in batch split option to select the handling unit in Edit>Pack.
    I want to know that is there any way to get rig of doing the same entry in batch split option,which i already did during packing Hu02.
    Best regards
    vijay

    Correct, if you open SE16, display table RFCDES you see a list of defined RFC destinations.
    The field RFCOPTIONS gives a list of the attributes. You will see something like:
    H=....,S=..,M=...,U=xxxxx
    These contain the attributes of the RFC destinations
    H: Host
    S: Instance ID
    M: Client
    U: the user ID used in the RFC destination. So here you would find the required User ID.

  • Table name for opening stock value

    Hi,
    Can some body tell me the table name & the field name for opening stock value,
    (This is when you pass the date through LSMW at initial stage and it gets sits in which table)
    For ex. MB5B
    rgds
    Sonu

    There are many stock tables in SAP.
    if you load unrestricted use stock with value, then the quantity is going to MARD, quantity and value to MBEW.
    if material is batch managed, then stock per batch is going to MCHB, but still MARD and MBEW are updated.
    if you load non-valuated stock (material type UNBW), then only MARD is updated, no MBEW entry.
    and much more cases for consignment, sales order stock etc etc.
    If you try to find the values more than a month after the upload, and your materials had movements, then the old stock quantity at period closing is transfered to the history tables MARDH, MBEWH.
    If you load in the beginning of a month, then SAP calculates the opening stock by using the end of period stock and add/subs the material movements.Then you will not find the opening stock as a single number in any table.

  • Updation Of Opening Stock

    Hi all
    The Problem is I have a fresh database in that database there is no transaction but i have imported the opening stock and batches as well.But now i want to Update the Opening Stock and Batches through templates  without putting the Differences manually in SAP B1 so can i do that ??
    Plz Reply asap........
    Regards
    Edited by: sap.ankit06 on Mar 5, 2010 10:46 AM

    Hi,
    After you uploaded those opening stocks, you have created many transactions already.  For all financial related records, there is no way to update.  This is the rule.  You have two choices:
    1. Recreate database to do a clean upload
    2. Just upload another opening balance to get the correct open amount
    Thanks,
    Gordon

  • Opening Stock and Closing Stock Calculation

    Hi,
         My report requirement is to display the material, opening stock for the lower date, closing stock for the higher date and the in between all stock operations..how to fetch the opening stock and closing stock for a particular  material ???.. what are the tables and fields for calculating them??..
    Thanks,
    Sri
    Edited by: Sri on Feb 13, 2009 8:33 AM

    Hi
    We have done a similar reports. One showing opening stock/Closing stock and another one showing all the transactions for a particular day. What we did was we developed a program to fetch data from MARD table for unrestricted, blocked & Qulaity stock(Our requirement talks only about these 3 stocks). And we scheduled the program exactly at system time 00.00 hrs with A class job.(today's closing day stock is nothing but tomorrow's opening stock)
      And for the second report which needs to pick all the transaction for a particular day, we picked it from MB51 entries. It is nothing but query between MKPF and MSEG.
    I hope this helps.

  • Inspn For 103 Movnt Type UD Not allowing without Batch

    Hi Experts
    We have one scenario : For Incoming materials we are doing 103 GR Block stock and system
    not asking  any batch during MIGO.And after quality inspection (RR) 105 Block stock to unrestricted
    (Here we are entering the batch). But before this we need to take UD for the lot
    but system is not allowing me to do UD without Batch. For time being we are doing stock posting only.
    Kindly advise me how can I take UD without Batch for 103 inspection lots.
    Inadvance Thanks
    Shiva Patil

    Hi Vishal / Sanil,
    The problem is QM don't want create this batch we have suggested this they want system should assign automatically. In 103 there is no such a way that MM can enter this batch. QM is asking we haven't entered the batch in 103 so we want this lot need to be close without Batch.
    1) Which sap note is suitable for this kindly suggest me
    Thanks
    Shiva Patil

  • Opening Stock and Closing Stock fields and Calculation

    Hi,
    My report requirement is to display the material, opening stock for the lower date, closing stock for the higher date and the in between all stock operations..how to fetch the opening stock and closing stock for a particular material ???.. what are the tables and fields for calculating them??..
    Thanks,
    Sri

    this is the code i wrote..
    I had selected the data for the date entered and the previous date(l_date) also..
    previous date for the opening stock.
    now i am getting only receipts and issues correctly.. opening stock and the remaining
    balance fields are not coming properly..please help me..
    here rmenge for receipts,imenge for issues.
    REPORT  ZSTOCK no standard page heading line-size 180.
    types: begin of ty_date,
           budat type budat,
           end of ty_date,
           begin of ty_mard,
            matnr type matnr,
            lgort type lgort_d,
            labst type labst,
            UMLME TYPE UMLMD,
            INSME TYPE INSME,
            EINME TYPE EINME,
            SPEME TYPE SPEME,
            RETME TYPE RETME,
           end of ty_mard,
           begin of ty_makt,
            matnr type matnr,
            maktx type maktx,
           end of ty_makt,
           begin of ty_mbew,
           matnr type matnr,
           bwkey type bwkey,
           lbkum type lbkum,
           salk3 type salk3,
           end of ty_mbew,
           begin of ty_mkpfmseg,
            mblnr type mblnr,
            budat type budat,
            bwart type bwart,
            matnr type matnr,
            lgort type lgort_d,
            shkzg type shkzg,
            dmbtr type dmbtr,
            menge type mseg-menge,
           end of ty_mkpfmseg,
           begin of ty_opstock,
           matnr type matnr,
           rdmbtr type dmbtr,
           idmbtr type dmbtr,
           bdmbtr type dmbtr,
           bmenge type menge_d,
           end of ty_opstock,
           begin of ty_output,
            mblnr type mblnr,
            budat type budat,
            matnr type matnr,
            maktx type maktx,
            bwart type bwart,
            lgort type lgort_d,
            shkzg type shkzg,
            rmenge type mseg-menge,
            rdmbtr type dmbtr,
            imenge type mseg-menge,
            idmbtr type dmbtr,
            dmbtr type dmbtr,
            bdmbtr type dmbtr,
            bmenge type menge_d,
           end of ty_output.
    data: t_date type standard table of ty_date initial size 0,
          t_mard type standard table of ty_mard initial size 0,
          t_makt type standard table of ty_makt initial size 0,
          t_mkpfmseg type standard table of ty_mkpfmseg initial size 0,
          t_opstock type standard table of ty_opstock initial size 0,
          t_out type standard table of ty_output initial size 0,
          w_date type ty_date,
          w_mard type ty_mard,
          w_makt type ty_makt,
          w_mkpfmseg type ty_mkpfmseg,
          w_opstock type ty_opstock,
          w_out type ty_output,
          g_matnr type mara-matnr,
          g_lgort type t001l-lgort.
    selection-screen begin of block b1 with frame.
    parameters:p_werks type t001l-werks obligatory memory id pw.
    select-options:s_lgort for g_lgort no-extension no intervals.
    select-options: s_matnr for g_matnr.
    parameters:p_date type mkpf-budat obligatory.
    selection-screen end of block b1.
    at selection-screen.
    perform sub_validate_date.
    start-of-selection.
    data: l_date type sy-datum,
          l_row type i.
    refresh t_date.
    select budat from mkpf into table t_date.
    sort t_date.
    delete adjacent duplicates from t_date.
    clear w_date.
    read table t_date into w_date with key budat = p_date.
    l_row = sy-tabix.
    l_row = l_row - 1.
    clear w_date.
    read table t_date into w_date index l_row.
    l_date = w_date-budat.
    select    k~mblnr
              k~budat
              s~bwart
              s~matnr
              s~lgort
              s~shkzg
              s~dmbtr
              s~menge
              into table t_mkpfmseg
              from mkpf as k inner join mseg as s
              on kmblnr = smblnr and
                 kmjahr = smjahr
              where k~budat between l_date and p_date and
                    s~matnr in s_matnr and
                    s~werks = p_werks and
                    s~lgort in s_lgort.
    if t_mkpfmseg is not initial.
    sort t_mkpfmseg by budat ascending
                       matnr ascending.
    select     matnr
               lgort
               labst
               umlme
               insme
               einme
               speme
               retme
               from mard
               into table t_mard
               for all entries in t_mkpfmseg
               where matnr = t_mkpfmseg-matnr and
                     werks = p_werks and
                     lgort in s_lgort.
    select    matnr
              maktx
              from makt
              into table t_makt
              for all entries in t_mkpfmseg
              where matnr = t_mkpfmseg-matnr.
    endif.
    loop at t_mkpfmseg into w_mkpfmseg where budat = l_date.
       loop at t_mard into w_mard where matnr = w_mkpfmseg-matnr.
          w_opstock-matnr = w_mkpfmseg-matnr.
          if w_mkpfmseg-shkzg = 'S'.             " Receive
               w_opstock-rdmbtr = w_mkpfmseg-dmbtr.
               w_opstock-bmenge = w_mard-labst + w_mard-insme + w_mard-speme
                                    + w_mard-einme +               w_mard-retme
                                    - w_mkpfmseg-menge.
          elseif w_mkpfmseg-shkzg = 'H'.         " Issue
               w_opstock-idmbtr = w_mkpfmseg-dmbtr.
               w_opstock-bmenge = w_out-bmenge + w_mkpfmseg-menge.
          endif.
              w_opstock-bdmbtr = w_out-rdmbtr - w_out-idmbtr.
                   append w_opstock to t_opstock.
                  clear w_opstock.
       endloop.
    endloop.
    loop at t_mkpfmseg into w_mkpfmseg where budat = p_date.
       loop at t_mard into w_mard where matnr = w_mkpfmseg-matnr.
         clear w_makt.
         read table t_makt into w_makt with key matnr = w_mkpfmseg-matnr.
         if sy-subrc = 0.
          w_out-budat = w_mkpfmseg-budat.
          w_out-matnr = w_mard-matnr.
          w_out-maktx = w_makt-maktx.
          w_out-lgort = w_mard-lgort.
          w_out-mblnr = w_mkpfmseg-mblnr.
          w_out-bwart = w_mkpfmseg-bwart.
          w_out-shkzg = w_mkpfmseg-shkzg.
            if w_mkpfmseg-shkzg = 'S'.             " Receive
               w_out-rmenge = w_mkpfmseg-menge.
               w_out-rdmbtr = w_mkpfmseg-dmbtr.
               w_out-imenge = 0.
               w_out-bmenge = w_mard-labst + w_mard-insme + w_mard-speme
                                    + w_mard-einme + w_mard-retme
                                    - w_mkpfmseg-menge.
            elseif w_mkpfmseg-shkzg = 'H'.         " Issue
               w_out-imenge = w_mkpfmseg-menge.
               w_out-idmbtr = w_mkpfmseg-dmbtr.
               w_out-rmenge = 0.
               w_out-bmenge = w_out-bmenge + w_mkpfmseg-menge.
            endif.
               w_out-bdmbtr = w_out-rdmbtr - w_out-idmbtr.
                   append w_out to t_out.
                  clear w_out.
    endif.
       endloop.
    endloop.
    write: / 'Material' , 12 'Description' ,40 'Location', 50 'Opening stock',70 'MvT',
              83 'Receipts' , 102 'Issues', 118 'Amount',135 'Balance Quan', 155 'Balance Amount'.
    loop at t_out into w_out.
       write: / w_out-matnr, 12 w_out-maktx, 40 w_out-lgort.
       clear w_opstock.
       read table t_opstock into w_opstock with key matnr = w_out-matnr.
       if sy-subrc = 0.
         write: 45 w_out-bmenge.
        endif.
       write: 70 w_out-bwart,75 w_out-rmenge,92  w_out-imenge,
             110 w_out-bdmbtr, 130 w_out-bmenge, 150 w_out-bdmbtr.
    endloop.
    *&      Form  SUB_VALIDATE_DATE
    FORM SUB_VALIDATE_DATE.
        select budat
               from mkpf
               into table t_date
               where budat = p_date.
        if t_date is initial.
           message e001(zks) with 'select another date range'.
        endif.
    ENDFORM.                    " SUB_VALIDATE_DATE
    Edited by: Sri on Feb 18, 2009 8:31 AM

  • Opening stock for meterial monthwise

    hi experts ...
    I m developing a report , in which i need any of opening  stock or closing stock.
    plz tell me from which table i can get any of this two fields. if there is any calculation to done ,plz give me the formula for this stocks.
    thank you.

    Hi Ankita
    check MSEG table
    i could not post full code please understand this logic
      IF IT_FINAL[] IS NOT INITIAL.
    IF THE USER DOEN NOT SELECT SPECIAL STOCK
          IF P_CHK IS INITIAL.
            SELECT MBLNR BWART ZEILE MATNR WERKS LGORT SHKZG ERFMG ERFME
           FROM MSEG INTO CORRESPONDING FIELDS OF TABLE IT_QUAN FOR
              ALL ENTRIES IN IT_FINAL WHERE MATNR = IT_FINAL-MATNR AND
                                            WERKS IN S_WERKS
                                            AND LGORT IN S_LGORT
                   AND SOBKZ NOT IN ('E','K','M','O','P','Q','V','W','Y').
          ELSE.
            SELECT MBLNR BWART ZEILE MATNR WERKS LGORT SHKZG ERFMG ERFME
           FROM MSEG INTO CORRESPONDING FIELDS OF TABLE
             IT_QUAN FOR
              ALL ENTRIES IN IT_FINAL WHERE MATNR = IT_FINAL-MATNR AND
                                            WERKS IN S_WERKS
                                            AND LGORT IN S_LGORT.
          ENDIF.
        ENDIF.
        IF IT_QUAN[] IS NOT INITIAL.
    GETTING THE MATERIAL DOCUMENTS FOR SPECIFIED PERIOD
          SELECT MBLNR BUDAT FROM MKPF
                     INTO CORRESPONDING FIELDS OF TABLE IT_BUDAT
                     FOR ALL ENTRIES IN IT_QUAN
                     WHERE ( BUDAT GE DATE1 AND BUDAT LT DATE2 )
                     AND MBLNR = IT_QUAN-MBLNR.
          SELECT MBLNR BUDAT FROM MKPF
                     INTO CORRESPONDING FIELDS OF TABLE IT_BUDAT1
                     FOR ALL ENTRIES IN IT_QUAN
                     WHERE MBLNR = IT_QUAN-MBLNR
                     AND BUDAT LT DATE1.
        ENDIF.
        CLEAR INDEX.
        LOOP AT IT_FINAL.
          INDEX = SY-TABIX.
          LOOP AT IT_QUAN WHERE MATNR = IT_FINAL-MATNR
                            AND WERKS = IT_FINAL-WERKS
                            AND LGORT = IT_FINAL-LGORT.
            IF SY-SUBRC = 0.
    IF IT IS IN CALCULATE QUANTITY
              IF IT_QUAN-SHKZG = 'S'.
    check the unit if it is gram then devide by 1000.
                IF IT_QUAN-ERFME = 'G'.
                  IT_QUAN-ERFMG = IT_QUAN-ERFMG / 1000.
                ENDIF.
                IN_QTY = IN_QTY + IT_QUAN-ERFMG.
              ENDIF.
    IF IT IS OUT CALCULATE QUANTITY
              IF IT_QUAN-SHKZG = 'H'.
                IF IT_QUAN-ERFME = 'G'.
                  IT_QUAN-ERFMG = IT_QUAN-ERFMG / 1000.
                ENDIF.
                OUT_QTY = OUT_QTY + IT_QUAN-ERFMG.
              ENDIF.
            ENDIF.
          ENDLOOP.
          IT_FINAL-IN = IN_QTY.
          IT_FINAL-OUT = OUT_QTY.
    for closing stock
        LOOP AT IT_FINAL.
          IT_FINAL-CLOS_QUAN = IT_FINAL-OPEN_QUAN +
                                       IT_FINAL-IN - IT_FINAL-OUT.
          MODIFY IT_FINAL INDEX SY-TABIX.
          CLEAR IT_FINAL.
        ENDLOOP.
    reward points to all helpful answers
    kiran.M

  • Opening stock of item

    Hi All,
    While taking opening stock and unit base price for items, an entry was taken wrong. How to handle this? Can we delete a single item, will it have any adverse effect?
    Regards,
    Rupa

    Hi Rupa,
    Once you done any inventory related transaction then you cannot delete/remove that item if you taken wrong opening stock then go to Inventory posting in inventory transactions.
    Open Initial quantity,Inventory tracking, Inventory posting then go to inventory tracking select counted check box and enter correct quantity and update it then go to Inventory posting and just reconcile it.
    Sachin

  • Regardig opening stock

    hi experts,
    i m an abaper ,i dnt have a functional consultant rt now.i have to develope a report on opening stock of raw materials on date wise basis..which table sud i use so that i can get the date wise opening stock or will i use some logic for that ...plz help me with eg. if possible.
    plz dnt gve this type of answer like tc mb5b and tc mb51.
    null

    Hi,
    SAP does not maintain day wise stock tables. It maintains period closing stock in tables like MBEWH, MARDH, MCHB and current stock in tables like MBEW, MARD, MCHB.
    These tables provide various views stock
    Mard, Mardh - plant,Storage location, material
    Mbew, Mbewh - Plant, material, valuation type
    Mchb, mchbh - Plant, material, storagelocation, batch.
    If you want to calculate stock for a given date, possible approach would be to find the period closing stock(1) relative to the given date(A), and net the material movements(2) from MSEG and MKPF from next day(A+1) to the given date and add the net to closing stock (1) + (2).
    For example if plant = 1000, material is 100000
    given date is 2.3.2007.
    See in history stock whether there is a latest closing stock.
    if your latest closing is Jan 2007. Have this stock as (1).
    Net of quantities(2) from MSEG and MKPF stock movement from 1.2.2007 to 2.3.2007. Add this with (1) and you will have stock on that day.
    Hope this helps.
    Thanks and regards,
    S. Chandra Mouli.

  • How to get a opening stock of a material on a particular date

    Hi,
    Could you pls provide me the logic of how to get the opening stock of the material on a particular date. I searched the forum and found the logic to fetch the closing stock at a given period but not for a date.
    An immediate response would be really appreciated.
    Thanks
    Harris

    Dear,
    Please read following part of my code
    FORM GET_OPENING .
       IF IT_FINAL[] IS NOT INITIAL.
         SELECT *  FROM MARD
           INTO CORRESPONDING FIELDS OF TABLE IT_MARD
           FOR ALL ENTRIES IN IT_FINAL
           WHERE MATNR = IT_FINAL-MATNR
           AND   WERKS = '1000'.
         SELECT A~MBLNR A~MJAHR A~BUDAT B~WAERS B~ZEILE B~BWART B~MATNR B~WERKS B~LGORT B~CHARG B~SHKZG B~MENGE B~MEINS B~BUSTM B~XAUTO
           INTO CORRESPONDING FIELDS OF TABLE IT_MKPF
           FROM  MKPF AS A JOIN MSEG AS B
           ON A~MANDT = B~MANDT
           AND A~MBLNR = B~MBLNR
           AND A~MJAHR = B~MJAHR
           FOR ALL ENTRIES IN IT_FINAL
           WHERE B~MATNR = IT_FINAL-MATNR
           AND   A~BUDAT GE P_BUDAT-LOW
           AND   B~WERKS = '1000'.
       ENDIF.
       AKTDAT = SY-DATLO + 30.
       IF NOT ( P_BUDAT-HIGH IS INITIAL OR P_BUDAT-HIGH > AKTDAT ).
         LOOP AT IT_MKPF INTO WA_MKPF WHERE BUDAT > P_BUDAT-HIGH.
           MOVE-CORRESPONDING WA_MKPF TO IT_MKPF1.
           APPEND IT_MKPF1.
           DELETE IT_MKPF.
         ENDLOOP.
       ENDIF.
       SORT IT_MKPF1 BY WERKS MATNR SHKZG.
       LOOP AT IT_MKPF1.
         IF ( IT_MKPF1-XAUTO IS INITIAL ) OR
             ( IT_MKPF1-BUSTM <> 'MA02' AND  IT_MKPF1-BUSTM <> 'MA05' ) .
           MOVE-CORRESPONDING IT_MKPF1 TO IT_MAT.
           COLLECT IT_MAT.
         ELSE.
           DELETE IT_MKPF1.
         ENDIF.
       ENDLOOP.
       SORT IT_MKPF BY WERKS MATNR SHKZG DESCENDING.
       LOOP AT IT_MKPF INTO WA_MKPF.
         IF ( WA_MKPF-XAUTO IS INITIAL ) OR
            ( WA_MKPF-BUSTM <> 'MA02' AND
            WA_MKPF-BUSTM <> 'MA05' ).
           MOVE-CORRESPONDING WA_MKPF TO T_MAT.
           COLLECT T_MAT.
         ELSE.
           DELETE IT_MKPF.
         ENDIF.
       ENDLOOP.
       LOOP AT IT_MARD.
         CLEAR IT_MAT-MENGE.
         MOVE-CORRESPONDING IT_MARD TO FINAL.
         READ TABLE IT_MAT WITH KEY WERKS = IT_MARD-WERKS
                                    LGORT = IT_MARD-LGORT
                                    MATNR = IT_MARD-MATNR
                                    SHKZG = 'S'.
         FINAL-ENDMENGE = IT_MARD-LABST + IT_MARD-INSME + IT_MARD-SPEME + IT_MARD-EINME + IT_MARD-RETME - IT_MAT-MENGE.
         CLEAR IT_MAT-MENGE.
         READ TABLE IT_MAT WITH KEY WERKS = IT_MARD-WERKS
                                    LGORT = IT_MARD-LGORT
                                    MATNR = IT_MARD-MATNR
                                    SHKZG = 'H'.
         FINAL-ENDMENGE = FINAL-ENDMENGE + IT_MAT-MENGE.
         COLLECT FINAL.
       ENDLOOP.
       LOOP AT FINAL.
         CLEAR T_MAT-MENGE.
         READ TABLE T_MAT WITH KEY WERKS = FINAL-WERKS
                                    MATNR = FINAL-MATNR
                                    SHKZG = 'S'.
         MOVE T_MAT-MENGE TO FINAL-SOLL.
         CLEAR T_MAT-MENGE.
         READ TABLE T_MAT WITH KEY WERKS = FINAL-WERKS
                                    MATNR = FINAL-MATNR
                                    SHKZG = 'H'.
         MOVE T_MAT-MENGE TO FINAL-HABEN.
         FINAL-ANFMENGE = FINAL-ENDMENGE - FINAL-SOLL + FINAL-HABEN.
         MODIFY FINAL.
       ENDLOOP.
       LOOP AT FINAL.
         WA_FINAL1-MATNR = FINAL-MATNR.
         WA_FINAL1-MEINS = FINAL-MEINS.
         WA_FINAL1-OP_MENGE = FINAL-ANFMENGE.
         WA_FINAL1-RE_MENGE = FINAL-SOLL.
         WA_FINAL1-IS_MENGE = FINAL-HABEN.
         WA_FINAL1-CL_MENGE = FINAL-ENDMENGE.
    *  WA_FINAL-LGORT = FINAL-LGORT.
    *    READ TABLE IT_MAKT WITH KEY MATNR = FINAL-MATNR.
    *    MOVE IT_MAKT-MAKTX TO WA_FINAL-MAKTX.
         APPEND WA_FINAL1 TO IT_FINAL1.
       ENDLOOP.
    ENDFORM.                    " GET_OPENING

  • Auto update of Profit Centre in JE for Opening Stock

    Hi Experts,
          I am using SAP B1 2007B Version and Patch level 15 and  entering the Opening Stock of  Items in Initial quantities,inventory tracking and Stock posting window and updating the profit centre in distribution rule but the problem is it is not getting updated in the Journal Entry when the back end JE is posting accordingly and for that again we need to update it manually. can any please help me regarding this..
    Thanks,
    Narsing

    Profit Centres are generally applicable only for Revenue & Expense accounts.
    When you load the opening balances, it affect the Inventory Account which is an Account Account and that is why there is no Profit Centre marked in the JE.

  • Transaction to see the Open stock transfer order for the plant

    HI ,
    i need to develop one report in that client to make the report for the all open stock transfer order & the cost of the open stock transfer order for the plant .
    I need how to cretae the stock transfer order for the material , whci material master is required for this process.
    please give me step by step details for this .
    regards
    satish
    Edited by: satish kapartiwar on Jul 16, 2009 9:33 AM

    Hi Satish,
    You can see open stock transfer quantity in MB5T and stock value in MB5L. If you want to make stock transfer, there is two types intra company transfer(with in same company code) and inter company transfer (different company codes).
    Steps for Intra company stock transfer:
    This is only within the comp.code(w/o SD)
    (w/o SD) 351101 MvT. and (with SD) 641101
    1. Mat.(1434)should be maintained in both the plants.(@1000&1100).
    2. Should have enough stock in supplying plant(1000).
    3. Make its supplying plant as a vendor in vendor master record in receiving plant(1100).
    4. Make it receiving plant as a customer in customization.
    Create customer (xd01) & and define the shipping data for plants in both the plants.
    Path: spro u2013 img u2013 material mgmt u2013 purchasing u2013 po u2013 set up STO u2013 define shipping data
    (1 by1 )
    In Receiving plant (1100)
    Customer num. 123345 (for ex.)
    Sales org. yyy
    Dist. Channel yy
    Sales div. y
    In Supplying plant (1000)
    Customer num. -
    (don't fill)
    Sales org. yyy
    Dist. Channel yy
    Sales div. y
    5. Assign doc. Type is "NL" for intra company STO. If STO is inter company, Assign doc. Type is "NLCC".
    Position doc type is "UB"
    Enter supplying plant(1000) & doc type (NL)&checking rule (ex:01)
    6.Assign doc. Type is "UB" to u'r plants.(PO)
    Go for new entries
    Enter supplying plant(1000) & Receiving plant (1100)&doc type (UB).
    7. Create a PO, choose the doc type is 'UB' & item cat.'U', Enter supplying plant as a vendor in PO of the receiving plant(1100).
    8. Provide this num (PO) to SD people, they will do the delivery by using transactional code is VL10B.
    9. Sales people they will provide "out bound delivery num".
    10. Do the GR. In GR the second tab 05 outbound delivery instead of PO mov.type 101.
    11. See the stock overview in the receiving & supplying plants.
    Steps for Inter company Transfer:
    1) Create one Customer Master in XD01 with respect to Supplying Plant Sales Area and assign this Customer no with Receiving Plant in OLME->PO-> set up STO->Define shipping data for plant and for the supplying Plant assign the above sales area.( Make sure, In Customer Master, sales Area Tab: you are maintaining shipping condition)
    2) For Receiving Plant Pur. Org and Co.Code Combination create Vendor master in XK01 and in this vendor master assign the Supplying plant in Pur.Org.Data screen->Extras--> Add.Pur.data
    3) OLME->PO-> Set up STO------>For your supplying plant assign document type NB, Delivery type NLCC and Checking Rule RP
    4)then For your supplying Plant and receiving Plant assign Document type NB
    5)Make sure you are maintaining Sales View for the material at supplying Plant and in Sales /Gen plant Data view maintain Availability check, Loading group and Transportation group.
    6) In SPRo-->Logistics execution> Shipping->Basic shipping functions->Shipping point Determination>assign shipping points-> For your Loading group, Shipping Condition and Supplying plant combination, Assign shipping point
    these are the configuration settings you have to do in background.
    Then Create STO from Receiving Plant in ME21N with document type NB.
    Based on that STO, Create Delivery in VL10B from supplying Plant
    Do PGI in VL02N from Supplying plant
    Do GR in MIGO at Receiving Plant keeping Outbound delivery as a ref. document.
    Now your STO bet. two plants belongs to diff. Co.Codes will be completed.
    Regards,
    Prasath

Maybe you are looking for