Get Batches at a Storage location for the Material

I want to get a list of all batches at a sloc for a matnr.I want to get special stock,sales order stock etc just like MMBE.I've debugged,searched the forum but couldn't find anything.I'm looking for a FM.Or joins is the only way out?
Right now I'm looking at MKOL and MSKA are there any other tables I need to look at?
Thanks a lot..

You will have to read the batches of a given material from MCHA(if batches are maintained at a plant level) or MCH1(cross-site batches), then get the stocks of each of the batches by calling MB_READ_MATERIAL_STOCKS. You will have to fill in the MTCOM parameter.

Similar Messages

  • The system does not get Storage Location of the material from the Contract

    Hi to all,
    We are encountering a problem now regarding the PR to PO conversion.  Our ABAPer has made a background job for the User to convert a PR to PO using ME59N. 
    Background Job : ZPTI_MM_PR_PO_CON
    Program : RM06BB30
    Tcode: ME59N
    Variant : SAMPLE2_ME59N ( Plant, Vendor, POrg, Pgrp.)
    Rule : When the PO is converted the STORAGE LOCATION of the material should be gotten from a CONTRACT/AGREEMENT instead of the SLoc defaulted in PR.
    Problem:  When the backround job is finished, the PO is converted but the STORAGE LOCATION did not get from the CONTRACT.
    Steps done :
    1. Create a Contract (ME31K)
        1.1 Specify the SLOC of the material
    2. Create PR (ME51N) and enter the Contract Number inside the PR
        note : In the PR the material has a Storage Location which defaults from the Material Master.
    3. Run SM36 and enter the job ZPTI_MM_PR_PO_CON
    4.  Set the job to "Immediately"
    5. Click Steps icon and enter the program RM06BB30 and variant SAMPLE2_ME59N
    6. Save
    7. Go to SM37 and check the job if finished.
    8. When the job is finished, check the PR if it has a PO.
    9. Display the PO.
    10. Check if the storage location in PO has gotten from the Contract
         The problem now appeared.
    We have tried to use ME59N alone and not using the background job. The system has gotten the correct Storage Location, thus it got from the Contract.
    Please help what should be checked on our side.  Our ABaper is also currently debugging the program but we
    are seeking help to fasten the solution.
    Best Regards,
    Elynne

    Hi Elynne,
    Definitively, it is a problem with ME59N background process.
    It is better if you can create a message to SAP asking for the solution.
    I only found the next SAP note:
    Note 1287723 - ME59N in backgound does not populate PR details in PO.
    But, I do not know if it will help to resolve your issue.
    I hope this little information can help you in anyway.
    Kind regards,
    Sandra

  • Where and how to find the storage locatation for the consignment stock

    where and how to find the storage locatation for the consignment stock (customer stock )  for more than one storage location .
    table :msku
    material no    -   werks - batch
    xxx                   sg11  - 200352ac
    table : mchb
    material no    -   werks  -lgort - batch
    xxx                   sg11   sg10   200352ac
    xxx                   sg11   gs11   200352ac
    note : each stock location having same batch no in different storage and my question how to find which link for msku to mchb .

    Hi,
    Try the table MARD: Storage Location Data for Material, where in the field LABST will give the stock field, against a given material/plant/Storage Loc.
    Regards,
    JLN

  • Any Idoc for "storage location for a material" ?

    Hi Everyone,
    Does anybody know if there is an IDoc type to insert storage location for a material (Table MARD).
    BDC is also an option but IDoc should be a better choice.
    Thanks & Regards,
    Ankur

    Hi Ankur,
    Storage location view of a material can be created with
    MATMAS message type ( Segment E1MARDM )  . You can also use program RMDATIND with relevant data to add the storage location view.
    Cheers.

  • Open a storage location for a material

    Hi,
    how can I open a storage location for a material ?
    Is also possible to do it automatically ?
    Regards

    A storage location is customizing, this is in general open to take any material.
    depending on the customizing setting for Auto.create storage location you allow SAP to add the storage location view to your material master automatically with the first movement of a material to a storage location or not.
    if you dont allow that, then you have to maintain the storage location view in material master manually for each storage location before you can post a movement for this material in a certain storage location.

  • Default Storage location from the Material master

    Can we default the storage location from the material master into the reservation line item in trasaction MB21?

    enter the production storage location in material master MRP2 view.
    Edited by: Jürgen L. on May 7, 2008 6:52 PM

  • Block Storage location for particular material

    Hi,
    We gave defined storage location for finished product as follows>
    1050 - 2-8°
    1040 - RT
    When I have created one material, wrongly i have created it in 1050 instead of 1040.
    Then i have extend that material to 1040. Now that material is showing both storage locations.
    Is it possible to block storage location 1050 for this material only?
    Because of both SLOC thre are chaces of wrong receipt in 1050.
    Pl. help me to solve this problem.
    Gkude

    Dear Mr. Kunal,
    I have flagged storage location for deletion but till for this storage location system allows receipt also system allows stk. transfer in this location.
    Pl. help me so that storage location is permanently deleted from the material or system not allow for GR.
    Hope for your reply.
    Gkude

  • Multiple storage locations for single material - ECC 6.0

    Hi
    Can anyone let me know, how one can map multiple storage loctions for single material?
    regards
    Sanjay

    hello,
    Go to SPRO --> IMG --> Materials Management --> Inventory Management and Physical Inventory --> Plant Parameters.
    Tick Create storage locations automatically. System will extend the material to the storage location maintained in the transaction.
    Nikhil

  • Blocking storage location for particular material

    All SAP Gurus,
    Can we block the storege location for particular material.
    Regards,

    Block Storage Location from further posting
       You can block the storage location of a material without affecting the rest of the location using the same material.
        Create a Physical Inventory document for the storage location with transaction MI01
        Select the Posting Block checkbox.
        This would prevent transactions from occuring until you either post or delete the physical inventory document.
        (There are no impact, unless you do a post difference for the physical inventory document.)

  • Maintain new storage location for existing material codes

    Dear,
    We want to extend material master to more storage locations. Currently we have coding starting from 910000 for finish material and is configured for storage location FG01, now we want to extend all the codes with 91 series to storage location PR06 & QC01
    The same needs to be done for many other material codes with different series.
    Kindly give suggestions/solutions
    Thanks
    Vikram Sanghvi.

    Hi,
    You can use extend the material from Plant to plant or from Storage location to storage location.
    or 2nd is that Go to SE16 to get all material from MARD Table. then
    export in Excel and go to Mass mainteince in material master to extend the material.
    try this one
    http://www.sap123.com/showthread.php?t=158
    this may  help U !
    Regards,
    Pardeep Malik

  • Automatic storage location for a material

    Hi,
    Can anybody help on following issue-
    Could we set up by Material number  for each plant, which Default storage location ( and/or shipping point ) will automatically show up in order entry.
    Pls. guide.
    Regards

    Hello,
    Your requirements are standard & can be met.
    Automatic/default Shipping Point:
    Go to IMG - logistics execution - shipping - basic shipping functions - Shipping Point and Goods Receiving Point Determination - Define Shipping Conditions.
    You enter the shipping conditions in the customer master - sales area data - shipping screen. Also in the sales document type configuration in VOV8, you can enter the shipping point. If you enter the shipping point in the sales document then this entry will overwrite the entry of the customer master.
    Go to IMG - logistics execution - shipping - basic shipping functions - Shipping Point and Goods Receiving Point Determination - Define Loading Groups.
    You enter the loading group in the material master - sales: general/plant data screen.
    Go to IMG - logistics execution - shipping - basic shipping functions - Shipping Point and Goods Receiving Point Determination - Assign Shipping Points.
    Here you will find as under:
    Shipping conditions + Loading group + Plant = Shipping Point.
    Default Storage location:
    Go to IMG - logistics execution - shipping - picking - Determine Picking Location - Define Storage Conditions.
    Here you define the storage conditions which you enter in the material master - General Plant Data / Storage screen.
    Now go to IMG - logistics execution - shipping - picking - Determine Picking Location - Assign Picking Locations.
    Here you will find as under:
    Shipping Point + Plantb + Storage conditions = Storage location.
    Maintain the data in the customer as well as material master correctly & the assignments should be as per the data maintained. Then whenever you will create a sales order, the system will determine the default shipping point & the storage location.
    Reward points if solution helps.
    With best regards,
    Allabaqsh G. Patil.

  • Default Plant and storage location for components in MFBF

    Hi,
    I have 2 plants 1000-procurement plant and 2000- production plant. I am using special procurement key 70( Withdrawal from alternative plant from 1000 to 2000) for components in Plant 2000. The requirements for the components are transferred from 2000 plant to 1000 plant. The 1000 plant run MRP for the dependent requirements and procure the materials and transferred to the production storage location in Plant 2000.The raw materials are purchased in plant 1000 and transferred to Plant 2000 production storage location based on the manual reservations created with movement type 301. This is fine.
    But when I do backflush in MFBF the plant and storage location for the components issue are displayed as plant 1000 which is the procurement plant  and the production storage location in plant 2000-production plant location. In the BOM the production storage location is production storage location of plant 2000. Since we use the special procurement key system defaults the plant as 1000(procurement  plant) insteadd of 2000(production plant). can we make this plant default to the production plant 2000 as default in the MFBF goods issue screen.
    thanks and regards
    Murugesan

    Hi MURUGESAN !
          Can you give me some information more in Special Procument Configure in plant 2000 like:
              -  Procurement type (maybe F)
              -  Special procurement (Maybe U)
              -  Plant (Maybe 1000).
              - Issuing plant (maybe 2000)
           We will check together.
           Regards,
          Tony

  • MIGO: determination of storage location for empties

    Hello SD experts,
    Case: plant A delivers materials to plant B (interplant delivery). This delivery is posted GR through TC MIGO (based on delivery). Now, the issue is that SAP is not able to automatically determine the storage location for the empties (crates and crate containers). Can ayone tell me how we can let SAP do this automatically?
    Currently, we use WM for all finished products (storage location 0100). Empties are however not WM managed (storage location 0110). Empties are calculated and added in the delivery (user exit MV50AFZ1); not in the sales order.
    All replies are highly appreciated!
    Thanks and kind regards,
    Wander

    Hi,
    - If storage location for picking is not specified in the order item, the system determines the storage location when it creates the outbound delivery and copies it into the delivery item. Otherwise, the storage location entered in the order item is used in the outbound delivery.
    - The system determines the picking location based on a rule defined in the delivery type. The following rules are shipped in the standard system:
    - MALA: The picking location is determined based on the shipping point, the delivering plant, and the storage condition for the material as defined in the material master.
    - RETA and MARE: These rules are mainly used in trade scenarios.
    - You can also use the customer exit in SAP enhancement V02V0002 to implement storage location determination.
    - The picking location search is activated for each delivery item category.
    <b>Reward if helpful.</b>

  • Block Storage Location for Material Movement

    Dear MM Gurus,
    pl let us know how to block storage location for a material in Plant.
    Requirement is transfer posting (MIGO)  should not allow by using 311 mov type in sloc, error message to receive.
    example ;
    material ; 5000
    sloc ; 0001
    sloc ; 0002
    migo-transfer posting should not happen by using 311
    5000
    0001 - to 0002
    we want to block sloc-0002, how to block sloc, pl help if any solution available.
    thanx in advance
    regards
    srihari

    Hi,
    You can block the material completely for any movement type by checking <b>X Plant matl status</b> in Basic data view of material master.Or if you want to block specific movement type it will have to done thro authorisation but will apply to all materials .Here the authorisation object  M_MSEG_LGO    can be worked to remove the movement type or storage loaction .
    Dhruba

  • Please guide me how to include storage location to existing material master

    Hi Guru's,
    Please guide me how to include storage location to existing material master....
    please provide step by step process or provide any documentation that would be helpfull to me...
    please let me know of my question is not clear..
    Thanks in advance and will give full points....
    Srinivas...

    Hi
    First :- You can define the storage loctions in the plant under the customization :- SPRO -> Enterprise Structure ->Definition -> Materials Management ->Maintain storage location
    Once defined under the plant, you can create the same storage locations in the material master
    Second :- Under SPRO -> MM -> Inventory -> palnt parameters, for your plant check the field " Create Storage locations Automatically" . This will lead to create new storage locations at the time of GR, even if you have not maintained under step 1.
    Hope it answers your question.
    Regards,

Maybe you are looking for