Function or BAPI  for goods movements

Hi all,
Somebody know which function or bapi can i use to apply a movement 601 GD goods issue:delvy? Please.
Thanks in advance
regards.
MArisol

Hi,
the bapi to create good movement is BAPI_GOODSMVT_CREATE.
to cnacel goods movement
BAPI_GOODSMVT_CANCEL
to get details of goods movements
BAPI_GOODSMVT_GETDETAIL
to get items in goods  movement
BAPI_GOODSMVT_GETITEMS
reward points if helpful.

Similar Messages

  • BAPI FOR GOODS MOVEMENT    MB1B

    HI,
           WILL ANY BODY HELP ME FOR BAPI MB1B FOR GOODS MOVEMENT 411
    DEASSINGE.
    I'M USING THIS BAPI FOR THE SAME
    AND PASSING THIS DATA.
    wa-MATERIAL = it_data-matnr.
    wa-PLANT = 'SBST'.
    wa-stge_loc = IT_DATA-LGORT .
    wa-BATCH = it_data-charg.
    wa-MOVE_TYPE = '411'.
    WA-move_reas = '0003'.
    WA-STCK_TYPE = 'F'.
    wa-SPEC_STOCK = 'E'.
    wa-val_sales_ord = it_data-vbeln.
    wa-val_s_ord_item = it_data-posnr.
    wa-quantity  = it_data-qty .
    wa-entry_qnt = it_data-qty .
    WA-base_uom = 'MTS'.
    WA-MOVE_MAT = it_data-matnr.
    WA-MOVE_PLANT = 'SBST'.
    WA-move_stloc = IT_DATA-LGORT .
    WA-MOVE_BATCH = it_data-charg.
    MOVE   'SBST' TO wa-tr_part_ba.
    MOVE       'SBST' TO wa-move_plant.
    MOVE       'X' TO wa-no_more_gr.
    MOVE       'TNE' TO wa-entry_uom_iso.
    MOVE       'TNE' TO wa-st_un_qtyy_2_iso.
    append wa to l_it_item .
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
        EXPORTING
          goodsmvt_header  = l_wa_header
          goodsmvt_code    = l_f_code
        IMPORTING
          goodsmvt_headret = l_wa_headret
        TABLES
          goodsmvt_item    = l_it_item
          return           = lit_bapiret2.
    Headling error message
      IF lit_bapiret2[] IS INITIAL.
    BUT IT GAVE ERROR
    Reason for Mvmt 0003 not supported (check your entry)
    WILL HELP
    MUKESH

    thanks

  • BAPI for Goods Movement with Movement Type 701

    Hi,
    I want to post a goods movement with movement type 701.
    Is there any BAPI I can take?
    I already tried the movement with 'BAPI_GOODSMVT_CREATE' but i got an error message that the movement ist not possible.
    Can anyone help me?
    Regards, Alex

    why dont you tell what message was issued?

  • Bapi for goods movement to transfer more than one serial number

    Dear Gurus
    Is their any BAPI with help of which i can transfer More than one serial Number against a single PO.
    We are having scenario where material is transfer from one client say XYZ to another client ABC.
    Now here the serialised material is transfer angainst diffrent POs with the help of I-Doc from one client to another using movement type 501.
    so please help me .Suggest BAPI with the help of wich i can transfer more than one serial number against one PO.
    I have already tried the following BAPI.
    MB_CREATE_GOODS_MOVEMENT
    BAPI_GOODSMVT_CREATE
    Regards
    Anand Battulwar

    Hi ,
    Already this BAPI (BAPI_GOODSMVT_CREATE) has a structure to handle multiple serial number (BAPI2017_GM_SERIALNUMBER).
    Example of working :
    Assume if you have two materials with Qty 2 each ..
    You need to enter Item 1 , Serial 1 and next line item 1 , serial 2  after that item 2 , serial 1 and  item 2 , serial 2 ..
    Do not sort this table , as system take the serial number base on quantity from qty line..
    What's the issue you are facing ?
    Thanks,
    sudhi

  • BAPI for Goods Movment Creation

    Hi
        I created Goods Movment with bapi BAPI_GOODSMVT_CREATE. for MIGO transaction
        After that i need to change vendor at detaild data level in under Freight (MIGO transaction).
    or else is it posible to pass our own vendor to that particlar level at time of creation using BAPI_GOODSMVT_CREATE
    Regards,
    Hari

    Did you come to [Note 520813 - FAQ: BAPIs for goods movements|https://service.sap.com/sap/support/notes/520813] ?
    Regards,
    Raymond

  • Function Modules for goods movement

    Hi Expert,
    I need FM Modules for goods movement from one bin to other bin and for Storage location to other storage location.which movement type we have to use for BIN to BIN and Sloc to Sloc.
    How to find the stock of a material with respect to bin level.
    -RK

    Hello,
    Hello have alook at below FM's:-
    CALL FUNCTION 'MB_CREATE_GOODS_MOVEMENT'
    CALL FUNCTION 'MB_POST_GOODS_MOVEMENT'
    Regards,
    Nikhil

  • BAPI for Goods Issue (MIGO) movement type 351 with reference to PO

    Hi,
    Is there an BAPI for Goods issue in MIGO with reference to PO movement type 351, i tried using "BAPI_GOODSMVT_CREATE", but there is no PO field in this, is there any other BAPI's available for the same?
    Thanks in Advance,
    Santosh

    for goods mvt type , the available is that itself . for 351 mvt type Po number is not required .
    if its a must , create a Z bapi with additional field  for PO and make it as reference .

  • BAPI for goods moment is not working in loop

    Dear ABAPers,
    If i am using BAPI ( for MB1n transabtion for goods movement type 309 )with in loop first one is working fine and remaining is not working.
    If i run individually all r working fine.
    I am sending cdoe as below.
    Pl hava look on that.
      LOOP AT ITAB.
        CLEAR: GM_RETURN, GM_RETMTD,GM_HEADER,GM_CODE,GM_HEADRET.
        REFRESH: GM_RETURN,GM_ITEM.
        GM_HEADER-PSTNG_DATE = SY-DATUM.
        GM_HEADER-DOC_DATE   = SY-DATUM.
        GM_CODE-GM_CODE      = '04'.                            " MB1B
        CLEAR GM_ITEM.
        MOVE '309'                 TO GM_ITEM-MOVE_TYPE     .
        MOVE ITAB-MATNR  TO GM_ITEM-MATERIAL.
        MOVE ITAB-MENGE_REC TO GM_ITEM-ENTRY_QNT.
        MOVE ITAB-MATNR_REC TO GM_ITEM-MOVE_MAT.
        MOVE ITAB-MEINS_REC TO GM_ITEM-BASE_UOM.
        MOVE ITAB-WERKS_REC  TO GM_ITEM-PLANT.
        MOVE ITAB-LGORT_REC  TO GM_ITEM-STGE_LOC.
        MOVE ITAB-CHARG TO GM_ITEM-BATCH.
        MOVE ITAB-CHARG_REC TO GM_ITEM-MOVE_BATCH.
        APPEND GM_ITEM.
        CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
          EXPORTING
            GOODSMVT_HEADER  = GM_HEADER
            GOODSMVT_CODE    = GM_CODE
          IMPORTING
            GOODSMVT_HEADRET = GM_HEADRET
            MATERIALDOCUMENT = GM_RETMTD
          TABLES
            GOODSMVT_ITEM    = GM_ITEM
            RETURN           = GM_RETURN.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT          =
    IMPORTING
      RETURN        =
        IF GM_RETURN[] IS NOT INITIAL.
          LOOP AT GM_RETURN.
            IF GM_RETURN-TYPE = 'E'.
              ERR_CNT = ERR_CNT + 1.
              V_MESSAGE = GM_RETURN-MESSAGE.
              UPDATE Y_MB1B SET STS_CODE = 'PE'
                               UPDATE_BY = SY-UNAME
                               UPDATE_DATE = SY-DATUM
                               MESS = V_MESSAGE
                   WHERE SRL = ITAB-SRL.
            ENDIF.
          ENDLOOP.
        ELSE.
          IF GM_RETMTD IS NOT INITIAL.
            REC_CNT = REC_CNT + 1.
            CONCATENATE 'Document' GM_RETMTD 'posted' INTO V_MESSAGE SEPARATED BY SPACE.
            UPDATE Y_MB1B SET STS_CODE = 'PS'
                       UPDATE_BY = SY-UNAME
                       UPDATE_DATE = SY-DATUM
                       MESS = V_MESSAGE
           WHERE SRL = ITAB-SRL.
          ENDIF.
        ENDIF.
      ENDLOOP.
    Pl gimme solution.
    Cheers,
    Simha.

    Hi,
                   here is the code check this for ur ref
    method IF_EX_LE_SHP_GOODSMOVEMENT~CHANGE_INPUT_HEADER_AND_ITEMS .
    ******** Data Declaration *************
      data: ls_lips type lips.
      data: ls_goods_header type BAPI2017_GM_HEAD_01.
      data: ls_gm_code type BAPI2017_GM_CODE.
      data: ls_goods_mvt type BAPI2017_GM_ITEM_CREATE.
      data: lt_goods_mvt type table of BAPI2017_GM_ITEM_CREATE.
      data: lt_return type table of BAPIRET2.
      data:ls_MATERIALDOCUMENT type BAPI2017_GM_HEAD_02-MAT_DOC.
      data: ls_MATDOCUMENTYEAR type BAPI2017_GM_HEAD_02-DOC_YEAR.
      constants: c_bwart type lips-bwart value '309'.
      ls_goods_header-PSTNG_DATE = sy-datum.
      ls_goods_header-DOC_DATE   = IS_LIKP-bldat.
      ls_goods_header-pr_uname = sy-uname.
      ls_gm_code-GM_CODE         = '06'.
      loop at it_xlips into ls_lips
           where OIC_MOT = 'PK'.
        if ( ls_lips-uepos is initial and ls_lips-pstyv = 'TAQ').
          ls_goods_mvt-MATERIAL = ls_lips-MATNR.
          ls_goods_mvt-PLANT = ls_lips-WERKS.
          ls_goods_mvt-STGE_LOC = ls_lips-LGORT.
          ls_goods_mvt-MOVE_TYPE = c_bwart.
          ls_goods_mvt-ENTRY_QNT = ls_lips-LFIMG.
          ls_goods_mvt-MOVE_MAT = ls_lips-UMMAT.
          ls_goods_mvt-MOVE_PLANT = ls_lips-UMWRK.
          ls_goods_mvt-MOVE_STLOC = ls_lips-UMLGO.
          append ls_goods_mvt to lt_goods_mvt.
        endif.
      endloop.
    by this call function BAPI Material document is created ****
      data : LS_GOODSMVT_HEADRET     TYPE BAPI2017_GM_HEAD_RET.
      CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
        EXPORTING
          GOODSMVT_HEADER  = ls_goods_header
          GOODSMVT_CODE    = ls_gm_code
        IMPORTING
          GOODSMVT_HEADRET = LS_GOODSMVT_HEADRET
        TABLES
          GOODSMVT_ITEM    = lt_goods_mvt
          RETURN           = lt_return.
      IF lt_return[] is NOT initial.
    <b>Reward points</b>
    Regards

  • Order not found or not permitted for goods movement

    Hi,
    I try to implement Goods Movement by using BAPI_GOODSMVT_CREATE. I try to do it over delivery number. So I use the following code. But somehow it returns "Order not found or not permitted for goods movement" error. I can do the same movement over MIGO transaction. But BAPI can not find the order. Do you have any idea? Do I miss a parameter o something?
    Thanks.
    data: begin of gmhead.
            include structure bapi2017_gm_head_01.
    data: end of gmhead.
    data: begin of gmcode.
            include structure bapi2017_gm_code.
    data: end of gmcode.
    data: begin of mthead.
            include structure bapi2017_gm_head_ret.
    data: end of mthead.
    data: begin of itab occurs 100.
            include structure bapi2017_gm_item_create.
    data: end of itab.
    data: begin of errmsg occurs 10.
            include structure bapiret2.
    data: end of errmsg.
    data: wmenge like iseg-menge,
          error_code(220) type C,
          temp_xchpf like mara-xchpf,
          sbatch like mseg-charg.
    DATA : temp_vbeln LIKE likp-vbeln.
    gmhead-pstng_date = sy-datum.
    gmhead-doc_date   = sy-datum.
    gmhead-pr_uname   = 'sy-uname.
    gmhead-VER_GR_GI_SLIP = '1'.
    gmhead-VER_GR_GI_SLIPX = 'X'.
    gmcode-gm_code  = '01'.        " for 101
    itab-mvt_ind    = 'F'.  
    itab-plant      = '0001'.
    itab-entry_qnt  = AMOUNT.
    itab-move_type  = '101'.
    itab-item_text  = 'invoice'.
    itab-deliv_numb = temp_vbeln.
    APPEND itab.
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
      EXPORTING
        goodsmvt_header             = gmhead
        goodsmvt_code               = gmcode
        goodsmvt_headret            = mthead
      TABLES
        goodsmvt_item               = itab
        return                      = errmsg.
    CLEAR error_code.
    LOOP AT errmsg.
      IF errmsg-type EQ 'E'.
         error_code = errmsg-message.
      ENDIF.
    ENDLOOP.
    IF error_code IS INITIAL.
      COMMIT WORK.
      IF sy-subrc NE 0.
        error_code = 'Commit error'.
        EXIT.
      ENDIF.
    ENDIF.
    ERROR_C = error_code.

    Dzed,
    I set item information but I'm still getting error.
    Actually I didn't understand the difference between applying goods movement over delivery number or po number. What is the difference between them?
    If I try to use only deliv_num & deliv_item data, BAPI looks for PO and finds nothing and gives error. But when I use PO number and item for goods movement, this time it is still impossible to be successfull(another error). So I decided to use both delivery number and PO together in BAPI; so I filled those fields:
    po_number
    po_item
    deliv_numb
    deliv_item
    But as you may guess, no success.
    There are also another fields for delivery :
    deliv_num_to_search
    deliv_item_to_search
    I have no idea what are they for.
    And also there's another field in BAPI header:
    red_doc_no
    Maybe I have to use this field to pass delivery number. I'm not sure. I'm confused.

  • Tick for goods movement in production order

    Hi,
    I have one query with reference to tick for goods movement in production order.
    Where it comes from as soon as i released the order.
    Is there any customized setting or it is stanadard functionality?
    Tushar

    Hi,
    I am not sure about which tick you are talking. So pls clarify exactly which check boxes you are talking in Production Order.
    If you are talking about check boxes of Goods Receipt,  GR Non valuated & Delivery Completed check boxes then those are standard SAP functionality which comes automatically at the time of creation / release of the order.
    Revert with more details in case your query is not resolved.
    Regards,
    Tejas

  • Outbound IDoc for Goods Movement

    HI
    We need to generate XML files for goods movement posted in SAP at Goods Receipt (MIGO) and Post Goods Issue (VL02N). Requirement is asynchronous update where the receiving system will poll the xml file at the end of the day.
    I have not been able to find any standard outbound idoc for goods movement.Can someone advise how they tackled any similar requirement? Any other approach also appreciated.
    Thanks
    Sriram

    Answer to the question, which would be useful to all.
    <b>MIGO</b>
    MB_CF001 - Customer Function Exit in the Case of Updating a Mat. Doc.
    This exit is called on update task, populate segments (edidc & edidd) of WMMBID02 (WMMBXY message type) and use MASTER_IDOC_DISTRIBUTE. Also you need to maintain the ALE Distribution model in WE64 for this message type.
    Inside the code you can restrict based on movement type. No need to issue COMMIT.
    <b>VL02N</b>
    You can use BAdi: LE_SHP_DELIVERY_PROC to perform this.
    Create Implementation and use the method SAVE_AND_PUBLISH_DOCUMENT.
    Hope this help to others as well.

  • GI:How to set Indicator:Item Not Relevant for Goods Movements LIPS-NOWAB

    Hi,
    does anybody know what i have to do to get the Indicator: Item Not Relevant for Goods Movements set for a good issue delivey position? (Table LIPS field NOWAB)
    thanks in advance
    Steffen

    Hi,
    the thing is the following (maybe it doesn't work at all, i don't know) :
    a) i have a "Non-stock" material (e.g.material type NLAG)
    b)this material should be picked, so it should be relevant for the delivery (e.g.item category TAX)
    c) for a special reason the "Total goods movement status" in the outbound delivery header shouldn't be "Not relevant", therefore i assigned the item category TAX to a shedule line category that has a movement type (e.g. CN)
    d)but the bad thing is, that the customer has set the indicators "quantity updating" and "value updating" for the material type NLAG, and so the goods issue posting gets some errors. eg.g missing storage location etc.)
    During debugging i found a coding that checks the sign NOWAB of lips, the documentation says:
    "You can use this indicator to control whether the item is relevant for goods movement when the delivery is still being created.
    When this indicator is set, goods movement is not posted for this item - regardless of the movement type assigned  to it."
    So i head the idea it might be possible to set this indication (Lips-nowab) somewhere in the sales order or somewhere else but maybe this conflicts with point c) above .
    Maybe shomeone knows what to do or has a better idea.
    Best regards
    Steffen

  • The Reservation item is not allowed for goods movements

      Hi Experts,
      When i do the goods movements against the reservations in
    MIGO, I encounter the below error.
      The reservation
    xxxxxxx item xxxx is not allowed for Goods Movement.
      Can you please suggest on this.
      Regards,
      Venkat.

    What is the message number ?
    Can you please check the goods movement allowed for reservation in MB22 :

  • Function module/BAPI for executing VD51/VD52 transactions

    Hi
    Warm greetings to all,
    I require a function module/BAPI for executing VD51/VD52 transactions. Can anyone help on this
    Sreekanth

    Hi Sreekanth,
    Use this.
    There is an FM which is used by standard transaction
    'RV_CUSTOMER_MATERIAL_UPDATE' .
    Ex Code -
    CALL FUNCTION 'RV_CUSTOMER_MATERIAL_UPDATE'
    IN UPDATE TASK
    TABLES
    XKNMT_TAB = XKNMT
    YKNMT_TAB = YKNMT
    TCATALOG_TAB = LT_CATALOG.
    commit work.
    Regards,
    Vijay

  • Function Module / BAPI for Creating Material freight Group

    Hi All,
    Can anyone tell me the Function Module / Bapi for creating material freight group.
    Regards,
    Raj.

    Bapi for creating material freight group. :: You actually use mm01 or mm02 to change data for material flight.
    So you can use BAPI for mm02 and mm01
    For Ex:
    BAPI_MATERIAL_SAVEDATA
    Hope this helps

Maybe you are looking for

  • Std report on delivery performance

    Hi Gurus, Is there any Standard report to check the delivery performance (Schedule date VS Received date),please advice.... Regards, Kumar

  • Excise Invoice tab In MIGO transaction code

    Hello Could any body suggest, In Excise Invoice tab In MIGO transaction code I am getting "06  No Excise Entry" no otehr fields are coming.? All options like 01     Capture & Post Excise Invoice 02     Refer & Post Excise Invoice 03     Only Capture

  • Defer train-stop navigation for Custom Processing

    Hi, I'm using JDeveloper version - 11.1.1.6 I'm using Train Component in one of the task-flow with 3 train stops. I want to defer the Train stop navigation if the custom validation fails. I referred the sample 97 in ADF Code Corner - "How-to defer tr

  • Getting SqlException while using TABLE CAST but works fine with order by

    I am using following query as sub-query with in a query which I have used in PL/SQL. This sub-query works fine If I add Order by x1,x2 at the end of the query. Otherwise it gives a SQLException. SELECT x1,x2 FROM TABLE( CAST (somelist AS X_ARRAY ))

  • Post-query trigger ? save changes?

    I have a similar problem to that posted by 'nova' on Dec. 27, 2000. I have a form generated by Designer. The problem is that upon subsequent querying (F8 pressed twice), it asks me if I want to save my changes, when I have not made any changes. I loo