Default Warehouse Qty Question

We have a Crystal Report 2008 report that is used for daily, monthly and yearly total items sold and total items returned and any date range that is pulled the last column "In Stock" needs to give current inventory qty in the default warehouse.
Currently we get correct output only on the warehouse we define on ({OITW.WhsCode} in "123"). The warehouse "123" defined and {OITM.OnHand} - {OITW.OnHand} subtracts the defined Warehouse from the onhand qty if I understand this correct... Issue with this is if there is one item with qty in the "123" warehouse and another item with qty in the "return" warehouse it will only give me the correct qty based on the warehouse that is defined; the other qty output will be the default warehouse plus the other warehouse qty which is incorrect.
Question is: how do we get the current qty in the default warehouse only. There are four warehouses total... Is there a formula that we could create that would give us the correct output based on the default warehouse?  Any advice or help would be appreciated!
Current report information:
Report has two Formulas and two Parameters and it is Grouped by "OINM"."ItemCode"
Record Selection
{OINM.CardCode} <> "BPname02" and
{OITB.ItmsGrpNam} = {?Group Selection} and
{OINM.TaxDate} = {?date} and
{OINM.TransType} in [14, 15] and
{OITW.WhsCode} in "123"
--This Formula is used for the onhand qty "In Stock" output.
{OITM.OnHand} - {OITW.OnHand} 
--Column Headers on Report
"Item", "Description", "Grp", "Qty Return", "Qty Sold", "In Stock"
--SQL Query taken from Crystal Report
--Some of the select below items are suppressed...
SELECT "OINM"."ItemCode", "OINM"."Dscription", "OINM"."TransType", "OINM"."OutQty", "OINM"."InQty", "OINM"."TaxDate", "OITW"."OnHand", "OITB"."ItmsGrpNam", "OITM"."OnHand", "OINM"."CardCode", "OITM"."ItemName", "OITW"."WhsCode"
FROM   (("Prd_DB"."dbo"."OITW" "OITW" INNER JOIN "Prd_DB"."dbo"."OINM" "OINM" ON "OITW"."ItemCode"="OINM"."ItemCode") INNER JOIN "Prd_DB"."dbo"."OITM" "OITM" ON "OINM"."ItemCode"="OITM"."ItemCode") INNER JOIN "Prd_DB"."dbo"."OITB" "OITB" ON "OITM"."ItmsGrpCod"="OITB"."ItmsGrpCod"
WHERE  "OINM"."CardCode"<>N'BPname02' AND "OITB"."ItmsGrpNam"=N'GrpSelected' AND ("OINM"."TaxDate">={ts '2014-05-05 00:00:00'} AND "OINM"."TaxDate"<{ts '2014-05-06 00:00:00'}) AND ("OINM"."TransType"=14 OR "OINM"."TransType"=15)
ORDER BY "OINM"."ItemCode"

hi Vernon,
are you using sap business one? if so, please post this question to the reporting and printing forum here which is for business one users. you'll get a quicker response on your question there.
-jamie

Similar Messages

  • DRQ: Different default warehouse for Sales,Purchase and Production Process

    Hi Experts,
    In my recent Implementation Project I realised that there should be provision of capturing and using different default warehouse for Sales,Purchase and Production.
    For example in manufacturing company
    1. Default ware house for Purchase process should be QC ware house for raw material.
    2. Default ware house for Production process should be RM ware house for raw material (components).
    3. Default ware house for Production process should be QC ware house for Finished Good (Parent Item).
    4. Default ware house for Sales process should be FG ware house for Finished Good (Parent Item).
    I hope the idea is clear, I am looking for 3 different set as default warehouse for each item in Item master Inventory tab.
    Internally when a user create a document than default warehouse is to be picked up from this setting !
    Best Regards,
    Samir Gandhi

    Hi !
    I guess the indicator "Exclusive" in the accessess of the access sequence can meet the requirement if I have note misunderstood the issue.
    Press : F1 help on Exclusive Indicator -
    Indicator: Exclusive condition access
    Controls whether the system stops searching for a record after the first successful access for a condition type within an access sequence.
    Thanks & Regards

  • Default Warehouse on a Sales Order

    Hi,
    Is it possible to default a warehouse depending on the BP selected on a Sales Order? I know you can default warehoue depending on the User.
    Thank you....Naomi

    Hi,
    There is no built-in function by system like user default. You may use FMS for the goal. A UDT is needed to define BP default warehouse.
    Try:
    SELECT T0.U_WHS FROM dbo.@BPWHS T0 WHERE T0.CardCode=$[$4.0.0\]
    In this example, @BPWHS is the UDT to define default warehouse for each BP by U_WHS field.
    Thanks,
    Gordon

  • How to create a BOM without default warehouse on 8.82

    Hi Expert,
      I have several item will make on 2 warehouse at same day for ship to different area. original I created to 2 different item code and 2 BOM for those 2 warehouse.
    on forecast, I set those 2 item code , after MRP running, 8.8 will let me know those 2 warehouse recommendation on PO & WO.
      on 8.82, MRP can set to run on different warehouse. so I set all item "default warehouse" to none. then run MRP for second warehouse with 1st warehouse itemcode. but I got a message show " Production Orders and inventory transfer request were not recommended for 6 parent items due to components that are required from 2 warehouse demand has not been included in this MRP run ( for example, item **** in warehouse WA )."
    Thanks

    By default, iDVD creates an autorun DVD (perhaps in response to the complaints from folks who didn't want to create menus). I like the menus, and here are some instructions to fix it:
    http://www.peachpit.com/articles/printerfriendly.aspx?p=1355313
    John

  • Default warehouse for sales representative

    We have webtools & several licenses to use for our representatives in the field.  We would like to have them place orders for us, but assign a specific warehouse to keep up with their inventory that they have on hand.  How do I assign those sales representatives to a particular warehouse so that when orders placed by them on their customers will show product leaving their warehouse?
    thanks.

    Hi John,
    you might find this article useful as well:
    [Business One in Action - How can we set a default warehouse per sales office location|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50050d86-afd6-2c10-b3aa-aa98f9d8312c?quicklink=index&overridelayout=true]
    All the best,
    Kerstin

  • Regarding Default warehouse

    Dear all,
                            I have to set a default warehouse for the sales flow for a particular user only..How to set that.......I tried setting that in the document setting and the user defaults...But it s takin t automatically as the warehouse set at the General settings.
    According to my scenario i cannot set the warehouse for the individual items.So kindly suggest me a way for this.....
    Regards,
    Shyam

    Hi,
    Check the Note No. :  785901.
    Extracts from the Note:
    Symptom
    The method SAP Business One determines the default warehouse in documents.
    Cause
    FAQ
    Solution
    In SAP Business One, the user can set 3 priorities for determining the
    default warehouse in documents:
    The 3 locations in which the default warehouse can be set are:
    1. Administration => General Settings => Items tab page
    2. Administration => Definitions => General => Define Users => Defaults => Defaults tab page
    3. Inventory => Item Master Data => Inventory Data tab page
    The warehouse will appear automatically in documents according to the
    following priorities:
    1. If an item is defined with a default warehouse in its Item Master Data, this warehouse will be displayed
    automatically in sales and purchasing documents.
    2. If an item is not defined with a default warehouse in its Item Master Data, SAP Business One will
    check if a default warehouse is defined in the Define Users window in the Defaults window (of the user who is currently logged in).
    3. If no default warehouse is defined in the User Defaults window, SAP Business One will use the default
    warehouse defined in the General Settings window, under the Items tab page.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • Setting default warehouse by territory

    Hi, hopefully someone can assist with this problem I currently have.
    Depending on the territory, our product is shipped from a different warehouse. Each of our customers has an assigned territory - Is it possible to allocate a default warehouse based on the territory?
    Any information would be greatly appreciated.

    hi,
    Standard B1 system warehouse is based on location.
    Create a user defined field in warehouse,Create a list of values for territory in UDF,
    For example East,West,North,South,North West etc.,
    Note :
    Create UDF in Tools --> User Defined Fields ---> Manage User Fields --> Masters --> Warehouse
    Jeyakanthan

  • SAP remove the default values when modify the default warehouse at SO lines

    Hi All,
    Whenever I change the default warehouse field at SO lines, all the default dimension values will be removed.
    Is this normal for SAP operation?
    Any setting to prevent it to remove all default values?
    Thank you very much.
    Best Regards,
    Vivian

    Hi Vivian,
    Check the link
    I want to remove default warehouse condition
    Regards
    Jambulingam.P

  • Cancel default warehouse for item

    Dear All,
    We would like to cancel a default warehouse for items. We don't need any default warehouse at all. Is there any way we can do that? I know if we setup another default warehouse, the old one will no longer be the default warehouse. But the problem is, we don't need any default warehouse at all. Thanks.
    Regards,
    Yuka

    Dear Yuka,
    You may check this thread:
    Re: How to Remove Default Warehouse in Item Master Data Through DTW
    Thanks,
    Gordon

  • Default warehouse while consignment fill-up

    Hi all
    I have a basic query here.
    When one carries out a 'consignment fill-up' ,e.g. document type 'KB' , then it picks up a warehouse per default,[ even before Transfer order comes into the scenario ] what factor or parameter tells it to pick this specific warehouse up and not any other warehouse. ? I wanted to know what supplies the sales document type with warehouse information ,even before it gets saved.
    (shipping condition of customer master ?)
    Thanks in advance.

    Shovon,
    In the customer Master, you can specify "Delivery Site".
    Delivery Site is assigned to Warehouse.
    If the end-user has entered the article, qty and delivery Site at line item item.
    mySAP would the look at Delivery Site at line item first then check the assignmed warehouse.
    You assign Warehouse to Site under Enterprise Structure.
    Regards
    Tapan

  • Default Delivery Qty

    Hi!!
    I would like to know, how the system determine the default delivery quantity of DN?
    Sometime it have the outstanding delivery qty set as default, sometime it does not have any quantity set.
    I just know that it is related to the availability check & the stock quantity, but could someone please tell me how the relationship in between & how the system calculate the date??
    Thank You so much!!
    Best Regards,
    Chris Poon

    Hi Chris,
    To answer the first part of the question,
    The pick/pack lead time, loading time and the transportation lead time are based on the shipping point factory calender.
    The transit lead time is based on the route factory calender.
    Regarding the second part of the question, i believe you are asking about the confirmed quantity at the schedule line level.
    As in the earlier post, you saw how the material availability date is calculated. The meaning of material availability check is that the material should be available on this date in order to meet the requested delivery date. Hence system will run availability check to see if material would be available on this date. The availability check code would be picked up from the material master. Then based on the settings for the availability check in OVZ9, system will do the checking. For checking at the order level, it willl check the setttings for availability check code and checking rule 'A' (SD order).
    The checking control tell what are the inward/outward stock movement for the material system should consider.
    For eg.. if the material availability date was calculated to be March 7 and the required qty is 80,
    and the current stock situation is like this until March 7,
    1.Current on hand quantity i.e current stock available is 100 qty
    2. There is another open sales order for the material with 60 qty
    3. There is a incoming purchase order 20 qty
    So system would calculate the available stock on March 7th as
    Stock available = 100 (current stock) - 60 (outward sales order qty) + 20 (incomeing PO qty)
                           = 60
    So system will confirm only 60 qty on March 7.
    If partial delivery is allowed, system will confirm 60 on March 7 and then it will do checking again on when the another 20 qty can be confirmed.
    If complete delivery is required, then system will confirm 0 qty on March 7 and start doing checking again when it can be confirmed. If there is no enough inward movement, it will confirm 0.
    I have tried to explain with a basic scenario. Hope it helps to give you an idea on how SAP does the checking for the material availability.
    Please award points if useful,
    Regards,

  • Warehouse items question

    Warehouse Item Records question  
    When creating a New Warehouse then automatically New Item records are also created. The Item Records created for the New Warehouse are empty Item records based on the Original warehouse initially created when we started the system. I wonder if these New Item Master records(empty) created are Mandatory or is it an option in the Initialisation or Setup. In other words, can I create a New Warehouse WITHOUT any associated Item Master Records, just an emty warehouse where I can add my own stock Items?
    Also, does anybody know how to Delete these new Blank Master Stock Items created in this new Warehouse.
    The main reason I want to Delete these Master Items is to enable me to Delete the Whole new warehouse I have created by mistake! At present I cannot Delete the warehouse because of all these Master items that SAP creates by default.
    Thanks for your help for this funny problem - yes it is funny because I only pressed * to search for the Codes of my existing warehouses, but I was in the ADD mode, so it crreated a new warehouse called * and a lot empty Master Item records.
    I hope this makes sense
    Robert

    Yes, SAP B1 has a feature where, when the check box to 'Auto Add All Warehouses to New Items' under 'General Settings' --> Inventory Tab.
    However, the feature works a little differently then what you've described. What it does is that it actually creates the new warehouse automatically for any newly created inventory item. This feature can come in handy when you have say, 6 warehouses setup within SAP B1 and you've just created a new inventory item. You wont have to manually add all 6 warehouses to the new inventory item.
    There is somewhat of an issue with the Warehouse form, because it opens in the "Add" mode by default, and you're not the first user to accidently hit ' * ' and create a new warehouse with the * name. When this happens, SAP B1 will auto create the * warehouse to all current inventory items.
    At this point in time, there is no method to batch remove the * warehouse except to do it manually by hand.

  • To Default Warehouse In Sales Order Based On GOP Results

    Hi
    The Business requirements are
    During the import or manual entry of sales order,based on customer ship to address the warehouse field in the sales order should default from gop results.
    Gop can show you the availability from the ATP inquiry form attached to sales order.But how to default or populate the warehouse field automatically.
    No standard functionality is there.Enhancement request has been raised.Can anybody suggest any workaroounds.
    Thanks

    Take out the defaulting rules for Sales Order Line and the regular gop setups,the during scheduling it calls for the assignment set specified.and the warehouse field is populated.
    by the rank one warehouse in the sourcing rule.

  • How to setup the default warehouse in Sales Order Lines

    I have 3 organizations in one OU like A, B, C.
    and I created a new sales order type for A, the shipping from warehouse is also setup C, but when I create SO, in order lines, the default warehose is A, how to change to C?
    thanks
    Fangquan

    You can write a simple pl/sql logic to get the correct org id. I am assuming that you have two responsibilities in the same operating unit and one should default with A and one should default with C. Both use the same order type.
    When the resp that is responsible for org A, will have org A from order type.
    For resp that is responsible for org C, you can create a pl/sql logic where you read the current responsibility using fnd_profile.value('RESP_ID'). If the resp_id is responsible for C then return organization_id of C.
    You can find example code for order line entity for attribute tax code.
    Let me know if you need anymore info.
    Thanks
    Nagamohan

  • Human Task Auto Release Default  and configuration question in 11g

    Is there anyway to turn off the auto release feature of a human task if you do not put an expiration date on a task? Also the documentation says the default is 12 hours. If there is not a way to turn off the auto release feature, can the 12 hour default be changed? The documentation is not fully clear to me and then when I look at the UI from the console I do not understand what the identifiers of P5D, P4D, etc mean under the Default Duration column. I get the use of percentage but it is unclear what Default Duration is and how to use that field.
    I saw in 10.1.2 there was a way to turn off the auto release feature of task via restrictedActions but I did not see this in 11g.
    And last question is does anyone know if human task is stored to a database if it runs for too long similar to the concept discussed around bpel processes of hydration and dehydration?
    Thanks,
    Diane

    I am able to fix this issue. After a series of R & D I was able to find that the root cause is %APPDATA%\jdeveloper. Deleting the relevant directory will solve this issue. In fact, I tried to delete the entire jdeveloper directory under %APPDATA% and the jdev 11.1.1.7 form generation issue got resolved. Those who find "referential integrity" issue may follow this approach.
    This solution also applies to this thread
    Auto Generate task Form

Maybe you are looking for