Change default storage location during creation of PO

Hello all,
I have the following question.
When creating a purchase order using ME21N and filling in the items, the storage location is retreived from the material masterdata and displayed as default.
I need to change this default, because the storage location must be determined in another way.
So when entering the values for the item in the screen, another Stloc needs to be determined and displayed, overwriting the Stloc from the material master data.
For this I probably need a BAPI.
Can anyone tell me which BAPI to use and how I can implement this?
Because I also no experience with BAPI's.
Thanks in advance.
Kind regards,
Marco

Hi Van,
You need to goto SE18 -> give 'ME_PROCESS_PO_CUST'  in BADI Name - > Click on Enhancement Implementation at the header -> Create -> Give some implementation name starts with 'Z ->provide some short description -> Here you need to click on 'Interface' tab -> and double click on the method which serves your purpose.
I think you need to do the enhancement for storage location so you need to use the method 'PROCESS_ITEM'.
<text removes>
Thanks,
Siva
Message was edited by: Matthew Billingham - don't ask for points

Similar Messages

  • Change Default Media Location During Installation

    Hello Everyone,
    I'm currently working on installing iTunes using command lines to push it to multiple computers in the organization I work for. However, we would like to change the default media location to C:/iTunes (as an example) during installation, instead of it being created in \\server\user\music\iTunes (example). We'd like to change it so it's not storing files on the server and not taking up space on people's personal work shares.
    I searched other discussions and Google'd it, but I couldn't find a definitive answer.
    We use Windows 7 x64 operating system if that needs to be known.

    Hmm, no one here has any idea if this can be done?

  • How to change the line item storage location during the sales order creatio

    How to change the line item storage location during the sales order creatio

    Hi Kumar,
    I think you can just delete it in the sales order directly, if you are using make-to-order scenario, then there will be special stock left for the sales order as the production has been goods receipt, you need to use MM transaction move the stock to unrestricted use stock. If you are using make-to-stock scenario, there should be no further problem. If you are using assembly order, please try to reject the sales order item to see if it could fullfill your requirement.
    Regards,
    Rachel

  • Picking quantity from a different storage location during batch split??

    Hi Gurus,
    Have an issue with doing batch split in a delivery with batches from several storage locations.
    Have delivery XXXXXX where I want to pick batches from several different storage locations.
    I click on the batch split button and select the different batches and quantitys.
    The issue here is that I would like to have the different storage locations entered automatically based on the selection of the batch I have made.
    The only storage location that is entered here or possible to be entered is the defaulted storage location that is in the first screen...
    My question is why can I get the storage location where the batch is located and acctually exists when I do select the batch in the batch split...
    The table LIPS and LGORT is not filed with the storage location so I do not know how I could fill this field with the correct storage location data...
    Thank You for all Your help!
    BR,
    Christian

    Hi Christian,
    you have not jet got an answer  -- here my suggestion.
    You have to use the Userexit Mv50afz1. Here you can do some checks and  you can do a popup, where you can sign the LGORT, where the batch is.
    In any case, you need an ABAPer
    In documentation, there is signed, that you should not change database other as Save_prepare - and that's too late.
    In one solution at my company, i show in a message the right information. In an other solution, i made a modification of table lips.
    But dont change the index of the current lips/xlips. That may have the effect of incorrest LIS - System.
    If nessesary create an ylips- Line of the position.
    Use an assign-command to avoid the change of the index.
    hans

  • Automatic storage location view creation in maintenace order (IW31)

    Hello,
    Seems like I need some help.
    Have configured automatic storage location view creation for GR and reservation. Configured movement types are 101, 201, 261. While creating reservations (201, 261 mvmnt. types) with mb21 the sloc view is automatically created in material master, and everything seems fine.
    But in iw31 when I specify material number and sloc in a Components tab, I get an error message CO312: "The storage location data is not created". Automatic reservation is not created, and maintenance order can not be saved. Movement type 261 is used for automatic reservations for the maintenance order.
    If I configure message CO312 as a (W)arning  message, then it allows me to save the order and reservation, but sloc view in material master still is not created. Think that's not good and may lead to MRP issues.
    How can I configure automatic sloc view creation in iw31? Is that possible?
    Edited by: Konstantin Dudura on Nov 17, 2009 8:11 PM

    Hi,
    The customization required for Automatic Storage location creation at reservation are:
    Goto : SPRO -> MM -> inventory Management and physical inventory -> Goods issue/ Transfer posting -> Create storage location automatically
    first of all go to Plant and tick the automatic Storage location creation for the Plant. After that goto Movement type and tick the automatic Storage location for movement type 261.
    Regards

  • How to change the storage location in Lightroom 3.6.?

    How to change the storage location in Lightroom 3.6.?
    I use my internal hard drive NTFS of my MacBook Pro  as my storage location of Lightroom 3.6. being installed in Snow Leopard now but the data of my photos get too big now. I have two fast and big external hard drives eSATA now which I want to use for my data/photos. I know how to copy the data from one hard drive to another but I don't know how to change the settings in connection with Lightroom easily. I still want to watch all fotos on my MacBook Pro but don't want to save any fotos on my internal harddrive any more. Isn't it possible to have the programm Lightroom on my internal harddrive but the data on two times on two different extermal hard drives? If I look at Lightroom - settings of catalogue - I see that the internal harddrive location is my storage location now but I my two external harddrives don't appear as folders. Why? How to change that so that the external hard drives appear in Lightroom and I can watch all my fotos immediately (sometimes using external hard drive 1 and sometimes using external hard drive 2)?
    My external hard drives are in HFS+ but I use the software of Paragon so that there shouldn't be any problem to read and write the data (I use also Final Cut Express so my external hard drives are HFS+ and not NTFS).
    I want to impert many data from CDs - should I copy the fotos first to my external hard drive and then import it into Lightroom or is it easier to import the data directly from the CD in Lightroom so that I don't have to name the folders two times?
    I see that I have to sort the fotos from the CDs in new different folders and an used to do that in Finder of my MacBookPro. In Lightroom I don't want have to click each of hundreds of fotos to be able to put it into the right folders ... But how to import only a part of a CDs quickly into the right (newly created) folders?
    Kind regards, Karin

    Would you really leave the names of photos like DSC05271.ARW and DSC05271.jpeg etc.?
    What if I name them f.i. like ...
    2013-09-11_Austria_1_mountain.jpeg
    2013-09-11_Austria_2_mountain.jpeg
    2013-09-11_Austria_3_valley.jpeg
    I would NOT do this. I would not change the file name.
    I would add keywords and other metadata to the photos to identify the content of the photos, and from that point on, I would use keywords and other metdata to search for these photos.
    However, let's look at the big picture. I think there are three different methods of organizing
    Organize via keywords and other metadata, and not via operating system constructs such as file name and folder name
    Organize via operating system constructs such as file name and folder name, and not via keywords and other metadata
    Some combination of 1 and 2
    You can choose any one of the three methods above, the choice is yours. I am a very strong believer that for most people (and it sounds like you are one of those people), method 1 is the best method. However, not everyone agrees.
    There are drawbacks to using file names to identify your photos. One big drawback is that you must type the information into each photo's name, and this is more tedious than if you wanted to assign the keyword "mountain" to the photos, you can assign the keyword to multiple photos at once. Also, if you mis-spell the information in the file name on any photo, you have just made the photo much harder to find; whereas in Lightroom, the keyword can be assigned via a mouse click (so you can't mis-spell it), or by typing the first few letters and Lightroom (auto-fill) will find the correct keyword name. So using keywords is a much simpler way to go.
    .. is this much too complicated to do that in Lightroom or even dangerous to got lost of photos?
    It is very simple to add keywords, as I explained for this case. Create keywords "Austria", "Mountain", "Valley"; then select the desired photos, and then click on the check box next to the keyword name. It is much more complicated in my opinion to rename the photos in this manner.
    There is less danger in doing this via keywords than the danger doing this via file names, because of potential mis-spellings.
    If I spend a lot of time in editing photos (in Lightroom or Photoshop) I don't want that I loose those photos f.i. later if Lightroom won't be the software I use regarding the photos (in 10, 20 years?!)
    Lightroom will OPTIONALLY write your keywords and other metadata to the files (or sidecar files in the case of RAW). Every photographic application I know of (and I'm sure those in the future) can read the keywords and other metadata. So if you ever want to switch to some other software, your keywords and other metadata are available. you can turn this option on via Edit->Catalog Settings->Metadata, check Automatically Write Changes to XMP.
    So I have to create two folders - one with the originals and one with the edited exported photos?
    No, you do not have to create two folders. You don't have to export everything, but if you do, you can put the exports wherever you want, including putting them in the same folder as the originals, with different name.
    Why not edit them in Photoshop and save them in the second folder which I import later in Lightroom? Because it takes longer?
    Wow, you really need to think about: Why are you using Lightroom?
    Could you explain this to me? Why are you using Lightroom?
    If your goal is to edit the photos in Photoshop, and then put them in folders with whatever custom name you want to give them, then what is the benefit of using Lightroom? You can do all of this WITHOUT Lightroom. You keep explaining that your intended goal is to use Photoshop and folders/file names, and this is a goal which AVOIDs all benefits of Lightroom. I can't understand what you think the benefits of using Lightroom are for you.
    It is starting to sound to me like Lightroom is not the right software for you.
    Some people want to see a movie on their TV and are able to watch a DVD (not all!). Flickr seems to be a solution for movies in a big size (many GBs) to share them with friends (?)
    You haven't mentioned this before, and you should check the rules on Flickr regarding how long a video you can upload.

  • How to change the storage location using BAPI_OUTB_DELIVERY_CHANGE

    Hi !
    I want to do batch split in the delivery using BAPI_OUTB_DELIVERY_CHANGE.
    Can anyone tell me how to pass/change the storage location of each batch item.
    Is there any other BAPI that can do the batch split and populate the storage location also for the split batches?
    Regards,
    Firoz.

    Hi all,
    BAPI_OUTB_DELIVERY_CHANGE  can be used to do batch split and updating storage loaction against each item of an outbond delivey.
    I have done that in the folllowing way:
    1 > Firstly i have updated the storage location for each delivery item using 'BAPI_OUTB_DELIVERY_CHANGE' passing some mininal parameters.
       Fetch the item details from LIPS table based on the outbound delivery and pass the corresponding fields to item_data, item_control  and item_data_spl parameters and passed into intenal table li_lips.
    Loop at li_lips inti lw_lips.
        lw_item_data-deliv_numb           = lw_lips-vbeln.
        lw_item_data-deliv_item             = lw_lips-posnr.
        lw_item_data-material                = lw_lips-matnr.
        lw_item_data-fact_unit_nom      = lw_lips-umvkz.
        lw_item_data-fact_unit_denom  = lw_lips-umvkn.
        lw_item_data-base_uom            = lw_lips-meins.
        lw_item_data-sales_unit            = lw_lips-vrkme.
        lw_item_control-deliv_numb      = lw_lips-vbeln.
        lw_item_control-deliv_item        = lw_lips-posnr.
        lw_item_data_spl-deliv_numb   = lw_lips-vbeln.
        lw_item_data_spl-deliv_item     = lw_lips-posnr.
        lw_item_data_spl-pick_denial   = 'X'.
        lw_item_data_spl-stge_loc       = v_lgort.
    "(This would be your Storage Location which you want to be updated)
    Appending work areas into internal table to pass as parameter
        APPEND lw_item_data_lgort     TO li_item_data_lgort .
    Appending work areas into internal table to pass as parameter
        APPEND lw_item_control_lgort  TO li_item_control_lgort.
    Appending work areas into internal table to pass as parameter
        APPEND lw_item_data_spl_lgort TO li_item_data_spl_lgort.
    endloop.
    Passing the delivery no in the work area of header data
      lw_header_data-deliv_numb           = v_delivery_no.
      lw_header_control-deliv_numb       = v_delivery_no.
      lw_header_tech_control-upd_ind   = 'U'.
    Calling BAPI to change the Storage location
      CALL FUNCTION 'BAPI_OUTB_DELIVERY_CHANGE'
        EXPORTING
          header_data       = lw_header_data
          header_control   = lw_header_control
          delivery               = v_delivery_no
          techn_control     = lw_header_tech_control
        TABLES
          item_data           = li_item_data
          item_control       = li_item_control
          return                 = li_return_change
          item_data_spl    = li_item_data_spl.
    Calling BAPI to committ the task
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' .
    2> Then i have used the same BAPI again 'BAPI_OUTB_DELIVERY_CHANGE' to do the batch split/update batch only(if required) and change the Actual Delivered Quantity.
    Here you have to pass the same thing along with actual delivery qauntity and different batches to do batch split.
    Here it is assumed that Batch numbers, actual delivered quantity are coming from an internal table i_lqua.
    Looping through Internal table to get Bin details
      LOOP AT i_lqua INTO w_lqua .
    Clearing work area before use
        CLEAR : lw_item_data, lw_lips, lw_item_control, lw_item_data_spl.
    Reading table comparing metrial number
        READ TABLE li_lips INTO lw_lips
        WITH KEY matnr = w_lqua-matnr BINARY SEARCH.
    If read is successful, passing values from table
        IF sy-subrc EQ 0.
    Passing the delivery details into Item level table
          lw_item_data-deliv_numb              = lw_lips-vbeln.
          lw_item_data-deliv_item                = lw_lips-posnr.
          lw_item_data-material                   = lw_lips-matnr.
          lw_item_data-batch                       = w_lqua-charg.
          lw_item_data-dlv_qty                    = w_lqua-verme.
          lw_item_data-dlv_qty_imunit         = w_lqua-verme.
          lw_item_data-base_uom               = w_lqua-meins.
          lw_item_data-hieraritem                = lw_lips-posnr.
          lw_item_data-usehieritm                = 1.
          lw_item_data-fact_unit_nom          = lw_lips-umvkz.
          lw_item_data-fact_unit_denom      = lw_lips-umvkn.
          lw_item_data-sales_unit                 = lw_lips-vrkme.
          lw_item_control-deliv_numb           = lw_lips-vbeln.
          lw_item_control-deliv_item             = lw_lips-posnr.
          lw_item_control-chg_delqty           = 'X'.
          lw_item_data_spl-deliv_numb        = lw_lips-vbeln.
          lw_item_data_spl-deliv_item          = lw_lips-posnr.
          lw_item_data_spl-stge_loc            = w_lqua-lgort.
          lw_item_data_spl-pick_denial        = 'X'
    Appending work area into internal table to pass as parameter
          APPEND  lw_item_data TO  li_item_data.
    Appending work area into internal table to pass as parameter
          APPEND lw_item_control TO li_item_control.
    Appending work area into internal table to pass as parameter
          APPEND lw_item_data_spl TO li_item_data_spl.
    Clearing work areas after use
          CLEAR : lw_item_data, w_lqua,lw_item_data_spl,lw_item_control,
                        lw_vbpok, lw_lips.
        ENDIF.
      ENDLOOP.
    Passing the delivery no in the work area of header data
      lw_header_data-deliv_numb           = v_delivery_no.
      lw_header_control-deliv_numb       = v_delivery_no.
      lw_header_tech_control-upd_ind   = 'U'.
    Calling BAPI to change the Batch/Batch-Split/Delivery Quantity
      CALL FUNCTION 'BAPI_OUTB_DELIVERY_CHANGE'
        EXPORTING
          header_data           = lw_header_data
          header_control       = lw_header_control
          delivery                   = v_delivery_no
          techn_control         = lw_header_tech_control
        TABLES
          item_data                = li_item_data
          item_control            = li_item_control
          return                     = li_return_change
          item_data_spl         = li_item_data_spl.
    Calling BAPI to committ the task
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' .
    This is the only way which i found as better way to do the Batch split and updating storage location togetherly.
    I hope this code will help you.

  • Default Storage Location

    Hello Gurus,
    I am creating a stock transport order and creating a delivery through VL10G, when i create the delivery the default storage location should be X, but it is taking Y as default storage location. Can you guide me through config and also would there be any userexits that can be kept for this storage location.
    Thanks,
    Sri

    Hi,
    Can you check the below config done?..
    1)SPRO>LE>shipping>Picking>Determine Picking Location..
    2) Define rule for picking locn determination for the delivery type..in your case for deli typ..NL or NLCC
    3)Go to "assign picking location" submenu and maintain default picking storage location for the data as per Rule. e.g. if rule is shipping point plant and storage condition...you need to maintain X SLoc for particular shipping point, plant and storage condition.
    Hope this will help..
    Reg,
    Sudhir

  • Default Storage Location of Child items in BOM

    Hi Experts,
    We are facing a problem, when we create BOM, we have to manually put default Storage location (Backflush Storage Location) in each of the line item. Can somebody suggest me some solution sothat it should come automatically in all the line items.
    Ishu

    Dear Ishu,
    1.Backflushing storage location can be set either in the material master in MRP 2 view or else in the BOM under status/Long text
    tab page.
    2.The reason why SAP has provided this option at 2 places is if the material is always backflushed from the same storage
    location for any assembly(assuming if this material is used in diferent assembly) means you can set it in the material master.
    3.If it's BOM or assembly specific means,set it in the BOM.
    4.You have to set this if the backflushing storage location is getting varied for the same component for different assembly
    structure.(This system will not propose automatically).
    Regards
    S Mangalraj

  • Default storage location setting

    Hi,
    how can i set the default storage location.
    I need to reflect it autometically while booking any order.
    Regards,
    Rajdeep

    Hi Rajdeep,
         there are quite different ways to achieve this,
    - If you are open for enhancement, then write the piece of coding to default the storage location in Includ:MV45AFZB under
    USEREXIT_SOURCE_DETERMINATION which could be applicable for all doc types or set of doc types/ item cat's
    OR
    - You can achieve the same requirement with Transaction variant in Tx:SHD0 while recording enter this field manually & at the time of save , save it as "with content" & assign this variant in order doc type details in VOV8.
    then whenver you create sales order using this doc type, storage location will be defaulted. ( assumption is - you have single storage location which has to be defaulted in order)
    Hope it helps,
    Regards,
    ReazuddinMD

  • ONE storage location onther storage location during that period have to be

    Selection criteria:  date
    When the date is given all the material that have been moved to the ONE storage location onther storage location during that period have to be listed.

    Hi G K,
         U can use MB51 tcode, its std. tcode., in this, fill the following fields like this, u will get desired result.
    field name             value
    movement type       311.
    posting date            as u wish( from to date).
    Reward points if useful..
    Regards,
    s.senthil kumar.

  • Changing default directory locations

    I have Vista RC1 installed on a boot partition of my PC, I have changed the default location of "Documents" to my F: drive. Now I want to be able to change the defult location of "Public" folders, so that the dat ais stored on my G: drive.
    I have tried to do this , but when i look at the Properties of Public\Music for example, it will not let me change the location value.
    Does anyone know how i can get around this?
    Adrian

    How do I change the default drive for downloads and installs to d:\program files or d\program files(x86) in Windows 8? I have installed a ssd boot drive and use it  as windows boot and upgrade drive. It's a 300gb drive with 280gb operating space and
    95gb free. I don't want programs automatically installing to this drive. I have to keep changing the drive letter during installs (and some installs don't even ask).

  • Bouncing - Premiere to Audition to Premiere - How to change default save location from Desktop

    When I am bouncing from Premiere to Audition "Edit Clip in Audition", and then apply the effect and save the file, it seems to save the file to the desktop. Is there a way to change this default save location? Can't seem to find it in the preferences.
    Didn't even realize it was doing this. Desktop was getting pretty cluttered.

    You can paste this command in Terminal
    defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
    Or use Mountain Tweaks - click the Mountain Lion tab & it's the sixth item in the left-hand column.
    Both will disable the default iCloud save & still let you have access to iCloud if you want it.

  • CJ20N, auto-defaulted storage location at activity level

    Hi all,
    we have this problem at CJ20N (PS) screen.
    At activity level, componenent overview, if user keys in the material no, a storage location is auto-defaulted
    later we found out that if the material is extended to only 1 storage location,  the storage will be auto-defaulted at componenet overwview, is there any setting to prevent the auto-defaulted storage .. pls advice

    Hi,
    Carry out these IMG steps:
    SPRO 
    Logistic Execution 
    Basic Shipping Functions
    Shipping Point and Goods Receiving Point Determination
    Set Up Storage-Location Dependent Shipping Point Determination
    Assign Shipping Points According to Storage Location,,,,,,,,
    Put in your combination of Shipping Conditions / Loading Group/ Plant/ Storage Location/ Proposed shipping point
    Next time you create a Delivery document,, the system will pick up the above values from the Material/Customer master records and propose a Storage Location at line item number.
    I just tried it and it works, let me know if this works.
    Cheers,
    Mohammed
    Edited by: Mohammed Raheel on Jun 5, 2009 1:09 PM
    Edited by: Mohammed Raheel on Jun 5, 2009 1:11 PM

  • Default storage location for transfer posting

    Hi Gurus,
    In transfer posting using mvt type 311,i want to make the storage location defaulted by a particular storage location. In other words system should not allow transfer posting if i use other storage location. Is this possible?
    Regards,
    Kumar

    [Restrict user to post to a particular storage location|Restrict user to post 313 to a particular storage location.]

Maybe you are looking for

  • Windows 8.1 Search not working

    Hello Everyone, and a happy New Year, I have just installed windows 8.1 pro on my work machine as I like the OS but for some reason the search doesn't search any settings files? I have had a look online and have tried re-indexing and checking permiss

  • Stock Transport Order u2013 Duplicate goods receipt quantity

    We implemented the scenario: the stock transport order process with SD. To post the goods issue , we have created a new goods movement  type (937) with reference to the movement type: 641, to differentiate these movements of other goods movements tha

  • My Ipad 2 is brand new and is not taking a charge when plugged in, is there a reason for this?

    We have been running off of the orriginal charge for 2 weeks and are now down to 9% battery life. We plug it in at night and have tried severel different sockets in case that was the issue. Did our ipad2 come with a faulty charger? Is this a warranty

  • Using custom cursor

    I want to use a cursor from file in my page. How can I do this? I've found: <style> <!-- BODY{ cursor:url("3dwmove.cur"); --> </style> but works only in IE and for all page not only for a link for example.

  • Command specific to AIX and Solaris

    Hi, I have worked on HP-UX.There we used to use VGDISPLAY for displaying the space available.But how about in Solaris and AIX.How do we check and the commands which are different from that of HPUX.