L_TO_CREATE_POSTING_CHANGE

HI,
     I am using FM 'L_TO_CREATE_POSTING_CHANGE'.
I am passing t_lubqu-lqnum = source bin quant
                     t_lubqu-nltyp = destination bin storage type
                     t_lubqu-nlber =  destination bin storage section
                     t_lubqu-nlpla = destination bin storage bin
I am passing i_lgnum = warehouse number
                     i_ubnum = posting change number
                        Transfer order is created successfully with Source bin, but system is taking its own destination bin in the transfer order even though i entered in the destination bin data in t_lubqu table.
                       Please have your suggestions.

HI,
     I am using FM 'L_TO_CREATE_POSTING_CHANGE'.
I am passing t_lubqu-lqnum = source bin quant
                     t_lubqu-nltyp = destination bin storage type
                     t_lubqu-nlber =  destination bin storage section
                     t_lubqu-nlpla = destination bin storage bin
I am passing i_lgnum = warehouse number
                     i_ubnum = posting change number
                        Transfer order is created successfully with Source bin, but system is taking its own destination bin in the transfer order even though i entered in the destination bin data in t_lubqu table.
                       Please have your suggestions.

Similar Messages

  • Issue while using FM L_TO_CREATE_POSTING_CHANGE

    Hi All,
    We are facing an issue when creating a transfer order using the FM
    L_TO_CREATE_POSTING_CHANGE.
    We have developed a custom program to change the status (Zfield) of a
    specific SU in LQUA and update its stock category. The program creates
    the material document and posting change document in the background.
    During this process, the badi MB_DOCUMENT_BADI~MB_DOCUMENT_UPDATE gets
    triggered where we call the above FM in the background task. During TO
    creation, we have also implemented the badi LE_WM_LE_QUANT to update
    the quant with the specific SU which was changed by the user in the
    custom program. (We get this from the custom data base table).
    The TO is created for mvt types 321, 322, 343, 344, 349 and 350.
    We do not pass the t_LUBQU table in the above FM so that the program
    gets the updated quant from the badi. The issue is that the FM
    sometimes does not process properly and ends up without creating the
    TO. We are not able to get the exact scenario for which it is
    failing. When we debug it, we get message S178 - Foreground processing
    is required.
    Can anyone let me know what is the problem here?
    Thanks in advance,
    Chetan

    As mentioned by Madhan
    you are trying to do a chicken and egg thing...
    You have to commit the MM posting of the BAPI to create the change posting in WM before you can convert the change posting using the FM...
    In other words.
    call BAPI_GOODSMVMT_CREATE
    commit work and wait
    call L_TO_CREATE_POSTING_CHANGE
    be aware that you still might get locking problems. the commit work and wait does not handle that all the time correctly...
    bjorn

  • Will you tell me how to use BAPI "L_TO_CREATE_POSTING_CHANGE",please?

    Will you tell me how to use BAPI "L_TO_CREATE_POSTING_CHANGE" ,please?
    Is lt06 bapi "L_TO_CREATE_POSTING_CHANGE"?

    just do a where used list of the FM and see how its used in those programs.
    one of the programs where it is used = RLLQ0200
    Regards
    Raja

  • User  exit for LT03 - Creation of transfer order.

    Hi All,
    In LT03 while creating a transfer order for delivery the system picks the storage unit in ascending order(FIFO - First in first out). Is there any badi available to change this picking order into descending order(LIFO- Last in first out). I have tried all the user exit related to transaction LT03, but nothing has served the purpose,has anybody faced this issue please share your views on this.
    Regards
    Sathya

    Hi Saravanan,
    you can try one of these FMs. It might be helpful:
    L_TO_CREATE_2_STEP_PICKING
    L_TO_CREATE_DN
    L_TO_CREATE_DN_MULTIPLE
    L_TO_CREATE_MOVE_SU
    L_TO_CREATE_MULTIPLE
    L_TO_CREATE_POSTING_CHANGE
    L_TO_CREATE_SINGLE
    L_TO_CREATE_TR .

  • Want to run a BDC even if there is an error in the TCode

    Hi,
      In one of the screens in my BDC an error comes (this happens when that transaction is run from command prompt in foreground also). But in the actual transaction after the user sees the error, he is able to continue changing the fields on the screen and post it. However in BDC, as soon as the error comes, the BDC exits and comes back. I would like it to continue, just the way it does during the manual entry, is there a way I can do this?
    The Tcode is LT06 and when user enters the Material doc and click on enter the error occurs, but in the manual mode he is able to enter the Destn Bin, storage type etc and continue. However that is not the case with BDC. I also tried using function module L_TO_CREATE_POSTING_CHANGE, but it gives the same error as the screen
    FORM create_to USING r_mblnr TYPE mblnr
                         r_to_lgort TYPE lgort_d
                         r_sto_bin TYPE lgpla
                   CHANGING rt_bapi_message TYPE type_t_bapi_message
                            r_success TYPE c.
      DATA: v_mode TYPE c,
            wa_bapi_message TYPE bdcmsgcoll.
      CLEAR s_bdcdata.
      REFRESH t_bdcdata.
      PERFORM bdc_dynpro      USING 'SAPML02B' '0203'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'RL02B-MBLNR'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '/00'.
      PERFORM bdc_field       USING 'RL02B-MBLNR'
                                    r_mblnr.
    PERFORM bdc_field       USING 'RL02B-MJAHR'
                                   '2009'.
      PERFORM bdc_field       USING 'RL02B-DUNKL'
                                    'H'.
      PERFORM bdc_dynpro      USING 'SAPML03T' '0102'.
      PERFORM bdc_field       USING 'LTAP-NLTYP'
                                    r_to_lgort.
      PERFORM bdc_field       USING 'LTAP-NLBER'
                                    '001'.        "destn storage section
      PERFORM bdc_field       USING 'LTAP-NLPLA'
                                    r_sto_bin.        "destn storage section
      v_mode = 'N'.
      CALL TRANSACTION 'LT06'
                       USING t_bdcdata
                       MODE   v_mode
                       UPDATE 'S'
                       MESSAGES INTO t_messtab.
    IF sy-subrc <> 0.
      IF sy-subrc = 0.
        LOOP AT t_messtab INTO wa_bapi_message.
          APPEND wa_bapi_message TO rt_bapi_message.
          EXIT.
       MESSAGE ID wa_bapi_message-msgid TYPE wa_bapi_message-msgtyp NUMBER wa_bapi_message-msgnr
         WITH wa_bapi_message-msgv1 wa_bapi_message-msgv2 wa_bapi_message-msgv3 wa_bapi_message-msgv4.
        ENDLOOP.
      ELSE.
        LOOP AT t_messtab INTO wa_bapi_message.
       MESSAGE ID wa_bapi_message-msgid TYPE wa_bapi_message-msgtyp NUMBER wa_bapi_message-msgnr
         WITH wa_bapi_message-msgv1 wa_bapi_message-msgv2 wa_bapi_message-msgv3 wa_bapi_message-msgv4.
          APPEND wa_bapi_message TO rt_bapi_message.
        ENDLOOP.
       APPEND t_messtab to rt_bapi_message.
      ENDIF.
      COMMIT WORK AND WAIT.
    ENDFORM.                    "create_to
    Thanks for reading

    Hi ,
    Now as per the transaction an error is prompted only when the compiler interprets it as false on a data field or a combination of them . Now its in the programmers hand to validate the data before submitting it to the screen .. now this validation should cover all scenario's . One point i want to make here is that bdc is nothing but replaying how the user enter's manually for no of records..
    i dont know about this tcode LT06 .
    //The Tcode is LT06 and when user enters the Material doc and click on enter the error occurs, but in the manual mode he is able to enter the Destn Bin, storage type etc and continue. However that is not the case with BDC.//
    you are entering the material doc no in screen 0203 ..use all screen mode and check what is the error prompting if any and in the normal debugging track that error if some user exit is written using sy-binpt with some error message..
    did you tried some relavant tcode other than LT06 which can be used for this purpose cause sometimes we have alternate tcodes to run the bdc .. please check on this .
    Br,
    Vijay.

  • Error while TO creation LT10 - Putaway quantity not zero

    Hi All,
    I am trying to create a Transfer order via LT10 (or via LQ02) where the available stock is available. The error log that I see says - "Putaway quantity not zero", Message no. L1605.
    The stock Scenarion is like below:
    Total stock                   15
    Avail.stock                   15
    Stock for put.                40
    Pick quantity                  0
    What I understand for any stock transfer to happen there should be Available Stock. Now I want to use this 15 qty for further processing by using transaction LT10 or may be LQ02. Why does standard SAP not allow this?
    If I do the stock transfer via LT01 for above scenario it does allow us to use the available stock.
    The error is coming from below code of program RLS10034
    *........Quants mit einzulagernden Mengen nicht markierbar!............
      if itab-einme ne 0.
        itab-ikone = sym_locked.
        itab-msgid = 'L1'.
        itab-msgno = '605'.
        itab-msgty = 'E'.
      endif.
    Pls advice why the check is there in place when it could have been avoided and how to remove this check?
    Thanks,
    Ravi Sabhachandani

    yes you are right there is a check and with standard SAP that is not possible you need to look for alternate method.Never came across this type of scenario in past however my suggestion is to have a look on the below function module and user exit that might be helpful
    L_TO_CREATE_POSTING_CHANGE
    MWMTOAU3 for posting change notices
    Even if you are able to mange this with some custom code I see a operation issue there
    LQ02 is help to the change the stock from one stock type to another (or quant characteristic) as per your test data if I will transfer the 15 pc from unrestricted to Quality and later on the transfer order of 40 get's confirmed (which is having the unrested stock) in the same  bin (this depend on the configuration of mixing) how the worker will come to know which is quality reject or which is unrested by looking physically
    Total stock                   15
    Avail.stock                   15
    Stock for put.                40
    Pick quantity                  0

  • Bapi/fm for LT03

    hi!
    is there any bapi or FM for creating transfer order (LT03)?
    REGARDS
    YIFAT

    check any one of these function modules based on your requirement.
    L_TO_CREATE_2_STEP_PICKING                                                     
    L_TO_CREATE_DN - Create a transfer order for delivery note       
    L_TO_CREATE_DN_MULTIPLE                                                        
    L_TO_CREATE_MOVE_SU - Create transfer order for moving storage units  
    L_TO_CREATE_MULTIPLE                                                           
    L_TO_CREATE_POSTING_CHANGE - Create transfer order for posting change        
    L_TO_CREATE_SINGLE - Create a transfer order with one item           
    L_TO_CREATE_TR - Create a transfer order for transfer requirement
    Thanks,
    Suryaprakash

  • Function Modules required....

    Hi Gems!!
      Can any one help me out by providing Function Modules for Creating Transfer Order and after that FM for confirming it.. as its done in transactions LT01 and LT12 respectively.
    Helpful answers will definitely be rewarded!!!!!

    Hi Susanth,
    Please check as below declared using the function module:
    DATA: l_v_tanum      TYPE tanum.
    "assuming you have data here as per some records
        LOOP AT fp_im_final_sel ASSIGNING <l_fs_final_sel>. 
          READ TABLE fp_i_lqua INTO l_wa_lqua WITH KEY lenum =
                                                    <l_fs_final_sel>-lenum
                                                    BINARY SEARCH.
          IF sy-subrc EQ 0.
            l_wa_lubqu-lqnum    =  <l_fs_final_sel>-lqnum.
            l_wa_lubqu-menge    =  <l_fs_final_sel>-verme.
            APPEND l_wa_lubqu TO l_i_lubqu.
          ENDIF.
        ENDLOOP.
    CALL FUNCTION 'L_TO_CREATE_POSTING_CHANGE'
            DESTINATION 'NONE'
            EXPORTING
              i_lgnum                    = l_wa_mseg_temp-lgnum
              i_ubnum                   = l_wa_mseg_temp-ubnum
              i_squit                      = 'X'
              i_nidru                      = 'X'
              i_update_task           = space
              i_commit_work          = 'X'
              i_bname                    = sy-uname
            IMPORTING
              e_tanum                   = l_v_tanum
            TABLES
              t_lubqu                     = l_i_lubqu
            EXCEPTIONS
              foreign_lock               = 1
              tp_completed                 = 2
              xfeld_wrong                  = 3
              ldest_wrong                  = 4
              drukz_wrong                  = 5
              tp_wrong                     = 6
              squit_forbidden              = 7
              no_to_created                = 8
              update_without_commit        = 9
              no_authority                 = 10
              i_ubnum_or_i_lubu            = 11
              bwlvs_wrong                  = 12
              material_not_found           = 13
              manual_to_forbidden          = 14
              bestq_wrong                  = 15
              sobkz_missing                = 16
              sobkz_wrong                  = 17
              meins_wrong                  = 18
              conversion_not_found         = 19
              no_quants                    = 20
              t_lubqu_required             = 21
              le_bulk_quant_not_selectable = 22
              quant_not_selectable         = 23
              quantnumber_initial          = 24
              kzuap_or_bin_location        = 25
              date_wrong                   = 26
              nltyp_missing                = 27
              nlpla_missing                = 28
              lgber_wrong                  = 29
              lenum_wrong                  = 30
              menge_wrong                  = 31
              menge_to_big                 = 32
              open_tr_kzuap                = 33
              lock_exists                  = 34
              double_quant                 = 35
              quantity_wrong               = 36
              OTHERS                       = 37.
    Try to implement this, if you still have clarification you can get back to me at [email protected]
    Message was edited by:
            Pradeep C

  • How to determine Quant when posting change?

    Dear Expert,
    I am trying to Post Change using FM L_TO_CREATE_POSTING_CHANGE (LT05), but I have no idea about the table parameter: T_LUBQU,  the most confused thing is the field LQNUM, I know that it is Quant, but can any1 tell me how I can get the properly quant to run this FM?
    Thanks a lot.
    Vincent
    Edited by: Vincent on Dec 8, 2008 11:13 AM

    Hello,
    Quant
    Definition
    This is the stock of any material with the same features in one storage bin. The system
    manages different batches of a material as different quants. The quantity of a quant can be
    increased by an addition to existing stock. Quants can be created or deleted solely through
    goods movements.
    Use
    The quants serve to manage stocks at storage bin level.
    When you store goods in an empty storage bin in WM, the system automatically creates a quant
    in this bin. The system automatically assigns a quant number. The quant is automatically deleted
    by the system when the material quantity is picked.
    In the quant record, the system manages the data of the materials grouped in the quant. This
    data includes.
      Quant identification
      Plant
      Material number
      Batch number
      Stock category
      Special stock indicator and number
    Regards,
    Shailesh

  • Program/task which created Transfer order immediately

    Hello All,
    I want to create transfer order immediately after quality usage decision (QA32/QA11), movement type-321. I have done the required settings in WM-IM interface to create transfer order immediately and it is working perfectly fine.
    Now my requirement is, I want to specify source bin by my own logic in transfer order. So can anyone guide me, how I can find which background program or job or FM or tcode gets called for immediate transfer order creation.
    BR
    Kamal

    Hi Kamal
    you can ask your developer to use below mentioned user exit
              MWMTO001 Update own data after TO creation
    Since you are doing Quality decision which means transferring the stock from Quality to unrestricted i hope the FM being called will be
    L_TO_CREATE_POSTING_CHANGE to create the transfer order

  • Manually selecting Putaway destination

    I am trying to write a program that will do a MB1B - LT06 - LT12 in one step. 
    I am successful with the MB1B step. 
    In the LT06 step, I am getting the following error:  No storage destination could be found in storage type 001. 
    I went into SPRO > WM > Strategiies > Stock Remove Stategies > define "Fixed Bin" Strategy.  I double checked the putaway strategy here, and it is blank.  I also check the 922 and it is blank also.  This is manual.
    Then...I used the document number created in the MB1B step, and entered it into LT06 and got the same error. 
    What I want is to type a location in my program, and pull that into the LT06 step for the putaway. but I can't get past the error.  What piece am I missing? 
    I am trying to move from one storage location to a second storage location in the same warehouse.
    Thanks in advance!

    dont you feel that you try to automate something what does not work in your manual process ?
    Only thing what an automation of something what does not work does is: Automatic creation of failures.
    you can have one fixed bin per storage type.
    How do you develope? do you use function modules like : L_TO_CREATE_POSTING_CHANGE or
    L_TO_CREATE_SINGLE

  • LQ02 (RLLQ0200) Putaway quantity not zero

    Scenario:
    o Two KANBAN control cycles (WM Replenishment Strategy) for a material
    o u201CCombine posting changesu201D-set in the customizing (Stor. Location Control in Warehouse Mgmt)
    o Stock determination active / IM-311 mvtype used for WM-KANBAN-replenishement
    o Both KANBAN control cycles set to u201Cemptyu201D such that two transfer orders (dest stor. type 150 KANBAN) created
    o One of the transfer order is confirmed
    o Available material on stock is K consignment (special stock type)
    Problem
    It is not possible to execute the WM903/IM411K-posting via LQ02 if there are two transfer orders and only one of the transfer order is confirmed.
    Error message u201CPutaway quantity not zerou201D (status icon locked within LQ02)
    The system allows the WM903/IM411K-posting via LQ02 only after both transfer orders are confirmed.
    LQ01 is able to execute the posting change (related to the confirmed KANBAN TO) with IM-311-K mvtype. But I don`t want to have consignment stock in the IM-destination storage location therefore the WM903/IM411-K-posting needs to be done before the 311-IM-posting.
    Thank you in advance!

    yes you are right there is a check and with standard SAP that is not possible you need to look for alternate method.Never came across this type of scenario in past however my suggestion is to have a look on the below function module and user exit that might be helpful
    L_TO_CREATE_POSTING_CHANGE
    MWMTOAU3 for posting change notices
    Even if you are able to mange this with some custom code I see a operation issue there
    LQ02 is help to the change the stock from one stock type to another (or quant characteristic) as per your test data if I will transfer the 15 pc from unrestricted to Quality and later on the transfer order of 40 get's confirmed (which is having the unrested stock) in the same  bin (this depend on the configuration of mixing) how the worker will come to know which is quality reject or which is unrested by looking physically
    Total stock                   15
    Avail.stock                   15
    Stock for put.                40
    Pick quantity                  0

  • Which function call to execute posting change WM?

    HI experts
    I am new in ABAP and  program I would like to execute posting change (WM)  but I don't know which function or BAPI to call.
    I was debugging transaction LQ02  and there is called BAPI_GOODSMVT_CREATE. But before calling this BAPI it should by (imported/exported) parameter of Storage unit number to some function or BAPI, but I dont know which one it should be.
    Can anybody give my some suggestion about it?
    Any advice is highly appreciated
    Thanks

    What you want to do with Posting change notice? if you want to chareate Transfer order with reference to posting change notice then use FM - L_TO_CREATE_POSTING_CHANGE.
    Regards
    Arif Mansuri

  • To Create New Storage Unit Automatically

    Hi all,
    I need some info for creating storage bin. I have a material with 100 KG in a storage unit XYZ. And i want to move 20 KG of 100 KG to new storage unit.
    First i call BAPI_GOODSMVT_CREATE with movement type 311 with new quant 20 KG to create a new storage unit. After that i call L_TO_CREATE_POSTING_CHANGE for transfer posting.
    But it does no effect to material. It have 311 movement successfully but than it puts the 20 KG to the same storage unit XYZ. How can i move it to a new storage unit ?
    Regards,
    techmaster

    If you only want to do a WM transfer (manually with LT01), you can use L_TO_CREATE_SINGLE.
    Best Regards, Dirk

  • BAPI_GOODSMVT_CREATE LT06

    I'm going to create a program to rebatch FG with unit of issue BOX and stock status as available in full single bin.
    My process is
    1 select goods movement data from LQUA
    2 post goods movement using records on each bin by call BAPI_GOODSMVT_CREATE
    3 call transaction LT06 with Material Document created return from BAPI. In order to do that need recording BDC that has several steps.
    Question is there are any way to call BAPI_GOODSMVT_CREATE that be able to create transfer order automatically and no need to call LT06 or not?
    I found http://www.jt77.com/CRM/related-discussion-6508.html that suggest to pass value of goodsmvt_item-stge_type_pc, stge_type_st but still not work.

    I got my solution.
        After call BAPI_GOODSMVT_CREATE and get Material Document number then loop each Posting Change number get from MSEG and find Quant from LQUA the same MATNR and CHARG to be parameters to call L_TO_CREATE_POSTING_CHANGE to create Transfer Order instead of calling LT06

Maybe you are looking for

  • Preview in Finder doesn't work. Doesn't preview movies or audio.

    When i used to preview files in finder such as movies or audio they would play in a preview window. now, instead, all that comes up is a picture of the application the file is opened in, i.e. quick time or itunes. help?

  • Import Manager   Delimiter Issue "|

    Hi,          We are facing a issue in during Import...We are loading Pipe Delimited file. Whenever we get "after |(Pipe) MDM is throwing an exception stating that 'Number of field values does not match the field columns'...Please let me know any body

  • Converting dv-avi to h.264

    Ok, this is my second try to solve the problem. I posted a similar message a year ago but even with Winston being very helpful the problem remained unsolved. I want to convert my sd dv-avi pal (Sony DCR-HC42E mini-dv camcorder) files to h.264 (Apple

  • I keep getting Error Code 8003

    I purchased 3 albums on my iPad and it will not sync to my MacBook Pro. I also purchased an Episode of a TV Show on my MacBook Pro and it will not download but did charge my account. For all these issues Error Code 8003 comes up.

  • 10.4.3 Update OK Except DVD PLayer Problem?

    Hi Folks. I did the 10.4.3 update last week successfully on my iBook G4. I ran many app tests and so far, everything has performed fine. Actually, I am noticing a performance boost. The only problem I am having is with DVD Player 4.6.1, the latest ve