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

Similar Messages

  • BAPI for MIGO with respect to Outbound delivery or Stk trfer pur order

    please let me know is there any standard BAPI for MIGO transaction with respect to Outbound delivery or Stock transfer purchase order

    try these...
    BAPI_OUTB_DELIVERY_CONFIRM_DEC
    BAPI_OUTB_DELIVERY_SAVEREPLICA
    BAPI_OUTB_DELIVERY_SPLIT_DEC

  • Problem on creation of Outbond Delivery for Stock Transfer Order

    Hi all,
    We have problem on the creation of Outbond delivery for stock transfer order because the system doesn't group in a unique delivery for different items of a STO order.
    We used VL10B or VL10D but the behaviour is the same. Even if we have to handle few items of the Stock Transfer order already scheduled, the scope is to create a delivery which group everything while the system split in several delivery notes.
    Could you advice me the way to set in customizing , master data I don't know where else , the rules in order to avoid to split deliveries for STO.
    Secondly if we have already created a delivery note is it possible to add a further purchase order item as in sales order processing?
    Thank you for any suggestion you will give
    Andrea

    Dear Kripa,
    the first point has been solved. We have checked a SAP Note 386340 which is appropriate to this case.
    The second point, the one referred to the additional items to an existing delivery note, is not yet closed and I would like to know further advices  from you and the other guys connected to the forum in order to help us to solve the problem.
    Thanks for your help
    Andrea

  • BAPI for meter reading order (MRO) Reversal

    Hi Experts,
    Please let me know if there is any FM or BAPI for meter reading order reversal, Similar to EL37
    Regards
    Bikas

    Hello Bikas,
    Though this is an old post, thought of replying for the sake of googlers who might look for a solution for your query...the below code works!
    *---Begin Of Code
      TYPES : BEGIN OF ty_meter_orders_data,
               anlage   TYPE eablg-anlage,
               adatsoll TYPE eablg-adatsoll,
               ablesgr  TYPE eablg-ablesgr,
              END OF ty_meter_orders_data.
      DATA : lt_meter_orders_data TYPE STANDARD TABLE OF ty_meter_orders_data,
                  xy_ieabl_delete   TYPE  eabl_tab,
                  xy_ieablg_delete  TYPE  eablg_tab,
                  xy_ietrg_delete   TYPE  etrg_tab,
                  x_anlage type anlage,
                  x_retro_upd_date type adatsoll,
                  y_return type char1.
      DATA : y_obj TYPE  isu17_meterread.
    *--Get the needed data for reversal
      SELECT a~anlage
             a~adatsoll
             a~ablesgr
        FROM eablg AS a
        INNER JOIN eabl AS b ON a~ablbelnr = b~ablbelnr
        INTO TABLE lt_meter_orders_data
        WHERE a~anlage = x_anlage AND
              a~adatsoll >= x_retro_upd_date AND
              b~ablstat = '0'. "MR Order
      IF sy-subrc = 0.
        SORT lt_meter_orders_data BY anlage ablesgr adatsoll.
        DELETE ADJACENT DUPLICATES FROM lt_meter_orders_data COMPARING anlage ablesgr adatsoll.
        SORT lt_meter_orders_data BY adatsoll DESCENDING.
        LOOP AT lt_meter_orders_data ASSIGNING FIELD-SYMBOL(<fs_meter_orders_data>).
          CALL FUNCTION 'ISU_O_METERREAD_OPEN'
            EXPORTING
              x_anlage              = <fs_meter_orders_data>-anlage
              x_adatsoll            = <fs_meter_orders_data>-adatsoll
              x_ablesgr             = <fs_meter_orders_data>-ablesgr
              x_select2             = '5'
              x_wmode               = '6'
            IMPORTING
              y_obj                 = y_obj
            EXCEPTIONS
              not_found             = 1
              foreign_lock          = 2
              internal_error        = 3
              input_error           = 4
              existing              = 5
              number_error          = 6
              general_fault         = 7
              system_error          = 8
              manual_abort          = 9
              gasdat_not_found      = 10
              no_mrrel_registers    = 11
              internal_warning      = 12
              not_authorized        = 13
              not_qualified         = 14
              anpstorno_not_allowed = 15
              already_billed        = 16
              dev_already_prep      = 17
              OTHERS                = 18.
          IF sy-subrc = 0.
            CALL FUNCTION 'ISU_O_METERREAD_ACTION'
              EXPORTING
                x_okcode             = 'PSAV'
              CHANGING
                xy_obj               = y_obj
              EXCEPTIONS
                cancelled            = 1
                failed               = 2
                action_not_supported = 3
                system_error         = 4
                input_error          = 5
                not_customized       = 6
                OTHERS               = 7.
            IF sy-subrc = 0.
              CALL FUNCTION 'ISU_O_METERREAD_ACTION'
                EXPORTING
                  x_okcode             = 'SAVE'
                TABLES
                  yt_eabl_delete       = xy_ieabl_delete[]
                  yt_eablg_delete      = xy_ieablg_delete[]
                  yt_etrg_delete       = xy_ietrg_delete[]
                CHANGING
                  xy_obj               = y_obj
                EXCEPTIONS
                  cancelled            = 1
                   failed               = 2
                  action_not_supported = 3
                  system_error         = 4
                  input_error          = 5
                  not_customized       = 6
                  OTHERS               = 7.
              IF sy-subrc = 0.
                COMMIT WORK.
              ENDIF.
            ENDIF.
            CALL FUNCTION 'ISU_O_METERREAD_CLOSE'
              CHANGING
                xy_obj = y_obj.
    * Implement suitable error handling here
          ELSE.
            y_return = 'E'.
          ENDIF.
        ENDLOOP.
        IF y_return <> 'E'.
          y_return = 'S'.
        ENDIF.
      ELSE
    *    RAISE no_mtr_read_ordrs_found.
      ENDIF.
    *---End of Code
    Thanks.
    Mohammed.

  • Regarding Print of Single Form for multiple Transfer Order  ( LT03 )

    Hi All,
    When user creates Transfer Order and if transfer order items are more than 22 then split of Transfer Order occurrs and multiple TO's get created in system.  The standard prog. RLVSDR40 prints form for each TO's , however the requirment is to print only one form for multiple TO ( Actually TO Form containes info. abt delivery, but triggering point should be from TO creation ) .
    There is one prog. RLKOMM40 which is used for multiple processing,  whether this prog. will be useful for above requirement.  Or is there any exit available for above requirement .
    Thanks for help.

    Hi,
      is there any routines used in Copy controls from order - delivery .- re-check once.
    as your post, everything seems fine. I didnt see any reason for not creating single delivery.
    is it happening only with this customer or respective ship to's? if yes, something gone wrong in CMR - i.e. complete delivery / order combination etcc., ( just an assumption)
    Regards,
    ReazuddinMD

  • Any function module or bapi to get sales order number and invoice number?

    hi all,
    with delivery order number provided, do we have any function module or bapi to get sales order number
    and invoice number?
    thanks.

    Hi,
    Check
    BAPI_SALESORDER_CREATEFROMDAT1
    BAPI_REMUREQSLISTA_CREATEMULT  Agency Business: BAPI Create Invoice Lists from Vendor Billing Documents
    BAPI_REMUREQSLISTB_CREATEMULT  Agency Business: BAPI Create Invoice Lists from Payment Documents
    BAPI_REMUREQSLISTC_CREATEMULT  Agency Business: BAPI Create Invoice Lists from Posting Lists
    BAPI_REMUREQSLIST_CHANGEMULT   Agency Business: Change Invoice List Documents BAPI
    BAPI_REMUREQSLIST_GETLIST      Agency Business: BAPI Determine Detailed Data for Invoice List Documents
    BAPI_REMUREQSLIST_RELEASE      Agency Business: BAPI Release Invoice List Documents to FI
    Edited by: Neenu Jose on Nov 26, 2008 8:53 AM

  • BAPI for Open production orders

    Hi All,
    Any BAPI for open production orders?.... Using BAPI i want to upload open production orders informatiomations.... Please help
    Thanks & Regards
    Santhosh

    Hi,
       Please check the following BAPI,
    Goto BAPI tcode, select hierarchical tab
      Production orders,ProductionOrder ,ProdOrdConfirmation , RCVPRORDCF and check the BAPIs

  • Proforma invoice not created for stock transfer order

    Hi Experts
    while creating a proforma invoice for stock transfer order between the plants we are not able to create proforma invoice , the process is replenishment delivery is created and Wm is also done and the billing with reference to delivery and the item category is relevant for billing with value J, and below is the message i get whilw creating invoice
         Technical data
             Tech. data details
              Client                                
              Group Number
              Sales Document Number                
              Item Number of the SD Document         000010
              Schedule Line Number                   0001
              Counter in Control Tables              00
              Message Identification                 00
              System Message Number                  001
              Output Type                            E
              Message Variable 01
              Message Variable 02
              Message Variable 03
              Message Variable 04
              Group Type                             F
    No biliing documents generated
    Please suggest.
    Thanks

    This explanation is not in detail and hence I am not clear about your configuration settings. 
    First go to IMG Logistics-General => Tax on Goods Movements => India => Business Transactions => Outgoing Excise Invoices => Assign Billing Types to Delivery Types.
    There ensure that you have assigned the billing type JEX (assuming that you are using the standard) to your delivery type NL.
    Perhaps, you can also try with "D" for your item category in Billing Relevance field but I am not sure this will solve your issue.  Try in development client.
    thanks
    G. Lakshmipathi

  • 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 for return sales order

    Hi,
    what BAPI that can be used for Return Sales Order? BAPI SALES_ORDER_CREATEFROMDAT2 cant work, I get return message as error : 'Unpermitted combination of business object BUS2032 and sales document type category H'.
    thanks alots.
    Alia

    Hi Alia,
    Go to transaction BAPI, and in the tree go to :
    Sales and Distribution -> Sales -> SalesOrder
    You will have a list of all the BAPI for the Sales Order. If you want a list of Sales Order, maybe you need the GetList BAPI : BAPI_SALESORDER_GETLIST
    Rgd
    Frédéric

  • BAPI for Non PO Invoice posting?

    Hi Experts,
       I am posting invoices using BAPI_INCOMINGINVOICE_CREATE. These invoices have POs associated with the Item Details. This is working fine for me.
       I want to post invoices that DO NOT have a PO. Can someone please point me to a BAPI that is similar to BAPI_INCOMINGINVOICE_CREATE in functionality but does not require a PO?
    Thanks,
    - Vik.

    I too was looking for a BAPI for non PO invoice posting.  I found that the above counsel did not work for me.  Instead of creating a buyside invoice, it just created a journal entry.  What DID work for me was BAPI_ACC_INVOICE_RECEIPT_POST.
    Below, I am pasteing the subroutines that I created for its calling.  In it, for my purposes, only the invoice amount is parameter driven.  My needs allowed all other BAPI parameters to stay the same.
    I hope that this helps someone.
    Donald Nigro
    FORM create_buyside_invoice USING value(invoice_amt) TYPE p.
      DATA:
        gd_documentheader  LIKE bapiache03,
        it_accountpayable  LIKE bapiacap03 OCCURS 0 WITH HEADER LINE,
        it_accountgl       LIKE bapiacgl03 OCCURS 0 WITH HEADER LINE,
        it_accounttax      LIKE bapiactx01 OCCURS 0 WITH HEADER LINE,
        it_currencyamount  LIKE bapiaccr01 OCCURS 0 WITH HEADER LINE,
        it_return          LIKE bapiret2   OCCURS 0 WITH HEADER LINE.
      DATA:
      wa_obj_key(20)  TYPE c.
    fill header
      gd_documentheader-username   =  sy-uname.
      gd_documentheader-header_txt = 'E-Payables Invoice'.
      gd_documentheader-comp_code  = 'EAUS'.
      gd_documentheader-doc_date   =  sy-datum.
      gd_documentheader-pstng_date =  sy-datum.
      gd_documentheader-doc_type   = 'KR'.
      CONCATENATE 'BOA' sy-datum sy-uzeit(4)
                   INTO gd_documentheader-ref_doc_no.
    fill AP (line 1)
      it_accountpayable-itemno_acc = 1.
      IF sy-sysid(3) = 'DEV'.
        it_accountpayable-vendor_no  = '0600013370'.
      ELSE.
        it_accountpayable-vendor_no  = '0600009022'.
      ENDIF.
      APPEND it_accountpayable.
    fill GL (line 2)
      it_accountgl-itemno_acc      =  2.
      it_accountgl-gl_account      = '0001112227'.
      it_accountgl-comp_code       = 'EAUS'.
      it_accountgl-pstng_date      =  sy-datum.
      it_accountgl-fisc_year       =  sy-datum(4).
      it_accountgl-fis_period      =  sy-datum+4(2).
      it_accountgl-bus_area        = '0100'.
      APPEND it_accountgl.
    fill currency ammounts for lines 1 & 2
      it_currencyamount-currency    = 'USD'.
      it_currencyamount-itemno_acc  = 1.
      it_currencyamount-amt_doccur  = invoice_amt * -100.
      APPEND it_currencyamount.
      it_currencyamount-itemno_acc  = 2.
      it_currencyamount-amt_doccur  = invoice_amt *  100..
      APPEND it_currencyamount.
      CALL FUNCTION 'BAPI_ACC_INVOICE_RECEIPT_CHECK'
           EXPORTING
                documentheader = gd_documentheader
           TABLES
                accountpayable = it_accountpayable
                accountgl      = it_accountgl
                accounttax     = it_accounttax
                currencyamount = it_currencyamount
                return         = it_return.
      PERFORM invoice_error_check TABLES it_return.
      CALL FUNCTION 'BAPI_ACC_INVOICE_RECEIPT_POST'
           EXPORTING
                documentheader = gd_documentheader
           IMPORTING
                obj_key        = wa_obj_key
           TABLES
                accountpayable = it_accountpayable
                accountgl      = it_accountgl
                accounttax     = it_accounttax
                currencyamount = it_currencyamount
                return         = it_return.
      PERFORM invoice_error_check TABLES it_return.
      COMMIT WORK.
      WRITE: / 'ePayables Bank of America'.
      WRITE: / '  Invoice Document Number:',
                  wa_obj_key(10).
    ENDFORM.
         Form  invoice_error_check
    FORM invoice_error_check TABLES it_return STRUCTURE bapiret2.
      DATA:
      bapi_success(5) TYPE c VALUE 'false'.
      LOOP AT it_return.
        IF it_return-type = 'S' AND bapi_success = 'false'.
          bapi_success = 'true'.
        ENDIF.
      ENDLOOP.
      IF bapi_success = 'false'.
        WRITE: / 'Unable to post a buyside invoice with',
                 'BAPI_ACC_INVOICE_RECEIPT_POST'.
        LOOP AT it_return.
          WRITE: / 'Message Type:   ', it_return-type,
                 / 'Message Class:  ', it_return-id,
                 / 'Message Number: ', it_return-number,
                 / 'Message:        ', (80) it_return-message.
        ENDLOOP.
        ROLLBACK WORK.
        STOP.
      ENDIF.
    ENDFORM.

  • Table for the transfer order

    hi,
       what is the table for the transfer orders?
    thanks in advance..

    Hi,
    <b>Create delivery via transfer orders:</b>
    Once the order is saved proceed through the following steps. The process assumes the item has values in the warehouse bin.
    <b>VL04</b>         Delivery due list. Run the delivery due with your order number to create the delivery
    <b>LT03</b>         Create Transfer Order. EG. Warehouse: 101 and enter. Picking background. Save
    The Transfer order should now be saved. It now needs to be confirmed.
    In LT03 go to menu option Transfer Order -> Confirm – Transfer Order
    Enter
    Save
    The transfer order is now confirmed.
    <b>VL02N</b>       Delivery change. EG: Edit the delivery to do the following Pack – External customer material number = COO. External delivery number – Waybill number. BOL – Transport tag. Carrier – Header partner – SP (E.G. FXP). Tracking number = Packing Unit
    Pls reward points.
    Regards,
    Ameet

  • Update qty in delivery note through bapi for migo

    hi im using bapi for migo upload
    my requiremnt is to update QTY IN DELIVERY NOTE in migo.
    i got the folowing error if i dont pass the quantity.
    qty and/0r delivery indicator or final issue indicator missing
    if i pass the quantity field then it is changing quantity in unity of entity and qty in SKU i dnt want to change this field
    here is my code,
    gmcode-gm_code = '01'.
        ls_GOODSMVT_HEADER-pstng_date = tdate . "sy-datum.
        ls_GOODSMVT_HEADER-doc_date   = sy-datum.
        ls_GOODSMVT_HEADER-pr_uname   = sy-uname.
    loop at itab.
      ls_GOODSMVT_HEADER-REF_DOC_NO = itab-LFSNR.
      it_goodsmvt-move_type  = itab-BWART.
      it_goodsmvt-po_number  = itab-EBELN.
      it_goodsmvt-PO_ITEM  = '10'.
      it_goodsmvt-STGE_LOC  = itab-LGORT.
    it_goodsmvt-QUANTITY  = itab-LSMNG.
    it_goodsmvt-BASE_UOM = 'KG'.
    it_goodsmvt-material = 'RC1092'.
    it_goodsmvt-entry_qnt = itab-LSMNG.
    it_goodsmvt-ENTRY_UOM  = 'KG'.
      it_goodsmvt-mvt_ind = 'B'.
      it_goodsmvt-plant = 'G001'.
    it_goodsmvt-NO_MORE_GR = 'X'.
    append it_goodsmvt.
    clear it_goodsmvt.
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
      EXPORTING
        goodsmvt_header               = ls_GOODSMVT_HEADER
        goodsmvt_code                 = gmcode-gm_code
      TESTRUN                       = ' '
      GOODSMVT_REF_EWM              =
    IMPORTING
      GOODSMVT_HEADRET              =
       MATERIALDOCUMENT              =  lf_MATERIALDOCUMENT
       MATDOCUMENTYEAR               = lf_MATERIALDOCYEAR
      tables
        goodsmvt_item                 = it_goodsmvt
      GOODSMVT_SERIALNUMBER         =
        return                        = return
      GOODSMVT_SERV_PART_DATA       =
      EXTENSIONIN                   =
    if return-type ca 'EA'.
          rollback work.
          message id '26' type 'I' number '000'
          with return-message.
        else.
          call function 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT          =
    IMPORTING
      RETURN        =
          wait up to 5 seconds.
        endif.
    select * fROM mseg
          INTO CORRESPONDING FIELDS OF TABLE IT_MSEG
                             where mblnr = lf_MATERIALDOCUMENT and
                                       MJAHR = lf_MATERIALDOCYEAR.
      LOOP AT IT_MSEG INTO WA_MSEG.
        IF WA_MSEG-LSMNG IS INITIAL.
          wa_mseg-lsmng = ITab-LSMNG.
          UPDATE MSEG from wa_mseg.
          commit work.
          wait up to 5 seconds.
        ENDIF.
      ENDLOOP.
    ENDLOOP.

    It is been done by implementing one implicit enhancement in FM: MAP2I_B2017_GM_ITEM_TO_IMSEG
    I have added the below functionality at the end of the function module.
    Just i have maped the ERFMG i.e ent_qnt(Received quanity) with LSMNG i.e qty.in del note
    All best for others.
    $$-Start: (1)----
    $$
    ENHANCEMENT 1  Z_EV_IMP_GOODSMOVEMENT.    "active version
    Populate the delivery note quantity and UoM
    IF IMSEG-ERFMG IS NOT INITIAL.
      MOVE IMSEG-ERFMG TO IMSEG-LSMNG.
      MOVE IMSEG-ERFME TO IMSEG-LSMEH.
    ENDIF.
    ENDENHANCEMENT.
    Thanks,
    Mahesh.Gattu
    Edited by: Maheshkumar gattu on Dec 3, 2010 4:35 PM

  • Standard Extractor for Warehouse Transfer Orders

    Hello Experts.  Does anyone know if there a standard extractor for warehouse transfer orders (Tables LTAP/LTAK).
    Thank you!

    Hi Martin,
    Thank you for this information.  However, I cannot find these extractors when I execute RSA5.  Does this mean that these are not available in our version?  It seems to me that this should be available to us because our SAP Component Version is SAP EHP 1 for SAP NetWeaver 7.0 and this is what I see in the Business Content Documentation.  Are we missing something?  Thanks for your help.

  • Bapi for MIGO that can update freight supplier

    dear all
    we are presently using ALE_GOODSMVT_CREATE to create a migo document.
    the requirement now is to update the frieght supplier too.
    this present bapi is not able to update the supplier.
    does any one faced this problem before and if yes how did it got overcome ??
    regards

    check this link: It may not be exactly what you are looking for but will guide you:
    BAPI for MIGO
    cheers
    Aveek

Maybe you are looking for

  • Program with screens in background

    Hello everyone. I've created a program in abap with screens (no report). Is it possible to run this in background. I would like to have a checkbox that say 'background process'. If it's checked and the uses clicks the process button, the program must

  • How do I save and mp4 that was sent to me in a text message?

    My brother sent me a voice memmo of my nephew and I can not seem to figure out how to save it to my computer so I can turn it into a ringtone. HELP!

  • Heading in each page in a Sub Report

    Hi, I want to display a heading on each page in a sub report but the sub report doesnt have a page header. How can I do this. Thanks, Reena

  • Remote Access Difficulty

    I've installed Oracle Database 10g Express Edition on IIS server running a Plesk Control Panel. I have no problem accessing as local user at http://127.0.0.1:8080/apex. I enabled Remote HTTP access but cannot access at http://host:8080/apex (using se

  • Error in VA01: Message 00002 'Enter a valid value'

    Hello Experts! When I try creating a sales order in VA01 after entering the order type and other mandatory information, I get the error message (no. 002 of class 00) saying 'Enter a valid value'. When I searched other threads in SCN with the same mes