About FM to propose storage bin

Hi Experts,
My scenario is: Given source storage unit #, Material #, quantity, try to use 'L_TO_PREPARE_ITEM_INT' to propose destination storage unit # and bin. This is to simulate transaction LT01. The problem is when I tested this FM, I got error message: "Storage Unit ... is not consistent with other transfer order data". However, with same test data, running transaction LT01 can propose destination storage unit# and bin.
Could you please see below codes and find if there is any problems of parameters filled before calling L_TO_PREPARE_ITEM_INT ?
Thanks.
  data: I_LTAK type  LTAK,
        I_LTAP type  LTAP,
        I_MLVS type  MLVS,
        I_MGEF type  MGEF,
        I_RL03A type RL03A,
        I_T333  type T333,
        I_T334T type T334T,
        I_T340D type  T340D,
        E_LTAP type  LTAP,
        E_REDUZ like RL03T-REDUZ,
        T_LPROT type standard table of LPROT,
        T_LMESS type standard table of LMESS.
  i_ltak-lgnum = 'CLK'.
  i_ltak-bwlvs = '999'.
  i_ltap-matnr = w_matnr.    "Material#
  i_ltap-werks = '1000'.
  i_ltap-lgort = '0001'.
  i_ltap-charg = w_charg.    "Batch
  i_ltap-letyp = 'F1'.   
  i_rl03a-anfme = w_gesme.   "quantity
  i_ltap-vlenr = w_vlenr.          "Source Storage Unit#
  call function 'L_TO_PREPARE_ITEM_INT'
    EXPORTING
      I_LTAK = I_LTAK
      I_LTAP = I_LTAP
      I_MLVS = I_MLVS
      I_MGEF = I_MGEF
      I_RL03A = I_RL03A
      I_T333 = I_T333
      I_T334T = I_T334T
      I_T340D = I_T340D
    IMPORTING
      E_LTAP = E_LTAP
      E_REDUZ = E_REDUZ
    TABLES
      T_LPROT = T_LPROT
      T_LMESS = T_LMESS
    EXCEPTIONS
      CALL_FORBIDDEN = 1
      others         = 9.
    if sy-subrc <> 0.
    endif.

Hi,
The first thing you can do is to search this forum using the keywords.. you will get a solution most of the times (80%)..
Else you can try in the Transaction BAPI...
Even if that does not work out
Go to SE37 give some keywords and search for a FM yourself.
Eg: BAPI * STOR * and press F4 it will give you possible FMs... Now you need to check the documentation for that BAPI..
Hope it is of some help.
Regards,
Pramod

Similar Messages

  • WMS proposed storage bin

    Dear Gurus,
    We have configured our WMS successfully with FIFO enabled environment. Now we are implementing barcode and we are interested to get issuance storage bin which is WMS proposing for issuance. Is there any BAPI for which we can determine storage bin for a material from which system will issue after posting.
    Regards,
    FR

    I have written my own BAPI to get required results so problem resolved.
    Regards,
        FR

  • Get proposed Storage bin before do Transfer Order

    Hi all,
    Do you know any FM to get the storage bin proposed by standard in LT06 when you do the Transfer order manually?
    I am using L_TO_PREPARE_ITEM_INT but I think I don't have to use that. The case is that:
    1- we are proposing to the user the storage bin recovered from L_TO_PREPARE_ITEM_INT
    2- when user press a button TO is created like LT06. It is failing with "Available storage bin is 0". But if we go out from our Z screen and we do that by standard LT06 it is working fine so I think our call to L_TO_PREPARE_ITEM_INT is changing maybe some global variables which are doing that when the TO is going to be created it fails.
    Do you have any idea how to get the storage bin? (MARD-LGBPE is not valid because it will not be informed there)
    Regards,
    Manel

    We are still using this FM to get the storage bin. The problem is that LQUAY structure is blocked after the call so we need to dequeue LQUAY before to create the TO

  • Proposal of same destination storage bin as source storage bin

    I am using the function module: 'L_TO_PREPARE_ITEM_INT' for finding out the destination bin. But I am getting the same storage bin of source bin for destination bin proposed thru this FM. It doesn't make any sense. How can I avoid proposal of same storage bin. Is there anything to do in configuration or any userexits can be used to avoid this problem.

    Hello,
    I suspect the issue is from because of Capacity Check Method. Try removing Capacity check Method. If it works fine, then, build the right capacity check method based on your need.
    This should solve your problem.
    Regards,
    Sathish

  • TO storage bin proposed u00BF?

    I have a material with stock in storage bin 1, 2 and 3 that belong to the same storage type. The material picking strategy is F (fixed) and the material has the storage bin 1 setted in the material master.
    I created a TO and it proposed to pick from storage bin 1 and 3, while storage 2 has stock ...
    Have you idea why could be this happening? I checked the storage bin and it isn´t locked, the material has stock ... what other condition is working in storage bin determination?
    thanks in advance

    Ahh, ok! but what of all the dates that are in LQUA table is considering? I have the following, and there is not the creation date, what date are you meaning?
    Last movement
    Last placement
    Last removal
    Last add to stock
    GR Date
    thanks!

  • WMS: Config to block an occupied storage bin

    Dear All,
    I have got a user requirement where by upon stock placement, system should always propose the next empty bin available.
    Besides that, a block should be applied on that bin immediately once stock placement is done. The block is to ensure, no further stock placement can be done into the storage bin, even though there is space available. It should not prevent picking.
    The block should be removed, when the storage bin is empty.
    From the above requirement, the stock placement strategy should be - Next Empty bin (L).
    What about the blocking mechanism ? Is there any config that will acheive the requirement above.
    Yes - at the storage type definition, there is a config called "block upon stock placement". However the block is only activated during stock placement. Once the TO is confirmed, the blocking is removed.
    Appreciate if anyone out there could share their experience.
    Thanks in advance.

    You can use the Capacity check method on the storage type.
    2     Check based on palletization accord. to SUT 1
    Maintain the Storage Unit type 1 in the material master and upon received, it will block.
    Or
    You can use the remaining capacity based on your process.

  • Storage bin available when posting change is not confirmed completely

    Dear Gurus, I have a question for you:
    My costumer wants to do a posting change when the material is released from QM with a decision usage from Q to unrestricted use. The process is done in two steps: with LU04 the TO is generated and with LT12 is confirmed. When the TO is generated the position is half confirmed. With LT21 we can see the row for the ST (lets say ST 504 Open Storage type) and a second row 922 TR-ZONE. The first row appears green (as confirmed) and the second row appears red (Not confirmed).
    My costumer says that " beacause of the strategy given for the storage entry, the storage bin released in the TO (not confirmed completely yet)   is available at this moment.
    If the storage bin is still physically full, the carrier will found not space for leaving the goods even SAP is telling him there is space available at this storage bin."
    I have read that once yo start a TO the storage bin is blocked until the transaction is fully confirmed.
    If this is correct I need to demostrate it and I don not find the way to do it.
    I hope you understand my explanation and give me any clue.
    I appreciate very much some help.
    Al

    agmogena wrote:
    Ok, I will tell you the configuration I have. Lets point in a movement 921 quality to unrestricted use.
    > Type Storage origin: 902  EQ and RC flags are set on. (confirmation control for storage type)
    > Type storage TR: 922 are set on.
    >
    > Movement type 921 the flags for Confirm immed and Propose confirm are NOT set.
    >
    > I do a LU01 to create a intruction to change a material from Q to Unrestricted.
    > with LT05 I create the TO.
    > At this time if I look LT21 the TO created I see the tag source with two positions one for TS 902 green color and the second 922 in red.
    > For the tag of target We can see the first position 922 In red and the second position 902 in green color.
    >
    > Perhaps this detailed explanation will help you to fully understand the scenario.
    >
    > Thank you again,
    >
    > Al.
    From the above it isn't entirly clear that the first part of the T.O. is actualy confirmed, my settings are to autoconfirm this so I have no example to look at in my system. Perhaps the display shows the first line green before any actual confirmation..
    I assume the stock status has not changed when you first view the T.O.? If the t.o. is partly confirmed I would expect to see the stock status changed and a neg in 922 until the second part is confirmed. Perhaps there is no confirmation at all yet, in LT21 what is the confirmation status? If you view the transfer order header there would be a partial confirmation showing with a yellow triangle, do you see this or no confirmation indicated at all?

  • Blocking Storage Bin

    Hi experts,
    I have question about following situation.
    I storage goods in more than one storage bin. My storage strategy find storage bin automaticly. If the first storage bin full, strategy find second storage bin. I want that, system block the first storage bin automaticly till the first storage bin will be empty. System doesnt allow add new goods that quant.
    how can i do that?
    Thank your support.

    Hi Manish,
    I explain what i need with example;
    I have 2 storage bin for my material. All this bin's capacity is 5 pcs. Now first good issue with PO about 5 pcs. this material putaway first bin. then other good issue 3 pcs. This material putaway 2nd bin. Then i remove material 3 pcs in 1st bin. As a result, i have 2 pcs material 1st bin and 3 pcs material seceond bin. My capacity is 3 pcs 1st bin and 2pcs 2nd bin.
    Now, if there is good issue same material, system doesn't allow putaway this materials to 1st bin. System block this 1st bin automaticlly. This block is automatically deleted after the last storage unit has been removed from stock (picked from the row).
    By the way, am i need batch management to implement this strategy for this material?
    Thanks for advice..

  • INterim storage bin to unrestricted stock movemnet

    Dear All,
    I have a problem in warehouse management
    Step 1 After the GR(65000 units) my system will automatically create a TR and TO to the quality inspection .
    Step 2 will clear the inspection lot by giving a Usage decision through the T.code QA32 to move the stock from quality to unrestricted stock
    step 3 But the stock will not be going to the unrestricted area instead it is going to the intrim storage type 922 TR-Zone.
    Step 4 If i see in the LS26 i am able to see the stock for put away as 65000 units and pick quantity as 65000 units and the stock type as quality
    So the stock is still in quality, if i see the PO also it is showing that the stock is in quality
    How can i move this out of the interim storage bin
    I am pretty new to WM kindly advice me how to go about this ,
    Regards,
    D vasanth

    A PCN must have got created.   Go to LU04,  mtype 321, enter your material.   It will display the PCN if any exists.
    Select the PCN and create Transfer Order and confirm the TO

  • Need to enter the storage bin manually

    Hi Team,
    Currently while posting the IM movement type 311, storage type(FIFO) search strategy is configured for stock removal process.
    Now the requirement is for certain materials, while doing the transaction, we don't want to pick the bin automatically(by using the FIFO), we want to enter the Storage bin manually, please suggest.
    Advanced Thanks,
    AN Reddy.

    Hello A.N Reddy,
    There is a confusion here. Are you talking about WM or EWM.
    If it is WM, then, I would suggest you to enable, Manual Storage Bin Input for respective WM Movement Type in WM Movement Configuration. That will request you to enter Storage Bin Manually during TO Creation.
    If it is EWM, For your process type, Make Search Seq field as Blank and  keep your Putaway Rule as " No Putaway Rule ". This will request to you to enter the storage bin Manually during Warehouse Task Creation Process.
    In EWM Outbound Process, you have to empty your search criteria in your Pick Rule.
    Regards,
    Sathish

  • How to clear stock from storage bin and delete bins?

    Hi All
    For the development of prototype we have made some dummy warehouse structure and made stock movements with dummy bins. Now we wanted to go for real implementation. Before we made actual configurations, we wanted clear all dummy data. Can anyone suggest the standard process for clearing the stock, storage bins?
    Thanks
    Sasidhar Gupta

    Hi Sasidhar.
    is it non production system.
    If yes you can move all this stock in some other storage type as dummy with dummy name.
    and you can use all built as actuals.
    or do PI and remove all stock from system as not actual stock .
    and if its non production system then why are u worrying about all this. Let it be and start building your system as you require.
    Regards
    Suraj

  • Bapi to update Storage Bin

    HIya Gurus,
                     I have got a requirement where the user is gonna change the Storage bin via a report. I have created the report with the input enabled field for the new storage Bin to be entered. Now i need to overwrite this new value in the database. I am trying to use CALL TRANSACTION via MM02 but the select views are differ for materials.
                    Can any one help me out with any alternative like a BAPI or if there is a possibility to use Call transaction without the select views.
                        Your suggestions are valuable to me,
    Thanking You,
    ZIa

    Hiya Gautham,
                        Thanks for your Quick reply. I just checked BAPI_MATERIAL_SAVEDATA , it doesnt have any storage bin field in it. Can you please eloborate on your view about this BAPI.
                        Thank you very much.
    Cheers,
    ZIa

  • WM t-Code for Tracking Storage bins where a Material batch have stayed?

    Hello Gurus,
    My client ask if there is any t-code (report or whatever) in WM where he would be able to track all the storage bins in which a material batch have stayed?
    It would be a kind of history data about storage bins where the batch have passed inside the warehouse....Any Clues?
    Thanks!!!

    The only one that can serve your purpose is LT23.
    Choose the "rainbow" icon and select by material and batch.
    If you need help with selection screen feel free to ask... but it should be straight forward for SAP user.
    Execute with all the right selections.
    You will get a list of all the transfer orders which were used for that material/batch.
    In the right part of TO details, you'll see storage bins, there are the ones that the material/batch have stayed in your warehouse...

  • Send Storage Bins to external system (change pointer, change document, ...)

    Hello,
    I need to send to my external system the storage bin modifications, namely, insert and delete information.
    I haven't found any User Exits ou BADIs to the LS01 transaction.
    I'm trying to do this using change pointers, but it doesn't seems to exist a standard way to this either, so I've created a custom Change Document for the LAGP table, but there's still no records in the CDHDR or CDPOS tables.
    Is there a way to automatically generate this records without programatically calling the Change Document associated FM?
    What are the options that I have to do this?
    Thanks in advance,
    Rui

    Hello Rui,
    perhaps you can use DBTABLOG (Think about data volume and performance).
    http://help.sap.com/saphelp_40b/helpdata/en/34/60b6bfae724effe10000009b38f91f/content.htm
    Best Regards, Dirk

  • Adding Storage Bin Number to Material Issue Slip - RIPRGI00

    Hello,
    I have a request to add the storage bin number  to the Material Issue Slip with output type zpmm. However, I need help on where in the code I need to add this field. I know a program change needs to happen in RIPRGI00, and the SAPscript  layout Z_PM_COMMON needs to be changed too. I believe the storage bin number field is RESBD-LGORT. Please correct me if I'm wrong so far. Your guidance is appreciated.
    Thank You!

    If you're talking about MM Storage Bin it is maintained in MARD-LGPBE.
    It's maintained at material master level in "Plant/stor data" view 1. (you need to enter the storage location in org. level in MM03 to be able to even see the field.

Maybe you are looking for

  • Expressions and Defining High/Low Limits

    I have an accuracy requirement to assign a 1.5% and a 1% High/Low  from a previous test.  The previous test is a Numeric Array where the first 12 values have to be assigned a 1.5% limit and the remaining 4 have a 1% limit.   Is there a way to do two

  • TabbedPanelsContent Display Problem

    The tab panel is working fine other than the "description" tab is outputing the last few words or lines twice. It is random where it starts. I provide a clip of the code and output below. At the very bottom of the message I provide a link to the onli

  • BW Master Data reporting issue

    Hello, I have such MD structure : CHR1 has one attribute ATTR1, ATTR1 has 2 attributes ATTR2a and ATTR2b. All attributes are declared NAV CHR1       - ATTR1                 - ATTR2a                 - ATTR2b I want to create query that show all CHR1 f

  • Display dates in sales order via CIC0

    Dear experts, In SAP CRM 5.0, we've configured sales orders and dates. Via CRMD_ORDER transaction, dates are correctly displayed. But we're using interaction center (CIC0) and the screen with dates is not displayed. We've tried screen sequence contro

  • Create a Tab function with Javascript

    Greetings, Is there anyway, using javascript, to create a tab? In other words move the focus of form to another field but not exit focus on the current field? Rick Kuhlmann