Available Inventory

Hello Folks,
I am trying to calculate the available inventory for a particular material, customer and plant combination. Can you please provide me with the table and field where the open sales order quantity is stored. If it is a manual calculation, can anyone guide me through the process.
I checked the forums but could not get an answer, so I am posting this question. Please answer.
Regards,
Pranava

if u want to know the materials that are available to be used by sales requirements after considering the open orders.
follow the below.
Obtain the total stock from tables of MMBE,
goto VA05 & go for open orders & key in the material & the relevant plant with no from date & to date should be current date.
this will list all the open orders & the requirements, sum up the quantities. & subtract with the MMBE table.
the balance will give you the stock that is readily available for the new orders consumption.
rgds
ilango

Similar Messages

  • Discrepancies in MRP Available Inventory between SC and BW

    We're seeing a discrepancy in a BW report and the data shown in md05/md05. There's a difference in the MRP Available Inventory. What are other possible sources of this difference? We know Safety Stock, SafeReq and MatRes, but for this particular issue, that doesn't quite solve it.
    The difference appears in a future week and that difference is carried on to the weeks after that week.

    hi,
    check 'transfering data with db connect' doc ...
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/2f0fea94-0501-0010-829c-d6b5c2ae5e40
    and oss 339092, 518241
    hope this helps.
    Procedure
    Before you can open a database connection, you have to make all connection data necessary for identification of the source database and for authentication for this database, known to the ABAP runtime environment. For this you need to specify the connection data for each database connection, which also needs to be created to the SAP default connection.
    1.     To do this, choose in the Administrator Workbench source system tree ¡V Modeling Source Systems (Root Nodes) „_ƒnContext Menu (right mouse click) „_ Create.
    2.     In the subsequent dialog box, choose the source system type Database Source System and choose   Transfer.
    3.     In the following screen enter the logical system name (= DB connection) and a descriptive text for the system, then choose   Continue.
    You get to the screen Change View ¡§Description of Database Connections¡¨: Detail.
    4.     Select the database management system (DBMS) with which you want to manage the database. With this entry you determine the database platform this connection concerns.
    5.     Specify the database user under whose name the connection needs to be opened.
    6.     Enter the DB Password twice for the user for authentication across from the database when creating the connection. This password is encrypted and stored.
    7.     Enter the technical information for opening the database connection. This information, which is necessary for creating a connection, is dependent on the database platform and encompasses the database names in general, as well as the database host on which the database runs. The string displays the respective client library to which the database needs to create the connection

  • External Inventory Feed - Wish to Exclude Customer Order Stock

    We have an hourly inventory job, which writes available inventory to an external file.  Recently, we learned that the report is including material which has already been reserved for future customer orders (see for example in MD04).  We do not have an ABAP programmer on staff so I am posting our existing code below and would appreciate hugely an updated script.
    I've seen references in other searches to MD04 and use of function 'MD_MPS_READ_STOCK_REQMTS' as well as 'BAPI_MATERIAL_STOCK_REQ_LIST', but do not know how to incorporate this into the hourly job.
    As you can see, the report output is being pulled from MARD-LABST, unrestricted, but it needs to also exclude allocated customer order stock.
    Thank you in advance for looking.
    *& Report  ZMM_INVENTORY_FEED*&*&---------------------------------------------------------------------**&*&*&---------------------------------------------------------------------*
    REPORT  zmm_inventory_feed NO STANDARD PAGE HEADING.
    TABLES:mara,marc,mard,mvke.
    *-------------Types Declaration----------------------------------------*TYPES:BEGIN OF ty_file,
          text(500),
          END OF ty_file,
          BEGIN OF ty_mard,
          matnr    TYPE mard-matnr,
          werks    TYPE mard-werks,
          lgort    TYPE mard-lgort,
          labst    TYPE mard-labst,
          mstae    TYPE mara-mstae,
          maktx    TYPE makt-maktx,
          mvgr2    TYPE mvke-mvgr2,
          END OF ty_mard,
          BEGIN OF ty_final,
          supplier TYPE lfa1-lifnr,   "Supplierid
          matnr    TYPE mard-matnr,   "Item no
          labst    TYPE char13,       "Qty
          qtyback  TYPE char13,       "Qtyback
          qtyorder TYPE char13,       "Qtyorder
          itemav   TYPE c,            "Itemavdate
          itemdis  TYPE char13,       "Discount
          desc     TYPE makt-maktx,   "Description
          END OF ty_final.
    *----------Internal Table Declaration---------------------------------*DATA:it_mard   TYPE TABLE OF ty_mard,
         it_final  TYPE TABLE OF ty_final,
         it_file   TYPE TABLE OF ty_file,*----------Work Area Declaration--------------------------------------*
         wa_mard   TYPE ty_mard,
         wa_temp   TYPE ty_mard,
         wa_final  TYPE ty_final,
         wa_file   TYPE ty_file.
    *----------Local variable Declaration---------------------------------*DATA: lv_labst   TYPE char13,
          lv_labst_i TYPE i,
          lv_labst1  TYPE char13,
          lv_labst2  TYPE j_1itaxvar-j_1itaxam1,
          lv_mess    TYPE string.DATA lv_filename TYPE char100.*----------Selection-Screen Declaration-------------------------------*SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS:s_mstae  FOR mara-mstae OBLIGATORY,                     "Material Status
                   s_mvgr2  FOR mvke-mvgr2 OBLIGATORY,                     "Material Group
                   s_matnr  FOR mara-matnr,                                "Material Number
                   s_werks  for mard-werks,
                   s_lgort  FOR mard-lgort.PARAMETERS:    p_per(3) TYPE n DEFAULT 20,                             "Percentage
                   p_appl   TYPE rlgrap-filename DEFAULT '\\Appsrv02\Datadown\DropShip_SAP_Test\'. "File Path
    SELECTION-SCREEN END OF BLOCK b1.*----------End Of Declarations----------------------------------------*
    *AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_appl.*  PERFORM f4_filename.                     "F4 help for file path
    START-OF-SELECTION.
      PERFORM get_data.
      PERFORM process_data.
      PERFORM file_export.*&---------------------------------------------------------------------**&      Form  GET_DATA*&---------------------------------------------------------------------**       text*----------------------------------------------------------------------*FORM get_data .
      SELECT a~matnr
             a~werks
             a~lgort
             a~labst
             b~mstae
             c~maktx
             d~mvgr2 INTO CORRESPONDING FIELDS OF TABLE  it_mard
                           FROM mard AS a
                     INNER JOIN mara AS b
                             ON b~matnr = a~matnr
                     INNER JOIN makt AS c
                             ON c~matnr = a~matnr
                     INNER JOIN mvke AS d
                             ON d~matnr = a~matnr
                          WHERE mstae   in s_mstae              "Exclude Material Status Filteration
                            AND a~werks IN ('1100','1200')        "Plant in 1100 and 1200
                            AND mvgr2   IN s_mvgr2              "Exclude Material group
                            AND a~matnr IN s_matnr
                            and a~werks in s_werks
                            AND a~lgort in s_lgort.
      SORT it_mard BY matnr werks lgort.
      DELETE ADJACENT DUPLICATES FROM it_mard COMPARING matnr werks lgort.ENDFORM.                    " GET_DATA*&---------------------------------------------------------------------**&      Form  PROCESS_DATA*&---------------------------------------------------------------------**       text*----------------------------------------------------------------------*FORM process_data .
    *--------------File Header Information --------------------------------*
      wa_final-supplier    = 'Supplier Id'.
      wa_final-matnr       = 'Item Number'.
      wa_final-labst       = 'Total Qty'.
      wa_final-qtyback     = 'Qty Backordered'.
      wa_final-qtyorder    = 'Qty on Order'.
      wa_final-itemav      = 'Item NextAvdate'.
      wa_final-itemdis     = 'ItemDiscont'.
      wa_final-desc        = 'Description'.
      CONCATENATE  wa_final-supplier
                   wa_final-matnr
                   wa_final-labst
                   wa_final-qtyback
                   wa_final-qtyorder
                   wa_final-itemav
                   wa_final-itemdis
                   wa_final-desc    INTO wa_file
                                    SEPARATED BY ','." RESPECTING BLANKS.
      APPEND wa_file TO it_file.
      CLEAR :wa_final,
             wa_file.*------------------End File Header---------------------------------------*
    *------------------File Item Data----------------------------------------*
      LOOP AT it_mard INTO wa_temp.
        wa_mard = wa_temp.
        MOVE:wa_mard-matnr TO wa_final-matnr,  "Item No
             wa_mard-maktx TO wa_final-desc.   "Description
        IF wa_mard-werks     = '1100'.
          wa_final-supplier  = '6476'.         "Supplierid
        ELSEIF wa_mard-werks = '1200'.
          wa_final-supplier  = '6477'.
        ENDIF.
        IF wa_mard-labst IS NOT INITIAL.
          lv_labst1 = lv_labst1 + wa_mard-labst.
        ENDIF.
        AT END OF werks.
          IF wa_mard-mstae = 'AE'.
            wa_final-itemdis = '0'.        "Item Discontinued
          ELSEIF wa_mard-mstae = 'CM' OR wa_mard-mstae = 'DR'.
            wa_final-itemdis = '1'.
          ENDIF.
          IF lv_labst1 IS NOT INITIAL AND p_per IS NOT INITIAL.
            lv_labst = lv_labst1 * p_per / 100. "Qty
            lv_labst = lv_labst1 - lv_labst.
            IF lv_labst LT 0.                    "If Qty less than Zero Make it as Zero
              lv_labst = 0.
            ENDIF.
          ELSE.
            lv_labst = lv_labst1.
          ENDIF.
          lv_labst2 = lv_labst.                  "Rounding to Nearest Qty
          CALL FUNCTION 'J_1I6_ROUND_TO_NEAREST_AMT'
            EXPORTING
              i_amount = lv_labst2
            IMPORTING
              e_amount = lv_labst2.
          lv_labst_i = lv_labst2.
          lv_labst = lv_labst_i.
          CONDENSE lv_labst.
          CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
            EXPORTING
              input         = wa_final-matnr
           IMPORTING
             OUTPUT        = wa_final-matnr
          CONCATENATE wa_final-supplier
                      wa_final-matnr
                      lv_labst
                      wa_final-qtyback
                      wa_final-qtyorder
                      '          '"'00/00/0000' "wa_final-itemav
                      wa_final-itemdis
                      wa_final-desc INTO wa_file
                                    SEPARATED BY ','." RESPECTING BLANKS.
          APPEND wa_file TO it_file.
          CLEAR:lv_labst1,
                lv_labst,
                lv_labst2,
                wa_file.
        ENDAT.
        CLEAR:wa_mard,
              wa_temp,
              wa_final.
      ENDLOOP.*---------------------------End  File Item data----------------------*ENDFORM.                    " PROCESS_DATA*&---------------------------------------------------------------------**&      Form  FILE_EXPORT*&---------------------------------------------------------------------**       text*----------------------------------------------------------------------*FORM file_export

    What you said is exactly what I want! Very thankful for your help.
    Yes, I have found that in EBEW table that standard price is valuated with preliminary cost estimate because I don't give a sales order cost estimate but I give an sales order stock in the customizing - requirement class. So, I have this question that how the sales order stock is determined.
    In COPA customizing (COprofitability analysismaster datavaluationSet up valuation using material cost estimate), standard cost estimate or sales order cost estimate can be transferred into COPA value fields in our system.
    But, I have still have a question: I found in our system, preliminary cost estimate in the linked production order is determined for valuation of sales order stock in EBEW table. As sap online help says, cost component splits can not be transferred to COPA.
    So, according to SAP online help, I think what you said u201Cu2026..However , when we start thinking about the result of this cost to flow into COPA , this cannot happen as the Inventory was valued with a Preliminary csot estimate. So , the Online help says that it will not be able to transfer Result of Preliminary cost estimate into COPA for transferrring COGS details. System would always require a Standard cost estimate or a Sales order Cost estimate to flow Cost details into COPAu201D is correct.
    But, in our system, cost component can be transferred into COPA!? When I create a sales billing (invoice) with tcode VF01, it can create a profitability analysis document (shown in VF03) which it had a cost component split for that material in the sales order stock valuated with the preliminary cost estimate. Or where is stored for the Make-to-Order materialu2019s cost component split in COPA?
    That is the real point that confused me. Hope you can help me. Thanks very much.

  • Inventory TurnOver Analysis

    Hi all
    Is it easy to add the Inventory Cumulative Value as per Inventory Audit Report in the SBO readily available Inventory Turnover Analysis Report?
    Kedalene

    Hi,
    To get cumulative value as per inventory audit report, you have to use OINM table. To get cumulative value
    sum(T0.[InQty] - T0.[OutQty]) as Cumulative Quantity.
    I have sample query which gives result similar to inventory report. Check whether it is useful for you.
    SELECT T0.[ItemCode], T0.[Dscription],T0.[TaxDate], T0.[DocDate], T0.[DocDueDate], case when T0.[TransType] = 13 then 'AR'
    when T0.[TransType] = 14 then 'ARCredit'
    when T0.[TransType] = 15 then 'Delivery'
    when T0.[TransType] = 16 then 'SalesReturn'
    when T0.[TransType] = 203 then 'ARDown'
    when T0.[TransType] = 20 then 'Goods Receipt'
    when T0.[TransType] = 21 then 'Goods Return'
    when T0.[TransType] = 204 then 'APDown'
    when T0.[TransType] = 18 then 'APInvoice'
    when T0.[TransType] = 13 then 'AP Credit Memo'
    when T0.[TransType] = 69 then 'LandedCost'
    when T0.[TransType] = 24 then 'Incoming Payment'
    when T0.[TransType] = 25 then 'Deposit'
    when T0.[TransType] = 46 then 'VendorPayment'
    when T0.[TransType] = 57 then 'Check for Payment'
    when T0.[TransType] = 76 then 'Postdated Check'
    when T0.[TransType] = 58 then 'Inventory list'
    when T0.[TransType] = 59 then 'Good Receipt'
    when T0.[TransType] = 60 then 'Good Issue'
    when T0.[TransType] = 67 then 'Inventory Transfer'
    when T0.[TransType] = 68 then 'Work Instruction'
    when T0.[TransType] = 162 then 'Inventory Valuation'
    when T0.[TransType] = 202 then 'Production order'
    when T0.[TransType] = -2 then 'Opening Balance'
    when T0.[TransType] = -3 then 'Closing Balance'
    when T0.[TransType] = 30 then 'Journal Entry'
    when T0.[TransType] = 321 then 'Internal Reconilation'
    when T0.[TransType] = 10000046 then 'Data archive'
    when T0.[TransType] = 310000001 then 'Initial Qty'
    when T0.[TransType] = 10000071 then 'Inventory posting' end as Doc, T0.[BASE_REF], T0.[Warehouse], T0.[InQty], T0.[Price], T0.[Currency], T1.[U_NAME], sum(T0.[InQty] - T0.[OutQty]) as ***, T0.[CalcPrice], T0.[CostMethod] FROM OINM T0  INNER JOIN OUSR T1 ON T0.UserSign = T1.USERID WHERE T0.[ItemCode] = [%0] GROUP BY T0.[ItemCode], T0.[Dscription],T0.[DocDate], T0.[DocDueDate], T0.[Warehouse],  T0.[Price], T0.[Currency], T1.[U_NAME],T0.[TransType],T0.[BASE_REF], T0.[CalcPrice], T0.[CostMethod],T0.[InQty], T0.[TaxDate], T0.[BASE_REF] ORDER BY T0.[DocDate], T0.[DocDueDate]
    Thanks & Regards,
    Nagarajan

  • Block zero quantity when creating Inventory Transfer

    Hi all,
    does anyone know how to block zero quantity when creating inventory transfer?
    for example: I have zero quantity in warehouse A. Then I want to transfer it to warehouse B. The system accept that. So, when I check that item in warehouse A, the in stock column become negative. How I can protect it?
    please help me. it's very urgent.
    thanks
    sisca

    Go to Administration > System Initialization > Document Settings > General Tab
    Check Manage Inventory nu Whse and also check Block negative inventory. Read details below of their functionality.
    Manage inventory by whse
    Defines whether the check is performed for the warehouse selected in the document row. If you select the checkbox, the system checks the minimum inventory level in the warehouse that was selected for the item when the sales document was entered.
    If the transaction causes the inventory level in that warehouse to fall below the minimum inventory level, a warning message appears even if the total available inventory of the item is greater than the minimum warehouse quantity. If you do not select this checkbox, the system checks the total available inventory in all warehouses where this item is stored.
    You can also define automatic notification for a specific user when the inventory level falls below the minimum level. A purchase transaction can then be initiated.
    Block negative inventory
    Select to block documents that would cause the level of inventory to fall below zero. If you deselect the checkbox, the message “Negative inventory usage is not in accordance with accounting rules. Are you sure you want to enable negative inventory usage?”
    If you select Manage inventory by whse and Block negative inventory, SAP Business One calculates the block per warehouse. However, if the item is not handled by a warehouse and you do not select Manage inventory by Whse, the block is calculated for all the warehouses.

  • Miro hitting inventory and price difference

    Dear All,
    I would like to seek advice of the posting during MIRO on point 4 and 5 why there is a hitting on inventory account and price difference of the amount given? How system get the amount in inventory account and price difference account?
    Really need advice.
    1)
    GR - qty 20
    dr inventory $1500000
    cr GRC $1500000
    2) GI - qty 1 and now remained only 19 qty
    moving price = $75,000
    qty = 19
    price unit = 1
    value = $1425000
    3) MIRO
    dr GRC $1500000
    cr vendor $1500000
    4) MIRO say qty is 21 and amount no change
    dr GRC $1571429
    cr vendor $1500000
    cr inventory $64626
    cr price diff $6803
    5) MIRO say qty is 20 and amount i enter $1507500
    dr GRC $1500000
    cr vendor $1507500
    dr inventory $7125
    dr price diff $375
    thanks

    refer my remarks in BOLD
    4) MIRO say qty is 21 and amount no change
    This scenario is not possible as you have taken GR for Qty 20 only.
    *still you have added $ 71429 in GRC so this should be uploaded on Inventory ($71429 / 21 = 3401.38) hence Inventory account will get updated with $3401.38 * 19 (available stock)  ie $ 64626 & diff of 21 - 19 = 2 * 3401.38 ($6803) will be updated in  Price Diff account*
    dr GRC $1571429  
    cr vendor $1500000
    cr inventory $64626
    cr price diff $6803
    5) MIRO say qty is 20 and amount i enter $1507500
    * Goods receipt is posted with 1500000 but vendor has presented invoice of 1507500 hence the additional cost ie 7500 has to be loaded on inventory but available inventory is 19 as 1 qty is already issued from stock hence (7500/20 = 375) for 19 qty inventory account will updated with $7125 (375*19) & for material which is already issued prior to taking invoice receipt ie 1 Qty (375 * 1) = 375 will hit to Price Diff Ac.*
    dr GRC $1500000                                  
    cr vendor $1507500
    dr inventory $7125
    dr price diff $375

  • New Tutorial and example available on OTN - representing preferences

    The tutorial demonstrates an approach for using preferences in conjunction with approaching limits or thresholds. The approach is useful in dealing with aggregating across a set such as line items, insurance claim lines etc, while considering individual or annual deductibles and copays, accumulating inventory for shipping from multiple locations or expressing preferences such as for replacement or up-sell, cross-sell of products, preferential configurations based on available inventory, etc.
    Tutorial - Limits, Thresholds and Preferences in OPM (Nov 2012) and the example project are available at: http://www.oracle.com/technetwork/apps-tech/policy-automation/learnmore/index.html

    Nice one. Thanks

  • Inventory movement takes away delivery note picked qty.

    We have a situation that delivery note is created and picking is saved. 
    Inventory movement such as “MB1A, MB1B, MB1C” or Post Goods Issue, the system will only check available inventory and not worry about confirmed and/or committed quantities.  And take away picked qty from delivery note.  Is this a SAP standard behavier or we are missing some setting?
    Thanks,
    Dori

    Hi,
    It is a standard behaviour of the system : some movements must have priority against sales requirement : if you need to scrap the goods, if you need to return the goods to the vendor, if you want to put the goods from unrestricted stock to quality or blocked stock, ..., idem with a change of storage location, ...
    If you really want to avoid this, there is some customizing in inventory management :(spro + MM + IM + outbound and transfers + availability checks or somethng like this) : like in SD for sales orders and deliveries, you will be able to decide by movement type and transaction what kind of stock you want to take into account.
    But, from what I know, no one excluded sales requirements. But we are in an SD forum
    Rgds,
    Philippe

  • Negative Available Stock

    Hi All,
    Just would like to ask why SBO allows to process the release of stock even if that there is not enough stock on hand. Its not even prompting that its already below minimum stock level.
    Im attaching the screenshots for your reference.
    http://i177.photobucket.com/albums/w230/llowen08/image003.png
    Thanks..
    Llowen

    Llowen,
    In your second image, I did not see Manage inventory by whse checked.  Please read the following and check Manage inventory by whse.
    Manage inventory by whse
    Defines whether the check is performed for the warehouse selected in the document row. If you select the checkbox, the system checks the minimum inventory level in the warehouse that was selected for the item when the sales document was entered.
    If the transaction causes the inventory level in that warehouse to fall below the minimum inventory level, a warning message appears even if the total available inventory of the item is greater than the minimum warehouse quantity. If you do not select this checkbox, the system checks the total available inventory in all warehouses where this item is stored.
    You can also define automatic notification for a specific user when the inventory level falls below the minimum level. A purchase transaction can then be initiated.
    Block negative inventory
    Select to block documents that would cause the level of inventory to fall below zero. If you deselect the checkbox, the message “Negative inventory usage is not in accordance with accounting rules. Are you sure you want to enable negative inventory usage?”
    If you select Manage inventory by whse and Block negative inventory, SAP Business One calculates the block per warehouse. However, if the item is not handled by a warehouse and you do not select Manage inventory by Whse, the block is calculated for all the warehouses.

  • Is the glossy screen available in the Apple Store?

    Just wondering, is the MBP with the glossy screen available at Apple retail stores or only online?

    It's available at the retail stores as well as online.
    Available inventory will depend on the individual Apple store.

  • Inventory on Hand Report - Using Union ALL - need two fields to be part of the group

    Hi all,
    I have created an Inventory "on Hand" Report that takes the Current Inventory from the Item Entry table and the Sales from Unposted Sales Line table and Transfers in and out from the Unposted Transfer Line table.  I have joined the tables
    using the UNION ALL function. 
    My problem is that the Transfer table has two locations whereas the other tables only have one.  I am grouping on Location code from the Item Entry table which is equivalent to BOTH Transfer from location and the Transfer to.    
    As an example, there are 15lbs of inventory for Product A in Location #1 with a transfer out of 15 lbs.  The Transfer out is going to Location #2
    I don't know how to write the query or set up the group so that it recognizes both the Transfer to and the Transfer From fields
    I want the report to look similar to the one below but I can only get it to show one of the locations.  Is there some way to use the Union function and have one field in the first table be or equivalent to two fields in another?
    Location   Code
    Item No.
    Lbs
    Sales Orders
    Transfer Out
    Transfer In
    Available   Inventory
    Location #1
    Product A
    15
    -15
    Location #1
    15
    -15
    Location #2
    Product A
    15
    15
    Location #2
    15
    15

    Hi Igor,
    You can get a custom sort order added to your IP column without the need for a second column.
    Consider that the sorting is done strictly left-to-right across a string in the column. The string can be any valid HTML content. So, you could wrap your string within, say, a SPAN tag and add an attribute to that tag that contains the sort order you need before the text that is displayed to the user. As long as the attribute is correctly structured (that is, all instances are of the same length, for example), then sorting will work correctly. For example:
    SELECT
    '<span title="' || PAD_IP_ADDRESS(IP) || '">' || IP || '</span>' Y
    FROM ...Now you need to ensure that the PAD_IP_ADDRESS() function returns the correct values. In IP addresses, you have anything from "0.0.0.0" to "255.255.255.255". To get them to sort "numerically", you need to pad one or two digit numbers to get three digit numbers for each value - so, "0.0.0.0" becomes "000.000.000.000". You could create a function to do this - something like:
    CREATE OR REPLACE FUNCTION PAD_IP_ADDRESS
      pIP IN VARCHAR2
    RETURN VARCHAR2
    IS
      vIP VARCHAR2(15);
      vTEMP APEX_APPLICATION_GLOBAL.VC_ARR2;
      vSEP VARCHAR2(1);
    BEGIN
      vSEP := '';
      vIP := '';
      vTEMP := APEX_UTIL.STRING_TO_TABLE(pIP,'.');
      FOR x IN 1..vTEMP.COUNT
      LOOP
        vIP := vIP || vSEP || TRIM(TO_CHAR(TO_NUMBER(vTEMP(x)),'000'));
        vSEP := '.';
      END LOOP;
      RETURN vIP;
    END;The output from this would look something like:
    &lt;span title="001.001.001.001"&gt;1.1.1.1&lt;/span&gt;
    &lt;span title="002.255.255.255"&gt;2.255.255.255&lt;/span&gt;
    &lt;span title="010.001.199.098"&gt;10.1.199.098&lt;/span&gt;Andy

  • Rationing available stock at the DC across multiple orders by priority

    Hi experts,
    We have a business requirement to ration available stock held at the DC across multiple orders in the situation of a shortage.
    The requirement is to do this rationing is based on the document type of the originating STO and Ordering Site classification, so that the most significant order type and most significant store gets the available inventory first.
    We have 5 primary store STO document types and we wish to classify them from 1 to 5, 1 being the most imporant.
    We also have circa 300 stores and likewise wish to classify them 1 - c.300, 1 being the most important.
    Using this classification data we want to generate Outbound Deliveries from the STOs.
    A simple example:
    We have a Qty of 20 pieces of Article 1 in the DC available:
    The following STOs have been generated:
    Doc. Type 1 - Store 1 -  Article: 1 Qty: 10
    Doc. Type 1 - Store 2 -  Article: 1 Qty: 5
    Doc. Type 2 - Store 1 -  Article: 1 Qty: 10
    Doc. Type 2 - Store 2 -  Article: 1 Qty: 15
    We would expect the following Outbound Deliveries to be generated:
    OBD 1 - Store 1 - Article: 1 Qty: 10
    OBD 2 - Store 2 - Article: 1 Qty: 5
    OBD 3 - Store 1 - Article: 1 Qty: 5
    We need this processing to take place in the shortest possible time, as we have strict timings around orders being available in the DC WMS for picking due to a short lead time.  We therefore want to maximise parallel processing, rather than just sequencing the running of VL10B to be one order type and one store at a time.
    Any ideas on how best to achieve this requirement and how you would approach it?
    Has anyone done similar types of rationing before?
    Many thanks in advance!
    David

    Hi James,
    Thanks for the information, we are using IS Retail 4.7. 
    The complexity we face is that we need to create outbound deliveries off a collective STO generated via Merchandise Distribution with SLS.  So this STO is effectively one site along the chain from the originating store.
    We're trying to ration the stock at the source DC across the collective STOs by Document Type and Originating store.
    So that the most important Order (IE promotion etc) and the most important / profitable store get the stock.
    For example, we wouldn't want our "New Store STOs" (of which the store may not have even opened yet)  and not be able to give any stock to our biggest store who's get a promotion this weekend.
    I know the simple answer is don't run out of stock, but we try to run a tight ship on quite a few articles, so we need to ensure we give it to the right store and for the right reason.
    Hope that helps explain the scenario in more detail.
    Many thanks,
    Dave

  • Raw  material stock report with vendor wise

    Dear all ,
    Can any one tell me , How do I get stock report only on " VENDOR " wise .
    The purpose is , I've multiple souces for one Material , I need analyse the available inventory with vendor wise.
    Pl.s help
    Thanks in Advance
    Sekhar

    Hi,
    1. Once you receive the mateiral inside the plant the identity of vendor is lost.
    2. All the stock will get as Plant / Sloc Stock only.
    3. Incase if you need vendor wise stock then you need to activate batch management, with Classification view and one characteristics as vendor.
    4. And during each GR  you need to enter the vendor value
    Else you will not be able to seggregate the available stock vendor wise.
    reg
    dsk

  • V_V2 does not allocate if line can not be completely fulfilled

    When we run V_V2 and total demand exceeds available inventory (based on Checking Rule "A-SD Order"), stock is not allocated to any line item unless that line can be completely fulfilled.  Why?  Can this be changed through any setting:
    BEFORE: Available Stock 1200
    Order 1 - 200
    Order 2 - 400
    Order 3 - 700 (nothing allocated)
    Order 4 - 100
    Order 5 - 300
    AFTER: Available Stock - 200
    I would think V_V2 would allocate 600 cases to Order 3 and nothing to Order 4 and Order 5 since they are lower in PRIORITY (based on the specified "Sort order".
    Thanks for your help!!!
    Pat Heffern

    Please go through Note 549064 - FAQ: Rescheduling and backorder updating in R/3
    thanks
    G. Lakshmipathi

  • ATP for manufactured and procured materials

    We have a scenario that we have essentially a make-to-order process but occassionally, due to setup costs, manufacture more than what is needed to satisfy the sales order line item that triggered the planned/production order.
    In other words, when sales order ATP executes, we would like  to first check for unrestricted inventory to supply the order.  If there is available inventory, it should be used on the sales order line item.
    If there is no inventory on hand, we want MRP to run and create an order using the Make-to-order process.
    Can someone help wtih this?
    Thank you,
    bak

    Hi Bak,
    The only way i have seen this done in the past is to create two materials codes for the sames material one is the stock item and the second is MTO, so when you have stock you can use the stock material code or there is none in stock to use the MTO material code.
    The second option is too have one material that is MTO but when the order is placed to check if there is available stock and then to do a Stock to sales order stock material transfer. then when you run the ATP check the stock is available and no production is generated

Maybe you are looking for

  • Average value for a Date Field in an OO Alv Grid.

    Hi Abapers. I've been searching for some info about averages in OO Alv grid lists but cannot find an answer to what I'm really need. The question is that, for getting an average, a 'C' value must be set in the field DO_SUM of the fieldcatalog structu

  • Apple contacts not all syncing to ipad, apple contacts not all syncing to ipad

    Apple Contacts from my maverick laptop not syncing 100% to my iPad3.  In particular "notes" in the address book - some are not there??

  • ERROR WHILE COMPLING CLIENT

    I am not ablr to complie client bean, i have created 2 directories beans,client under beans dir i have put home,remote,bean classes. named it as beans package. in client directory i am refering this classes by importing the beans package, but it give

  • Error at the time of Terminating Service Contract

    Getting the following error at the time of terminating the contract in Oracle Service Contracts Module. OKC_CONTRACTS_REQUIRED_VALUE(COL_NAME=QP CALL FAILURE Routine"QP_PREQ_GRP.INSERT_LINE_ATTRS2 ORA-01400: cannot insert NULL into ("QP".QP_PREQ_LINE

  • Missing Key word?

    What key word am I missing from here? SQL> alter database recover datafile '/xxx.dbf' auto; alter database recover datafile '/xxx.dbf' auto ERROR at line 1: ORA-00905: missing keyword