Good Movement - BAPI used

Hi Everybody,
I like to know the BAPI's used for
1. Good Movement Creation (BAPI_GOODMVT_CREATE - I think I am correct here)
2. Deleting a Good Movement (is it BAPI_GOODMVT_CANCEL - I am not sure about this, pls confirm me the right one)
3. Updating a Good Movement (?)
I will really appreciate for your quick response.
Regards/Guru

Hi
use the following BAPI's w.r.t Goods movements:
BAPI_GOODSMVT_CANCEL         
Reverse Goods Movements with MB_CANCEL_GOODS_MOVEMENT
BAPI_GOODSMVT_CREATE          
Post goods movements with MB_CREATE_GOODS_MOVEMENT
BAPI_GOODSMVT_GETDETAIL        Display Details for Material Document
BAPI_GOODSMVT_GETITEMS         Display Detailed List of Material Documents
Regards,
Anji

Similar Messages

  • Total goods movement status using structure 'LEDLVSTATDISPHEAD'

    Hi,
    I'm trying to get the 'Goods movement status' for a Delivery once PGI posting is done. However the tables VBUK & VBUP maintain this status at Sales order line item level. This doesn't give the correct picture in cases where there are more than 1 Delivery for a Sales order line item.
    At Delivery level the 'Goods movement status' leads to a structure 'LEDLVSTATDISPHEAD'
    Please advice how to get a field value (for goods movement status) using this structure ...
    Thanks & Rgds,
    Pradeep

    Hi-
    Just wondering to know how you were able to resolve the issue. i am facing similar situation, can you please let me know how was this sovled.
    Thanks.
    Ramesh

  • Number range error in goods movement BAPI

    Dear friends
    we are using the BAPI BAPI_GOODSMVT_CREATE to create a material reservation with movemnet type 201. although all the fields are maintained properly i get an error number 136 - number range different. i checked the number range and found it to be ok. can anyone please help me out
    thanks in advance
    Gurvindre

    Hi,
    Please check and format your table data before sending it to bapi. I mean to say u might be missing conversions or validations for some fields.
    I guess the data you are passing in first two lines meets thee bapi requirement without any conversions, whereas same is not the case with other lines od data.
    I hope this will help you in resolving this issue and close it.
    Appreciate if found helpful!!!
    Regards,
    Vinit

  • Module pool to create goods mvt by using Bapi

    Hi can any one help me to develop a module pool program to create goods movement by using BAPI. Pls give me guidelines to proceed further...
    i should be grateful to you people for proving help...
    thank you
    with regards
    bheem

    Why do you want to develop a module pool to do this?  There are standard transactions to do goods movement (MB01, MB1A, MB1B, MIGO, etc.)
    Not sure why you want to development something that is already there.  Granted, if you are interfacing to an external system.
    Albert

  • Bapi goods movement Create (User Locking Error)

    HI all ,
             Please help me in the issue . I am doing Goods movement through BAPI(BAPI_GOODSMOVEMENT_CREATE) and i am scheduling this job in background . I am gettigng an Error of Plant data of Material locked by the user(myself) and for the next iteration its not  proceeded . Please help me how to get rid of the error .
    Thanks in advance,

    Hi Eric,
    Is the value get updated in the table?  After the Goods movement BAPI Just do wait up to 5 seconds and do the bapi commit.
    Other wise if it is possible just debug .
    With Regards,
    Sumodh.P

  • Goods Movement - BAPI_GOODSMVT_CREATE - input parameters

    Hi,
    I have to create a goods movement with movement type 343 and 344.
    While using the transaction MB1B (Tranfer Posting), I give the following parameters.
    Header
    1. Document Date              2. Posting Date
    Item
    1. Movement Type              2. Plant                  3. Storage Location
    4. Material                         5. Quantity
    But while using the BAPI for creating the goods movement, it creates material document. But I am neither able to view the document nor see any change in the good movement of the material. The quantity remains same in transaction MMBE.
    I feel that item details given as input to the BAPI needs changes. Can anyone suggest the fields to which each of the above item details needs to be given.
    Thanks.
    Regards,
    Senthil G.

    Hello Senthil,
    Check this sample code
    REPORT ZRICH_0001 .
    * Structures for BAPI
    DATA: GM_HEADER  TYPE BAPI2017_GM_HEAD_01.
    DATA: GM_CODE    TYPE BAPI2017_GM_CODE.
    DATA: GM_HEADRET TYPE BAPI2017_GM_HEAD_RET.
    DATA: GM_ITEM    TYPE TABLE OF
                     BAPI2017_GM_ITEM_CREATE WITH HEADER LINE.
    DATA: GM_RETURN  TYPE BAPIRET2 OCCURS 0 WITH HEADER LINE.
    DATA: GM_RETMTD  TYPE BAPI2017_GM_HEAD_RET-MAT_DOC.
    CLEAR: GM_RETURN, GM_RETMTD. REFRESH GM_RETURN.
    * Setup BAPI header data.
    GM_HEADER-PSTNG_DATE = SY-DATUM.
    GM_HEADER-DOC_DATE   = SY-DATUM.
    GM_CODE-GM_CODE      = '04'.                                " MB1A
    * Write 971 movement to table
    CLEAR GM_ITEM.
    MOVE '412'                 TO GM_ITEM-MOVE_TYPE     .
    MOVE 'Q'                 TO GM_ITEM-SPEC_STOCK.
    MOVE '3800533484'  TO GM_ITEM-MATERIAL.
    MOVE '1'     TO GM_ITEM-ENTRY_QNT.
    *MOVE 'PC'    TO GM_ITEM-ENTRY_UOM.
    MOVE '1060'  TO GM_ITEM-PLANT.
    MOVE '0007'  TO GM_ITEM-STGE_LOC.
    *MOVE '0901'   TO GM_ITEM-MOVE_REAS.
    MOVE 'P203601001' TO GM_ITEM-WBS_ELEM.
    MOVE 'P203601001' TO GM_ITEM-VAL_WBS_ELEM.
    APPEND GM_ITEM.
    * Call goods movement BAPI
    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.
    IF NOT GM_RETMTD IS INITIAL.
      COMMIT WORK AND WAIT.
      CALL FUNCTION 'DEQUEUE_ALL'.
    ELSE.
      COMMIT WORK AND WAIT.
      CALL FUNCTION 'DEQUEUE_ALL'.
    ENDIF.
    WRITE:/ GM_RETMTD.
    LOOP AT GM_RETURN.
      WRITE:/ GM_RETURN.
    ENDLOOP.
    " Also after iu call the BAPI use the FM BAPI_TRANSACTION_COMMIT
    If useful reward.
    Vasanth

  • Goods movement document based on stock determination

    All,
    I am trying to create goods movement document using BAPI_GOODSMVT_CREATE based on production order for movement type '261'. Before to that we have to use the function module BF_STOCK_DETERMINATION to pick the stock from appropriate storage location( for example: if order quantity is 3; then quantity 2 will be picked from
    Un-restricted stock and 1 qty will be picked from consignment stock). What happens is when it gets into MB_CREATE_GOODS_ISSUE_ITEM inside the BAPI, at the routine "MM07MMFF0_FUSSZEILE_WA_PRUEFEN" there is a routine called "FORM WERK_PRUEFEN(sapfm07m) when it gets into this routine the values in the internal table"T158"
    losses its visiblity. so i get an error "document type" missing, when the function module"FI_DOCUMENT_TYPE_CHECK"
    is called as part of the routine.
    But if i call the BAPI_GOODSMVT_CREATE without calling BF_STOCK_DETERMINATION material document is get created.
    If any one worked on this please help me i tried for more than week but i couldn't solve it. I really highly appreciate you help.
    With regards,
    Shiva.

    Called in two different program and it worked. In the first program i call "BF_STOCK_DETERMINATION" and export the values to memory and then i call the second porgram using "submit...and return"; import the values and called
    "BAPI_GOODSMVT_CREATE".  Material document is created.
    Regards,
    Shiva.

  • Goods movement not possible with mvmt type 991

    Hi,
                As per requirement I need to create a GR for Purchase order wise. I tried to create using BAPI BAPI_GOODSMVT_CREATE but It returns the error message.
    error:  Goods movement not possible with mvmt type 991
    LOOP AT gt_outtab1.
      gt_outtab1-gr_wght       =   gt_outtab1-gr_wght.
       MOVE: gt_outtab1-matnr            TO gt_item-material,
              gt_zseed_po_qty-werks       TO gt_item-plant,
              gt_zseed_po_qty-lgort       TO gt_item-stge_loc,
             '901'                        TO gt_item-move_type,
              gt_outtab1-gr_wght          TO gt_item-entry_qnt,
              'B'                         TO gt_item-mvt_ind,
              '1'                         TO gt_item-stck_type,
              v_lifnr                     TO gt_item-vendor,
              gt_outtab1-ebeln            TO gt_item-po_number,
              gt_outtab1-ebelp            TO gt_item-po_item.
    APPEND gt_item.
    ENDLOOP.
    CLEAR gt_item.
      LOOP AT gt_outtab3 WHERE bqty IS NOT INITIAL.
        MOVE: gt_outtab3-bmatnr           TO gt_item-material,
              gt_zseed_po_qty-werks        TO gt_item-plant,
              gt_zseed_po_qty-lgort      TO gt_item-stge_loc,
             '991'                        TO gt_item-move_type,
              gt_outtab3-bqty             TO gt_item-entry_qnt,
              ''                          TO gt_item-mvt_ind,
              '1'                         TO gt_item-stck_type,
              v_lifnr                     TO gt_item-vendor.
        APPEND gt_item.
      ENDLOOP.
    CLEAR gt_item.
      LOOP AT gt_outtab3 WHERE pqty IS NOT INITIAL.
        MOVE: gt_outtab3-bmatnr           TO gt_item-material,
             gt_zseed_po_qty-werks        TO gt_item-plant,
              gt_zseed_po_qty-lgort      TO gt_item-stge_loc,
             '942'                        TO gt_item-move_type,
              gt_outtab3-pqty             TO gt_item-entry_qnt,
              ''                          TO gt_item-mvt_ind,
              '1'                         TO gt_item-stck_type,
              v_lifnr                     TO gt_item-vendor.
        APPEND gt_item.
      ENDLOOP.
    ***********Call goods movement BAPI
      CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
        EXPORTING
          goodsmvt_header  = gs_header
          goodsmvt_code    = gs_code
        IMPORTING
          goodsmvt_headret = gs_headret
          materialdocument = gs_retmtd
          matdocumentyear  = gs_year
        TABLES
          goodsmvt_item    = gt_item
          return           = gt_return. 
    so could you please let me know which are the parameters I need to pass to create GR?
    regards,
    tarun

    Hi,
    Go to T.code OMJJ . Give your your movement type 991. Check the allowed transaction and all the details  in your left hand side and the settings done.
    Thanks
    Arbind

  • Hi all truble in goods movement

    hi all
    i want to create a new goodsmovement using bapi FM.  for that i use  "bapi_goodsmvt_create ".
    problem is thats when i am creating the goods movement by using txn mb11 it works and when the same data i pass to the fm in se37 it generates a problem that "Goods movement not possible with mvmt type 201". 
    will u plz help me.
    i have using this data:
    movement type 201
    plant 6101
    storage location 0001
    material 100-100
    quantity  1
    cost center 0000001000

    Hi,
    1) Don't forget to send GOODSMVT_CODE parameter
         GM_Code 01: Goods receipt for purchase order                       
         GM_Code 02: Goods receipt for production order                     
         <b>GM_Code 03: Goods issue </b>                                           
         GM_Code 04: Transfer posting                                       
         GM_Code 05: Other goods receipts                                   
         GM_Code 06: Reversal of goods movements                            
         GM_Code 07: Subsequent adjustment to a subcontract order           
    Regards.
    David

  • Material determination during goods movement

    Hi Guys,
    I am using the BAPI 'BAPI_GOODSMVT_CREATE' to create goods movement. And I want to check the material availability and execute the material determination based on atp check results also. Does this BAPI implicitly handles material determination based on ATP? OR should I write the logic to the material determination explicitly before calling this BAPI?
    Regards,
    Rahul

    As Jurgen has mentioned, material substitution is a part of SD and has to achieved prior to the goods movement BAPI.
    Have a look at FMs for the material substitution logic:
    RV_MAT_SUB_SAVE
    RV_KONDITION_SICHERN
    RV_KONDITION_SICHERN_V13A
    is there any BAPI or Function Module for Materi... | SCN

  • 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.

  • GOODS MOVEMENT HISTORY FOR INVOICE REGISTRATION

    Hi all,
    I use the BAPI BAPI_INCOMINGINVOICE_CREATE to register invoices.
    The BAPI wants as input parameter the list of goods movement.
    Thus, I need a remote component (BAPI, RFC, Function Module, etc.) to get the goods movement history for a certain purchase order.
    Note that I do NOT need the goods movement (BAPI BAPI_GOODSMVT_GETDETAIL).
    I need a component with the same behaviour of the MIRO transaction, which displays, for a certain Purchase Order, the goods movements "available for invoice registration".
    Thank you very much in advance.
    Mauro
    Message was edited by: Mauro De Santis

    Message was edited by: Mauro De Santis

  • How to tranport goods movement reservation to external system!!

    I want to send idocs to external system when I save a goods movement reservation using tcode mb21,mb22,etc.
    I dont know what configuration or development about Message Control and ALE I need to do!!
    Thank you so much for your time and consideration.

    You have to maintain output determination in the SPRO transaction -> Materials Management -> Inventory Management and Physical Inventory -> Output Determination.
    You have to maintain Condition tables, Output determination procedures, conditions etc. to do that.
    This is really a MM functional analyst work and NEVER should be done by an XI consultant.
    regards
    Shravan

  • Good Receipt Reversal using Idoc WMMBXY

    Hi to all,
    I've the following issue in a 4.6C R/3.
    I want to reverse a Goods Receipt from Purchase Order (MB01; goods movement 102) using inbound idoc WMMBXY.
    When I try to reverse some quantity in the PO of a material position without batch, there's no problem, the Idoc enter and reversal goes well.
    But when I try to reverse some quantity (i.e. 3 PCE) of a material position not batch managed, Idoc goes in status 51 and gives following error:
    "Deficit of PU GR quantity 3 PCE : [MATERIAL] [PLANT] [ST.LOC] [BATCH]
    Message no. M7 021"
    Anyone can help me?
    Thanks a lot,
    Alex

    No one can help me?

  • Goods posting reversals using PI sheet

    Hello All,
    I would like to post goods movement reversals using PI sheet for a process order. Can anyone help me out with this?

    Hello All,
    Please let me know if its possible to post goods receipt reversals via PI sheet. I am not able to find any standard function module in function group COCI which can serve the purpose.
    Any help would be appreciated. Points will be awarded.

Maybe you are looking for

  • How to "smooth in" a gaussian blur fx?

    Hi there     I would like to know how can I "smooth in" a gaussian blur fx. I recorded a video and needed to add a tittle to the video and when I add the fx it doesn't fade in smoothly it's like ON and then OFF. Is there a way to make it like fade in

  • Logical Column Mapping to Multiple Physical?

    I am "learning" OBIEE still and a consultant today showed me something that totally blew my mind In the OBIEE Admin tool (in verson 10) there are 3 layers displayed. The physical, business management and presentation layer. I was under the impression

  • IPad Stuck on activation.

    I wanted to upgrade my iPad 2 to iOS 7. My iPad was running iOS 6.1 so when I connected it to iTunes it asked me if I want to upgrade to iOS 6.1.3. I agreed and everything installed nicely. iPad turned on, I selected language and region, joined my wi

  • Emptying trash decreases hard disk space ?!

    I downloaded some music files from limewire and didn't like it, so I deleted the files from my shared folder where they were stored and from ITunes, then emptied the trash. Emptying the trash actually decreased the available space on the hard disk (f

  • Bitmaps Disappearing

    Hi All! So I am having a big problem. I'm doing some background designs in flash 8 Professional and using some bitmaps when doing them. So I'll finish a design, save it, close the file and open it again a few days later...... All of the sudden the bi