Initial Stock on MB5B

Hi!
I want to know how MB5B gets Initial Stock/Value. For example:
Material: 1112
Plant: 7101
Date from: 01.01.2008 to 31.01.2008
Stock / Value for 01.01.2008       900KG     15000USD
I have debugged program but I have seen it uses MBEW table but I can not find that value on that table, neither on MBEWH.
I hope you can help me. Thanks!
Jocelyne

MB5B use RM07MLBD include to calculate the stock.
Here is how it goes.
1. Lets take a material with plant and a storage location. Get the current stock from table MARD.
( LABST = current stock available for unrestricted usage)
2. Go to MSEG for the given material, plant and storage location.
3. Get all the records between <the day u want stockvalue> to todays date.
4. based on the movement types u may have to cancel some of the entries ( if they are return, or if some records were cancelled).
5. calcualte the quantity from field MENGE by adding up all the records.
Hope this clarify your doubts.
Regards

Similar Messages

  • Clearing of GR/IR Account for initial stock entry into the system

    Hi All,
    We  MM team did some initial stock entry into the system using MVT TYPE 561 in migo transaction. But in the FI, When GR/IR clearing account was checked, these entry's caused by the initial stock entry are not cleared. when tried to clear It gives a message saying this cannot be manually cleared.Do any of you know what should be done in this case?

    I have one more Questiion, in my company there is some amount that is not balancing. We feel that is due to the initial stock entry of the Materials is there a way to view what was the value stock on a particular date by particular movement type, we have transaction in MM but that does not give the currency, in the currency column it says $0.00.

  • Initial Stock Upload T code MB1C and Movement Type 561through LSMW - Error

    Hi,
    Trying to Upload the Initial Stock, Transaction Code MB1C and Movement Type 561 through LSMW.
    While recording the fileds, system giving a message of Code Block.
    Please let us know about Code Block while uploading the Initial Stock.
    Thanks
    Siddu.

    Check this thread
    [Re: Coding Block in LSMW recording via MB1C|Coding Block in LSMW recording via MB1C;
    thanks
    G. Lakshmipathi

  • Initial stock entry

    Hi
    While doing Initial stock entry i am getting document type WA instead of WE.
    Pls tell me whether Initial stock entry is Goods Receipt, Goods Issue or Transfer Posting, so that the above can be clearly understood.
    cheers

    Hi
    Initial stock entry is a goods receipt transaction only, but in SAP standard it is given the WA document type.
    if you wish to change it you can change the same in OMBA
    Clcik on Goods receipt document type & change the assignment of Document type for MB1C to WE
    Thanks & Regards
    Kishore
    Edited by: Kishore Kumar Chiluka on Jun 24, 2008 3:15 PM

  • Import initial stock

    Hello
    I have problem with import (load) of initial stock.
    Plz tell me advance (documentation), how do it.
    regards
    Beto
    my mail:  [email protected]

    Bernard
    LSMW is Logistical system migration workbench and it is a transaction where you build a programme to load stock (among other things) once built you enter all of your data on to a sopreadsheet and then save it as a text tab delimited file and attach it to the LSMW. This reads the data and then converts it and creates a batch input file which then you run to load the stock.
    It basically does transaction MB1C with movement type 561 or 563 or 565 whatever is in the soreadsheet and it does the transaction over and over again until all lines are loaded, However it is not something that you can just do if you have not used it before. Have you access to any developers or abapers as they would probably know how to do it.
    I hope that this explains a bit better

  • Initial stock load of batch managed materials

    Hi,
    We are using batch management for FERT materials. The class type 022 is being used for creating batch class. The class has been assigned to six characteristics.
    We need to load the initial stock of all these FERT items with batches with corresponding classification values within the batch. I know that system creates the batches during initial load. However, it does not provide the classification button. This is the issue only for 561 movement. For all other receipts we get the classification button.
    Can anybody help me understand if I am missing any config or I am following wrong process to upload initial stock with batches.
    Thank you for all your help you could provide.
    -Shekhar

    Can you please explain me the process of "load the classification for the batches".
    We have materials with class 022. In CL20N it asks for material and class type. Using this we can enter the characterstics values for a material, but not batch.
    I can change the batch to enter the characterstics values. Is it supposed to be that way? I mean do I have to load the classification using MSC2N? Or I am missing something?
    Thanks,
    -Shekhar

  • Initial stock load of QI stock

    Hello
    We are looking at initial stock loads and in particular QI stock.  We want to load QI stock without creating inspectiion plans although we will want use them after stock load.
    The only way I know of doing this would be to create the material master for everything but the QM screen, select the QI stock indicator in the purchasing screen then load the stock.  Once completed, create the QM screens.
    Or create the QM but use a control key that does not create inspection plans and then change the control key after data load.
    Do any of you have another solution?
    Kind regards
    Sue

    Thanks Jurgen, I think that this is what a lot of people do... Unfortunately my client would like to load it as Q from the beginning!  Thank you again, this is very useful. 
    I think the problem they have is that the goods could stay in QI for quite some time.
    Kind regards
    Sue

  • Logic of G/L account while creating initial stock.

    Dear all,
    When creating initial stock-trcode MB1C movement type 561- SAP requests a G/L account. I think in other material movement types, SAP requests a G/L account same as here. What is the logic here? Why SAP request G/L accounts for these processes?
    Thanks in advance.

    Hi,
    Initial stock upload transaction MB1C does not normally require a G/L account, if MM inventory posting related customization is complete. Because inventory posting calls for auomatic account determination.
    Please check whether MM inventory posing related customization (Transaction codes:OMWN & OBYC) is complete. Specifically, please check in OMWN, whether account assignment has been made for movement type 561.
    If the issue is resolved please acknowledge the same.
    Muraleedharan.R

  • Initial Stock Taking template for Items with Batch Management

    I need to upload the Items for the initial Stock Taking but every item uses Batch Management. and i dont see another template. What template is the best for the initial Stock?

    Hector,
    You will use the templates in oInventoryGenEntry folder.
    The templates you will need are
    Documents.xlt
    Document_Lines.xlt
    BatchNumbers.xlt
    Documents template sample
    RecordKey...DocDate......... DocDueDate
    1.................20080106...... 20080106
    Document Lines template sample
    RecordKey....LineNum.. AccountCode....... ItemCode..... Price...... Quantity......WarehouseCode
    1.................. 0........ _SYS00000000xxx...... A1......... 100.00....... 20................. 01
    1.................. 1........ _SYS00000000xxx...... B2.......... 180.00...... 30................. 01
    Batch Numbers template sample
    RecordKey.... BaseLineNumber..... BatchNumber.... Quantity
    1.................... 0...................... 100..................10
    1.................... 0...................... 101..................10
    1.................... 1...................... 400..................15
    1.................... 1...................... 401..................10
    1.................... 1...................... 402...................5
    The link is between the BaseLineNumber from the Batch template and LineNum from the Document Lines template. Please try this and it shoud work.
    Best wishes
    Suda

  • 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

  • Post initial Stock of Handling Units

    Hi,
    How i could post initial stock to Handling units in storage location that isn't HU Manager.
    I tried 561 and 501 in Vlmove and Humo  but didn't work,
    In vlmove i have this Error "Dlv. type (dlv. catgry TP for mat. xxxxxx and BWART 561 ) cannot be determined".
    In Humo 561 doesn't appear, but is in omjj.
    thanks in advance.
    Mary

    Hi,
    My HU is a fixed container like a tank, i need put stock inside this HU, directly from other system.
    thanks
    Mary

  • Wrong entries in initial stock entries in 561

    Hi All,
    what is the best process if we want to return to vender after the wrong entries in initial stock entries by 561.
    Thanks,

    >
    zafina5 wrote:
    > Hi All,
    > what is the best process if we want to return to vender after the wrong entries in initial stock entries by 561.
    >
    > Thanks,
    Do cancellation of document in MIGO by cancel, against material document and then material document NO. and save will reverse the document created through 561.

  • Incorrect Initial Stock calc for Semi-finished products in SNP PBook

    Dear all,
    Situation is as follows:
    The Stock list on /SAPAPO/RRP3(Product View) matches the Stock in ECC (MMBE) perfectly. Also when we load the product in our SNP planning book, right click on the Stock on Hand and then Display Stock, it matches the RRP3 and the ECC stock.
    Still the actual Initial stock displayed in the Planning book Cell in the initial column and thereafter is different from what the actual sum of stocks should be. This quantity is huge (in millions!). There is no Receipts planned which can contribute to this!!!
    Is this a known bug in SAP? Can we rectify by running any programs?
    Note: Already tried CCR, OM17, everything looks fine (which actually is because RRP3 view matched ECC perfectly.)
    Kindly help.
    Regards,
    Rimjhim
    Edited by: TEAM BASIS on Dec 18, 2008 4:00 PM

    Hi ,
    I couldn't find any problem with the macro.
    One more observation:
    The UOM in ECC is KG (in transaction MMBE). The base UOM in APO is ZUN (customized Tonnes).
    The conversion in Prod Master is 100 ZUN=7484 KG
    If we change this conversion to 1 ZUN = 1 KG then in the planning book the Initial Stock start showing as OK.
    The random value shown earlier doesn't seem connected to the UOM conversion, it's just a very very high value. How can there be a connection between UOM conversion and the Initial Stock display.
    Any ideas?
    Regards,
    Rimjhim
    Edited by: TEAM BASIS on Dec 19, 2008 12:47 PM

  • Initial Stock Posting for Semi Finished Goods

    Dear Friends,
    I have a small doubt in Initial Stock Posting.
    Is Initial Stock Posting for Semifinished Goods (HALB)?
    Or Initial Stock Posting available only for Finished Products?
    Please answer this.
    Regards,
    Rajesh L

    Hi,
    MB1C + 561 can be used for all of your goods from which you want to keep stock. So, raw materials, SFGs, FGs can be uploaded based on your business requirement.
    Your material masters should be extended to the suitable organisational levels (plant, SLoc, WH), so suitable material master views should exist at proper organisational levels.
    Regards,
    Csaba

Maybe you are looking for