Auto stock posting based on Calculation

Hello to all,
Client receive a raw material, Quality checks impurity level. 2% is acceptable impurity. If impurity is within 2% stock posting is done for total GRN qty.
If impurity is more than 12%, lot is rejected and entire qty send back to vendor.
Now my scenario is if QC records impurity as example 7% the they
calculate 7-2=5% here 2 is earlier mentioned allowable/acceptable impurity.
Then they have to deduct 5% from total qty and post it to
Unrestricted stock. Client is asking for this automatic calculation and auto stock posting to Unrestricted stock based on deduction calculation.
Can any one suggest a solution for this.
Here I am giving an example.
Impurity= 7%
Impurity above allowance= 7-2=5%
GRN qty=1000 kg
Calculation for deduction = [1000- (1000*(5/100) )]= 950 kg = qty needs to be posted to unrestricted stock.
Client needs this calculation to happen automatic and this qty
should be automatically posted to unrestricted stock. He is not willing to calculate this and put qty manaully.
Is there any solution available.
Thx in advance

Did you read the help on the enhancement?  This is from 6.0.
If you use this, you must do the posting via posting line VMENGE08 and only the posting from this line will be affected by the User exit.
Description
     The customer exit enables the control of a separate quantity posting in the usage decision.
     A prerequisite for activating the exit function is that you use the quantity postings to other stock on the stock overview screen of the usage decision transactions.
     To do this, you must activate the fields for quantity bookings to other stock for the inspection type field using the transaction SFAC (Customer field selection). After they are activated, a new quantity appears in the stock overview for the usage decision.
     In addition, in view TQ07M  you need to maintain the movement types for field RQEVA_VMENGE08 .
     The exit permits you to influence the quantity posting using structure QBEFU. Here, additional data can be determined and returned.
     The posting is then carried out according to the changed data as part of the normal usage decision postings.
Edited by: Craig Snyder on Apr 1, 2008 9:29 PM

Similar Messages

  • Based upon UD Code Inspection lot stock Posting will be done How?

    QM Experts,
    While doing Quality confirmation at UD stock posting I have the following Reqirements.
    1. Accepted:  If UD Accepted then disable all field except Unrestricted Use.
    2. Rejected: If UD Rejected then disable the Unrestricted use and enable Scrap, Blocked and Return Delivery.
    3. Partially Accepted: All the Posting field can be enabled.
    This is to ensure that no manual error occur while Stock posting.
    I suggested to use User Exit QEVA0001 but ABAPer can't able to Break Point the User Exit. Is there any other solution to achieve this req.?. Will be greatful.
    Regards,
    Ramakrishnan.A

    Dear Ramakrishna,
    As NehSap said, its better to stick to the business...
    This is to ensure that no manual error occur while Stock posting.
    Even if there are manual errors, you can correct and Re-post the stock later.
    I suggest you to Use QA32 or customize new report, which will show you the UD, and stock.
    so that quality department can check this report daily, they will check their Usage decisions and Stock postings.
    if they found any Manual error, they can correct it
    I hope, this helps you.
    Regards,
    Amol

  • A/P invoice and stock posting

    Hi
    I have some issues with understanding the following:
    I have received some item without having issued a PO for them. For these items, master data exists .
    As common practice with a lot of suppliers, there is no Invoice attached to the shipping, only a delivery note.
    If I post the items to stock using 'Goods receipt' and use A/P invoice some days after when the invoice arrives, I have doubled the received quantity by posting the items to the stock twice.
    What is the solution to have the items posted to stock immediately for further usage and adding the A/P invoice later but without stock posting?
    Thanks
    Franz

    Hi Franz,
    When an AP Invoice is based on a Goods Receipt PO there will be no double posting, not for Warehouse quantites or in the accounting.
    An AP Invoice that is based on a Goods Receipt PO where nothing was changed between the Goods Receipt and the Invoice the AP Invoice will NOT post to stock. The stock posting was already done on the Goods Receipt.
    Most documents can be cancelled, either by basing a reverse documents or by cancelling. For every each one of them the quantities and accounts postings follow the logic of continuous stock.
    Goods Receipt PO -> Reversed by a Goods Return
    AP Invoice -> Reversed by an AP Credit Note.
    Please note that there are NO double entries anywhere when a document is based on another.
    I hope it helps.
    Jesper

  • Urgent stock posting

    Hello guys,
    While i was trying to post material in mb1c.
    I am getting error " No Stock Posting Possible For This Material"
    The materailbelongs to material type whose stocks are not managed in quantity based.
    Even i have tried to uncheck the quantity updation and also value updation but couldn't solve my problem.
    I appreciate for your response.
    Thanks your response.
    Regards,
    venu prasad..,

    Dear Venuprasad
    This activity needs to be done
    IMGLogistics generalmaterial masterbasic settingMaterial types--Define attributes of material types
    position for material type Ex : FERT
    select FERT , select quantity and value updation
    plant valuation area =plant
    against the valuation area check boxes for quantity and value
    save
    this will solve the roblem
    regards
    sim

  • 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

  • Movement Type Change From 321 to Some other In Stock Posting (Insp Type 05)

    Hi,
        While doing the stock Posting From quality to Unrest - Automatic 321 Movment type is happening
        But my client neads to identify how many qty from custmer return is passed to unrestricted from       
        quality.
       i have problem in identify since 01 and 04 and also 05 all are having the same mvt since it is automatic
    Can it be possible to chnage the mvt for the particular Inspection type 05.
    kindly give me is there any way to solve this issue.
    Regards
    jai

    Dear jaikumar
    No need of changing movement type for the same. You have too many options to get this fugure
    You can use Tcode se16, se16n and in the table QALS you will be able to know the quantity posted to unrestricted by selecting 05 inspection and from to date in input for the table view
    else go to the standard report . Tcode MCXC, MCXI you will get the report based on inspection type and period
    Regards
    gajesh

  • System shud restrict stock posting of 04 inspection lot

    Dear ALL,
    Pain Area - whenevr Process order get release 03 inporcess inspection lot generates and after Process order get confrimed
    O4 inspection lot generates , Evry time we use to process 04 Inpsection lot and then stock posted from Quality to Unrestrcted and finally , urestricted stock goes to market . NOw 03 inpsection lot remains in Created status , system not restriced for 04 activity i.e stock posting . So I want to restrict stock posting of 04 inspection lot  if 03 inpsection lot doesnt have UD status .
    please suggest .
    Regards,
    Prerna Verma

    Do you want to put a hard error when UD is taken for O4 lots, if the corresponsding SF lot is not released? This will stop users releasing the 04 lots and personally I am not in favor of writing a piece of code in User exit at UD and stiop the release of a Finished Batch.
    I have worked on similar requirement where users used to check manually the SF batch - UD prior to release a Finished Lot. to reduce the manual work and data transpose errors, we have used a calculated char. SF batch released? and assigned it in the finished product inspection paln.
    We copied the standard FM - QEFC_FORMULA_CALC_EXAMPLE and written a logic to look the consumed SF batch is released or not .The Function Module is assigned to a Calculated Characteristic u2013 the user will then be able to Calculate the characteristic during Results Recording of a batch of Finished Product to determine the Release Status of the issued batch of Semi-Finished material, as opposed to having to look it up manually.  We looked at the Q-score to decide a SF batch is released , rejected or UD not taken. The Function Module used the name of the Master Inspection Characteristic (MIC) and the Material Type of the Inspection Lot to determine the Inspection Lot Q-Score to return.
    With this set up you will not issue a hard error at the time of UD for Finsihed batch at the same time users will know the SF batch status when the results were recorded for Finished batch.
    If your requirement is a Hard error, simply go for the user exit suggested and write a logic to look for the Semi Finished Batch consumed.
    Hope it helps.
    Thanks,
    Ram

  • QM-result recording after doing usage dcision and stock posting.

    HI gurus,
    My client is steel manufacturing industry.The requirement of client is that, after doing usage decision and stock posting they want to do result recording.Thy want it like this because in case of urgency they pass the material and afterward they do the result recording.Is such a scenario is possible in standard sap.If yes pls. provide me the solution.
    Thanks in advance.

    I wouls suggest you look at Jan's suggestion.  Setting everything as LT characteristics is
    1) not a good quality practice
    2) you would still have to manually to the UD I believe, auto UD won't work.  So if you have to manually process the lot anyway, you may as well just make the sotck posting and leave the lot open for results recording.
    Craig

  • Stock posting for recurring

    Hi Group,
    At the screen of Usage decision I selects the "accept" UD code, then jump on to the Stock posting screen where system is not showing any quantity in the field for Sample posting. And not calculating the sample while i press on the Proposal button.
    Pls can any one help me how to resolve it.
    Regards,
    Shyamal

    Arun,
              I'm not clear.Are you able to see inspection lot stock tab in UD.If not please check the indicator to insopection lot stock at creation.
    The details available are  basically Insp lot qty,sample size,qty posted and to be posted.I'm not confident if i answered your doubts but pls get back.Thanks
    naik

  • Error in stock posting in UD

    hiii,
    Error in Record Usage Decision (inspection lot stock tab)showing
    "stock posting for inspection lot not possible"
    lot is in released status
    thanks
    Edited by: aks on Jan 2, 2009 1:36 AM

    For you to be able to post the stock the status of the lot should be SPRQ ( Quantity posting required ), only then would you be able to post the lot to URS and the lot status would change to SPCO ( Stock posting completed ).
    For a complete sequence of lot status refer below:
    UD   Usage decision has been made
    PASG Plan/specification assigned
    CCTD Insp. characteristics created
    CALC Sample calculated
    RREC Results confirmed
    ICST Short-term insp. completed
    ICCO Inspection close completed
    SPRQ Quantity posting required
    SPCO Stock posting completed
    STUP Statistics updated

  • Cancellation of UD and re recording the results before stock posting

    Hello Friends,
    I am working with Handling unit functionality.
    Based on the goods receipt done against the production order system generated the inspection lot. I have done the result recording and then I did the usage decision and saved. I have not yet done the stock posting.
    Now the requirement is I want to change my results in result recording. System is not allowing me to change the results as the message is coming Usage decision is done. How can I cancel or reverse the usage decision so that I can do the result recording. Kindly advise?
    Note: I have done the UD but not yet done the stock posting.
    Regards,
    Narendra Bora

    33924 is the original note.
    Use caution with this, it is not supported by SAP and is not recommended to normally use this. 
    Typically, if you need to correct results, it is recommended that existing results be left and the UD made.  Then create a manual inspection lot for the material and enter in the corrected values.  Make the UD on that lot.  Than manually make any necessary inventory moves.
    FF

  • Automatic stock posting

    Dear All,
    in qs 53 i have fixed setting for selected set code A as posting proposal UD to unrestriced use stock. but when i put this code to a lot for ud and then save, stock does't go to unrestricted stock and i have to post it manually. now please guide me where is lacking.

    Hi,
    By the sounds of it you are approving the lot manually, therefore you need to click on the posting proposal button in order for the stock to be posted to unrestricted. If you are using auto UD then the system will take UD for you as well as do the stock posting according to the proposal setup within the selected sets. 
    Regards,
    Roderick

  • Inspected stock posting to multiple storage location without batch

    Hi,
    At the time of Usage Decision, I want to post the inspected stock to multiple storage location i.e., Rejected Stock to Scrap Storage Location, Qualified Stock to Unrestricted Use Storage Location.
    Quick response will be appreciated.
    Anandkumar KS

    The scrap line has no storage location since that stock is typically written off and scrap cost center is defined in configuration.
    A possible alternative is to set up VMENGE08 and VMENGE09 with the same material movements you want to use.  You obviously aren't using the 553 movement type as that writes off the material.  That could give you two lines to use for your scraping.  I can't remember if these stock posting lines give you the storage location option or not and I don't have a sandbox available to test today.  If you need to post more then two grades in one inspection lot, you'll have to do the first two postings, save the UD, then come back in and do a second posting for the next two grades.
    Read the configuration help file you'll find in confg for "Define Inventory Postings" under the QM config.
    You can also change the displayed names of the stock posting lines.  That's explained in the config file as well.
    Craig

  • Stock report based on stock type with a storage location

    Is there a standard SAP report that will give me the stock information based on the storage location and stock type (unrestricted, QI, blocked, etc?)...for instance if I want to find all QI stock in a certain plant/storage location?  I want it to show a list of materials and their quantities, not on an individual basis as in MMBE.
    Thanks!

    Thanks again for your response.  I've used your last mentioned method before but with MMBE you have to enter a material number.  We want a report of all materials in a particular stock type.
    I was able to achieve this by goign to MB52 and setting up a filter on a layout.  My users can now select that filter on the selection screen to get the desired result.
    Thanks again for you attempts to help!

  • Stock Posting does not tally with Journal Entry

    Hi Mentors,
    I currently trying to see the cause of a particular issue with the JE being created by Stock Posting.
    After scavenging the forums, I came across SAP Note 1525960.
    Symptom
    On creating Inventory Posting in locked Posting Period, system gives error message 'Period is
    locked for new data [Message 131-107]'. Keep the window open, go to Posting Periods to
    change the Period Status to 'Unlocked', and then click on 'Reconcile' again. Inventory Posting
    is successfully added.
    The Transaction Value in the Inventory Audit Report is correct. However the Debit / Credit
    amounts in the Journal Entry of Inventory Posting are doubled.
    The note was created in 2010, filed under SAP Business One 2007. I tried to replicate it, and it holds true for our system, which is currently 2004B.
    When I tried to explain the SAP note to our accountant, she said that she did not encounter the error message, since she was the one controlling the period.
    So my question is, if there any other factors that could influence the change in the posting of the JE such that the variance being posted in the JE is more than the actual amount(as verified against "Inventory Posting List" and OINM)? 
    Some facts about our Finance department's practices.
    They enter the "Stock Posting" a month later.
    E.G. Stock Posting for Oct2011 Stock Variance
    System Date: Nov 16, 2011
    Stock Posting - Posting Date: Oct 31, 2011
    Thanks in advance!
    Sean

    Hi Sir Gordon,
    I already checked using your suggested query:
    SELECT * from oinm
    WHERE NegInvAdjs != 0
    found in this [thread|Re: Diffe Amount posting in Same document].
    Unfortunately, 2004B does not have the column "NegInvAdjs". The query failed to execute.
    Thank you for the guidance,
    Sean

Maybe you are looking for