BAPI FM for goods receipt

guyz!
can any one say me, is there bapi function module to create goods receipt and reverse the existing goods receipt?
thnx
manas

hi,
BAPI_GOODSMVT_CANCEL  you can use this to cancel.
You can search these function modules in SE37 BY giving
"BAPIGOODS" etc..words..
regards
srikanth
Message was edited by: Srikanth Kidambi

Similar Messages

  • BAPI needed  for  Goods Receipt Purchase Order(Transaction : MIGO)

    Hi all,
    We have a requirement where in we need to post the documents throuh BAPI for Goods receipt Purchase order(Transaction: MIGO).
    Any inputs on this..is highly appreciable...
    thanks in advance...
    regards..
    prathima.

    Hi,
    use 'BAPI_GOODSMVT_CREATE'
    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.
    [/code]
    Also check the Bapis
    BAPI_PO_CREATE --> To create Purchase Order
    BAPI_PO_CHANGE --> To change Purchase Order
    BAPI_PO_GETDETAIL --> Todisplay Purchase Order
    Regards,
    Raj.

  • BAPI/FM for goods receipt for a Sub Contracting PO

    Hi All,
    Is there a BAPI/FM to perform goods receipt for a sub contracting PO? BAPI_GOODSMVT_CREATE can not perform goods receipt for sub contracting PO.
    My purpose would be served if I can know how to find the component material of a subcontrcting PO.
    Please help.
    Thanks,
    Rana

    Thanks for your input
    Well, I wanted to ask if the BAPI is capable of performing GR for SC PO. Instead of a question, that went as a statement :-). Your recommendation helped me to find answer to my question.
    Thanks again.

  • BAPI needed for goods receipt for delivery created from sales order

    Hi experts,
    I need help.
    I want to post goods receipt for the delivery created from sales order. I have tried out BAPI BAPI_GOODSMVT_CREATE but I am not able to post it.
    Is there any way to post this? I need BAPI and not FM MB_*....
    Thanks & REgards,
    Bhavin A. Shah

    Hi,
    Please refer to link,
    https://wiki.sdn.sap.com/wiki/display/Snippets/BAPI_GOODSMVT_CREATE-ABAP
    Regards
    Shree

  • Bapi bapi_goodsmvt_create for goods receipt of process order

    Hello All ,
    I am trying to a GR with MIGO for a process order .Its giving me error like
    Content of order 2000002339: 100001374 transferred to interface (IMSEG): 100001374
    I am not able to trace the error out .I am passing the below parameters .pls check
    gmhead-pstng_date = sy-datum.
    gmhead-doc_date = sy-datum.
    gmhead-pr_uname = sy-uname.
    gmcode-gm_code = '02'.   "01 - MB01 - Goods Receipts for Purchase Order
    itab-move_type  = '101'.
    itab-mvt_ind    = 'F'.
    itab-plant      = '1AAE'.
    itab-material   = '100001374'.
    itab-entry_qnt  = '1'.
    itab-move_stloc = 'B100'.
    itab-stge_loc   = 'B100'.
    itab-orderid  = '002000002339'.
    append itab .
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
      EXPORTING
        goodsmvt_header             = gmhead
        goodsmvt_code               = gmcode
      TESTRUN                     = ' '
    IMPORTING
        goodsmvt_headret            = wa_head
       materialdocument            = lv_mblnr
      MATDOCUMENTYEAR             =
      TABLES
        goodsmvt_item               = itab
      GOODSMVT_SERIALNUMBER       =
        return                      = errmsg
    Pls reply ..
    Thanks .

    HI ...
    Since this is a production order ,i used the GM code as '02'.bcoz the documentation says the same .
    There are the following types of transactions/events:
    1. GM_Code 01: Goods receipt for purchase order
    2. GM_Code 02: Goods receipt for production order
    3. GM_Code 03: Goods issue
    4. GM_Code 04: Transfer posting
    i also tried changing it to '01' ,its not working still...
    Pls reply
    Thanks .

  • BAPI for Goods receipt Movement type 921

    Hi Gurus,
    can you please tell which BAPi will support Goods receipt Movement type 921(MIGO) and Goods Issue movement type 201.
    Thanks
    Rajeev

    Hi,
    This BAPI can be used for both good receipt and good issue purposes.
    Please give it try ...
    Regards,
    Ferry Lianto

  • What is the field for good receipts?

    hi friends
    i got the requirement to create the goods receipts
    what is the field for good receipts
    plz tell me how to create it
    thanks in advance
    Edited by: Alvaro Tejada Galindo on Feb 25, 2008 5:33 PM

    adapt this to your own requirements.  
    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.
    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 = '01'. " MB01
    Write 551 movement to table
    clear gm_item.
    move '101' to gm_item-move_type .
    move '000000000040001234' to gm_item-material.
    move '1' to gm_item-entry_qnt.
    move 'EA' to gm_item-entry_uom.
    move '0004' to gm_item-plant.
    move '4000' to gm_item-stge_loc.
    move '201' to gm_item-move_reas.
    Determine cost center per plant
    case xresb-werks.
    when '0004'.
    move '0000041430' to gm_item-costcenter.
    when '0006'.
    move '0000041630' to gm_item-costcenter.
    when '0007'.
    move '0000041731' to gm_item-costcenter.
    when '0008'.
    move '0000041830' to gm_item-costcenter.
    endcase.
    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.
    call function 'BAPI_TRANSACTION_COMMIT'
    exporting
    wait = 'X'.

  • Report for vendor no., vendor name for good receipt documents on KSB1

    Hello,
    My client needs vendors on KSB1 report. I told them about offseting  account, but it doesn't show vendor for good receipt documents.
    Is there any place else they can view vendor, vendor name for those good receipt documents .
    Any MM report or AP report .
    Thanks,
    T.G

    Hi,
    Please go to FBL1N, In Dynamic Selection give document as "WE", this will give and enable Purchase Order Number
    This will give you Vendor Name, Purchase Order and  FI Document number or u can try MB51, there you will not get Vendor Name, but you will get Vendor Code, Material Document Number and Purchase Order Number
    Br,Vivek
    Edited by: View_taurian on Oct 22, 2011 12:01 AM

  • Create Automatic Reservation for Goods receipt of FG

    When an order is created, the components from the store are reserved automatically. It implies automatic reservation for good issue.
    What about AUTOMATIC reservation for goods receipt of finished product? Is it possible to make automatic reservation in PP for goods receipt of finished product, when finished product is ready?
    I know that manual reservation for goods receipt of finished product can be done by using MB21 (521).
    Thanks in advance.

    Your requirement is a little bit confusing...
    If you have production order, why do you need GR-reservation for the to-be produced material? The production order itself is a GR-MRP element nad you can post the GR agains it.
    If you don't have production order, I understand you need something to plan the GR.
    But it seems you want to have both the PrdOrd and the GR-reservation --> you will have the same thing twice in your system.

  • Cant able to do UD for Goods Receipt Inspection against Purchase Order

    Hi Experts,
    I am facing problem while doing UD for Goods Receipt Inspection against Purchase Order.
    The Problem is,
    "Selected set code does not exist, or data entered is incomplete
    Message no. QV121
    Diagnosis
    Code  in code group * (selected set 1000 in plant ) does not exist.
    Procedure
    Enter a valid combination or complete combination, or make sure that the combination is available in the selected set."
    And the Result Recording for Inspection lot is completed.
    kindly suggest..
    Thanks in Advance,
    Naveen

    Hi Naveen,
    1.     Go to QCC0 > Quality inspection  >  Inspection lot creation  > Maintain Inspection Types > Select 01 (or the type which you are using) and double click on it.
    2.     Check what code is maintained in UD Selected Set
    3.     Create the same code in QS51 for your plant.
    Regards,
    Anand Rao

  • Menu path - for goods receipt for purchase order (MB01)

    Hi
    What is the menu path for Goods receipt for purchase order (MB01) - ECC6.0

    hi
    the path is too deep
    plz just log in ur system and find MB01
    Materials Management >  Purchasing  >  Master Data   > Subsequent Settlement >  Vendor Rebate Arrangements  >  Environment   > Condition/Arrangement  > Environment   >Pricing  > Environment    Value assignment  >  Inventory management  > Goods receipt  >For purchase order   >  MB01 - PO number known
    regards
    KI

  • Transfer Requirement for Goods Receipt Item

    Hi All,
    We are trying to create Transfer Order for Goods Receipt items using an ITS mobile application.We are using the function module L_TO_CREATE_TR to create Transfer Order by passing the Transfer Requirement from the Goods Receipt as an input to the function module. Our requirement is to create one Transfer Orde per Goods Receipt item. We need to create Transfer Order for the items simulatneously from different terminals.Since we have only one Transfer Requirement for the entire Goods Receipt document, we are not able to create Transfer Orders simultaneously because of the system lock (Transfer Requirement is locked).
    Is it possible to create separate Transfer Rquirement for the individual items in the Goods Receipt via customizing/User exit.
    Your guidance in this regard will be great help for us.
    Regards,
    Shaju

    Hi Dirk,
    Thank you for your reply.
    Our enduser will be using handheld device for Transfer Order creation. The user will pick the GR item material from one storage type (902) and the Transfer Requirement will be locked at this moment.Later while placing the SU in destination bin the user will scan the destination bin and the Transfer Order will be created at the time of scanning. Till the completion of the entire process the Transfer Requirement will be locked and no one else can pick the materials of the same GR from 902 storage type.
    We are trying to create Transfer Requirements for each Goods Receipt Item and we are not able to find any user exit in Goods Receipt Creation or any customizing option.
    Can you please check and help us to resolve the same.
    Regards,
    Shaju
    Edited by: shaju tv on Apr 5, 2010 11:40 AM

  • Define Number Assignment for Goods Receipt/Issue Slips

    Hi Experts,
    please can you help in the creation of manual creation of transport request for the customizing activity "Define Number Assignment for Goods Receipt/Issue Slips": settings for assigning goods receipt/issue slip numbers upon goods movements (MM) or deliveries (LE-SHP)?
    Customizing for this functionality is composed by the following points:
    1. functionality activation at plant level
    2. number range group/interval code assignment
    3. Groups and intervals creation
    4. Plant / Storage Location / Movement type combination assignment to number range group.
    Customizing request is automatically created for points 1, 2, 4, but NOT for point 3 where you have to create Groups, Intervas and assing each others.
    You receive a message from SAP that you have to insert the relevant object manually into transport request.
    Please can you tell me exactly what I have to put into transport request as object:
    - Program ID     (I think R3TR)
    - Object Type
    - Object name
    and any other relevant information with all the details.
    Thank you very much
    Kind Regards
    Andrea.

    Hi
    You need to create the transport request by selecting the required number & clicking on the trnsaport icon, then a prompt for transport request will be displayed, there you can create the request & move it to production.
    Reward points if usefu;
    Thanks & Rgards
    Kishore

  • Print programs for Goods Receipt, GI, ST, Subcont. TP, Consignment TP ...

    Hello Gurus,
    There is a Business requirement to have a separate print forms for every Inventory transactions like Goods Receipt, Goods Issue, Stock Transfer, Sub-Contracting Transfer Posting, Consignment Transfer Posting, etc.
    We need to use the Transaction MB90 to print all the Inventory documents.
    While checking the Output types, we find that basically WE03 is for Goods Receipt (Collective Slips) & WA03 is for Goods Issue / Transfer postings (Collective Slip)
    I would like to know that inorder to assign a different Smart Form & Program (One for each of the transactions listed above) to the output types, is there a way around to work with these 2 Output types & have the 5 different Smart Forms - Programs assigned to these 2 Output types or do I need to create a copy of these output types & use them instead, one output type for each Smart form - Print program combination
    Regards,
    Zafar.

    First, you can maintain <B>PRINT ID</B> in the IMG for each movement type<BR>
    Second, you can create multiple <B>OUTPUT TYPE</B> - one for each.
    Third, in MN21, create ouotput records using a combination of <B>OUTPUT TYPE</B> and <B>PRINT ID</B>
    <br>
    Example:
    GR movement types 101, 105, etc, you can have <B>PRINT ID</B> 1 and <B>OUTPUT TYPE</B> Z001
    GI movmeent types 201,261, etc. you can have <B>PRINT ID</B> 2 and <B>OUTPUT TYPE</B> Z002
    <BR>
    Configure <B>PRINT ID</B>: IMG path: <I>Materials Management > Inventory Management and Physical Inventory > Print Control</I><BR><BR>
    Configure <B>OUTPUT TYPE</B>: IMG path: <I>Materials Management > Inventory Management and Physical Inventory > Output Determination</I>

  • Report for Goods Receipt

    Hi Gurus, I want to hav create report for Goods receipt which has to show mat description, quantity Received, Date of GR, Rate, vendor name etc. Is there any standard report available? If not which tables I hav 2 use to create querry?
    Thanks

    Hi,
    Reports are.
    1. MB59 / MB51- Material Document List.
    2. ME80FN-General Analysis.
    You can try above reports.
    Rgds,
    Rajesh

Maybe you are looking for

  • Order by in Parameter form for a formula col

    Hi, I have made a report for fast moving products and have ordered by on a formula column. Is there any way to select the order by (ascending or descending) in the parameter form at runtime for the same formula column. Instead of making two different

  • External swf in wrong place

    I have finally figured out how to call an external swf file (shouldn't have been as hard as I made it) Nonetheless, when I preview is, besides getting a bunch of errors about sandboxes, the external swf file is not anywhere close to where I placed th

  • IBook won't turn on

    So this is actually a question for my mom. Her iBook G4 has not been working correctly. Sometimes (not all the time) her computer will not turn on after she turns it off. The only way we can get it to turn back on is: 1. Take out the battery and unpl

  • Migrating PO using Import Standard Purchase Orders program

    Hi All, When am trying to migrating auto created PO's, First i imported Requisition sucessfully and i took the newly generated DISTRIBUTION_ID for the imported REQ and i populated the value in REQ_DISTRIBUTION_ID column (PO_DISTRIBUTIONS_INTERFACE ta

  • MSI Dragon Liquid Cooler

    Hi all, would like to ask if you have any info on what the hell is the MSI Dragon Liquid Cooler? Seen it on scan.co.uk for 40 quid (Pounds) but why does it come as an OEM and why MSI doesn't have any info about it on their website? Seen some reviews