BAPI for goods reciept posting

Hi,
     Can Any one provide me BAPI for goods reciept posting.
Thanks.
Moderator message: please try finding out yourself before asking.
locked by: Thomas Zloch on Aug 17, 2010 10:55 AM

HI,
     Have a look at
BAPI_GOODSMVT_CREATE
BAPI_ACC_GOODS_MOVEMENT_CHECK
BAPI_ACC_GOODS_MOVEMENT_POST
Regards,
S.Velsankar
Moderator message: please do not encourage laziness by replying to such questions!
Edited by: Thomas Zloch on Aug 17, 2010 11:00 AM

Similar Messages

  • 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 Accounting Document Posting

    What is the name of BAPI for Accounting Document Posting and how can I run it?

    Hi ,
    Can you send me the code how to use the BAPI_ACC_DOCUMENT_POST.
    Regards,
    L Srikanthan.

  • SAP Standard script name for Goods reciept.

    SAP Standard script name for Goods reciept.

    Check this,it may help u
    Program:SAPM07DR
    Form: WESCHEINVERS3
    Regards

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

  • Alert for Goods Receipt Posting?

    Dear Folks,
    I am now receiving an email whenever I post a goods receipt in my system. Have any of you encountered the same email message or have any idea what is triggering this message? Below is a sample:
    from     Tan Hui Min <abc@xxxxx>
    to     Junwen Wee <cde@xxxxx>
    date     Thu, Apr 22, 2010 at 3:48 PM
    subject     Alert for Goods Receipt Posting (The triggering application determined you as a recipient)
    hide details 3:48 PM (20 hours ago)
    Alert ID: ##00139##
    Best Regards
    Junwen

    Hi,
    Check whether you have activated Indicator: Goods Receipt Message in PO and done settings for the same.
    "Indicator specifying that the system is to issue an appropriate message to the buyer following each goods receipt in respect of this purchase order."
    Regards,
    Vikas

  • BAPI for Picking and Post Goods Issue ?

    Hi All,
    Is there any BAPI for doing Picking and Post Goods Issue in VL02N ? I don't think we can use BAPI_OUTB_DELIVERY_CHANGE.
    Is it advisable to use BAPI or BDC ( if no BAPI exist ).  Thanks in Advance.

    BAPI for picking in VL02N
    BAPI_OUTB_DELIVERY_SAVEREPLICA
    BAPI for posting Goods Issue
    BAPI_OUTB_DELIVERY_CONFIRM_DEC
    For reference: http://help.sap.com/printdocu/core/Print46c/EN/data/pdf/LEIDW/LEIDW.pdf

  • 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

  • Bapi for Goods Receipt - Outbound Delivery

    Hello all,
    I am looking for a Bapi for <b>Goods Receipt for Outbound Delivery</b>.
    I have searched the forum but found BAPIs only for GR for Inbound Delivery, GR for purchase order etc. But not for GR for Outbound Delivery.
    Can someone guide?
    Thanks and Regards,
    Reena

    Hi Reena,
    use this code....
    *& Report  ZSAN_BAPI_GOODSMVT_CREATE                                   *
    REPORT  ZSAN_BAPI_GOODSMVT_CREATE .
    DATA: GOODSMVT_HEADER LIKE BAPI2017_GM_HEAD_01,
          " Material Document Header Data
          GOODSMVT_CODE LIKE BAPI2017_GM_CODE,
          " Assign code to transaction for BAPI goods movement
          MATERIALDOCUMENT LIKE BAPI2017_GM_HEAD_RET-MAT_DOC,
          " Number of Material Document
          GOODSMVT_ITEM LIKE BAPI2017_GM_ITEM_CREATE OCCURS 0 WITH HEADER LINE,
          " Create Material Document Item
          RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE
          " Return table for messages
    *Fill values in header
    GOODSMVT_HEADER-PSTNG_DATE = '20030825'.
    GOODSMVT_HEADER-DOC_DATE = '20030802'.
    *Fill GOODSMVT_CODE
    GOODSMVT_CODE-GM_CODE = '05' .
    *Fill Item Table
    GOODSMVT_ITEM-MATERIAL = '100-100'.
    GOODSMVT_ITEM-PLANT = '1000'.
    GOODSMVT_ITEM-STGE_LOC = '0001'.
    GOODSMVT_ITEM-MOVE_TYPE = '501'.
    GOODSMVT_ITEM-ENTRY_QNT = '50'.
    GOODSMVT_ITEM-ITEM_TEXT = 'Test Sanket'.
    *GOODSMVT_ITEM-COSTCENTER = '1000'.
    APPEND GOODSMVT_ITEM.
    *Create Good's movement
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
      EXPORTING
        GOODSMVT_HEADER  = GOODSMVT_HEADER
        GOODSMVT_CODE    = GOODSMVT_CODE
      IMPORTING
        MATERIALDOCUMENT = MATERIALDOCUMENT
      TABLES
        GOODSMVT_ITEM    = GOODSMVT_ITEM
        RETURN           = RETURN.
    *Commit BAPI
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      EXPORTING
        WAIT = 'X'.
    *Display Goods movement number
    FORMAT COLOR 6 INVERSE ON.
    READ TABLE RETURN WITH KEY TYPE = 'E'.
    IF SY-SUBRC = 0.
      WRITE: /,'ERROR! Goods movement not created'.
    ELSE.
      WRITE: /,'Goods movent number',MATERIALDOCUMENT COLOR 5,
               'posted for material',GOODSMVT_ITEM-MATERIAL.
    ENDIF.
    FORMAT COLOR OFF INVERSE OFF.
    If useful reward me with points.
    Thanks
    Sanket.

  • Fields For Good Reciept and Issed !

    Hi all,
    I want the fields for the goods reciept and good issued for getting the stock for a particular material as on to date (which is my selection screen) ...
    I have selected the sales data from the VBRK and VBRP tables which is for sales information and now i need to find out the Stock information. My Requirement is to maintain sales stock and to show the Turn Over Ratio ???
    Can you tell me the tables and the fields where i will get them ...
    I m calculating my Stock as:
    Stock (as on date) = Substracted Value (Reciepts - issues ) - current stock.

    In MSEG there is field for Sales order number as well as item number from that you can get the Goods issues quantity,similarly in MSEG you also have purchase order number and purchase order item numner from which you can get the goods purchased quantity by passing it to VBAP and EKPO respectively.
    Regards
    Mohamed Mansoor
    Message was edited by:
            Mohamed Mansoor Kasim

  • Problem with Goods Reciept Posting

    I have posted goods reciept, after that i am trying to post excise part-2. I have mentioned al the details in goods reciept, but in excise part-2, system shows credit avaialbe field blank. pls guide

    Hi,
    I think but am not sure that in your register part-2 there is no sufficient balance. Thru J1IH put some amount in registers and then try the scenario
    Regards
    Kiran

  • BAPI ACC INVOICE RECIEPT POST

    Hi Experts,
    We are using BAPI_ACC_INVOICE_RECIEPT_POST to post accounting information after invoice verification.
    On posting of the data, the BAPI says "Document successfully Posted", we then run BAPI transaction commit to commit work.
    However we cannot find any accounting documents relating to the posting, either against the vendor in FB1LN or in FB03. It seems like no accounting document is posted even after the BAPI has said successfully posted.
    Is there any reason for the document not actually posting for the BAPI_ACC_INVOICE_RECIEPT_POST ?
    Many Thanks
    Deelan

    Hi,
    Thanks for the response,
    Yes we are using the parameter WAIT = X in the transaction COMMIT.
    When we check the reference document number in FB03 it says the document does not exist.
    This is is strange that the BAPI says document successfully posted yet does not create one, even after the COMMIT work has been done.

  • BAPI for TOCE : FF68 - Posting Incoming Payments from Customers

    Hi,
    Can anybody provide me if there is any BAPI for the transaction FF68 : Posting Incoming Payments from Customers?
    Cheers,
    Yash K

    Hi,
    OBZT just controls the display of the various tax codes in the drop down list if MIRO/ FB60 etc.
    You need to maintain the atx coe correctly in FBZP. Go to FBZP and in this tax code and check whether the tax rates etc. have been defined correctly for it.
    Regards,
    SDNer

  • Please explain a scenario for goods reciept reversal and its transaction

    Please help me friends
    how to do goods reciept reversal

    Hi,
    You can do goods receipt:
    1) Entering a Material Document With a Reversal Movement Type
    In transaction MIGO, Select the transaction Goods Issue, select reference as "Purchase order" and enter the reversal movement type 102. Post the document. As you do not refer to the material document while reversing, the system re-determines the material price if the price has changed.
    2) Entering a Reversal Document with Reference to the original Material Document
    In transaction MIGO, Select the transaction Cancellation, the reference document automatically changes to "Material docuement" and you need not enter the movement type. It automatically chooses 102 movement type. Post the document.
    Pl let me know if you have further questions.
    Thanks and Regards,
    Maheshwari

  • 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

Maybe you are looking for

  • Color inversion from iMac to TV

    Hey, My iMac desktop is extended to a Sony EX402 40" TV screen with this: http://www.dealextreme.com/p/mini-di...er-1080p-34025 The problem is when im watching content on the TV it will go black after a couple of min and im getting color inversion. I

  • How do you get iTunes music from one computer to the other?

    I activated iCloud, home sharing on multiple computers and i still don't know how to share my music and movie files from itunes.

  • HP LaserJet 5si won't print -- jobs stopped

    Mac G5 OSX 10.4.x LaserJet 5si with 2552 Jet direct card Networked via Linksys switch I lost my internet connection to all computers yesterday and ended up having to reset my Linksys Router. Now everything works except this printer which is connected

  • Moving my itunes media folder back to my computer from external hard drive

    Hope someone can help me here as I've gotten myself confused. A couple years ago I moved my Media Folder to an external hard drive.  I now want to move it back but I'm doing something wrong. Here's what I did. Copied the Media Folder from external to

  • Error Message ox2oo7444e2, what is this ?

    I have intalled Adobe Photoshp cs4, but i cant' open it. When i try to open it, there's a messare error likie this : " The instruction ox2o7444e2 --> oxoooooooo " what's wrong with my installation ? And how to resolve this problem ? Any help ? Thanks