Posting logic for stock shortage

Hi there,
I m workiing in SAP R/3 ECC 6.0 version CO module.
We are trying to find a solution for posting logic for stock shortage. Regarding this SAP Note 362037 have also been referred.
We have purchased vide PO a certain item say ferro alloy 100 kgs. @ 5000 INR each (Clearing & Forwarding charges Rs.50000 credited) at which GR was made. Now at the time of bill passing of clearing & forwarding at a later date the amount passed was Rs. 20000 when the stock quantity of ferro alloy was only 40 kgs. The system adjusted the entire Rs. 30000 with the balance inventory available reducing the inventory cost instead of transferring to Price difference account the required proportionate amount.
Whether this can be rectified in the system.
Regards,
Divraj Agarwal
Edited by: Divraj Agarwal on Feb 22, 2010 12:32 PM

Hi,
Create a Formula variable with Replacement Path for Batch, and replace with Attribute and attribute is Date OF Manufacturing, so using this you get Date Of manufacture. And next create a Formula variable with Custome Exit and select Dimenstion ID = Date.
And write the following code to get Current day.
WHEN 'ZVCURDAY'.
      CLEAR: l_s_range.
      l_s_range-low = sy-datum.
      l_s_range-sign = 'I'.
      l_s_range-opt = 'EQ'.
      APPEND l_s_range TO e_t_range.
so by using you get current date. So create Formula and do Substraction, i.e. Curday-Dateof Manufacture (above Replcement variable), so you get number of days from Manufacturing.
Then you csan create conditions, i.e. <30 days, <60 days like that.
Thanks
Reddy

Similar Messages

  • Logic for stock aging report

    I am trying to create a stockaging report using 0IC_C03.
    I am see that the tables actually stores the qty recieved and issued of an article on a particular day/period.
    Can some one explain how it is being used in aging?
    How is it used to compute against the current SOH of article for aged QTY?
    Thanks
    Bye

    Hi,
    Create a Formula variable with Replacement Path for Batch, and replace with Attribute and attribute is Date OF Manufacturing, so using this you get Date Of manufacture. And next create a Formula variable with Custome Exit and select Dimenstion ID = Date.
    And write the following code to get Current day.
    WHEN 'ZVCURDAY'.
          CLEAR: l_s_range.
          l_s_range-low = sy-datum.
          l_s_range-sign = 'I'.
          l_s_range-opt = 'EQ'.
          APPEND l_s_range TO e_t_range.
    so by using you get current date. So create Formula and do Substraction, i.e. Curday-Dateof Manufacture (above Replcement variable), so you get number of days from Manufacturing.
    Then you csan create conditions, i.e. <30 days, <60 days like that.
    Thanks
    Reddy

  • Other solution during stock shortage when posting several invoice item?

    Hi Experts,
    Referring to Note 362037, posting an invoice with price variance to a material with moving average price , the stock quantity coverage is less than the posting quantity.
    The standard SAP system perform the stock shortage exam considering each posting item, not the whole quantity.
    And, according to the note, no solution is provided in the SAP standard system.
    In some cases, this may cause the material price extremely high and lead to misunderstandings.
    So, is there any solution to this VARIANCE POSTING?
    Example as follows:
    The following FI postings are generated:
                                Debit Credit
    Creditor                        2000
    Stock account   960                        for item 0001
    PRD account    40
    Stock account   960                         for item 0002
    PRD account    40
    However, you expected the following:
                                Debit Credit
    Creditor                         2000
    Stock account     960                          for item 0001
    PRD account      40
    Stock account     0                            for item 0002
    PRD account      1000

    Hi,
    Its not possible to post the 1000 to PRD account. You need to do GR for shortage quantity and balance the quantity. Thanking you.

  • Logic for carry forward of previous stock to current period stock.

    Hi Experts,
    Client is using already MC.9 for see the stock analysis report, however as per there requirement we are exploring BOM as well as fetching quantity from table level as well. in my report I am experiencing  difficulty to carry forward previous period closing stock quantity to current period stock quantiy, if there is no received for current period, however the same is happens in MC.9
    Could any one tell me what is the logic behind MC.9 which is do carry forward previous period closing  stock to current period stock quantity in report.
    As per the requirement I am using S031, S032,S033, however unable to get logic for carry forward the previous month stock quantity to current month.
    have a requirement of creating a report of showing material stock period wise for each plant in below mention format.
    Header 1
    Header 2
    Header 3
    Header 4
    LFGJA/LFMON
    ROH (MT)
    HALB (MT)
    FERT (MT)
    11.2013
    100.000
    121.000
    121.00
    12.2013
    50.000
    12.000
    123.00
    01.2014
    23.231
    .23.234
    45.342
    02.2014
    23.231
    34.094
    45.098
    03.2014
    34.098
    98.983
    00.000
    04.2014
    00.000
    69.093
    98.098
    05.2014
    00.000
    89.098
    00.000
    For Example Break up of ROH material plant wise in below mention format.
    LFGJA/LFMON
    WERKS
    MENGE (MT)
    11.2013
    P001
    30.000
    11.2013
    P002
    50.000
    11.2013
    P003
    20.00
    Thanks in advance,
    SKN

    Hi,
       The last period closing stock = current period opening stock. You may get the details from MBEWH and S032 tables. Refer the doc: Material Stock and Valuation History tables - how to read them
    Regards,
    AKPT

  • Display stock on posting date for a consignment stock

    Dear guru.
    I want to display the stock on posting date for a consignment stock (special stock indicator = "W" ) to display this stock and the linked movements  for a specific customer.
    MB5B donu2019t have the field customer in the selection view.
    What transaction can I use ?
    Thanks in advance.

    Hi,
    In MB5B in special stocks indicator you select W
    and select special stock
    You will get it
    BR
    Diwakar
    Edited by: diwakarnd deshpande on May 20, 2008 7:02 PM

  • Problem in BAPI for stock posting from quality inspection  to unrestricted usage

    Hi all,
    I am using BAPI_GOODSMVT_CREATE for  stock posting from quality inspection  to unrestricted usage Stock against quality inspection lot(not by MB1B) using mvt type 321.The material doc gets created by the BAPI,but actual stock posting is not taking place ie.the stock doesn’t get reflected in QA33/32 and QA11 also .Can any one suggest what must be wrong?The inputs given are as follows:
    GOODSMVT_HEADER:
    PSTNG_DATE =30/07/2014, DOC_DATE = 30/07/2014, REF_DOC_NO = INSP LOT NO.
    GOODSMVT_CODE:
    GM_CODE:  ‘04’ .
    GOODSMVT_ITEM:
    MATERIAL = MATERIAL NO
    PLANT = PLANTCODE
    STGE_LOC = ‘WIP’
    BATCH = BATCHNO
    MOVE_TYPE   = ‘321’
    ENTRY_QNT = 100
    ENTRY_UOM =  ‘EA’
    ORDERID =  Prd ord no.
    After executing this I used BAPI_TRANSACTION_COMMIT also. I am able to see the posted qty in MMBE,but it is not reflecting in QA11/33/32.
    Kindly help me.

    Hi Naveen,
    Thanks for the reply. Even after using FM QAVE_PROCESS_AUTO_UD,when i execute
    BAPI_GOODSMVT_CREATE, the same thing is happening.I am unable to see the stock deducted in QA33.
    Is there any input in the goods mvt bapi where we can provide inspection lot no since i believe that the goods mvt has to get connected with the inspection lot.

  • Stock posting in block stock after grn for source inspection

    Hi All,
    I have following scenario
    I am doing source inspection at vendor site i have maintained control key 0005 in material master & necessary certificate with certificate check required at GRN & UD stage
    i am creating a source inspection lot for a release po through t.code qi07 & then processing that lot before GRN
    Now when i am doing GRN for same PO it is giving me the following message  stage
    <b>A category ZC01(user sp. category) inspected certificate is required</b>
    Message no. QA312
    Diagnosis
    An inspected certificate must exist at the first goods receipt for a purchase order item.
    Procedure
    Check whether a suitable certificate exists for the purchase order and delivery, and create a certificate record with the status "Certificate checked and stored".
    If there is no certificate or no suitable certificate, this does not comply with the requirements in the material master record. If there is no inspection lot for this goods movement, the system posts the quantity to blocked stock or does not post the goods receipt.
    If you have created an inspection lot, the system marks the certificate check with the status "In lot". You must confirm the availability of an inspected certificate by the time you make the usage decision.
    after doing the GRN stock is being posted to block stock
    if i do not process the source inspection lot then the stock is posted to quality stock but this does fulfill the requirement of source inspection
    plz suggest soultion
    It's urgent
    Regards
    Ashutosh Shende
    9860681314

    Hello Ashutosh,
    In the material master you have defined certificate type with the customizing setting indicator for  'Enhanced Certificate Processing' active.
    If you set this indicator, extended certificate processing is active for
    this certificate type. You can then manage the inbox for quality        
    certificates independent of the goods receipt.                          
    The electronic inbox of certificates for the purchase order is only     
    possible if this indicator is set.                                                                               
    This means you have to create a certificate in QM (Transaction QC51),   
    before you can update your PO with cert. enclosed.  
    If you do not want the enhanced certificate processing you have change  
    the indicator into inactive.    
    Another problem known here is if you have activated the 05 Inspection type in the material master, that it is not activated in all plants relevant although QM in Procurement is set in all plants.                                        
    I hope that this resolves the described issue.
    Regards,
    Isabelle

  • Able to post Invoice for Blocked stock from quality

    Hi
    I did GR for material against PO for 50 pcs, During QA32 stock posting i posted 30 pcs to Unres. stock(101) and 20 pieces to blocked stock(350) storage locations.
    Now when I am trying to  create  MIRO invoice verification, I am getting all the 50 pcs and available to post also for the entire quantity. How the system is allowing me to carryout Invoice verification for the blocked stock 20 pcs also ???
    It should allow me to process the 30 pcs only which are in unres. stock .
    How do I block the blocked stock from getting invoiced ?
    Please help
    Thanks
    Samuel

    Dear Jurgen
    Thanks for the reply,  master does contain the control key, I also have the inpsection set_up for the materials. During PO in delivery tab at item level I am getting stock type as Quality Inspection. During GR, lot is getting generated and we are able to Stock post it using QA11. Every thing works fine till the stock is there in Quality till the run of Txn QA11. But once stock is out of quality we are having the issue for the stock posted to blocked, I can understand MIRO picking up Unrestricted Quantity of the Lot but why it is also picking the quantity posted to blocked stock as we do not want to pay the vendor for this stock quanitity till we clear it.
    Is there any normal config setting to stop it form geting picked during MIRO.
    Thanks

  • I need to add the logic for posting key,

    I need to add the logic for posting key, if posting key = 50 then amount is credit (add negative sign in amount field).
    I creadted this scenario in mapping, We wanted to make sure that the negative sign was placed in the amount field if the posting key was = 50.  So it seems we are good.  We will just need to test.
    How i can test this case?
    Please do needful.
    Thanks in advance.

    Hi,
    You need to use an IfElse node function in your mapping in which the input should be the posting key from the source structure.
    You need to check in the IfElse statement whether the posting key=50, if it is true, then use concat node function to concat the negative sign("-") along with the original value to be passed to the amount field on the target side. Else, if the condition is false(i.e posting key!=50), then simply pass the value to the amount field as it is without adding the negative sign.
    After the mapping is done, go to the test tab and then insert the values in the source fields and then execute from the lower left button showing start transformation.  You need to test with the value of posting key=50 once and with the value not equal to 50 once.In the first case, the output amount field should have the negative sign, which should not be present in the second case.
    You will find your target structure in the righter half of your screen. That's it mate
    Thanks
    Biswajit

  • No goods issue can be posted for Stock Trasnport Order

    Hi,
    I am in MB1B transaction, 35 movmt type (BP01 plant) and want to psot the stock to stock in transit to another plant (BP02). STO was created in BP02 plant and Order DS was in BP01 plant.
    Now, i am getting error that no goods issue can be posted for Stock Transport Order.

    Hi,
    It is not creating a delivery thru VL10b. What u meant was create delivery and then do PGI. It will put that stock in transit.Isn't it?? But that is not happening.
    Also, MIGO doesn't have movement type 351 E.
    Please provide further queries.
    Regards,
    Thomas

  • OBYC : Offsetting entry for stock posting (GBB) , VAX/ VAY

    Dear Sapients,
    Could you please tell me the difference of the account grouping VAX and VAY for GBB(Offsetting entry for stock posting)
    SAP helps says:
    VAX: for goods issues for sales orders without
    account assignment object (the account is not a cost element)
    VAY:for goods issues for sales orders with
    account assignment object (account is a cost element)
    But truly i still did not understand, could you pls explaing.
    In my current scenario system asked me to maintain an entry for VAY, when we are trying to reverse a delivery(inter company) created for PO.
    Thanks and Regards
    Ravi

    Dear Ravikanth
    Account grouping code <b>VAX</b> is relevant when the sales order item does <b>not</b> carry costs and revenues. If the sales order item carries costs and revenues, account grouping code <b>VAY</b> is used.
    Thanks
    G. Lakshmipathi

  • Offsetting entry for stock posting (GBB)

    Hi
    I want to know the practical application( where this comes) of posting entry for 'Offsetting entry for stock posting (GBB)' It will be appreciable if explained with example
    regards
    B Shar

    Following are the possible scenarios;
    o   Offsetting entry for stock posting (GBB)
        Offsetting entries for stock postings are used in Inventory
        Management. They are dependent on the account grouping to which each
        movement type is assigned. The following account groupings are
        defined in the standard system:
        -   AUA:     for order settlement
        -   AUF:     for goods receipts for orders (without account
            assignment)
                 and for order settlement if AUA is not maintained
        -   AUI:     Subsequent adjustment of actual price from cost center
            directly
                 to material (with account assignment)
        -   BSA:     for initial entry of stock balances
        -   INV:     for expenditure/income from inventory differences
        -   VAX:     for goods issues for sales orders without
                 account assignment object (the account is not a cost
            element)
        -   VAY:     for goods issues for sales orders with
                 account assignment object (account is a cost element)
        -   VBO:     for consumption from stock of material provided to
            vendor
        -   VBR:     for internal goods issues (for example, for cost
            center)
        -   VKA:     for sales order account assignment
                 (for example, for individual purchase order)
    -   VKP:     for project account assignment (for example, for
        individual PO)
    -   VNG:     for scrapping/destruction
    -   VQP:     for sample withdrawals without account assignment
    -   VQY:     for sample withdrawals with account assignment
    -   ZOB:     for goods receipts without purchase orders (mvt type
        501)
    -   ZOF:     for goods receipts without production orders
             (mvt types 521 and 531)

  • Problem in entering stock as well as closing posting period for MMRs

    Dear All,
    Whenever I do goods receipt (tcode: MB1C, movement type: 561)  and enter, it gives the error "Posting only possible in 2007/05 and 2007/04 in CoCd XXXX. I know I need to close posting periods for MMRs. But the while doing that using MMPV for 2007/06 and CoCd XXXX, it comes to a screen stating following:
    <b>Client YYY
    Period entered (month/year) :06 2007
    Incorrect period in control rec of CoCd XXXX; no conversion The current period of record (month/year) is 05 2007</b>
    Alternatively, I try to close period thru OMSY and change period on "Pe" column, a window pops up saying "The CoCd XXXX no longer be initialised"
    Can anyone help on this? I'm stuck and can't go further. Reward points assured.

    Hi
    It is very clear from the meassage that the current period is 05/2007.
    You have to close this.In the screen you have to enter 05 2007.Then it will close 5 th period and opens 6th period.then close 6th period so that it open the current period 7 (If the fisical year variant is calander year).
    Regards
    Ramakrishna

  • Strategy for Stock Posting (Upload)

    Hello Experts,
    One of the clients business is having around 45000 materials belonging to spares. They have 1 plant and 20-30 storage locations.
    Out of the total storage locations, around 15 are spares related.
      So in this case, what should be the best strategy for stock upload:
    1)One material document having 999 materials-1 plant - 15 storage locations???
    OR
    2)One material document having 999 materials-1 plant - 1 storage location???
    OR
    What else could be the best strategy. Can anyone suggest?
    Regards
    Mahesh

    why do you need to have 999 items in a document?
    having just one item per document makes migration much easier, maybe not faster, and it certainly creates much more documents. But believe me, 2 days working with the system and you have already more material documents than you created with the initial load, why trying to save ressources then with migration.
    Espcially if you have to cancel something, e.g. if the price was wrong as you loaded the stock, then it is easier to cancel the document when there is only 1 item.

  • MRRL - Automatic posting for stock transfer PO

    I want to use MRRL for stock transfer.
    Please let me know the confirm.
    My objective is to reduce the manual IV for stock tranfers.
    Regards
    Pranav

    then why do you need invoice for intra company stock transfer ( Stock transfer between two plants with in same company code).
    Invoice is not required in this process.Invoice applicable only Intercompany sto .

Maybe you are looking for