Batch characterstic Stock Upload

Dear All,
I want to upload the initial stock with movement type 561.My materials are Batch Managed and the Batch are having certain Characterstic.So i want to upload the Stock with Batch Characterstic.This is not possible with recording in LSMW.Can anybody help me out in making the LSMW.
i am using the BAPI method in LSMW.the details are
usiness Object      BUS1001002   Batch
ethod               SAVEREPLICA
essage Type         BATMAS
asic Type           BATMAS03
i am able to upload only one characterstic.i want to upload the stock with multiple characterstic with single batch.
Does anybody guide me in making the LSMW.
Thanks
Jagmohan

Hi ,
      I am also having the same scenario,which you are having,I need to upload batch first and then characteristics next,the fields in the creation of  a batch and characteristics are same. So during uploading of batch itself,we can upload the characteristics also right?.Please let me know whether i am correct or not,As i  was asked to o do 2 lsmw objects for batch upload and characteristics upload,Please tell me the difference..
Thanks in advance
Nagarathinam.

Similar Messages

  • Auto creation of Stor Location and Batch during stock upload via MI09

    Hi Experts!
    Please guide me to configure automatic creation of storage location and batch during stock count through mi09.  Eg : I got material A in storage location 1000 and got batch 123 for this material. Then when i want to do the stock count, if i enter the storage location 2000 and batch 122 for this material, then system will auto create this storage location and batch in the master data.
    I tried to configure it in OMJJ for storage location but it is not working. Please anyone guide me step by step how to configure it. Storage location and Batch.
    Thanks.
    Crystal.

    hi
    check this
    Create Storage Location Automatically
    In this step, you specify whether the automatic creation of storage location data is allowed for goods issues and transfer postings.
    This is advisable if you work with negative stocks and a material's first movement may be an outward movement.
    Note that the reversal movement for a goods issue, for example, movement type 202 or 262, is not considered as an issue but as a receipt. If you only use the automatic creation of storage location data for reversals of goods issues, you do not have to allow negative stocks.
    You have to allow automatic creation per plant first of all. You then have to explicitly allow the creation of storage location data for each movement type.
    The storage location data is only created if the quantity is posted to 'standard' storage location stock. It is not created for receipts into a special stock (for example, into sales order stock).
    Default settings
    The standard system is set in such a way that the storage location data is created automatically for all types of receipts (goods receipt with/ without reference, stock transfers, intial entry of stock balances, reversal of goods issues, etc.).
    Activities
    1. Enter for each plant whether the automatic creation of storage location data is generally allowed.
    2. Specify the movement types for which storage location data is created automatically.

  • LSMW for MB1C with Batch & Characterstic

    Dear All,
    I want to upload the initial stock with movement type 561.My materials are Batch Managed and the Batch are having certain Characterstic.So i want to upload the Stock with Batch Characterstic.This is not possible with recording in LSMW.Can anybody help me out in making the LSMW.
    Thanks
    Jagmohan

    Try this code
    REPORT zosmm_carga_caract_lote NO STANDARD PAGE HEADING LINE-SIZE 100.
    Global Parameters
    DATA: BEGIN OF t_message OCCURS 0.
    INCLUDE STRUCTURE bapiret2.
    DATA: END OF t_message.
    DATA: BEGIN OF t_archivo OCCURS 0,
    lineas(42),
    END OF t_archivo.
    DATA: BEGIN OF t_carga OCCURS 0,
    charg(10),
    valor(30),
    END OF t_carga.
    DATA: BEGIN OF t_caract OCCURS 40,
    atnam LIKE cabn-atnam,
    atinn LIKE cabn-atinn,
    atfor LIKE cabn-atfor,
    anzst LIKE cabn-anzst,
    END OF t_caract.
    BAPI structures
    DATA: BEGIN OF wa_allocvaluescharnew OCCURS 0.
    INCLUDE STRUCTURE bapi1003_alloc_values_char.
    DATA: END OF wa_allocvaluescharnew.
    DATA: BEGIN OF wa_allocvaluesnumnew OCCURS 0.
    INCLUDE STRUCTURE bapi1003_alloc_values_num.
    DATA: END OF wa_allocvaluesnumnew.
    DATA: BEGIN OF wa_allocvaluescurrnew OCCURS 0.
    INCLUDE STRUCTURE bapi1003_alloc_values_curr.
    DATA: END OF wa_allocvaluescurrnew.
    Variables
    DATA: lineas TYPE i,
    w_rc LIKE sy-subrc,
    mens LIKE message,
    date_err(1) TYPE c,
    swc(1).
    DATA: c_totreg(6),
    c_vanreg(6).
    DATA: v_atinn LIKE cabn-atinn,
    v_atfor LIKE cabn-atfor,
    v_anzst LIKE cabn-anzst.
    SELECTION-SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK uno WITH FRAME TITLE text-001.
    PARAMETER: p_matnr LIKE mara-matnr OBLIGATORY,
    p_atnam LIKE cabn-atnam OBLIGATORY.
    PARAMETER: p_file LIKE rlgrap-filename OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK uno.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    PERFORM buscar_archivo USING p_file.
    START-OF-SELECTION.
    START-OF-SELECTION.
    REFRESH: t_archivo, t_carga, t_caract.
    *** Characteristics Values
    SELECT SINGLE atinn atfor anzst
    INTO (v_atinn, v_atfor, v_anzst)
    FROM cabn
    WHERE atnam = p_atnam.
    IF sy-subrc NE 0.
    MESSAGE i899(m3) WITH 'Not Valid Characteritics'.
    ELSE.
    *** Read input and upload
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
    filename = p_file
    filetype = 'ASC'
    TABLES
    data_tab = t_archivo
    EXCEPTIONS
    conversion_error = 1
    invalid_table_width = 2
    invalid_type = 3
    no_batch = 4
    unknown_error = 5
    gui_refuse_filetransfer = 6
    OTHERS = 7.
    IF sy-subrc EQ 0.
    LOOP AT t_archivo.
    CLEAR t_carga.
    SPLIT t_archivo AT ';'
    INTO t_carga-charg t_carga-valor.
    APPEND t_carga.
    ENDLOOP.
    DESCRIBE TABLE t_carga LINES lineas.
    IF lineas > 0.
    PERFORM clasificar_lotes.
    ELSE.
    MESSAGE i899(m3) WITH 'Doesn't exist batch to process'.
    ENDIF.
    ELSE.
    MESSAGE i899(m3) WITH 'Error on upload'.
    ENDIF.
    ENDIF.
    TOP-OF-PAGE
    TOP-OF-PAGE.
    WRITE: /'TITLE', sy-datum, sy-uname NO-GAP.
    WRITE: /'Material: ', p_matnr.
    WRITE: /'Characteristics: ', p_atnam.
    SKIP.
    WRITE: 01 'Batch', 11 'Valor', 30 'Log'.
    ULINE.
    *& Form clasificar_lotes
    FORM clasificar_lotes.
    DATA: w_matnr LIKE mara-matnr,
    w_cuobjbm LIKE mch1-cuobj_bm,
    w_obtab LIKE inob-obtab,
    w_objek LIKE inob-objek,
    w_class LIKE klah-class,
    w_clint LIKE kssk-clint,
    w_valor(8),
    w_mbapi(80),
    logline(100).
    CLEAR: t_message.
    LOOP AT t_carga WHERE charg IS NOT INITIAL.
    REFRESH: wa_allocvaluescharnew,
    wa_allocvaluesnumnew,
    wa_allocvaluescurrnew.
    CLEAR: wa_allocvaluescharnew,
    wa_allocvaluesnumnew,
    wa_allocvaluescurrnew,
    date_err,
    w_mbapi,
    logline.
    CONCATENATE t_carga-charg t_carga-valor
    INTO logline SEPARATED BY space.
    *** Find object to classified
    SELECT SINGLE cuobj_bm matnr
    INTO (w_cuobjbm, w_matnr)
    FROM mch1
    WHERE charg = t_carga-charg
    AND matnr = p_matnr.
    IF sy-subrc EQ 0.
    SELECT SINGLE obtab objek
    INTO (w_obtab,w_objek)
    FROM inob
    WHERE cuobj = w_cuobjbm.
    *** Find class from object
    SELECT SINGLE clint INTO w_clint
    FROM kssk
    WHERE objek = w_cuobjbm
    AND mafid = 'O'
    AND klart = '023'.
    IF sy-subrc = 0.
    SELECT SINGLE class INTO w_class
    FROM klah
    WHERE clint = w_clint.
    TRANSLATE t_carga-valor USING ',.'.
    CONDENSE t_carga-valor.
    CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
    EXPORTING
    objectkey = w_objek
    objecttable = 'MCH1'
    classnum = w_class
    classtype = '023'
    KEYDATE = SY-DATUM
    UNVALUATED_CHARS = ' '
    language = sy-langu
    IMPORTING
    STATUS =
    STANDARDCLASS =
    TABLES
    allocvaluesnum = wa_allocvaluesnumnew
    allocvalueschar = wa_allocvaluescharnew
    allocvaluescurr = wa_allocvaluescurrnew
    return = t_message.
    *** Define characteristics type
    CASE v_atfor.
    WHEN 'CHAR' OR 'BOOL'.
    wa_allocvaluescharnew-charact = p_atnam.
    wa_allocvaluescharnew-value_char = t_carga-valor.
    APPEND wa_allocvaluescharnew.
    LOOP AT wa_allocvaluescharnew WHERE charact = p_atnam.
    wa_allocvaluescharnew-value_char = t_carga-valor.
    wa_allocvaluescharnew-value_neutral = t_carga-valor.
    MODIFY wa_allocvaluescharnew.
    ENDLOOP.
    WHEN 'NUM' OR 'TIME'.
    wa_allocvaluesnumnew-charact = p_atnam.
    wa_allocvaluesnumnew-value_from = t_carga-valor.
    APPEND wa_allocvaluesnumnew.
    LOOP AT wa_allocvaluesnumnew WHERE charact = p_atnam.
    wa_allocvaluesnumnew-value_from = t_carga-valor.
    wa_allocvaluesnumnew-value_from = t_carga-valor.
    MODIFY wa_allocvaluesnumnew.
    ENDLOOP.
    WHEN 'DATE'.
    CALL FUNCTION 'CONVERT_DATE_TO_INTERN_FORMAT'
    EXPORTING
    datum = t_carga-valor
    dtype = 'DATS'
    IMPORTING
    error = date_err
    idate = w_valor
    messg = mens.
    IF date_err = 'X'.
    CONCATENATE logline '-> Error: Fecha no valida'
    INTO logline SEPARATED BY space.
    ENDIF.
    wa_allocvaluesnumnew-charact = p_atnam.
    wa_allocvaluesnumnew-value_from = w_valor.
    APPEND wa_allocvaluesnumnew.
    LOOP AT wa_allocvaluesnumnew WHERE charact = p_atnam.
    wa_allocvaluesnumnew-value_from = w_valor.
    MODIFY wa_allocvaluesnumnew.
    ENDLOOP.
    WHEN 'CURR'.
    wa_allocvaluescurrnew-charact = p_atnam.
    wa_allocvaluescurrnew-value_from = t_carga-valor.
    APPEND wa_allocvaluescurrnew.
    LOOP AT wa_allocvaluescurrnew WHERE charact = p_atnam.
    wa_allocvaluescurrnew-value_from = t_carga-valor.
    MODIFY wa_allocvaluescurrnew.
    ENDLOOP.
    ENDCASE.
    IF date_err IS INITIAL.
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> by AGARCIA
    CALL FUNCTION 'BAPI_OBJCL_CHANGE_KEY'
    CALL FUNCTION 'BAPI_OBJCL_CHANGE'
    EXPORTING
    objectkey = w_objek
    objecttable = 'MCH1'
    classnum = w_class
    classtype = '023'
    status = '1'
    TABLES
    allocvaluesnumnew = wa_allocvaluesnumnew
    allocvaluescharnew = wa_allocvaluescharnew
    allocvaluescurrnew = wa_allocvaluescurrnew
    return = t_message.
    IF sy-subrc EQ 0.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    wait = 'X'.
    LOOP AT t_message WHERE type CO 'EA'.
    CONCATENATE w_mbapi t_message-message ';'
    INTO w_mbapi SEPARATED BY space.
    ENDLOOP.
    IF w_mbapi IS INITIAL.
    CONCATENATE logline '-> Ok!' INTO logline SEPARATED BY space.
    ELSE.
    CONCATENATE logline '-> Error:' w_mbapi
    INTO logline SEPARATED BY space.
    ENDIF.
    ELSE.
    CONCATENATE logline '-> Error: Problem on BAPI Execution
    INTO logline SEPARATED BY space.
    ENDIF.
    ENDIF.
    ELSE.
    CONCATENATE logline '-> Error: Class object don't found'.
    INTO logline SEPARATED BY space.
    ENDIF.
    ELSE.
    CONCATENATE logline '-> Error: Class object don't found'.
    INTO logline SEPARATED BY space.
    ENDIF.
    WRITE: / logline.
    ENDLOOP.
    WRITE: / '>>>>>>>>>> FIN DEL PROCESO <<<<<<<<<<'.
    ENDFORM. " clasificar_lotes
    Form buscar_archivo
    Muestra el diálogo para seleccionar el archivo
    +----
    FORM buscar_archivo CHANGING ie_arch.
    DATA: v_file1 LIKE dynpread-fieldname,
    v_file2 LIKE ibipparms-path.
    v_file1 = ie_arch.
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
    field_name = v_file1
    IMPORTING
    file_name = v_file2.
    ie_arch = v_file2.
    ENDFORM. " BUSCAR_ARCHIVO

  • Stock upload - Goods receipt date, FIFO

    We are doing our initial stock upload using LSMW based on goods movements.
    When posting a goods movement the posting date will be used for FIFO considerations.
    That's fine when your system is operative, but during the initial stock upload the posting date will be the same for all movements, which is not what we want.
    Is there a way to transfer a GR date from the legacy system?
    (Opening the posting periods to any date in the past is not an option).
    Any ideas?
    Thanks
    Andreas

    If you had a GR on May 2nd of 1000 and another GR on Oct. 1st for 500  and your currect stock is 800, then you just know that the last GR date was Oct. 1st. But this is not the truth for all stock on hand. So FIFO cannot work. So the field has just information caracter.
    SAP will capture such info at batch level. Different software, different concepts. so each batch can have its own last GR date, and you distinguish the stock by batches, and can use batch search strategy to find the oldest one.
    Without batch managment, SAP has this information about last goods receipt at quant level in warehouse managment.  Do you use WM module?
    (even then I have no standard solution to manipulate this field while doing the stock load)

  • Quality data for stock uploading using movement type 561

    Hi,
    As system Go-Live business wants to have quality certificate for all FG from SAP. But part of data for quality certificate is of intermediate materials which is already conumed for production of FG so stock is zero for batch of consumed SFG. (ALL FG AND SFG IS BATCH MANAGED). We can upload FG part of quality data require for certificate as FG stock with batch number will be uploaded as initial stock upload with 561 goods movement. But how to manage SFG part of quality data, as stock for consumed batch of SFG will be zero and hence can not have inspection lot for SFG batch.
    Can anyone suggest how to upload quality data for material?
    Help to resolve this issue will be rewarded with points.
    Thanks and regards,
    Devang

    Hai PK,
    For Plant to plant stock transfer, follow the below steps,
    1) create STO in ME21N with Item category U
    2) create delivery document
    3) PGI
    4) create Excise Invoice
    5) create Billing document
    6) GR at receiving plant referring delivery doc. and perform Excise capture simultaneously or separately
    Hope it will helps you..
    Thanks & Regards,
    Kumar

  • Stock Upload

    Hi All,
    I am surrounded with following doubts/Confusion , while preparing the template for Stock Upload:-
    Please give your valuable inputs on the following points.
    1)What would be the effect of Split Valuation during the Data Uploading(Import/Domestic/Inhouse)
    2)How the stock will be lying in the storage location for the split valuated material and how it will be identified
    4)Batch Allocation to stock(as requirement is to keep internal system generated number of batches )
    5)SLED Allocation for material which are relevant to SLED
    6)How to Upload the material , which are stock in transit.
    Thanks & Regards
    Nitin Chhabra

    ok

  • Stock upload conversion program

    Hello Experts,
    I have few questions below.
    What is the case that we require to do a BDC program for stock upload? What is the difference of using LSMW Vs BDC?
    I have about 500 materials and need to upload the stock into SAP from external excel file and need to move them into physical bins.
    Do I need to develop a conversion program for LSMW to full fill my requirement.I am asked to write a functional spec for stock upload.Please help..
    Do i need a seperate conversion program for stock transfer from 998 storage to physical bin?I should also print the SU labels during this program.
    Please explain the process.
    Thanks for your time in advance.
    Edited by: RKsap193 on Oct 13, 2008 12:28 PM

    If you send your personal email than i can send you the document with screen shot.
    Here is the complete step bu step process to load initial stock with LSMW
    you can use LSMW or BDC program
    LSMW can eb designed by analyst and BDC can be desined by ABAPer
    I did not find any documentation describing scenario of initial stock entry of material to HU & WM managed storage location. It inspired me to write this wiki.
    I use the following scenario of loading initial stock entry:
    u2022     Creation of inbound delivery using standard batch input import method - program RM07MMBL  with following tip:
    o   Input file from legacy system is prepared it such a way that one line contains information about one palette (or other packing materials) and storage bin coordinate.
    o   In the standard field MTSNR (Material slip) storage bin coordinates information is recorded.
    o   Field MTSNR is transferred to field LIKP-LIFEX (External Delivery ID)
    u2022     Creation of transfer order in reference to inbound delivery using batch input recording of transaction LT03
    o   Field NLPLA (Destination Bin) is read using simple ABAP code from delivery header - LIKP-LIFEX
    To create transfer order for inbound delivery in transaction LT03, material in inbound delivery must be packed, i.e. handling unit must be created. It can be archived by using an automatic packing functionality (packing instruction and packing instruction determination). 
    After TO confirmation the goods receipts can be posted for deliveries.
    Standard output can be generated for handling unit using message type E128 (EAN128 sticker). If needed storage bin information can be printed to simplify label  sticking on palette or other packing materials in the warehouse complex.
    In this scenario homogeneous materials are packed into one handling unit.
    Step 1: LSMW for initial stock entry in MM using 561 movement type:
    This is the well known standard LSMW procedure which use standard batch input import method - program RM07MMBL .
    1a. LSMW Process steps:
    I apply only following tip: in the standard field MTSNR (Material slip) storage bin coordinates information is recorded.
    1b. Maintain Source Fields LSMW process (step No. 3):
    1c. Input file - example:
    1d. Create batch input session LSMW (step No. 14).
    It is important to set "1" for Max. number of items. It ensures that one delivery is created per one input line.
    1e. Log sample from batch input session.
    1f. Inbound delivery monitor - transaction VL06I
    Selecting deliveries for Putaway you can control deliveries created in preceding step
    Each delivery is packed:
    and output - message type E128 is created:
    Step 2: LSMW for transfer order creation in reference to inbound delivery:
    This LSMW procedure is based on batch input recording of LT03 transaction. 
    2a. LSMW Process steps
    2b. Maintain Source Fields LSMW (step No. 3).
    Deliveries numbers can be simply generated to input file form inbound delivery monitor (see 1f step)
    There is no need to fill LGTYP (Storage type) and LGPLA (Storage section) because these fields are derived in LT03 transaction from storage bin - LGPLA (only if LGPLA is unique for all storage types and storage section - LAGP table).
    2d. Display Read Data LSMW (step No. 10)
    2e. Run Batch Input Session (step No. 14)
    Log from the batch input session:
    LT23:
    I have customized the system to automatically confirm TO. Finally all HU are put away.
    Tip & Trick
    You can confirm TO using RF devices (standard transaction LM02) while label sticking on a palette.
    Last step is to post GR for inbound deliveries which were put away. It can be done collectively in inbound delivery monitor by selecting deliveries for goods receipt: 
    Summary
    u2022     Easy to implement: two simple LSMW scenarios (one with few ABAP lines)
    u2022     Standard message type for label printout with information about storage bin coordination
    u2022     Possibility to analyze correctness of data migration in inbound delivery monitor before posting GR
    u2022     Possibility to confirm label sticking with RF transaction
    u2022     This scenario can be adapted for non homogeneous HUs

  • Stock on posting date with storagelocation,batch and stock types informatio

    Hi,
    I'm needing a report (similar funtion of MB5B) which must reveal the stock postion (closing balance) of the materials on a particular date alongwith storage loactions, batches and stocktypes (Unres/Q/Blkd).As such MB5B either gives the output either by storage location or by batch, not the combination of both.
    Else provide any possibilty means( Database tables) from where i could arrive these mention outputs.
    I could be able to get the information by collecting the values from MKPF & MSEG tables. But this information only suffice the material movements carried on that particular date.. And i will be not having the closing balance as a whole.
    I even wonder to get any such a kind of information in which i could able to get the stock with stock types(Unres/Q/Blkd).
    Any light on this matter is highly appreciable.
    Regards
    Prasanna

    Hi Amit Bakshi,
    Thanks for the reply..
    I executed the suggested program but i found the same kind of information aslike in MB5B..
    The information all i'm looking is to get the closing balance of the given material with storagelocations, batches and stock types on a given posting date.
    For eg.
    On 15 / 03 / 2011
    Material A
    Batch       Slocation       Stock type               Closing balance Qty.
    A1              S001               Unres.                             50
    A1              S002               Unres                            120
    B1              S001               Quality                             15
    C1              S003               Blocked                            30
    In MB5B i could able to get the values of closing balance either Storage location level or by batch level but is it possible to get the combination of both along with stock types?
    Reg
    Prasanna

  • Batch wise stock for a Purchase order

    Here, i am receiving the goods from the customer for jobwork, while receiving the material (cloth) itself i wont receive the design what i have to print on the material.(For eg customer will send me some 5000 mtrs, he wont mention the design for that. but we have to give a lot number for the whole 5000 mtrs, then after 1 week he will give design for 2000 mtrs. and also he will tell 2000 mtrs 4 colors i have to divide that 2000 mtrs into 4 different batches and i have to bring it in to stock. and also i have to see the report that customer issued 5000 mtrs and for 2000 mtrs he had given program remaining 3000 mtrs he has to give program(Design)).
    what i did is i created new doc type in PO (customer Cloth Receipt)
    I made number range for that doc type as what they are currently maintaining now (so that number will be lot number, it will be the identification for that customer to track the material what he have supplied)
    i created the new output type so that i can give the printout as an acknowledgement to customer
    i created the customer as vendor
    i did inbound delivery for that material what i have received (5000 mtrs) from customer(Vendor)
    when i receive the program(design) for 2000 mtrs 4 different batches
    i did GR against the inbound delivery so that while doing GR i can create 4 different batches and i can bring that 2000 mtrs into stock.
    Pls guide me some steps where i can make this process simple......

    Hi Jurgen,
    Thanks for your reply. I am not looking for any analysis report or LIS report.
    i am looking for simple ageing report for a date entered by the user. I got the logic and tables for the current date but if i need to refer the stock ageing of previous date like my stock ageing at 30-06-2010. I am not able to get any tables where i can have the batch stock for a given date or a month.
    The report output format to be
    stock <=30 days
    stock>30 and <=90
    stock>90 and <=180
    stock>180 days
    The criteria for calculation will be the date entered by the user in the input screen. If the user enters the date as 30-06-2010 then all the stock received in the month of june and still lying in my storage location will fall the category <=30 and display in the report.
    Stocks received in the month of march, april and may will fall under the category "stock >30 and <=90".
    If I can get the batch wise stock for a particular month , I can pick the posting date of the Goods receipt from the batch number and calcuate my ageing (i.e date entered in the input scren of the report 30-06-2010 - batch posting date).
    I am also referring to the note which you have sent but in the mean while if you can help me to identify the tables where I can get the batch stock for a particular month.
    Thanks
    Fazal.

  • Batch transaction stock aging report

    Hi Experts,
    Can you some one help me with query which give stock aging report base on Batch wise transactions (IBT1).
    Item Code,    Item description  Batch#(Qty which are >0),  Batch Qty,  Stock "IN" creation Date,
    Thanks for your help.
    Regards,
    Suresh

    Dear parneeth,
    As requested please try this Query to fulfill your requirement.
    SELECT T0.docnum,
    T2.BatchNum,T2.ItemCode,T2.Quantity,
    T2.ItemName,T0.CardName as Supplier,
    T2.SuppSerial,T2.IntrSerial,T2.ExpDate,T2.PrdDate,T2.InDate,T2.Located,
    convert(varchar(8000),T2.Notes)
    FROM OPDN T0 INNER JOIN PDN1 T1 ON T0.DocEntry=T1.DocEntry
    inner join
    OIBT T2 on T1.ItemCode = t2.ItemCode and T0.objtype=T2.basetype and T2.baseentry=T1.Docentry
    inner join
    oitm T5 on T1.Itemcode=T5.Itemcode
    WHERE
    T2.quantity>0
    group by T0.docnum,T2.BatchNum,T2.ItemCode,T2.Quantity,
    T2.ItemName,T0.CardName,
    T2.SuppSerial,T2.IntrSerial,T2.ExpDate,T2.PrdDate,T2.InDate,T2.Located,
    convert(varchar(8000),T2.Notes),T1.Linetotal,T1.Quantity
    REGARDS
    MANGESH PAGDHARE.
    Edited by: MANGESH  PAGDHARE on Jan 9, 2012 6:31 PM

  • Batch wise stock for a given period or month

    Hi,
    My company wants to implement stock ageing report in MM.
    We manage the stocks in Batches. For us the main criteria for stock ageing is batch creation date.
    The report should run stock ageing based upon the date range given as an input screen
    For ex : date range in input can be of today or as of 30.06.2010.
    If the report is run as of today then I am able to get the batch stock from table MCHB . Quantity from field "CLABS"  and the batch creation date from the field "ERSDA"
    But if the report to be run as of 30-06-2010. Then I am not able to get the data from MCHBH as of 30.06.2010.
    I have checked for one material in the table and as per stock it should be 351 as of 30-06-2010 but in the MCHBH table for the month 06. year 2010 it is showing as 136 pcs only.
    As our LIS tables are not getting populated correctly I am not able to check those tables too.
    Can any one guide me with the logic or the table where I can get the batch stocks for a particular month.
    I need Material, Batch, Quantity month and year .
    Please advice how can i get the data and from which table.
    Thanks you for your support in advance.
    Regards
    Fazal

    Hi Jurgen,
    Thanks for your reply. I am not looking for any analysis report or LIS report.
    i am looking for simple ageing report for a date entered by the user. I got the logic and tables for the current date but if i need to refer the stock ageing of previous date like my stock ageing at 30-06-2010. I am not able to get any tables where i can have the batch stock for a given date or a month.
    The report output format to be
    stock <=30 days
    stock>30 and <=90
    stock>90 and <=180
    stock>180 days
    The criteria for calculation will be the date entered by the user in the input screen. If the user enters the date as 30-06-2010 then all the stock received in the month of june and still lying in my storage location will fall the category <=30 and display in the report.
    Stocks received in the month of march, april and may will fall under the category "stock >30 and <=90".
    If I can get the batch wise stock for a particular month , I can pick the posting date of the Goods receipt from the batch number and calcuate my ageing (i.e date entered in the input scren of the report 30-06-2010 - batch posting date).
    I am also referring to the note which you have sent but in the mean while if you can help me to identify the tables where I can get the batch stock for a particular month.
    Thanks
    Fazal.

  • Error while posting batch managed stock in 107 movement type?

    Hi All,
    Error while posting batch managed stock in 107 movement type in MIGO, like 'Goods movement not possible with mvmt type 107'
    and here in batch tab batch number is not displaying only valuation type is displaying, kindly let me know can it be done by doing any change in field selection with respect to 107 movement type
    regards,
    Sanjana

    Hi,
    spro-inventory management-setting for enjoy transaction-setting for goods mvt--field selection per mvt type
    107     SGTXT
    107     WEMPF
    Check here 107 mvt type there or not if not then put.
    101     CUSTNAME
    101     GRUND
    101     SGTXT
    101     WEMPF
    102     SGTXT
    102     WEMPF
    103     SGTXT
    103     WEMPF
    104     SGTXT
    104     WEMPF
    105     SGTXT
    105     WEMPF
    106     SGTXT
    106     WEMPF
    107     SGTXT
    107     WEMPF
    108     SGTXT
    108     WEMPF
    109     SGTXT
    109     WEMPF
    110     SGTXT
    110     WEMPF
    Regards
    Rakesh

  • Reversal of stock upload file:- Urgent

    Gurus,
        By mistake at intial stock upload file is  upladed twice, how could i reverse  the same. I uploaded  through   T -code MB1C/ Mvt type 561; and showing at 998 storage type( interemediate bins). How could I will reverse the excess stock from the same.
    Please let me know the process . its is urgent. by what logic shoulsd I make  BDCetc.
    Regds,
    Sanjay rahangdale
    [email protected]

    Hi,
    re run the file again but this time with a 562 movement type, this should reverse the error exactly how you want it.
    Steve b

  • Profit center document not created for initial stock upload

    Hi Gurus
    We have created initial stock upload for one of the inventory items through movement type 561.Though the profit center was populated in the line items the profit center document has not been created and when we go and run balance sheet profit center wise there are no results for display? Any suggestions ?

    Hello,
    Check your 3KEH Settings
    Check your OKB9 account determination
    Make sure you have profit center number ranges in GB02
    Regards,
    Ravi

  • GR document and posting date issue for initial stock upload are overidden

    Hi all
    Loading initial stock into the system using standard idoc message type MBGMCR and basic type MBGMCR02.
    We are trying to post the intial stock upload with posting and document dates in past with this idoc. The Idoc is accepted with these dates but while posting the system is overiding these dates and posting the document with system date. Any clue as to what is happening?
    Regards,
    Amit

    Hi Jurgen
    I am aware about the posting being possible till the last period.
    But the system over-riding the posting and document dates in the IDoc even if I chose previos day's date in the current period. The dates in the IDoc are correct to be in the past. The IDoc is accepted by the system with the document and posting dates in the past.
    But dates in the document after posting are system dates. Very unsual. Please let me know the reasons.
    Thanks for the reply.
    Cheers,
    Amit

Maybe you are looking for