Lock particular warehouse for particular item via code

hi all,
i need particular warehouse locked for particular item via code.
i designed one form   header have item code and warehouse.
when i press the add button warehouse locked for that particular item.
Thanks & Regards
Sudhir.B

The answer is:
Using the Items Object of the DI, set yourself to the correct line and set the locked property.
for(i=0;i<oItem.WhsInfo.Count;i++)
     oItem.WhsInfo.SetCurrentLine(i);
     if(oItem.WhsInfo.WarehouseCode == "CodeOnTheForm")
          oItem.WhsInfo.Locked = SAPbobsCOM.BoYesNoEnum.tYES;

Similar Messages

  • New Warehouse for selected items

    we need create a new warehouse and we need it to be assigned to only some of the items. Can this be done by a DTW import or do I have to go into each and every single item and manually add that warehouse?

    Simon,
    This can be done via DTW.
    You want the template oItems
    Then the files:
    Items.csv and ItemWarehouseInfo.csv
    In the Items.csv file, you only need:
    RecordKey (can be numeric "1,2,3" or could be the Item Code)
    ItemCode
    Then in the ItemWarehouseInfo.csv file you need these fields:
    RecordKey (reference back to the header file with Item Code)
    LineNum (starts with zero for the first warehouse, then 1,2,3)
    WarehouseCode (the warehouse code)
    You'll want a line per warehouse for each item, in the warehouse file.
    This will add the warehouses to the items.
    In DTW, set it to Update
    Hope that helps,
    Brad Windecker

  • No cost on for stocked Item via return

    From time to time we stock in an Item to a Return Warehouse via a return and since there is no cost for that item it is stocked in with no associated cost.
    Are there others experience this problem?
    If so how do you do a work around?

    Check - Allow stock release without item cost is ticked in
    Administration -->System Intialization --> Company Details --> Basic Intiallization Tab,
    Simulate it in test database before doing it.
    If it is ticked, detick it
    Do Inventory Revaluation to a new price.
    Jeyakanthan

  • Silence Lenovo Solution Center Alerts for specific items via registry/config file.

    I need to be able to customize the alerts generated by LSC.  Like disabling alerts for updates and backups (I handle those for end users via other tools).  Is there a registry setting or file I can edit to change these alerts?  Requesting my end users open up LSC and disable specific alerts isn't an option.
    Thanks for any advice in advance!

    Hello everybody,
    I have set DECLINE_SECURITY_UPDATES=true but still have the problem.
    David D'Acquisto's response-files, don't help in my case because I need a completely silent installation with all necessary information inside. But his files are largely empty. So I can't figure out with entry in it causes the problem.
    Metalink contains the following "solution":
    "Cause
    The name of one environment variable contains spaces and the installer is not able to convert them internatelly. For instance, there is a variable called "PATH ".
    Bug 8995616 "DB INSTALLER VALIDATES EMAIL AND FAILS".
    Solution
    - Check the Environment variables and be sure that none contains spaces or special characters on its name
    - retry the installation
    I don't see any problem in my environment variables, or which ones should I check?
    Many thanks in advance,
    Xenofon

  • Alignment of body for work item via SWNCONFIG

    Hi All,
    As per my present client scenario, every work item will be sent to UWL and external mail also. It means, user wants to execute the work item from external mail (Gmail or outlook)through SWNCONFIG transaction. Here my issue is as follows.
    I am getting the below issue when work item goes to external mail.
    Body sequence is out of alignment as you can see it in Red color below(You can observe the placement of the symbol u2018:u2019 is out of alignment).
    Actual Output Required:
    Item #                         : &MATNR&
    Description                    : &WA_MARA.MAKTX&
    Item type                      : &WA_MARA.ITEMTYPE&
    Project ID                     : &WA_MARA.LPID&
    Product Group                  : &WA_MARA.PRODUCTGRP&
    Purchase / Manufacture value   : &WA_MARA.PUR_MAN_VALUE&
    PDM Status                     : &WA_MARA.PDMSTATUS&
    Life Cycle Status              : &WA_MARA.LCSTATUS&
    Task sent by                   : &WA_MARA.ZUSER&
    Actual Output Obtained At Present:
    Item # : 1111
    Description : PDM Data
    Item type : PHysical Item
    Project ID : Local Project ID
    Product Group : Product Group
    Purchase / Manufacture value : P
    PDM Status : PDM Status
    Life Cycle Status : Life cycle
    Task sent by :
    Please let me know the solution for this asap.I would really appreciate you for your help in this.
    Thanks in advance..

    Hi!
    You can try playing around with mail formats in SWNCONFIG, provided work item text is formatted using tabs, however I do not think that will help. You should format task description using SAPscript formatting symbols - SWN_SELSEN should convert it to correct output format.
    Or you can create work item description in HTML - that should keep formatting everywhere. Use tab "Work item display" in your WF step, there is a demo f-n module SWL0_PREVIEW_DEMO_HTML that can be used as example.
    WBR -
    Pauls

  • 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

  • Warehouse vs. Item Group

    When is the best time to use Warehouse GL Determination against Item Group GL Det. and vice versa?
    Thanks,

    Joel,
    This is a very difficult situation to please any client.  One thing to understand is there is only way to this.  If the Client wants to monitor profitability by Item group, I mean track sales, cost, profits, expenses then Item group is the way to go.
    If this is the case then they will not be able to exclude missing, defective items from the Balance sheet.
    If we go with your existing plan of creating 4 variations of each warehouse i.e., Item group, it could become a tough task it the Item groups are going to be added regularly.  This can eventually become un-manageable.
    You could keep your G/L by Item group and have 3 Item groups for
    Warehouse1 - Defects
    Warehouse1 - Expired
    Warehouse1 - Expiring
    and whenever you mark an Item as defective, just create a new Item in the appropriate item group with the name Itemcode-D or Itemcode-E.  Do a goods issue of the original item and then do a goods receipt of this new Item you created.  This way you can have a deferentiation in stock of the same Item.
    If you think this would be tough to manage then you can go with your original idea of having 4 warehouses for each Item group.
    Best wishes
    Suda

  • Re:Query for Stock Statement for a particular item..!!!!

    Dear SAP Experts,
    I need a stock statement query  for a particular item which contains:
    1.ItemCode
    2.Item Description
    3.Item Price
    4.Opening
    5.Receipts
    6.Issues
    7.Closing
    8. Value
    The selection criteria are:
    1.Warehouse code
    2.Item Name
    3.Posting Date
    Plz give me a good solution for this issue.
    With Regards,
    Revathy

    Check this
    Declare @FromDate Datetime
    Declare @ToDate Datetime
    set @FromDate =
        (Select min(S0.Docdate) from OINM S0 where S0.Docdate >='[%0]')
    set @ToDate =
        (Select max(S1.Docdate) from OINM S1 where S1.Docdate <='[%1]')
    select * from
        SELECT T0.itemcode,
        min(T0.Dscription) as 'Item Description',
        min(B1.ItmsGrpNam) as 'Item Group', W1.Whscode, C1.Location,
        (isnull((
            Select sum(isnull(inqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode
            and O1.Warehouse=W1.Whscode
            and O1.docdate<@FromDate ),0)-
        isnull((
            Select sum(isnull(outqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode
            and O1.Warehouse=W1.Whscode
            and O1.docdate<@FromDate),0)
        ) as [Opening Stock],
        isnull((
            Select sum(isnull(inqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode
            and O1.Warehouse=W1.Whscode
            and O1.docdate>=@FromDate
            and O1.docdate<=@ToDate and O1.inqty>0
            and O1.transtype in (20,18)),0
        ) as [Purchase Quantity],
        isnull((
            Select sum(isnull(outqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode
            and O1.docdate>=@FromDate and O1.docdate<=@ToDate
            and O1.outqty>0 and O1.transtype in (21,19)),0
        ) as [Purchase Return Quantity],
       isnull((
            Select sum(isnull(outqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode
            and O1.docdate>=@FromDate and O1.docdate<=@ToDate and O1.outqty>0
            and O1.transtype in (13,15)),0
        ) as [sale Quatity],
        (isnull
            Select sum(isnull(inqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode
            and O1.docdate<=@ToDate),0
            isnull((
                Select sum(isnull(outqty,0))
                from OINM O1
                where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode
                and O1.docdate<=@ToDate),0)
        ) as [Closing Stock]
        FROM OINM T0
        INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode
        INNER JOIN OITW T2 ON T1.ItemCode = T2.ItemCode
        INNER JOIN OITB B1 ON T1.ItmsGrpCod=B1.ItmsGrpCod
        INNER JOIN OWHS W1 ON T2.WhsCode = W1.WhsCode
        INNER JOIN OLCT C1 ON W1.Location=C1.Code
        Group by T1.itemcode, T0.Itemcode, W1.WhsCode, C1.Location
    ) a
    where (a.[Opening Stock]
            +a.[Purchase Quantity]
            + a.[Purchase Return Quantity]
            +a.[sale Quatity]+a.[Closing Stock]
           ) !=0
    Regards,
    Bala

  • Workflow Start automatically for particular item of list

    Hi,
    I have created workflow using visual studio for custom list. My workflow type is manually start not start on Item create and change.
    I want to start workflow only when the start date of the custom list is same date of today. for this which steps I need to follow that run workflow in background and start workflow for particular item whose start date is satisfied with today's date?

    Hello,
    You need to create event receiver on (i.e. ItemAdded and ItemUpdated)that list to start WF via code when condition is satisfied. I had similar requirement in past and this is what i did.
    You may refer below link to see sample code:
    http://blog.mmasood.com/2012/06/programatically-start-workflow.html
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/75304724-f32f-466b-90d4-f4fdfe7f2bf7/start-workflow-programmatically
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Total of particular items of various open sales orders for particular cust

    HI.. following are my Items code  :
    2009,  8010, 8016, 9831, 27363, 27361, 27360, 27181, 16095.
    i want the report that consists of all items to be delivered to the customer. I  have created the following query :
    SELECT T0.CardName AS 'Dept_Name',
    (Select SUM(isnull(T1.OpenQty,0)) from RDR1 T1 WHERE T1.DocEntry = T0.DocEntry AND T1.ItemCode = '2009') '2009',
    (Select SUM(isnull(T1.OpenQty,0)) from RDR1 T1 WHERE T1.DocEntry = T0.DocEntry AND T1.ItemCode = '8010') '8010',
    (Select SUM(isnull(T1.OpenQty,0)) from RDR1 T1 WHERE T1.DocEntry = T0.DocEntry AND T1.ItemCode = '8016') '8016',
    (Select SUM(isnull(T1.OpenQty,0)) from RDR1 T1 WHERE T1.DocEntry = T0.DocEntry AND T1.ItemCode = '9831') '9831',
    (Select SUM(isnull(T1.OpenQty,0)) from RDR1 T1 WHERE T1.DocEntry = T0.DocEntry AND T1.ItemCode = '27363') '27363',
    (Select SUM(isnull(T1.OpenQty,0)) from RDR1 T1 WHERE T1.DocEntry = T0.DocEntry AND T1.ItemCode = '27361') '27361',
    (Select SUM(isnull(T1.OpenQty,0)) from RDR1 T1 WHERE T1.DocEntry = T0.DocEntry AND T1.ItemCode = '27360') '27360',
    (Select SUM(isnull(T1.OpenQty,0)) from RDR1 T1 WHERE T1.DocEntry = T0.DocEntry AND T1.ItemCode = '27181') '27181',
    (Select SUM(isnull(T1.OpenQty,0)) from RDR1 T1 WHERE T1.DocEntry = T0.DocEntry AND T1.ItemCode = '16095') '16095'
    FROM ORDR T0
    but i want the total of particular items of various open sales orders for particular customer.
    pls improve the above query.
    thanks
    reema

    Hi,
    Try this
    SELECT T0.CardName AS 'Dept_Name',
    (Select SUM(isnull(T1.OpenQty,0)) from RDR1 T1 WHERE T1.DocEntry = T0.DocEntry AND T1.ItemCode = '2009') '2009',
    (Select SUM(isnull(T1.Quantity,0)) from RDR1 T1 WHERE T1.DocEntry = T0.DocEntry AND T1.ItemCode = '2009') 'All 2009',
    (Select SUM(isnull(T1.OpenQty,0)) from RDR1 T1 WHERE T1.DocEntry = T0.DocEntry AND T1.ItemCode = '8010') '8010',
    (Select SUM(isnull(T1.Quantity,0)) from RDR1 T1 WHERE T1.DocEntry = T0.DocEntry AND T1.ItemCode = '8010') 'All 8010',
    (Select SUM(isnull(T1.OpenQty,0)) from RDR1 T1 WHERE T1.DocEntry = T0.DocEntry AND T1.ItemCode = '8016') '8016',
    (Select SUM(isnull(T1.Quantity,0)) from RDR1 T1 WHERE T1.DocEntry = T0.DocEntry AND T1.ItemCode = '8016') 'All 8016',
    (Select SUM(isnull(T1.OpenQty,0)) from RDR1 T1 WHERE T1.DocEntry = T0.DocEntry AND T1.ItemCode = '9831') '9831',
    (Select SUM(isnull(T1.Quantity,0)) from RDR1 T1 WHERE T1.DocEntry = T0.DocEntry AND T1.ItemCode = '9831') 'All 9831',
    (Select SUM(isnull(T1.OpenQty,0)) from RDR1 T1 WHERE T1.DocEntry = T0.DocEntry AND T1.ItemCode = '27363') '27363',
    (Select SUM(isnull(T1.Quantity,0)) from RDR1 T1 WHERE T1.DocEntry = T0.DocEntry AND T1.ItemCode = '27363') 'All 27363',
    (Select SUM(isnull(T1.OpenQty,0)) from RDR1 T1 WHERE T1.DocEntry = T0.DocEntry AND T1.ItemCode = '27361') '27361',
    (Select SUM(isnull(T1.Quantity,0)) from RDR1 T1 WHERE T1.DocEntry = T0.DocEntry AND T1.ItemCode = '27361') 'All 27361',
    (Select SUM(isnull(T1.OpenQty,0)) from RDR1 T1 WHERE T1.DocEntry = T0.DocEntry AND T1.ItemCode = '27360') '27360',
    (Select SUM(isnull(T1.Quantity,0)) from RDR1 T1 WHERE T1.DocEntry = T0.DocEntry AND T1.ItemCode = '27360') 'All 27360',
    (Select SUM(isnull(T1.OpenQty,0)) from RDR1 T1 WHERE T1.DocEntry = T0.DocEntry AND T1.ItemCode = '27181') '27181',
    (Select SUM(isnull(T1.Quantity,0)) from RDR1 T1 WHERE T1.DocEntry = T0.DocEntry AND T1.ItemCode = '27181') 'All 27181',
    (Select SUM(isnull(T1.OpenQty,0)) from RDR1 T1 WHERE T1.DocEntry = T0.DocEntry AND T1.ItemCode = '16095') '16095'
    (Select SUM(isnull(T1.Quantity,0)) from RDR1 T1 WHERE T1.DocEntry = T0.DocEntry AND T1.ItemCode = '16095') 'All 16095'
    FROM ORDR T0
    Regards,
    Bala

  • Lock a tcode for particular user

    Hi Experts
    i need to lock few transaction for particular users only. we have n number of roles and the transactions have been assigned to some tcodes to be reasticted  for a list of users. is there any method or program to built to restrict the users for few tcodes.is there any more query pl trigger me
    regards
    bala

    hi
    sagar:
    as you said if i start creating roles to restrict some users then there atleast 25 tcodes are there to restrict and 120 roles are to be analyzed and the job becomes hefty by creating roles and there will too many number of roles and it becomes confusion in future forecast. there fore i nedd any suggestion like that the userscan be restricted when they are trying to access that particular code or lock the screen or inform them to not access these tcodes thro some message or writing a program to restrict the users while the user exits. i have an idea but i dont know how it will work - ( I am not a ABAPER) there should be tcode or program which should list tcodes authorized for particular users and where they can be locked like SM01 ( but it will lock for all) but locking for particular users
    Am i more advanced??
    regards
    bala

  • How to change the particular item size via script?

    Hello,
    I need to change the particular item(pathitem,grapitem) size(width and height) in the illustrator cs3 file through script. Is it possible kindly advice me.
    Thanks for looking into this...

    I changed the widh and height of the selected items. While converting stroke weight of the selected item also changed. But i need to change the width and height of the selected items without any modification in the stroke weight(scale strokes and effects). Could you please advice me the possiblilities and solution via scripting.
    Thanks for looking into this..

  • Particular Item for specific vendor

    Hi All,
    I wanted to know is there any way through which we can select a particular item while creating a Purchase order? I want the system to display a particular item as soon as i select a particular vendor! Can this be achieved? Or is there any other way to handle this?
    The scenario is, we have an item which we purchase both from local vendors as well as we import the same. We have created two items so that we can trace the details whether the item was purchased locally or imported. Now, the need arises as when we select the foreign vendor, we would like to get the item (which we created for import purpose) by default. Can this be achieved? Please let me know.
    Thanks in advance,
    Joseph

    If you define a UDF on business partner master e.g. as U_DefItem, then you can make an FS like this:
    Select U_DefItem From OCRD Where OCRD.CardCode=$[$4.1.0]
    and connect it to the Item No. field autorefresh when Customer/Vendor code changes.
    If you already have an FMS on this field which executes an SP then you can incorporate this code into it. If your original FMS selects an item code at some condition, you can modify it to select this default one otherwise.
    Edited by: István K#rös on Nov 9, 2009 10:06 AM

  • How to create a sequence for an particular item in my apex form

    Hi friends,
    I created an database application, of a form with a report, and it is working fine...
    But in my form, i have a requirement....The below are the existing fields in my form
    issue no
    created by
    start date
    status
    priority
    due date
    Among these fields in my form i need to create a 'Sequence' for my field "issue no",
    So that whenever i opened the form the 'issue number' must generate automatically like 1 for the first time, 2 for the second time and so on..
    For that i created a sequence
    CREATE SEQUENCE "ORDERS_SEQ"
    MINVALUE 1
    MAXVALUE 999999999999999999999999999
    INCREMENT BY 1
    START WITH 1000
    NOCACHE
    NOCYCLE;
    But for validation where i need to write the sequence query for the particular item 'issue no'....i dont have any idea of where to write the validation query for the sequence..
    please tell where i need to write in step wise manner..please help me friends...
    As the below is my validated sequence query for item 'issue no'
    'select seq.issue_id.nextval into issue_no'
    This is my above validation query whether the query that i mentioned is right..if not let me know the validation query..
    And also i need where to apply this validation query in steps..
    Thanks in advance
    Regards,
    Harry...

    Harry,
    Rik is on the right track. Here is a sample insert trigger: Would need to substitute you sequence ORDERS_SEQ with my sequence las_log_seq, how you define or use timestamps is up to you.
    DROP TRIGGER LASDEV.BINS1_LAS_LOG_TBL;
    CREATE OR REPLACE TRIGGER LASDEV."BINS1_LAS_LOG_TBL"
       BEFORE INSERT
       ON las_log_tbl
       FOR EACH ROW
    BEGIN
       -- Description: Insert log_seq, creation_dt, creation_id,
       --              lst_updt_dt and lst_updt_id.
       -- Maintenance:
       -- Date        Actor          Action
       -- ====        =====          ======
       -- 07-Sep-2010 J. Wells       Create.
       :new.creation_id := nvl( v( 'app_user' ), user );
       :new.creation_dt := SYSDATE;
       :new.lst_updt_dt := :new.creation_dt;
       :new.lst_updt_id := :new.creation_id;
        SELECT las_log_seq.NEXTVAL
          INTO :new.las_log_seq
          FROM DUAL;
    END bins1_las_log_tbl;
    /Heff

  • How to Lock particular template for user editing.

    Hi Gurus,
    we have some templates created on top of infoset querrys to display the output in specific format. I want to lock particular templates for user modification. That means when the user is trying to change the template layout and try to save with the same name it should not allow to do that. if the user wants in another name then it must allow the user to do that.
    How can i achieve that.
    Thanks in Advance.
    Appreciate your help.

    Use a naming convention on templates with a particular prefix, ie ZCORP***.  Then create an authorization object that specifies that templates with the prefix ZCORP cannot be changed or deleted.  The user will be able to changed and save under a different name, but not the same one.
    Thanks for any points assigned.
    Regards -
    Ron Silberstein
    SAP

Maybe you are looking for