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

Similar Messages

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

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

  • 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

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

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

  • GL Account Postings for Goods movement

    Hi,
    I have a requirement to setup a account determination for goods movement for charity.
    What happens is that at times goods are given out directly for charitable purposes.
    This is done using a direct goods movement using 562. I need to know what kind of accounts should be debited or credited?
    kindly advice.
    thanks.

    Hi,
    Generally it should be Goods Issue against Cost Center through Movement Type "201" (Here create "Admin" Cost Center and in Text line mention the purpose as Issue to Charity)
    Else create Charitable trust as a vendor and use option Goods Issue --> Others (Mvmt. Type 502) and issue the materials.
    Accounting Entry should be;
    Stock Account - Cr
    Consumption Account - Dr
    Also discuss once with your client.

  • Why do we configure Record resaon for goods movement?

    Hi,
    I have seen the settings for "Record reason for goods movement" in customizing for different movement types. it can be optional , suppressed or required.
    Can somebody please let me know what is the effect of this setting? what it does at the front end or rather user level, what transaction does it effect?
    Thanks
    Regards

    Hi,
    We define Record reason for goods movement to input reason for material rejection to vendor or material srapped etc.
    By means of displaying the mtl doc anyone get idea why this mtl is rejected.
    Regards,
    Sandeep

  • MIGO not permitted for goods movement

    Hello gurus
    When I tried doing Goods Issue on an order (movement type 261), an error came up saying that the order was not found or not permitted for goods movement
    What would be the cause of this? How can I remedy it?
    Thanks in advance, points assured

    Hi,
    This is because the Order may be not released.
    Release the order and proceed further.
    Regards,
    Siva

  • 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

Maybe you are looking for

  • Access USB from web application

    USB flash drive should take to me a web site. Documents in the website should sync with USB flash drive (Read Write to USB from web site) USB Flash drive should be in VIEW mode (no write permission) Authentication to USB Flash drive

  • Delivery and Service Header Fields in RNIF Receiver Adapter for Rosettanet.

    Hello all, I need to populate the Delivery and Service header fields in Rosattenet MIME message in the receiver side.  For the sender side RNIF adapter, we can very well use the Adapter Specific message to get those fields from Rosattenet MIME messag

  • I need to contact creative to claim my warranty on EP-630's

    Hey everyone, I have navigated the support pages and tried to find how to contact creative to cliam my warranty on my broken ep-630's (left headphones randomly stopped working). I got to the poitn where i clicked the button which says escalate to ema

  • Modificacion Query

    Estimados, Tengo este query, /* SELECT FROM OINM T0 INNER JOIN OITM T1 ON T0.ITEMCODE=T1.ITEMCODE  INNER JOIN OWHS T2 ON T0.WAREHOUSE=T2.WHSCODE*/ DECLARE @bodega nvarchar(100), @Fec_Ini datetime, @Fec_ter datetime, @Grupo_ini nvarchar(30),@Grupo_ter

  • When is Verizon going to update their technology?

    Has anyone else noticed that Verizon hasnt updated their technology to match either Dish or Direct TV?  I dont know about you but 500gb DVR is not getting the job done for me anymore not with HD recordings a couple of sports events and its filled.  W