Prevent items from being delivered from a particular warehouse

Hi experts,
We have set one of our warehouses as our Return Warehouse where we track inventory that has been returned from the customer. Is there a way to prevent deliveries from that warehouse in SAP?
Thanks,
Jane

Hi Jane Liang..
Bin Locations is not available for the 8.82.. only available in the SAP 9...
You can Use the Store Procedure Transaction Notification to achieve this...
IF @transaction_type IN ( N'A', N'U' )
   AND @object_type = '15'
  BEGIN
   IF EXISTS(SELECT T.docentry
   FROM   dln1 T
   WHERE  T.docentry = @list_of_cols_val_tab_del
   AND T.[whscode] IN ( '1' ))
---- Change the whscode above  as your customer return whscode ----
   BEGIN
   SET @error = 20
   SET @error_message =
   'You can't use the Return warehouse'
   END
  END
Regards
Kennedy

Similar Messages

  • Can a content query web part dynamically query items from a particular that exists in multiple subsites

    I have a site collection with multiple subsites. All of the subsites have a list called "Status" which is using content types for its column management.
    I want to use a content query web part in the parent site level to query 1 item from everyone of these subsites. Is there a way to do this?
    The only way I can do this is if I create an individual content query web part for each subsite as I did not find an option for my content query to query from multiple subsites at once.

    You can do it using CQWP. For instance, if you have a site column called 'Rollup' that is part of your content type, that will be part of all your subsites custom list 'Status'. On the root site CQWP set the source to 'Show item from the following site and
    all subsites' and choose your root site (first image below). Then add 'additional filters' and set the value to 'Yes' as shown in second figure below; you will be able to roll up all the data to the root site like below. Now, you need to decide what query
    field you will use that is unique and that can roll up. 
    Srini Sistla Twitter: @srinisistla Blog: http://blog.srinisistla.com

  • How do I prevent items from showing up under "Available Software" in the software center after they have been removed?

    I have some scenarios where I want to keep older or multiple versions of an application around in the Application Catalog website. The problem is when I deploy a script to remove one of these applications after removal it starts to appear under "Available
    Software" in the Software Center. Our users have noticed this and discovered that they can go there, select the application and reinstall it. I need to find a way to prevent this. Is there some sort of setting I can enable to prevent certain applications
    from showing up under "Available Software" but still have them listed in the Application Catalog Website? 

    I show in the SDK about properties passed to the Software Center that deal with Applications but nothing on how to interact with it directly in dealing with the Check box for "Show Optional Software". 
    You can always see if there is a captured regentry when you click it.  I don't know if this setting is wiped out when you close the SC.  If so you could create something to create the key to force the check box.  Sorry, maybe someone will
    have a better answer for you.
    http://www.sccm-tools.com http://sms-hints-tricks.blogspot.com
    Thanks for responding again Matthew. Yeah I googled around and got nowhere. I did find a thread here that touched on it where Torsten Meringer responded and seemed to indicate that it could not be done. I find that hard to believe (where there's a will there’s
    a way right?). I did tag the Software Center with a registry watcher on my stet VM and tried unchecking that box. Got nothing so wherever the setting resides it does not appear to be in the registry. Very frustrating to have the solution staring me right in
    the face and being unable to do anything about it. Hopefully someone who has a working method will see this thread and respond. Until then I guess I’ll keep digging.
    Side note – I’ve worked in Oil and Gas now for 10 years. Awesome to have an admin from Schlumberger respond to my post. We energy people have to stick together right? ;)

  • Prevent items from downloading

    I share an account with my daughter but don't want want all her items to download to my devices. How do I prevent this?

    Don't buy them?
    Other than the above, movies must download to be able to watch them after purchase or renting.

  • Prevent batches from being changed in MB1A

    Hi,
        I am looking to prevent batches from being changed by the material handler during the MB1A transaction. Does anyone know of any user exit or BADI in the MB1A tcode to acomplish this or any other way to do it ? The batches determined during production order batch determination are the ones which should be issued out and if for some reason the batch needs to be changed, they should get back to their supervisor to issue a different batch. Is all of this even possible ?
    Thanks
    GS

    Hi GS,
    Please check  Enhancement MBCFC010  Propose batch number on Inventory Management item screen or MB_CHECK_LINE_BADI - BAdI.
    Regards,
    R.Brahmankar

  • Preventing user from selecting item in JTree

    Does anyone know how to prevent the user from being able to change the cell in the tree that is currently selected?
    I have a JTree that the user can select items from but I want them to be able to click on a button and no longer be able to select an item in the tree until another button is pressed.
    Any ideas?

    hi
    i hope the code below helps ur purpose
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.tree.*;
    public class Frame1 extends JFrame {
    JPanel contentPane;
    BorderLayout borderLayout1 = new BorderLayout();
    JPanel jPanel1 = new JPanel();
    JButton jButton1 = new JButton();
    JButton jButton2 = new JButton();
    MyTree jTree1 = new MyTree();
    boolean blnSelection = true;
    /**Construct the frame*/
    public Frame1() {
    enableEvents(AWTEvent.WINDOW_EVENT_MASK);
    try {
    jbInit();
    catch(Exception e) {
    e.printStackTrace();
    /**Component initialization*/
    private void jbInit() throws Exception {
    //setIconImage(Toolkit.getDefaultToolkit().createImage(Frame1.class.getResource("[Your Icon]")));
    contentPane = (JPanel) this.getContentPane();
    contentPane.setLayout(borderLayout1);
    this.setSize(new Dimension(466, 319));
    this.setTitle("Frame Title");
    jButton1.setText("jButton1");
    jButton1.setBounds(new Rectangle(83, 254, 79, 27));
    jButton1.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    jButton1_actionPerformed(e);
    jPanel1.setLayout(null);
    jButton2.setText("jButton2");
    jButton2.setBounds(new Rectangle(177, 256, 89, 23));
    jButton2.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    jButton2_actionPerformed(e);
    jTree1.setBounds(new Rectangle(93, 30, 252, 195));
    contentPane.add(jPanel1, BorderLayout.CENTER);
    jPanel1.add(jButton1, null);
    jPanel1.add(jButton2, null);
    jPanel1.add(jTree1, null);
    /**Overridden so we can exit when window is closed*/
    protected void processWindowEvent(WindowEvent e) {
    super.processWindowEvent(e);
    if (e.getID() == WindowEvent.WINDOW_CLOSING) {
    System.exit(0);
    void jButton1_actionPerformed(ActionEvent e) {
    blnSelection = false;
         jTree1.setSelectionPath(null);
    void jButton2_actionPerformed(ActionEvent e) {
    blnSelection = true;
    class MyTree extends JTree implements TreeSelectionListener
         public MyTree()
              super();
              init();
         private void init()
    this.getSelectionModel().setSelectionModeTreeSelectionModel.SINGLE_TREE_SELECTION);
              this.addTreeSelectionListener(this);
              this.setEditable(false);
         DefaultMutableTreeNode selectedNode = null;
         public void valueChanged(TreeSelectionEvent evt)
    if(!blnSelection)
         this.setSelectionPath(null);
         else
         TreePath tpSelectedTreePath = evt.getNewLeadSelectionPath();
         this.setSelectionPath(tpSelectedTreePath);
    cheers

  • How can an iTunes Match user prevent songs from being uploaded to the iCloud?

    Has anyone who is currently using iTunes Match found a way to prevent selected songs in their music library from being uploaded to the iCloud. I have a number of audio files that are hour long mixes, but aren't quite large enough to run afoul of the 200MB size limit. I'd like to keep using iTunes Match, but would like to prevent it from trying to upload any of these larger files. Any help would be greatly appreciated. Thank you!

    Another oddity I just discovered is that if I turn on wifi hotspot on my phone and connect my iMac to my phone's 3G service then iTunes on my iMac will stream music just fine from iTunes match (yes, the music was only in the cloud, not on my drive).
    I've tried everything I can think of to get iTunes Match to play tracks over cellular.. including totally deauthorizing all my computers and devices, totally removing all tracks my itunes match in the cloud and re-scanning/uploading everything. Purchased new tracks, and they won't play unless they are downloaded. But they will play just fine when previeing them for purchase in iTunes app.

  • Search has encountered a problem that prevents results from being returned. If the issue persists, please contact your administrator.

    Hello Guys,
    I am creating resultsource from central admin. If I create it from central admin it works fine. But if I am creating result source from power shell scripts it shows me following error message.
    An exception of type 'Microsoft.Office.Server.Search.Query.InternalQueryErrorException' occurred in Microsoft.Office.Server.Search.dll but was not handled in user code
    Additional information: Search has encountered a problem that prevents results from being returned.  If the issue persists, please contact your administrator.
    Any suggestion ?
    Thanks in Advance.

    Hi,
    Please provide more specific information about the issue. What type of content source you tried creating via powershell?
    Make sure you are using the approproate permission and search service application.
    Here is the reference for creating content resource via script:
    http://technet.microsoft.com/en-us/library/ff607867(v=office.15).aspx
    Regards,
    Rebecca Tu
    TechNet Community Support

  • How do I prevent files from being backed up to iCloud and iTunes?

    I have created the ios app using adobe AIR16 and flash cc. After submission of my aap into aapstore, I received a message from Apple with the following message –
    From Apple
    2.23 - Apps must follow the iOS Data Storage Guidelines or they will be rejected.
    By using xcode we can prevent files from being backed up to icloud and itunes, but i want to know that  what is the way to achieve this by using AIR. While creating an explicit app id from apple developer account , i am not enabling icloud support.

    Within AIR you can set the File.preventBackup property to true on a directory or file to prohibit that content from being backed up to the cloud:
    File - Adobe ActionScript® 3 (AS3 ) API Reference
    This is all you need to call when you first create the folder or file to have it work with iOS backup guidelines.

  • I receive numerous messages in "Bulk Mail". Where do they come from and how can I prevent them from being received? Thanks

    I receive numerous messages in "Bulk Mail". Where do they come from and how can I prevent them from being received? Thanks

    Once you're on a spammer's list, there's nothing you can do to stop the flood of e-mail messages. You can either control it, using spam filtering (which is what files those messages in the Junk Mail folder), or you can throw out your e-mail address and get a new one.
    It's sad, but spam is simply a fact of life at this point, and there's nothing to be done about it. Legislation has been tried, with zero success, since most spam either comes from countries with no legislation or from personal computers that have been infected with malware and are part of a "botnet."

  • The application detected an error that prevents changes from being saved.

    Hi. I'm having this problem almost all the time when I do some color correction.
    "The application detected an error that prevents changes from being saved. To avoid losing your work, quit Final Cut Pro."
    Any ideas why this is happening?
    I'm on a 2010 Mac Pro running latest Mavericks and latest FCP X.
    I already removed FCP X, and all the effects I have installed. But still the issue persists.
    Thanks.

    That could have happened. I can't remember though.
    Is there any work around?
    I currently only have 1 open library and 1 event on it. If I move or copy that event into a new library, would that in theory work?
    Thanks for the help so far.

  • Is there any way to prevent users from ship confirming on a particular date?

    Hello All,
    We have a requirement to prevent users from ship confirming on a particular date. This is due to they are performing Annual Physical Inventory.
    Is it possible to restrict users performing shipping transactions on this particular date?
    I have tried adding exception to the existing Calendar set at org level and there is no customer specific Calendar defined, however it is still allowing me to perform ship confirm.
    Please let me know if you have any suggestion on this requirement.
    Thanks

    Hi,
    Yes is Possible.
    You can add An Exception in Your Shipping Calender.
    So when Some one tries to ship an Order on that date Oracle will automatically select Next possible date.
    Thanks
    Shameer

  • Is there any way to prevent fields from being overwritten when importing data via xdp-file?

    In an pdf-form designed with LCD everytime the form gets merged with an xdp-datafile content of all fields get overwritten, regardless which data-binding (normal, global, none) is assigned to the fields and regardless if the fields are exluded in the xdp-datafile. Is this normal behavior and is there any way to prevent fields from being overwritten?

    The xdp-file is first exported from Acrobat Professional 8 (export data as *.xdp) to get the complete structure. Then in the xdp-file some fields are removed manually and other fields are filled with data. When the modified xdp-file is opened again with Acrobat Professional 8 it grabs the original pdf-form and merges the manually filled fields into the form. With the merge all other fields in the form are overwritten, even if they are not defined in the xdp-file. And that is what I want to avoid. I want to merge the xdp-file into the form and keep the data in fields not defined in the xdp-file.

  • Is there a way to prevent HTML from being displayed in forum?

    Is there a way to prevent HTML from being displayed in forum in BC to avoid linking to other sites on an eCommerce site?

    Thank you for your post!
    Unfortunately there isn't a way to restrict customers to post on your forums links to other sites.
    However what I suggest here is to choose to moderate each forum post and this way you can choose to approve or remove links from the posts sent by customers.
    I hope this helps!
    Andrei

  • Can I maually check for updates but prevent them from being automatically installed if it turns out one is available?

    Can I maually check for updates but prevent them from being automatically installed if it turns out one is available?
    Background:
    In options I have "check for updates, but let me choose whether to install them" ticked. This works fine, in that I periodically receive a notice of an available update, and it will ask me whether I want to I want to install it.
    But there are certain times -- for reasons I won't go into here (unless requested as part of seeking a solution) -- where I want to manually check for new versions, but RETAIN the ability to decide whether or not to install it. But if I click Help/About Firefox/Check for Updates, and it finds an update, it will immediately proceed to install it without asking for permission. While that seems quite inconsistent with my update preferences in Options, it is apparently normal behavior as described in https://support.mozilla.org/en-US/kb/update-firefox-latest-version#w_how-do-i-manually-check-for-updates.
    So is there any way I can manually check for new-update availability but then refuse the update if I so choose? Once an unwanted install begins, I'm concerned that if I click cancel I could end up with a partial installation or some "messed up," duplicated or corrupted FF files (e.g., multiple versions appended with (1), (2) etc, similar to what sometimes confusingly happens when I do an XP System Restore).
    Thanks.

    I think what needs to be made very clear here is that when a user clicks on "check for updates" the software should bloody well CHECK for updates and most certainly SHOULD NOT proceed to download and apply any updates. this is misleading and intrusive.
    I just wanted to check if there was an updated version but I DID NOT want to actually update at that moment. the software downloaded data, costing me money and tried to apply the update which could have potentially messed up my settings if I had not checked everything was ok first.
    I actually discovered how to prevent the update by searching through windows and manually deleting the files but why should anyone have to go to such lengths?
    the software should simply do as it is asked, not do things that have most certainly not been asked.

Maybe you are looking for

  • Using acrobat 9 pro to create a fill in form

    I am really new to acrobat 9 and need help.  I am trying to create a fill in form from a word doc converted to pdf.  When I convert to pdf I lose control of my access to change tables that were created in word and also not all fields are recognized s

  • Issue with VBRP - KZWI2

    First time doing this so bear with me... We are having issues with a smartform that uses the table/field VBRP/KZWI2. Basically, the pricing procedure used summarizes three conditions for this subtotal and we are only using one of them which should su

  • REG: MDM Installtion in Distributed Environment

    Hi, How to install MDM (7.1 sp06) in a distributed environment with  SQL as the database and Windows OS. Can anyone please provide the document for the same? Regards, Mounika.

  • Ipad 1 question

    Just updated ipad 1 and now there is souns of someone talking on each touch, then it takes a couple of taps for anything to work, whats going on ??? any idea

  • How to mount an AP1142n above a suspended ceiling?

    Hello, Interested to find out what:   1) LWAP adapter   2) Mounting hardware/bracket(s) were used for any LWAP 1142n deployments above a suspended ceiling.  Our installation will not work with the included t-rail mounting hardware and are looking for