Transfer Order BAPI

I would like to call a BAPI/function to perform a Transfer Order create using a Material document created from function BAPI_GOODSMVT_CREAT.  Is there a BAPI or function that can do this?
Best Regards

To do this a configuration change has to be made to the movement type so that it allows creation of Transfer requirements.
Query table LTBK Using the material document number & Year and Warehouse number to get the Transfer requirement number TBNUM.
Then use the function module  L_TO_CREATE_TR to create a transfer order for the transfer requirement.
Manoj

Similar Messages

  • BAPI - Goods receipt and then create transfer order for a production order

    Hello Everyone
    We need to do goods receipt and then create transfer order for a production order (Material for WM scenario)
    We are using BAPI 'BAPI_GOODSMVT_CREATE'
          i_items-orderid = wa_afpo-aufnr .
          i_items-order_itno = wa_afpo-posnr.
          i_items-mvt_ind = 'F'.
          i_items-stge_loc   = wa_afpo-lgort.
         i_items-stge_type = '901'. "wf_styp.
         i_items-stge_bin = wf_sbin.
          i_items-entry_qnt  = wf_qty.
          i_items-entry_uom = wa_afpo-meins.
          i_items-entry_uom_iso = wa_afpo-meins.
          i_items-batch      = wa_zmobtag-charg.
          i_items-move_type  = '101'.
          i_items-move_reas  = wl_3131.
    We are passing i_items (like line of goodsmvt_item) along with other parameters to BAPI and its creating material document and Transfer order automatically. Problem is the TO created is showing destination storage bin as default storage bin( from material master).
    The field goodsmvt_item-stge_bin is just changing the Source bin details. There is no field for bin in the BAPI so that we can change the Destination storage bin as per our requirement.
    My requirement : Creating material doc and then TO. Material should move to specified storage bin.
    Please let me know any alternate way( No BDC) so that my requirement is achieved.
    Regards
    Swetabh

    Hi ,
    can u check these fields ,
    STGE_TYPE_PC     UBTYP     CHAR     3     0     Storage type for transfer posting
    STGE_BIN_PC     UBPLA     CHAR     10     0     Storage bin for transfer posting
    Regards
    Prabhu

  • Creation of Stock transfer order using BAPI

    Dear Gurus,
            I was trying to create Stock transfer order using BAPI function
            BAPI_PO_CREATE
            though i have defined Bsart as 'UB'
            still it gives message :
            " No master record exists for vendor MOH1 "
            Please show me path fwd.
            Thanks and Regards
            Gaurav sood

    Dear all,
         Issue Resolved
    thanks

  • FM/BAPI to create Transfer Order(TO) with reference to TR or Material Doc.

    Hi,
    I am in need of Function module or BAPI to Create Transfer Order(TO) with reference to Transfer Requirement(TR) or Material Document.

    Hi,
    Please try any of the below,
    1.Look at function group L03B (Transfer order processing)
    2.Use L_TO_CREATE_TR
    3.BAPI_GOODSMVT_CREATE set:
    GOODSMVT_ITEM-STGE_TYPE_PC = destination storage type or GOODSMVT_ITEM-STGE_TYPE_ST = destination storage type
    4.Look at fm L_TB_VERAENDERN. This isn't RFC, but you might copy fm into ZL_TB_VERAENDERN and set RFC on.
    Hope this helps.
    Thanks,
    Harini

  • BAPI /FM for getting Transfer Order details based on Material Doc No.

    Is there any FM or BAPI with which I would be able to get directly Transfer Order details, status etc based on Material Doc No without going into the tables?
    Thanks for your help
    Usha

    Yes, you can use BAPI_WHSE_TO_GET_DETAIL.
    You can find bapis using transaction BAPI and following functionnal nodes.
    Regards,
    Christophe
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Apr 30, 2008 11:37 AM

  • Anyone used BAPI/FM for LT03 create transfer order

    Hi all,
    Has anyone used BAPI/FM for <b>LT03</b> create transfer order based on delivery.
    the BAPI/FM should accept <b>multiple line items for individual storage units</b>.
    thanks,
    Subba

    thanks Amit....
    But it would be helpful to know the usage of this FM....and if anyone has used in their program....
    thanks,
    Subba

  • BAPI to cancel Transfer order

    Hi All,
    Is there is any BAPI to cancel Transfer Order (using T-Code LT15) already created?
    Regards,
    Raghu

    Try this:
    I am not sure
    Try using FM WS_LM_TRANSFER_ORDER_DELETE
    Reward Points if found helpfull..
    Cheers,
    Chandra Sekhar.

  • Creating/confirming transfer order (WM) using bapi/function modules

    Hi,
    I usually use BDC to create transfer orders or other documents in WM, but i've been told that using BAPI is more correct. I'm new to this concept, so could you please tell me how i can find the apropriate BAPI/function modules available for this purpose in 46C ?
    I thank you in advance,
    Bruno

    Hi Gisk,
    i am trying ot create a TO based on a material document and year. Same function as transaction LB12. Do you know which function module i can use for this.
    I am trying to use the function module L_TO_CREATE_SINGLE, i fill in the T_LTAK-MBLNR and T_LTAK-MJAHR. But do not know which fields to fill in.
    Hope you can help me.
    Grtz
    Coeno

  • Need BAPI/FM to change Stock Transfer Order

    Hi all.
    Can  any one let me know the BAPI/FM tp change stock transfer order. I need to change the quantity in it.
    Thanks in advance.
    Regards,
    sami.

    BAPI_PO_CHANGE

  • BAPI or FM for creating transfer order with reference to reservation

    hi
    i need a BAPI or FM to create a transfer order with reference to a reservation. I tried BAPI_GOODSMVT_CREATE but the problem is it does not support movement type '311'. is there any FM or BAPI to use movement type '311' and create a transfer order with reference to a reservation? pls help

    Hi,
    Try Using WM_CREATE_GOODS_MOVEMENT first use this and later use any of the TO create FM.
    Thanks & Regards,
    YJR

  • FM or BAPI for Create/cancel  stock transfer order invoice

    FM or BAPI for Create/cancel  stock transfer order invoice
    Thanks and Regards,
    Srinivas P

    Hi,
    use BAPI_PO_CREATE, po_header-doc_type = 'UB'
    Thanks,
    Reward If Helpful.

  • FM or BAPI for Transfer Order creation in eWM

    Hello ALL,
    Please provide any FM or BAPI for Transfer Order creation in eWM. i know how to create transfer order in ERP.I tried to find out a FM or BAPI in SCM eWM but failes to get one.
    Kindly help.
    BR,
    Anil..

    Hi,
    Try using FM WS_LM_TRANSFER_ORDER_CREATE.
    I hope this is available in ur system
    Thanks

  • BAPI  Print transfer order (LT31)

    Hi,
    Is there any BAPI exist for Transaction LT31 Print Transfer Order?
    If anybody hv the code for finding BAPI for particular transaction?
    Thanks
    Sandeep

    Hi Sandeep,
                      check FM 
         <b>WS_LM_TRANSFER_ORDER_DISPLAY</b>
    <removed_by_moderator>
    Regards,
    Hemant
    Edited by: Julius Bussche on Aug 29, 2008 8:21 PM

  • BAPI for MIGO Transfer Order Posting and STO

    Hi
    I am trying to post a transfer order thru MIGO using BAPI_GOODSMVT_CREATE. But could not able to identify the following fields :
    1) Material Slip or Material Document number
    2) Final Plant and storage location
    3) Destination plant and storage location
    4) Movement Type
    Also I am trying to create a STO using BAPI_PO_CREATE1 but could not able to identify "Your Reference and Our Reference fields.
    Please share your thoughts.

    Hi  Bakshi ,
    see the sample code to pass the material plant storage location nad Movement type..
      t_goodsmvt_item-material   = t_zciotr-matnr.          "Materail
      t_goodsmvt_item-plant      = w_werks.                  "Plant
      t_goodsmvt_item-stge_loc   = w_lgort.                  "Storage Location
      t_goodsmvt_item-move_type  = w_bwart.               "movement type
      t_goodsmvt_item-entry_qnt  = t_zciotr-wmeng.
      t_goodsmvt_item-orderid    = t_zciotr-aufnr.
      t_goodsmvt_item-mvt_ind    = 'F'.
      APPEND t_goodsmvt_item.
      t_goodsmvt_slno-matdoc_itm = 1.
      t_goodsmvt_slno-serialno   = t_zciotr-serialno.
      APPEND t_goodsmvt_slno.
      CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
        EXPORTING
          goodsmvt_header       = t_goodsmvt_header
          goodsmvt_code         = t_goodsmvt_code
        IMPORTING
          goodsmvt_headret      = w_docret
          materialdocument      = w_docno
        TABLES
          goodsmvt_item         = t_goodsmvt_item
          goodsmvt_serialnumber = t_goodsmvt_slno
          return                = t_goodsmvt_ret.
    Regards,
    Prabhudas

  • External Storage units to be entered in the Creation of Transfer Order

    Hi Experts,
    We have a scenerio where the business creates the Storage units in advance, creates the PO and assigns ithe SU's to the Purchase Order in the custom table. Then creates the Goods reciept using a BAPI which creates a Transfer requirement. Now while creating the Transfer Order for this material document ,
    The main issue here is that the businedd needs that if there are any number of Storage units in the Custom table say 3 SU's then the 3 SU's should be entered in the Transfer Order which is created in the bcakground using a BAPI.
    please guide us how todo it
    Thanks in advance

    Hello Kirankumar,
    It is possible to assign external number ranges for Storage unit, so maintain storage unit number range to assign SU number externally.
    Now when you create Transfer order for material document at that time you can assign SU number externally.
    Hope this helps.
    regards,
    Arif Mansuri

Maybe you are looking for

  • How to control the main timeline from within a symbol?

    I have a small world map as a symbol called "verden" and I want the user to click Europe, Asia, or Africa and jump to named labels in the main timeline. http://www.dagbladet.no/grafikk/neshorn/neshorn.html On the main timeline a have the label "intro

  • My iMac mouse and trackpad will not scroll or swipe.  as far as I can tell, the settings are correct.

    I've had this Imac for a year and have had no problems until the mouse and trackpad both stopped scrolling a few weeks ago.  I'm guessing it is some setting that is causing this since both are not working but I'm about to toss this out the window cau

  • ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC

    Transaction: VL01N Error is :  Express Document update was terminated  Please Suggest Please find the ABAP Dump bellow : Short text                                                                                                                       

  • User Properties and registration

    Hi 1) Is possible add properties to the user details directly with a wizard or i must write pl/sql code to make the form to do this ?? 2) Exits in the Standard portal a registration Form or i must write pl/sql code to make the form to do this ?? thks

  • Stream Audio to Apple TV in Mountain Lion from Menu Bar

    Unless I'm missing it, Mountain Lion definitely needs the option to stream audio to Apple TV from the Menu Bar, like you can stream video from the Menu Bar. Hopefully they add the option to the Volume tab. Too much of a hassle to have to open up Pref