Safety Stock Value

Hi all,
I am using the BAPI - '<b>BAPI_PBSRVAPS_GETDETAIL2</b>' to get <b>Safety</b> <b>Stock</b> Value. I am passing the key figure as '<b>SAFTY</b>'. But I am getting an error as 'An error occurred in data selection'.
What might be the reason for this?
Thanks and Regards.
Selva
Edited by: Wilian Segatto on Jan 20, 2010 2:59 PM

Create a new KF for Safety Stock Stock as a permanent object and add it in the planning area administration
Remember to Change the macros associated with this Key Figutre. There is a macro that does the macro calcultion for Safety Stock
There would be other macros as well which use Safety as a basis

Similar Messages

  • I want to update bstrf-(rounding value )in MRP 1 and  eisbe (safety stock) value in mrp2

    i am a beginner and i want to update these fields in mm02 transaction and i am trying to use
    md_mrp_level_change_data , function module can some one please help me with the code or procedure

    Yes, it should update the fields. You need to pass values to parameters " PLANTDATA" and " "PLANTDATAX".Have a look at following sample code:
    data mat type mara-matnr VALUE '000000009900000000'.
    data:header TYPE BAPIMATHEAD,fore TYPE BAPI_MPOP_GA,
           forecast TYPE BAPI_MPOP,forecastx TYPE BAPI_MPOPX,return TYPE TABLE OF BAPIRET2 WITH HEADER LINE,msg TYPE TABLE OF BAPI_MATRETURN2,
           plant type BAPI_MARC,plnt type BAPI_MARC_GA,plantx type BAPI_MARCX.
    CALL FUNCTION 'BAPI_MATERIAL_GETALL'
       EXPORTING
         material                         = mat
    *   COMPANYCODE                      =
    *   VALUATIONAREA                    =
    *   VALUATIONTYPE                    =
        PLANT                            = 'XYZ'
    *   STORAGELOCATION                  =
    *   SALESORGANISATION                =
    *   DISTRIBUTIONCHANNEL              =
    *   WAREHOUSENUMBER                  =
    *   STORAGETYPE                      =
    *   LIFOVALUATIONLEVEL               =
    *   MATERIAL_EVG                     =
    *   KZRFB_ALL                        =
      IMPORTING
    *   CLIENTDATA                       =
        PLANTDATA                        = plnt
    *   FORECASTPARAMETERS               = fore
    *   PLANNINGDATA                     = plant
    *   STORAGELOCATIONDATA              =
    *   VALUATIONDATA                    =
    *   WAREHOUSENUMBERDATA              =
    *   SALESDATA                        =
    *   STORAGETYPEDATA                  =
    *   PRODUCTIONRESOURCETOOLDATA       =
    *   LIFOVALUATIONDATA                =
      TABLES
    *   MATERIALDESCRIPTION              =
    *   UNITSOFMEASURE                   =
    *   INTERNATIONARTICLENUMBERS        =
    *   MATERIALTEXT                     =
    *   TAXCLASSIFICATIONS               =
    *   EXTENSIONOUT                     =
        RETURN                           = return
    MOVE-CORRESPONDING plnt to plant.
    header-material = mat.
    plant-SAFETY_STK = 2.
    plantx-plant = plant-plant.
    plantx-SAFETY_STK = 'X'.
    header-mrp_VIEW = 'X'.
    CLEAR:return[],return.
    CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
       EXPORTING
         headdata                   = header
    *   CLIENTDATA                 =
    *   CLIENTDATAX                =
        PLANTDATA                  = plant
        PLANTDATAX                 = plantx
    *   FORECASTPARAMETERS         = forecast
    *   FORECASTPARAMETERSX        = forecastx
    *   PLANNINGDATA               =
    *   PLANNINGDATAX              =
    *   STORAGELOCATIONDATA        =
    *   STORAGELOCATIONDATAX       =
    *   VALUATIONDATA              =
    *   VALUATIONDATAX             =
    *   WAREHOUSENUMBERDATA        =
    *   WAREHOUSENUMBERDATAX       =
    *   SALESDATA                  =
    *   SALESDATAX                 =
    *   STORAGETYPEDATA            =
    *   STORAGETYPEDATAX           =
    *   FLAG_ONLINE                = ' '
    *   FLAG_CAD_CALL              = ' '
    *   NO_DEQUEUE                 = ' '
    *   NO_ROLLBACK_WORK           = ' '
      IMPORTING
        RETURN                     = return
      TABLES
    *   MATERIALDESCRIPTION        =
    *   UNITSOFMEASURE             =
    *   UNITSOFMEASUREX            =
    *   INTERNATIONALARTNOS        =
    *   MATERIALLONGTEXT           =
    *   TAXCLASSIFICATIONS         =
        RETURNMESSAGES             = msg
    *   PRTDATA                    =
    *   PRTDATAX                   =
    *   EXTENSIONIN                =
    *   EXTENSIONINX               =
    Also check following link
    http://scn.sap.com/thread/3366978 
    Regards

  • Dynamic Safety Stock - Custom logic

    Hi,
    Are there any exits / enhancements where we can build customer specific logic to periodically update Safety Stock values in the Material Master (MRP Area)?
    Thanks.
    Raj

    Hi,
    Thanks for your response.
    We want to maintain a Minimum Stock Level at various Storage Locations periodically. However the value is computed based on certain historical values (and not mere consumption). There is an industry logic which will compute this figure.
    We need to find a solution to compute this figure as per logic and use it in MRP for planning along with other requirements (such as Reservations, Customer Orders, Forecast etc.,). Since the count of parts and associated historical values are quite high, computing this offline is tedious.
    Is there a better way to address this without Z - Devpt.?
    I can provide any other info if reqd.
    Thanks.
    Raj

  • Issue with -ve safety stock not allowing items of smaller demand to be isue

    We have a material with  a safety stock value of 300 with only 119 available in inventory.  Looking at MD04 the available qty immediately goes negative (-181). We have requirement of 30 but was prevented by the system from ussing the material - no iventory available message.  The workaround, which is not acceptable, was to reduice the safety stock to zero, create the delivery and then re-instate the safety stock level back to 300.
    So the issue is that  material could not be issued to PrdOrds.  Is there a possibilty that we have some missing config / master data settings that are preventing the issuing of material when safety stock is factored in and available quantity is less than zero?

    From planning perspective, there are two options available for your scenario.
    You may try if the dynamic safety stock works for you. You may have to configure the minimum, maximum  and target stock levels. The system calculates the average daily requirements of the material and determines the proposals.
    If your business process demands only static ss, you can configure the % share of ss that can be used for smaller requirements. Check the config node Production >> MRP >> Planning >> MRP calculation >> Stocks >> Define SS availability. This way the smaller requirements would be considered for use from SS by planning. You will have to define the % share of SS that can be used by planning based on MRP groups.
    Edited by: Arun.CBE on Feb 17, 2012 9:25 AM

  • Suppression of Re-Order Point Safety Stock Exception Messages

    Hi There!
    Hope someone can help!?
    I need to be able to suppress MRP Exception Message 96 - Qty Under Safety Stock but for PD Only.
    Is this possible?
    Cheers,
    Karl

    Hi There!
    We have lots of Raw materials controlled by MRP Type PD, which have Safety Stock Value.
    However, quite often although the actual stock is lower than the Safety stock Planners have lots of messages (96 - Below safety stocks). However, although Purchase order reciepts may be late, there isn't actually a problem. As When the PO Reciepts actually happen there is enough stock to satisfy actual demand.
    We would like to put many of these Raw materials on Re-Order Point Planning, and manage. But we would like to ignore the (96 - Below Safety Stock) for Normal Items.
    Hence, Planners have exception messages for REAL Priorities.
    Hope this explains all!
    Cheers,
    Karl

  • Max stock level as safety stock from material master while running SNP Heuristic

    Hi Experts,
    Our user wants to consider max stock level as safety stock from material master while running SNP Heuristic, not the actual safety stock.
    Is there any possibility for this setup?
    --Kishore

    Hi Kishore,
    With the given details I suggest that the user can maintain the max stock level values directly in safety stock field of the material master for all materials to be planned by SNP heuristic (keeping the max stock level field blank). Then this safety stock field (which has actually the max stock level values) will update the safety stock values in APO product master and in turn can be considered for SNP heuristic.
    Note: The max stock level field in APO product master is used by SNP heuristic only when the target stock level method is maintained as 4, 5 or 6. Since your requirement is to use max stock level as safety stock, so it does not look like that you will be using these target stock level methods or the max stock level field in R/3 and APO. So, this can be left as blank in both R/3 and APO.
    Please let me know if this helps.
    Regards,
    Umesh

  • Forecast execution is resetting safety stock

    I have MRP set up for CBP (VV MRP Type). I maintain a static safety stock value. When I run my forecast, without changing the forecast model or any other forecast values, the system resets the safety stock to zero. I'm struggling to figure out what is causing this. Just a stab in the dark, but can the 'reset automatically' flag have something to do with this behavior?
    Thanks, Vlad

    Hi,
    Please check the below link...
    http://www.sapfans.com/forums/viewtopic.php?f=6&t=346330
    Try to explore on service level field which is in the material master MRP2 view.
    Hope it may help you...
    Kuber

  • ASCP and Safety Stock Pegging

    Hi,
    in our ASCP plan, currently we have items with Safety Stock values manually inserted valid over all planning horizon.
    Therefore all the safety stock is NON-TRANSIENT.
    Actually we have Priority Based pegging with:
    MSC: Include Safety Stocks in Priority based Pegging: YES.
    What is appening is that ASCP peg On Hand quantities to FORECAST DEMAND, then pegs other supply type to SAFETY STOCK Demand.
    I would like ASCP to peg OH to Safety Stock Demand (DUE on the plan start date) before Forecast demand (due in the future).
    Someone knows how to obtain this "feature"?
    Thanks in advance.
    Giacomo

    Giacomo,
    I'll give you a few pointers, but this may be difficult to achieve. Try this as a test.
    I assume you have a constrained ASCP plan. This question wouldn't be as relevant in an unconstrained plan because the demands would just be calculated and priority pegging isn't that useful. .Is that correct, you have a constrained plan?
    The key point is that you mentioned is that you have NON-TRANSIENT safety stocks. This means that you are setting a value due today for 100 units and at the end of the plan, you still want to have 100 units of safety stock planned.
    ASCP priority pegging logic has these rules:
    1. Any supply quantity that pegs to NON-TRANSIENT safety stock CANNOT be used at a future date to peg to real demands. [It's not going to happen]
    2. Any Supply quantity that pegs to transient safety stock CAN be used at a future date (when the corresponding dip in safety stock occurs) to meet demands. [This means that it can release the supply and re-peg to a future demand].
    Independent Demands have a seeded demand priority by default. The first two below are set by a profile option, safety stock is always the lowest priority ( a number something like 99999 where the higher value is lower priority)
    1. Sales Order = 10,000*
    2. Forecast = 100,000*
    3. Safety Stock = 999,999 (not sure of this internal value)
    Set by a profile with a name like msc: default sales order priority
    For priority pegging setup instructions, please see the ascp user guide. The basics would be the use of two profiles mso: demand window size and mso supply window size. This determines how ascp will select and sort your supplies and demands for pegging. It starts at the first demand date or supply date and selects that many future days of demand and supply to sort and then peg.
    You also setup a priority rule that determines how ascp calculates priorities for pegging. To accomplish what you want to do, you would have a rule like
    1. MDS & Sales Order priority
    2. Schedule Date
    This is a commonly used example. The pegging process will the select the number of days you have chosen and sort the demands based on their prioirty.
    Sales orders are more important (to you) than safety stocks, but not forecasts. You want the safety stock to peg the on hand, not a future forecast. This can only happen because you have mso: demand window size set to a number of days where pegging sees the future demand in the same sort. I haven't seen this requirement (SS higher priority than forecast), so you'll need to test my suggestion.
    Set the value of MSC: Default forecast priority = A huge number (higher than 999999).
    The intent is to make the demand priority the SAME as a safety stock demand. In this case, with the priority rule I suggested, the schedule date will determine the pegging order.
    I think this will get you close. You can view the internal proirity calculated by ASCP for the independent demand by selecting that order in the pegging details and then rightclicking to select the properties. The pegging details wil show you the priority value that was used.
    Hope this helps.
    Kevin
    www.inspirage.com

  • Rounding Value in Safety stock

    Hi All,
    Can anybody tell me about rounding value in Safety stock calculation.
    e.g. If safety stock is 1.710 then system should round it up to 2.0. what are the settings/customization requried to do so.
    Waiting for your earliest response.
    Thanks,
    Ambarish.

    Hi Edgar,
    The requirement is...When safety stock is calculated then in material master MRP2 view it should round off the value automatically.
    e.g.
    Safety Stock = Factor R* sq root (RLT/7 * MAD) where RLT = 7/6*(Pur Processing time + GR processing Time) + Planned delivery time.
    So the value of safetystock comes in decimal/fraction and the requirement is it should round off to next level.
    if value = 1.710 then system/logic should round off to 2.0.
    MRP type = VZ
    Thanks & Regards,
    Ambarish

  • Calculation of Safety Stock and Reorder Point under Forecast Model T

    Hi Gurus!
    Happy Holiday!
    I would like to ask for your assistance on how the the safety stock and reorder point was calculated with the following values available. I would really appreciate it if you could give me details on the calculation.
    Below are the values:
    Basic data
    Forecast date        01.12.2009        Unit                  CTN
    Forecast model       T                 Service level         0.0
    Period indicator     M                 Paramtr profile
    Control data
    Initialization                                Tracking limit        4.000
    Model selection      A                 Procedure selection   2
    Parameter optimizatio                Optimization level    F
    Alpha factor         0,10               Beta factor           0,10
    Gamma factor       0,00              Delta factor          0,30
    Basic value           5.464-           Trend value          5.603-
    MAD                      4.758            Error total              4.722
    Safety stock         1                   Reorder pnt.          1
    No. of values
    Consumption           6                Forecast periods       1
    Initial. periods      0                Fixed periods          0
    Periods per season   12
    Historical data
    Period                Original     Corrected value
    11.2009                3.000              3.000
    10.2009                0.000              0.000
    09.2009                0.000              0.000
    08.2009                9.000              9.000
    07.2009               21.000             21.000
    06.2009               20.300             20.300
    Forecast results
    Period                Original     Corrected value
    12.2009                0.000              0.000
    Appreciate your assistance!
    Thank you and Happy Holidays!
    Ji

    Sweth, you are asking for consulting, and in my opinion it is way beyond what can or should be reasonable to achieve in such a forum. You are asking complex questions, that most probable have more than one possible answer.
    I suggest that you get on-site help from a knowledgeable and experienced consultant. These are crucial business issues, and should be dealt seriously.

  • Safety Stock Issue

    Hello Gurus,
    We are in SCM 4.0 and currently we are facing an issue in safety stock calculation.
    We run a macro to calculate the safety stock. The safety stock for a particular bucket is calculated by the sum of total demand of next consecutive 4 buckets. The problem is that the macro works fine if we select a single product-location combination but when we select a product at multiple locations combination (aggregated level) the macro doesnt work. The value is not displayed in the planning book. However, we could see the total demand value for that particular bucket.
    Hope I am clear and please help me on this.
    Thanks,
    Sai

    Hello all,
    I have a quick question:
    Do we need to maintain the data at Location-Product Group level to go for Aggregated Safety Stock Planning?
    Let me explain my case:
    We have the following selections at Location-Product level:
    Sel1: Prod1 at Loc1
    Sel2: Prod1 at Loc2
    Sel3: Prod1 at Loc3
    When I make either of these selections individully in the Planning book the safety stock macro works fine but if I make any of these two selections or all the three selections at a time, then the values does not show up at the Total but I can see the values at 'Details' level if I select Location at the Header Information.
    We are thinking of Aggregated Safety Stock Planning and We do not mainatain the data at Group level. Can we still go for Aggregated Safety Stock Planning?
    Could anyone give me some suggestions on this?
    Thanks
    Sai

  • Report on Rorder Point and a safety stock

    Hi,
    Pls adivse, by which tcode, i can get  a report on Rorder Point and a safety stock for the material.
    ie. my client want to have a report abt the material status for reorder stock

    Hi,
    The safety stock and re-order point are plant specific details
    The values can be checked from SE16 - table MARC
    regards
    Merwyn

  • Dynamic Safety Stock and Calculate based on past consumption

    Hello experts,
    I have set up my coverage profile in configuration for dynamic safety stock.  However, the value is going off of the current net requirements in the system.  How do I set it up so that the target stock level (DSS) is determined by 30 days of our past consumption and so many days of near future requirements?
    I assume I need to set up the MRP 3 tab in a specific way.  These materials that will be using dynamic safety stock are not forecasted, therefore, the material master had PD as MRP type (not VM or VV as discussed for setting DSS with forecasted materials), lot size of DY, and the coverage profile.
    Please let me know.
    Thanks.

    Hi,
    Hi the configuration should be like this..
    First Create range of actual coverage profile SPRO and enter the following data.
    Period Indicator - M
    Number of Periods - 2
    Type of Period length - Working days
    Number of days per period - 30
    Range of coverage in the first period - target - 30
    Then assign this profile to the material in MRP3 screen in the field range of coverage profile field.
    Regards
    Prasanna

  • CURRENT STOCK VALUE

    hi all,
    i required the current  stock value of the materials for each business unit, and the requirement for the next 6 months
    in our case the business unit is mean that the group of finished materials of the same type.ex. cluster for the diff reqiurement from diff companys
    this is the automotive company
    they have business unit like
    1. cluster
    2. fuel system
    3. body safety
    how to calculate the stock value for each businees unit . for the material
    for more deep in each b.u  they need eport as to segrigated for ROH, WIP. FERT
    PLS REPLY
    VRAJ

    Hi,
    In MC.A you can get stock report period&material type wise.
    In MB5B you can get the report on any date, VC can be used that is in close connection with material type.
    In MB5L you can also get the report in current and previous period.
    BR
    Csaba

  • Maintain plant specific safety stock

    How to maintain plant specific safety stock for the same material.

    Hi swetha
    First Go to T : code : MM02 : change Material
    Enter plant number for which u want to enter Safety stock
    Goto MRP-2
    Net Requirement calculation
    enter safety stock
    Use of safety stock :
    Safety stock
    Specifies the quantity whose purpose is to satisfy unexpectedly high demand in the coverage period.
    The risk of shortfalls is reduced by having a safety stock.
    Procedure:
    With manual reorder point planning, you can enter a value in the material master record. However, it is merely for information.
    With automatic reorder point planning and forecast-based planning, the system determines and adjusts the value automatically for forecasting purposes.
    Hope ths solve ur problem
    please reward points
    Regards
    Sunil

Maybe you are looking for

  • Showing the first half of a post/zip code

    Hello, I am attempting to display a postcode (zip) field within crystal but only want to show the first half of it. Is this possible? Using the Left(,4) formula I managed to do this but if I have a postcode of B1 2HZ, it will display B1 2, whereas I

  • (file) diff Illustrator ai files?

    I'm working at a place that dynamically generates "final" ai files from template files based on input (text and photos) received. I was thinking for testing/automation, it could be useful to generate a known good reference sample AI file (as a stored

  • How to execute windows application in Jinternal frame

    I want to execute windows application in a JInternal Frame ?

  • How to convert olympus RAW (.orf) to work with CS5?

    Hi-- I've never worked with RAW before so I'm learning as I go-- & immediately hit head-on into this wall--can't even begin to work with it.  I tried downloading some conversion filters that sounded like they would work with converting this format, b

  • Buying iPhone 4S in USA Apple store, but using it in Europe...

    Good day, I am planning to buy a iPhone 4S but if I buy it in the US Apple store, can I use it in Europe with their sim card peramenantly? Thanks Eric