Stock negativo

Cordial Saludo
quisiera por favor me informaran si es posible realizar facturas cuando no exite  stock de inventario. y si es asi que tengo que parametrizar

Buenas
Perdon, la ruta era GESTION / INICIALIZACION DE SISTEMA / Parametrizaciones de documento / Ficha General / Bloqueo de Stock Negativo
Bloquear stock negativo
Seleccione esta opción para bloquear los documentos que provocarían que el nivel de stock se situase por debajo de cero.
Si se desmarca la casilla de selección, aparecerá el mensaje El uso del inventario negativo no concuerda con las reglas de
contabilidad. ¿Desea habilitar realmente el uso del inventario negativo?.
Nota
Si selecciona Gestión de stocks por almacén y Bloquear stock negativo, SAP Business One calcula el bloqueo por almacén.
Sin embargo, si el artículo no es gestionado por un almacén y no se selecciona Gestión de stocks por almacén, se calcula el
bloqueo para todos los almacenes.
Saludos
FLR

Similar Messages

  • Item Groups u2013 Setup, Accounting Tab

    Hello Everyone,
    I want to know in which process, the 29 parameters in u201CItems Groups Setup Accounting Tabu201D   are used.
    ie.  u201CExpense Accountu201D  takes the account number  when you are making an u201CA/P Invoiceu201D

    Hola Carlos,
    Te hago un resumen de las mas comunes:
    Cuenta de gastos: Esta cuenta se mueve cuando se realiza una compra y el artículo NO es de Inventarios
    Cuenta Ingresos: Se afecta al hacer ventas (facturas de clientes)
    Cuenta Existencias: Se afecta al hacer entradas de mcias en compras, es la cuenta del inventario (doc entrada)
    Cuenta costo bienes vendidos: Se afecta al grabar factura de cliente, es el costo de ventas
    Cuenta de dotacion: Es la cuenta puente proveedores por legalizar en compra de mcias, al hacer doc entrada de mcias, se cancela al registrar la factura del proveedor
    Cuenta diferencia en Precio: Cuando se realiza una Factura con base en una entrada por compra  y se presentan diferencias en precio, pueden ocurrir 3 cosas: 1. Que la existencia en Inventario sea igual a cero; 2. Que la existencia en el inventario sea menor a la cantidad comprada. 3. Que la existencia del inventario sea igual o superior a la cantidad comprada. 
    En el caso 1, toda la diferencia en precio queda en la cuenta de Diferencias de precio.
    En el caso 2, una parte de la diferencia queda en la cuenta de Inventario (proporcional a la existencia), y la otra parte se va para esta cuenta: Cuenta de diferencias de precio. 3. Toda la diferencia, se va para la cuenta de diferencias de precio.
    Cta. ajuste stock negativo: Se afecta al manejar inventario en rojo (salidas sin stock)
    Ctas. compensacion stock Reducir cuenta y aumentar cuenta: Se afectan al hacer ajustes al inventario fisico y en movimientos de inventarios  entrada y salida 
    Cta. devoluciones en ventas: al hacer doc devolucion de mcias en ventas, sobre doc entrega de mcias en ventas
    Cta. Ingreso Extranjero: Al hacer facturas a clientes del exterior
    Cta. Costos Extranjero: costo ventas a clientes del exterior
    Cta. diferencias en tipo de cambio: Cuando se realiza una Factura con base en una entrada por compra - acreedor, y se presentan diferencias en la tasa de cambio, funciona igual a la u201CCuenta de diferencias de preciou201D.
    Cta. compesacion de mcias: Se mueve contra la cuenta de dotación al CERRAR una Entrada de mercancías. Es decir, cuando no se va a realizar la Factura con base en la Entrada y se le da click-derecho CERRAR a la entrada.
    Ctas. reduccion y aumento libro mayor: Es la contrapartida de los movimientos de Revalorización de inventarios (Ajustes de Costo promedio): INVENTARIO/OPERACIONES DE STOCK/REVALORIZACIÓN DE INVENTARIO.
    Cta. stock trabajo en curso: Esta cuenta es usada para capturar el valor del producto en proceso de órdenes de Producción que no están completadas.  Se registra en ella cuando se define un métod de  Salida Manual en el Dato Maestro de Artículo,
    Cuenta de desviación de stock WIP / WIP: Esta cuenta es usada para capturar diferencias entre las cantidades planeadad y las cantidades reales en el proceso de producción.
    Cta. revalorizacion de stock: Se mueven cuando se ejecuta el procedimiento: FINANZAS/REVALORIZACIÓN/ASISTENTE DE REVALORIZACIÓN DE STOCKS.
    Cta. contrapartida revalorizacion del inventario: Se utiliza como cuenta de contrapartida cuando se cree un asiento de revaloración de stocks. Esta cuenta es la cuenta predeterminada en caso de que no se haya definido una cuenta con esta finalidad en el nivel de almacén, de grupo de artículos o de artículo/almacén.
    Cta. compensacion de gastos: Se utiliza cuando se realizan Notas Crédito de Compras a productos que NO son de Inventario.
    Cta. Stock en la cuenta de transito:  La utiliza cuando se maneja la factura de reserva como cuenta por legalizar, este documento no descarga inventario, al hacer la entrega basada en al factura de reserva se cancela esta ceunta puente.
    Cta Credito ventas Extranjero: Para devolucion de ventas a cleintes del exterior basadas en entrega mcias
    Cta. credito de compras extranjero: Para devolucion de compras a proveedor del exterior basados en entrada mcia.
    Espero que esta informacion te sea util.
    Jairo A. Martinez
    HSH-Cali, Colombia

  • Inventario

    Colegas,
    Necesito de su experta ayuda =)  !!!!!!!!
    Tengo un inventario en sistema con los siguientes casos:
    *Inventario con existencia y costo 0 :  ¿Cómo le hago para sacar en un query con el último movimiento y costo que tuvo antes de que quedara en cero por almacén?
    *Inventario con existencia en negativo y costo 0 : ¿Cómo le hago para quitar ese negativo y sacar en un query con el último movimiento y costo que tuvo antes de que quedara en cero por almacén?
    Ojalá que me puedan ayudar.

    Hola.
    Para lo primero, se me ocurre:
    - Crear un query usando la tabla diario de almacén (OINM), que pida cod. del artículo.
    - Luego que en una variable tipo datetime se almacene la fecha donde el costo es cero para ese artículo.
    - Luego devolver las TOP X transacciones anteriores a esa fecha para ese artículo.
    Te sugeriría revisar las entradas de mercancía (manuales y de compras) de esos artículos, pues es allí donde puede dejarse accidentalmente el costo en cero.
    Para lo segundo:
    - ¿El uso de stock negativo es normal para la compañía?. Si no, es mejor activar la gestión de stock por almacén y bloqueo de stock negativo (en parametrización de documento, en Gestión, Inicialización del sistema), para evitar que vuelva a ocurrir lo mismo en el futuro.
    - Para "eliminar" o mas bien deshacer el stock negativo, hay que revisar el movimiento del artículo que causó esto, para saber qué hacer.
    Un caso típico es cuando no se tiene habilitada la gestión de stock por almacén, y se realizan salidas desde un almacén donde no hay stock, quedando stock negativo en ese almacén pero el valor correcto en el total de todos los almacenes.
    En este caso, si el stock total es cero o mayor que cero, la manera de corregirlo es realizando una transferencia desde el almacén con saldo positivo hacia el almacén donde está en negativo.
    - La consulta se puede construir de manera similar a la del primer punto.
    ¿Tienes experiencia construyendo consultas SQL?.
    Espero sea de ayuda.
    Saludos.

  • Inventarios

    Buen Dia
    Tengo un problema con los inventarios
    En un articulo en especial me aparece inventario negativo, lo que se es que estaba parametrizado que no se podia llevar inventario negativo, pero no se por donde mirar para y estar seguro.
    Por otro lado en dato maestro de articulo - datos de inventario. Me aparece una columna llamada "consignacion" en algunos articulos me aparece con una cifra, en unos almacenes con la cifra positiva y en otros almacenes con la cifra negativa, esto me afecta el inventario?

    Basicamente
    La Gestión de stock es la que te indica si el total del stock lo toma sumarizando el total de todos los almacenes , si no lo tienes palomeado, el sistema te toma el total de tus inventarios por todos los almacenes., por ejemplo
    Ejemplo
    Hacer entrada de mercancías del  articulo X por  4 piezas al almacén 01
    Hacer entrada de mercancías del  articulo X por  4 piezas al almacén 02   
    Esto da un total de 8 piezas en el inventario total
    Hacer Factura de clientes por  6 piezas del almacén 01
    Al estar el articulo parametrizado sin la gestión de Almacén  el sistema deja sacar las 6 piezas porque toma en cuenta el stock total del articulo X
    Que para el ejemplo tiene un total de 8 piezas, entonces en el dato maestro del articulo se verá reflejado de la siguiente manera.
    Almacen 01   stocl -2
    Almacen 02   stock  4
    Si se tratara  hacer una salida del almacén  del almacén 02 por 04 piezas, entonces si  el sistema me mandaría un error de stock negativo, porque  en realidad solo tengo 2 en stock y están en el almacén 02 , recordemos que metimos 4 en cada almacén, y el sistema me tomo 4 del 01 y 2 piezas  del 02
    Es Aqui donde aparece el error.
    Ahora bien, si se hiciera una entrada de mercancía del articulo X al almacén 01 por 10 piezas, el inventario se vería reflejado de la siguiente manera
    Como recordaran anteriormente tenía 02 en existencia total , ahora se metieron 10 piezas al almacén 01 y me muestra que tengo 08  (por el numero visualizado en negativo), y me muestra 4 en el almacén 02 ( porque recupero las 2 piezas que se habían tomado de ese almacén ) el total de existencia se muestras las 12 piezas.
    Por lo anterior se concluye que lo reportado es funcionamiento del sistema derivado  de la parametrización u201CGESTION DE STOCK POR ALMACÉNu201D ,como se ve en el ejemplo esto se modifica solo según los movimientos de stock
    Se le sugiere al cliente  habilitar dicha parametrización  una vez que sus movimientos de stock, le den visualmente resultados positivos, como el ultimo paso del ejemplo.
    Deseo te sea de utilidad
    Recibe un Saludo
    yen

  • Can our hp laserjet enterprise 500 color printer m551use 67lb card stock?

    The printer specifications list card stock but no weights. 
    This question was solved.
    View Solution.

    Hello,
    the required media weight is not supported by the printer.
    As you may find listed within the Media Weight specification below, the printer support up to 58 lb media.
    Media weight:
    Tray 1: 16 to 58 lb (plain); 28 to 58 lb (glossy);
    Tray 2: 16 to 43 lb (plain paper); 28 to 58 lb (glossy paper)
     You may find the product specification below:
    http://h10010.www1.hp.com/wwpc/us/en/sm/WF06b/18972-18972-3328060-15077-236268-4184772-4184773-41847...
    Regards,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • MB5B Report table for Open and Closing stock on date wise

    Hi Frds,
    I am trying get values of Open and Closing stock on date wise form the Table MARD and MBEW -Material Valuation but it does not match with MB5B reports,
    Could anyone suggest correct table to fetch the values Open and Closing stock on date wise for MB5B reports.
    Thanks
    Mohan M

    Hi,
    Please check the below links...
    Query for Opening And  Closing Stock
    Inventory Opening and Closing Stock
    open stock and closing stock
    Kuber

  • Adobe Stock Photos Stuck in Trash and Photoshop CS2 won't run!

    Okay, I apparently did something stupid. I'm not even sure how this happened, but I realized that Adobe Stock Photos folder was sitting on my desktop (I'm using OS X 10.5.6). I don't know when this happened and I didn't think I needed it so I dragged it to the trash. NOW I cannot run any of my Adobe software (includes Photoshop CS2, Illustrator CS2 and GoLive CS2).
    I can see the folder sitting in my trash, but it won't let me drag it back out. So, just as a test, I tried dragging out the one other file (.jpg) and I can't get that one either. I know this isn't a Mac forum, but I'm desparate and cannot find anything to help me.
    Probably I am going to have to reinstall everything and (of course) I can't find my CDs!!! Please don't get angry if I'm asking the wrong question. I've done an internet search and I cannot find any solutions.
    Thanks, Anne

    Adobe stock photos does not even exist anymore.
    Have you tried deleting your trash? I have no Adobe stock Photos on my computer and everything works. try restarting the computer.

  • Consignment stock is NOT getting displayed in the MC.9 trnasaction.

    Hi experts,
    We have some vendor consignement stock for some of our materials.
    In inventory trnasactions like MMBE, MB54 it is corrctly displayed.
    In the structure S032 also the consigment stock was updated. But we are not able to see this Consignement stock in the transaction MC.9
    Mc.9 is showing ZERO consignment stock.
    What is the reason for this?
    How to correct this?
    Please help us in solving this.
    Regards,
    Vijove

    Hi,
    Your question can be answered in this [forum Topic|ABAP Development; in a shor time..
    Regards
    Narin.

  • Report for Missing qty in stock transfer

    how to Create a Missing Quantity list that gives the difference between sent and received quantities during Stock transfer. and send me tables involved in that, primary keys also

    suppose, if we transfer goods from plant to plant or St loc to st loc with in one plant, if some goods missed due to some problems, i need that info.
    diff beteen sending stock of plant 1 and receiving stock in plant2
    Where can i gte all this fields

  • Purchasing Report for invoice and stock

    Hi guys,
    in your opinion does it exist a unique report which contains the following informations for suppliers:
    -          invoice codes from supplier not yet paid
    -          POu2019s to supplier not yet delivered
    -          ATH stock at supplier
    At the moment my customer separates informations per supplier  via FBL1N (invoices not paid), ME2L or ME2M (open for delivery), and MB52 (special stock, type O)
    Iu2019m looking for a solution were this 3 information will show on 1 screen by entering the supplier.I have tyed with ME2M but it is not sufficient...
    Thanks in advance best regards
    Massimiliano

    hi,
    What are you trying to get is an Updates from three different area, which are not connected to each other..
    FBL1N will get updated once the Payement is done,
    ME2M would be updated once the GR is done, (ME2M does have any selection Parameter which will include 'Payement done')
    MB52 would be cumulative Stock on Hand (this stock deoesnt link to PO)
    However, you can go for a small Z program to built a customised Report.

  • Report for stock statement

    hi guy's,
       i am doing report for the stock statement .... my issue is in MB5B if i reverse some document it shows as it move's to issue QTY and my receipt is same but my closing stock is correct ...is there any std report avalible ....
    thank's in advance

    Use this code :
    TABLES : MSEG,MKPF,MARA,MAKT,BEWART,MSLB,BSIM.
    TYPE-POOLS : SLIS.
    DATA : IT_FLDCAT TYPE SLIS_T_FIELDCAT_ALV,
           IT_LIST_HEADER TYPE SLIS_T_LISTHEADER,
           IT_EVENTS TYPE SLIS_T_EVENT,
           GS_LAYOUT TYPE SLIS_LAYOUT_ALV,
           WA_SORT TYPE SLIS_SORTINFO_ALV,
           IT_SORT TYPE SLIS_T_SORTINFO_ALV,
           REPID LIKE SY-REPID,
           FRM_DATE(10),TO_DATE(10),
           DISPTEXT(255),DISPTEXT2(255).
    TYPES : BEGIN OF ST_OPBAL,
             MATNR LIKE MSEG-MATNR,
             MAKTX LIKE MAKT-MAKTX,
             BATCH LIKE MSEG-CHARG,
             BWART LIKE MSEG-BWART,
             MENGE LIKE MSEG-MENGE,
             ZEILE LIKE MSEG-ZEILE,
             WERKS LIKE MSEG-WERKS,
             SOBKZ LIKE MSEG-SOBKZ,
             BUDAT LIKE MKPF-BUDAT,
             SHKZG LIKE MSEG-SHKZG,
             DMBTR LIKE MSEG-DMBTR,
             MBLNR LIKE MSEG-MBLNR,
             LGORT LIKE MSEG-LGORT,
           END OF ST_OPBAL.
    DATA : OPBAL TYPE ST_OPBAL OCCURS 0 WITH HEADER LINE,
           TMP_OPBAL TYPE ST_OPBAL OCCURS 0 WITH HEADER LINE.
    DATA : BEGIN OF BAL_NOREF OCCURS 0,
              MATNR LIKE MARA-MATNR,
              SHKZG LIKE MSEG-SHKZG,
              DMBTR LIKE MSEG-DMBTR,
           END OF BAL_NOREF.
    DATA : BEGIN OF OPBAL2 OCCURS 0,
             SNO(3)      TYPE N,
             MATNR       LIKE MSEG-MATNR,
             MAKTX       LIKE MAKT-MAKTX,
             OP_BAL      LIKE MSEG-MENGE,
             OP_STKVAL   LIKE MSEG-DMBTR,   "NEW
             REC         LIKE MSEG-MENGE,
             T_OPBAL_REC LIKE MSEG-MENGE,
             REC_STKVAL  LIKE MSEG-DMBTR,   "NEW
             ISS         LIKE MSEG-MENGE,
             ISS_STKVAL  LIKE MSEG-DMBTR,   "NEW
             SALES       LIKE MSEG-MENGE,
             T_ISS       LIKE MSEG-MENGE,
             CL_BAL      LIKE MSEG-MENGE,
             BATCH       LIKE MSEG-CHARG,
             SUBCON      LIKE MSEG-MENGE,
             CL_STKVAL   LIKE MSEG-DMBTR,
           END OF OPBAL2.
    DATA  SERNO(4) TYPE C.
    DATA OPTOT  TYPE P DECIMALS 3.
    DATA RECTOT TYPE P DECIMALS 3.
    DATA ISSTOT TYPE P DECIMALS 3.
    DATA TOTALL TYPE P DECIMALS 3.
    DATA FLG        TYPE N.
    DATA FLAG       TYPE N.
    DATA STOCKVAL        TYPE MSEG-DMBTR.
    DATA REC_STOCKVAL    TYPE MSEG-DMBTR.
    DATA ISS_STOCKVAL    TYPE MSEG-DMBTR.
    DATA CL_STKVAL       TYPE MSEG-DMBTR.
    SELECTION-SCREEN BEGIN OF BLOCK X WITH FRAME.
         SELECT-OPTIONS: P_MATNR FOR MSEG-MATNR,
                         P_MGRP  FOR MARA-MATKL,
                         P_DATE FOR MKPF-BUDAT,
         P_PLANT FOR MSEG-WERKS DEFAULT  'NB01' OBLIGATORY NO INTERVALS
                                                    NO-EXTENSION .
         SELECT-OPTIONS: P_STLOC FOR MSEG-LGORT NO INTERVALS NO-EXTENSION.
    SELECTION-SCREEN END OF BLOCK X.
    INITIALIZATION.
       REPID = SY-REPID.
       PERFORM FILL_FLDCAT USING IT_FLDCAT.
       PERFORM FILL_EVENTS USING IT_EVENTS.
       PERFORM FILL_LAYOUT USING GS_LAYOUT.
    START-OF-SELECTION.
      CONCATENATE P_DATE-LOW6(2) '.' P_DATE-LOW4(2) '.' P_DATE-LOW+0(4)
      INTO FRM_DATE.
      CONCATENATE P_DATE-HIGH6(2) '.' P_DATE-HIGH4(2) '.' P_DATE-HIGH+0(4)
      INTO TO_DATE.
      CONCATENATE TEXT-003 FRM_DATE' TO : ' TO_DATE INTO DISPTEXT.
      CONCATENATE TEXT-004 P_PLANT-LOW ' Storage Location : ' P_STLOC-LOW
      INTO DISPTEXT2.
      PERFORM FILL_HEADER USING IT_LIST_HEADER.
      SELECT  A~MATNR
              F~MAKTX
              A~CHARG
              A~BWART
              A~MENGE
              A~ZEILE
              A~WERKS
              A~SOBKZ
              D~BUDAT
              A~SHKZG
              A~DMBTR
              A~MBLNR
              A~LGORT
              INTO TABLE OPBAL
       FROM MKPF AS D JOIN MSEG AS A
               ON DMBLNR = AMBLNR  AND
                  DMJAHR = AMJAHR
            JOIN MARA AS E
               ON EMATNR = AMATNR
            JOIN MAKT AS F
               ON FMATNR = AMATNR
       WHERE   A~MATNR IN P_MATNR
         AND   A~WERKS IN P_PLANT
         AND   A~KZBEW IN (' ','B')
         AND   E~MATKL IN P_MGRP
         AND   A~BWART NOT IN ('541','542','321','322','121')
         AND   A~KZVBR NOT IN ('A')
         AND   D~BUDAT LE P_DATE-HIGH.
    LOOP AT OPBAL WHERE BWART EQ '544' AND LGORT EQ ''.
       TMP_OPBAL = OPBAL.
       APPEND TMP_OPBAL.
    ENDLOOP.
    DELETE OPBAL WHERE ( BWART EQ '309' AND DMBTR EQ 0  ).
    DELETE OPBAL WHERE ( BWART NE '543' AND LGORT EQ '' ).
    LOOP AT TMP_OPBAL.
       OPBAL = TMP_OPBAL.
       APPEND OPBAL.
    ENDLOOP.
    STOCKVAL = 0.
    SORT OPBAL BY MATNR BATCH BUDAT.
    LOOP AT OPBAL.
      SELECT SINGLE LBLAB INTO MSLB-LBLAB FROM MSLB
                            WHERE MATNR = OPBAL-MATNR.
      IF OPBAL-BUDAT LT P_DATE-LOW.
         IF OPBAL-SHKZG = 'H'.
            OPTOT = OPTOT - OPBAL-MENGE.
         ELSEIF OPBAL-SHKZG = 'S'.
            OPTOT = OPTOT + OPBAL-MENGE.
         ENDIF.
    For the duration   II part  *****************
      ELSEIF OPBAL-BUDAT IN P_DATE.
         IF OPBAL-SHKZG = 'H'.
            ISSTOT      = ISSTOT + OPBAL-MENGE.
         ELSEIF OPBAL-SHKZG = 'S'.
            RECTOT = RECTOT + OPBAL-MENGE.
         ENDIF.
      ENDIF.
    AT END OF BATCH. " modified for chek
       READ TABLE OPBAL INDEX SY-TABIX.
       CLEAR BAL_NOREF. REFRESH BAL_NOREF.
       SELECT MATNR SHKZG SUM( DMBTR )
         INTO TABLE BAL_NOREF
         FROM BSIM
        WHERE BUDAT LT P_DATE-LOW  AND
              MATNR EQ OPBAL-MATNR AND
              BWTAR EQ OPBAL-BATCH AND
              BWKEY IN P_PLANT     AND
              BLART IN ('RE','WE','WA','PR')
        GROUP BY MATNR SHKZG.
       LOOP AT BAL_NOREF.
          IF BAL_NOREF-SHKZG = 'H'.
             STOCKVAL = STOCKVAL - BAL_NOREF-DMBTR.
          ELSE.
             STOCKVAL = STOCKVAL + BAL_NOREF-DMBTR.
          ENDIF.
       ENDLOOP.
       CLEAR BAL_NOREF. REFRESH BAL_NOREF.
       SELECT MATNR SHKZG SUM( DMBTR )
         INTO TABLE BAL_NOREF
         FROM BSIM
        WHERE BUDAT IN P_DATE AND
              MATNR EQ OPBAL-MATNR AND
              BWTAR EQ OPBAL-BATCH AND
              BWKEY IN P_PLANT     AND
              BLART IN ('RE','WE','WA','PR')
        GROUP BY MATNR SHKZG.
       LOOP AT BAL_NOREF.
          IF BAL_NOREF-SHKZG = 'H'.
             ISS_STOCKVAL = ISS_STOCKVAL + BAL_NOREF-DMBTR.
          ELSE.
             REC_STOCKVAL = REC_STOCKVAL + BAL_NOREF-DMBTR.
          ENDIF.
       ENDLOOP.
       " MSLB-LBLAB (STOCK WITH SUBCONTRACTOR).
       CL_STKVAL       = STOCKVAL + REC_STOCKVAL - ISS_STOCKVAL.
       TOTALL =  OPTOT + RECTOT - ISSTOT.
       IF OPTOT = '0'   AND RECTOT = '0'  AND ISSTOT = '0'.
          FLG = 1.
       ENDIF.
       IF FLG = 1.
          CLEAR FLG.
       ELSE.
          SERNO = SERNO + 1.
          OPBAL2-SNO         = SERNO.
          OPBAL2-MATNR       = OPBAL-MATNR.
          OPBAL2-MAKTX       = OPBAL-MAKTX.
          OPBAL2-OP_BAL      = OPTOT.
          OPBAL2-REC         = RECTOT.
          OPBAL2-T_OPBAL_REC = OPTOT + RECTOT.
          OPBAL2-ISS         = ISSTOT.
          OPBAL2-T_ISS       = ISSTOT.
          OPBAL2-CL_BAL      = TOTALL.
          OPBAL2-BATCH       = OPBAL-BATCH.
          OPBAL2-SUBCON      = MSLB-LBLAB.
          OPBAL2-OP_STKVAL   = STOCKVAL.
          OPBAL2-ISS_STKVAL  = ISS_STOCKVAL.
          OPBAL2-REC_STKVAL  = REC_STOCKVAL.
          OPBAL2-CL_STKVAL   = CL_STKVAL.
          APPEND OPBAL2.
       ENDIF.
      OPTOT = 0.
      RECTOT = 0.
      ISSTOT = 0.
      STOCKVAL = 0.
      ISS_STOCKVAL = 0.
      REC_STOCKVAL = 0.
      CL_STKVAL    = 0.
    ENDAT.
    ENDLOOP.
      WA_SORT-SPOS = 1.
      WA_SORT-FIELDNAME = 'MATNR'.
      WA_SORT-UP = 'X'.
    WA_SORT-SUBTOT = 'X'.
    APPEND WA_SORT TO IT_SORT.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          I_CALLBACK_PROGRAM = REPID
          IT_FIELDCAT        = IT_FLDCAT
          IT_EVENTS          = IT_EVENTS
          IS_LAYOUT          = GS_LAYOUT
          IT_SORT            = IT_SORT
        TABLES
          T_OUTTAB           = OPBAL2.
    FORM FILL_FLDCAT USING P_FLDCAT TYPE SLIS_T_FIELDCAT_ALV.
       PERFORM FILL_PARAM_FLDCAT USING  1 'SNo'          'SNO'       ' ' 'X'
       'OPBAL2' P_FLDCAT.
       PERFORM FILL_PARAM_FLDCAT USING  2 'Material No.' 'MATNR'     ' ' 'X'
       'OPBAL2' P_FLDCAT.
       PERFORM FILL_PARAM_FLDCAT USING  3 'Description'  'MAKTX'     ' ' ' '
       'OPBAL2' P_FLDCAT.
       PERFORM FILL_PARAM_FLDCAT USING  4 'Op.Bal'      'OP_BAL'     'X' ' '
       'OPBAL2' P_FLDCAT.
       PERFORM FILL_PARAM_FLDCAT USING  5 'Op.Stock Val' 'OP_STKVAL' 'X' ' '
       'OPBAL2' P_FLDCAT.
       PERFORM FILL_PARAM_FLDCAT USING  6 'Receipts'     'REC'       'X' ' '
       'OPBAL2' P_FLDCAT.
       PERFORM FILL_PARAM_FLDCAT USING  7 'Total'     'T_OPBAL_REC'  'X' ' '
       'OPBAL2' P_FLDCAT.
       PERFORM FILL_PARAM_FLDCAT USING  8 'Rect.Val.' 'REC_STKVAL'   'X' ' '
       'OPBAL2' P_FLDCAT.
       PERFORM FILL_PARAM_FLDCAT USING  9 'Issues'    'ISS'          'X' ' '
       'OPBAL2' P_FLDCAT.
       PERFORM FILL_PARAM_FLDCAT USING 10 'Iss. Val.' 'ISS_STKVAL'   'X' ' '
       'OPBAL2' P_FLDCAT.
       PERFORM FILL_PARAM_FLDCAT USING 11 'Cl. Bal.'     'CL_BAL'    'X' ' '
       'OPBAL2' P_FLDCAT.
       PERFORM FILL_PARAM_FLDCAT USING 12 'Cl.Stock Val' 'CL_STKVAL' 'X' ' '
       'OPBAL2' P_FLDCAT.
       PERFORM FILL_PARAM_FLDCAT USING 13 'BATCH '       'BATCH'     ' ' ' '
       'OPBAL2' P_FLDCAT.
    ENDFORM.
    FORM FILL_PARAM_FLDCAT USING VALUE(P_COL) VALUE(P_TEXT) VALUE(P_FLDNAME)
                           VALUE(P_DOSUM) VALUE(P_NOZERO) VALUE(P_TABNAME)
                           PP_FLDCAT TYPE SLIS_T_FIELDCAT_ALV.
       DATA : WA_FLDCAT TYPE SLIS_FIELDCAT_ALV.
       CLEAR WA_FLDCAT.
         WA_FLDCAT-COL_POS   = P_COL.
         WA_FLDCAT-SELTEXT_M = P_TEXT.
         WA_FLDCAT-FIELDNAME = P_FLDNAME.
         WA_FLDCAT-TABNAME   = P_TABNAME.
         WA_FLDCAT-DO_SUM    = P_DOSUM.
         WA_FLDCAT-NO_ZERO   = P_NOZERO.
       APPEND WA_FLDCAT TO PP_FLDCAT.
    ENDFORM.
    FORM FILL_HEADER USING P_IT_LIST_HEADER TYPE SLIS_T_LISTHEADER.
      DATA: LS_LINE TYPE SLIS_LISTHEADER.
      CLEAR LS_LINE.
      LS_LINE-TYP = 'S'.
      LS_LINE-INFO = TEXT-002.
      APPEND LS_LINE TO P_IT_LIST_HEADER.
      CLEAR LS_LINE.
      LS_LINE-TYP = 'S'.
      LS_LINE-INFO = DISPTEXT.
      APPEND LS_LINE TO P_IT_LIST_HEADER.
      CLEAR LS_LINE.
      LS_LINE-TYP = 'S'.
      LS_LINE-INFO = DISPTEXT2.
      APPEND LS_LINE TO P_IT_LIST_HEADER.
    ENDFORM.
    FORM FILL_EVENTS USING P_IT_EVENTS TYPE SLIS_T_EVENT.
       DATA LS_EVENT TYPE SLIS_ALV_EVENT.
       MOVE 'TOP_OF_PAGE' TO LS_EVENT-FORM.
       MOVE 'TOP_OF_PAGE' TO LS_EVENT-NAME.
       APPEND LS_EVENT TO P_IT_EVENTS.
    ENDFORM.
    FORM TOP_OF_PAGE.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
       EXPORTING
         IT_LIST_COMMENTARY       = IT_LIST_HEADER.
    ENDFORM.
    FORM FILL_LAYOUT USING P_GS_LAYOUT TYPE SLIS_LAYOUT_ALV.
       P_GS_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
       P_GS_LAYOUT-ZEBRA             = 'X'.
       P_GS_LAYOUT-FLEXIBLE_KEY      = 'X'.
    ENDFORM.
    FOR TESTING PURPOSE.
    *SORT OPBAL BY BUDAT.
    *CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
         I_CALLBACK_PROGRAM = REPID
         IT_FIELDCAT        = IT_FLDCAT
         IT_EVENTS          = IT_EVENTS
       TABLES
         T_OUTTAB           = OPBAL.
    *FORM FILL_FLDCAT USING P_FLDCAT TYPE SLIS_T_FIELDCAT_ALV.
      PERFORM FILL_PARAM_FLDCAT USING  1 'MBLNR'        'MBLNR'
      'OPBAL' P_FLDCAT.
      PERFORM FILL_PARAM_FLDCAT USING  2 'CREDIT/DEBIT' 'SHKZG'
      'OPBAL' P_FLDCAT.
      PERFORM FILL_PARAM_FLDCAT USING  3 'MOV.TYP.'     'BWART'
      'OPBAL' P_FLDCAT.
      PERFORM FILL_PARAM_FLDCAT USING  4 'ST.LOC.'     'LGORT'
      'OPBAL' P_FLDCAT.
      PERFORM FILL_PARAM_FLDCAT USING  5 'STOCK VAL'    'DMBTR'
      'OPBAL' P_FLDCAT.
      PERFORM FILL_PARAM_FLDCAT USING  6 'POS.DATE'     'BUDAT'
      'OPBAL' P_FLDCAT.
    *ENDFORM.

  • Opening and closing stock

    Hi,
        We have a requirement in which a Customized report has to be developed. The report needs to display the opening stock , Total reciept, consumption and closing stock for supplier wise material.
       We came across a standard report MB5B in which all these values are available. However inorder to display these values in a customized report we require a standard function module. Please provide us a std function module that can solve the purpose.
    If the std module is not available (i dnt come across one) kindly porvide an alternaitve for the same.
    Regards,
          Milan Thaker

    Hi,
    Use Submit Statement to get the output data from MB5b.
    Ex:
    Create selection screen with required filelds and use like this
    SUBMIT RM07MLBD with MATNR in r_matnr
                            with LGBST eq ''
                            with BWBST eq 'X'
                            with datum in datum
                            with bukrs in bukrs
                            with werks in werks
                            with lgort in lgort
                            with charg in charg
                            with bwtar in bwtar
                            with bwart in bwart
    Rgds
    Aeda

  • Opening and closing stock at storage location level

    Dear all
    I need a std report which will give the opening and closing stock at storage location level, Or should I go for dev. if yes please guide me.
    Regards
    Samuel

    Hi,
    check if you can use S_P00_07000139 report, select "Display stock movement by plant (with amount) and further select Sloc from layout.
    Regards,
    Vikas

  • Opening and closing stock balances

    Hi
    What report can i use to show the opening and closing stock balances of materials for the last 12 months.
    Thanks
    Vinesh

    You can view the report in MMBE.
    other than this you can try
    MBEWH and MARDH
    Also follow the link:
    Re: op.& closing stock detail in MM
    Thanks
    Nisha

  • Open order qty,Delivered qty,issued qty, and closing stock---Tables

    Gurus,
    I need to Prepare a report which will show open order qty,Delivered qty,issued qty, and closing stock.
    Please help me with table names where i can find .
    Regards
    venu gopal

    Hi,
    Try EKPO & EKBE tables..
    Thx
    Raju

Maybe you are looking for