Need BAPI Requirement

Hi Freinds, Can any one give me some requirement,
i want any report using BAPI's on SD or MM ? can u pls mail to [email protected]
Points for sure
Regards
Vijaya

Hi Laxmi,
Please gothrough these Documents,
http://help.sap.com/saphelp_46c/helpdata/en/9b/417f07ee2211d1ad14080009b0fb56/frameset.htm
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
Checkout !!
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
http://techrepublic.com.com/5100-6329-1051160.html#
http://www.sap-img.com/bapi.htm
http://www.sap-img.com/abap/bapi-conventions.htm
http://www.sappoint.com/abap/bapiintro.pdf
http://www.sapgenie.com/abap/bapi/example.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf
Regards,
<b>Ramganesan K.</b>

Similar Messages

  • Relevent bapi required

    i have to upload a group of RFQ(request for quatation relevent purchage orders),is there any bapi available for this requirement
    when serched through SE37 i got bapis for creation of quotations with customer data(sales).but i need bapi with vendor data updation(PO)
    atleast i need bapi for creation for creation of RFQ
    suggest me how i can proceed..
    thanks in advance

    check this .
    FU BAPI_REQUIREMENT_CREATE
    Text
    Create Requirement Coverage Request
    Functionality
    Method of creating a requirement coverage request. The latter can be
    a purchase requisition,
    if the requirement cannot be satisfied on the desired date by existing stocks on hand in the warehouse or stores, or
    a reservation,
    if adequate stocks are on hand.
    As of SAP Release 4.0A, use the method CreateFromData of the business objects PurchaseRequisition and MaterialReservation.
    Notes
    The following authorization objects are checked:
    M_BANF_BSA Document type in requisition
    M_BANF_EKG Purchasing group in requisition
    M_BANF_EKO Purchasing org. in requisition
    M_BANF_WRK Plant in requisition
    M_RES_BWA Reservations: Movement type
    M_MRES_WWA Reservations: Plant
    Data transfer
    Item data
    The item data of the requirement coverage request is passed on in the table RequirementItems, whereby at least the following data is necessary:
    Item counter (field PREQ_ITEM)
    Material number (field MATERIAL)
    The following can also be given as an alternative to the material number:
    Material group (field MAT_GRP) and
    Short text (short description) (field SHORT_TEXT) and
    Unit of measure (field UNIT) and
    Price (field C_AMT_BAPI) and
    Purchasing group (field PUR_GROUP)
    If the material number is passed on, the material group, short text etc. are taken from the material master record.
    Requested quantity (Feld QUANTITY)
    Requested date (field DELIV_DATE in the format YYYYMMDD) and date type (field DEL_DATCAT)
    If the current date is passed on, the date type must be '1'. Alternative types are '2' (week format) or '3' (month format); here too, DELIV_DATE must be passed on in the format YYYMMDD and is then adjusted accordingly when displayed.
    Object type (field RES_REQ_ID)
    If a purchase requisition is to be created, this field must contain 'X'. In the case of a reservation it must be 'Y'.
    The following fields are also necessary. If they are not passed on in the method, the specifications are taken from the relevant user master record (parameter values). Note that they must at all events be available.
    Document type for purchase requisitions (field DOC_TYPE)
    Parameter ID BSA
    Plant (Feld PLANT)
    Parameter ID WRK
    Storage location (field STORE_LOC)
    Parameter ID LAG
    Account assignments
    Account assignment data for each requirement coverage request item (cost center field COST_CTR can be passed on in the transfer table ReqAccountAssignment.
    If it is not passed on, costs are assigned to the cost center stored in the user master record (parameter ID CNT). A precondition for this is that the account assignment category (field ACCTASSCAT) that is passed on is not SPACE.
    If the account assignment category is not passed on, a purchase requisition item without account assignment is generated.
    SAP user master record
    The parameter ID BWA (movement type for reservations) must be maintained in the relevant user master record.
    Return
    The method then returns the object number (parameter NUMBER) under which the requirement coverage request was created. The parameter ITEM is present for technical reasons and is always returned with its initial value.
    If errors have occurred, these are shown in the table Return.
    Number assignment
    If no external object number was passed on (table RequirementItems, field PREQ_NO), the number is assigned internally by the method. A precondition for internal number assignment is that the number range object RESB (reservations) is adjusted in the Customizing facility of the Inventory Management component of the R/3 System as follows:
    Change the interval with the number 01 to 0000000001 to 0019999999
    Add a new interval with the number 10 from 0090000000 to 0099999999.
    You can maintain the number range in the Implementation Guide (IMG):
    Define number assignment for reservations
    This adjustment is necessary because in the standard system the same interval has also been created for the external assignment of purchase requisition numbers. This means that one and the same number can be assigned for reservations and purchase requisitions. For example, just one number is assigned if both lines that are to be saved as purchase requisitions and lines that are to be saved as reservations are to be transferred in the table RequirementItems.
    Parameters
    NUMBER
    ITEM
    REQUIREMENT_ITEMS
    REQUIREMENT_ACCOUNT_ASSIGNMENT
    REQUIREMENT_ITEM_TEXT
    RETURN
    Exceptions
    NO_OBJECT_ID
    Function Group
    MEWR
    Regards
    Prabhu

  • OTL need to require user enter a purchase order number

    We are using the Projects and Purchasing timecard layout. OTL validates the PO entered, but I need to require that it be entered. Seems OTL doesn't require it and I can't find anything in preferences.
    I can write a validation rule to enforce it, but does anyone know if there's an easier way like telling OTL which fields on the timecard layout are required? Thanks.

    Hi Mahesh,
                     My suggetion is that develope program to do your scenario... Use BAPI to create Sales order. First confirm with the Functional team for the input for sales order about sales area, company code, conditions type to be used while creation a sales order against Purchaser order... If the details is same then. First get the details of the Purchase order from BAPI " 'BAPI_PO_GETDETAIL' or you can get details by select queries on EKKO & EKPO for header and details....
                    Then pass data to BAPI of sales order creation 'BAPI_PO_CREATE' . to create sales order and handle error with parameter         RETURN                           = IT_BAPIRETURN
    by giving loop on that....and display in the output.....
    This is the simplest way of doing your process...
    If any other help please let me know.....
    reward points..
    Cheers,
    Sagun Desai....

  • BAPI Required to post GR in EBP System( SRM4.0, Classic Scenario)

    Hello All,
      We have SRM4.0 with classic scenario with non-sap backend system.
    We need to post GR in EBP system automatically.
      could you please tell me the BAPI required for this?
    Regards
    Neelesh

    Hi,
    You can use function BBP_BC_CONF_CREATE of BAPI_CONFEC_CREATE.
    Kind regards,
    Yann

  • Need BAPI  and BADI Document

    hi,
    I Need BAPI and BADi Doc.
    Please send doc to my mail id
    [email protected]
    thanks in advance
    sarath

    BAPI.............
    Business add-ins are enhancements to the standard version of the system.
    Business Add-In is a new SAP enhancement technique based on ABAP Objects.
    They can be inserted into the SAP system based on specific user requirements.
    Each Business Add-In has:
    • at least one Business Add-In definition
    • a Business Add-In interface
    • a Business Add-In class that implements the interface
    In order to enhance a program, a Business Add-In must first be defined
    Subsequently two classes are automatically generated:
    • An interface with ‘IF_EX_’ inserted between the first and second characters of the BADI name.
    • An adapter class with ‘CL_EX_’ inserted between the first and second characters of the BADI name.
    The Application developer creates an interface for this Add-In.
    There are multiple ways of searching for BADI.
    • Finding BADI Using CL_EXITHANDLER=>GET_INSTANCE
    • Finding BADI Using SQL Trace (TCODE-ST05).
    • Finding BADI Using Repository Information System (TCODE- SE84).
    1. Go to the Transaction, for which we want to find the BADI, take the example of Transaction VD02. Click on System->Status. Double click on the program name. Once inside the program search for ‘CL_EXITHANDLER=>GET_INSTANCE’.
    Make sure the radio button “In main program” is checked. A list of all the programs with call to the BADI’s will be listed.
    The export parameter ‘EXIT_NAME’ for the method GET_INSTANCE of class CL_EXITHANDLER will have the user exit assigned to it. The changing parameter ‘INSTANCE’ will have the interface assigned to it. Double click on the method to enter the source code.Definition of Instance would give you the Interface name.
    2. Start transaction ST05 (Performance Analysis).
    Set flag field "Buffer trace"
    Remark: We need to trace also the buffer calls, because BADI database tables are buffered. (Especially view V_EXT_IMP and V_EXT_ACT)
    Push the button "Activate Trace". Start transaction VA02 in a new GUI session. Go back to the Performance trace session.
    Push the button "Deactivate Trace".
    Push the button "Display Trace".
    The popup screen "Set Restrictions for Displaying Trace" appears.
    Now, filter the trace on Objects:
    • V_EXT_IMP
    • V_EXT_ACT
    Push button "Multiple selections" button behind field Objects
    Fill: V_EXT_IMP and V_EXT_ACT
    All the interface class names of view V_EXT_IMP start with IF_EX_. This is the standard SAP prefix for BADI class interfaces. The BADI name is after the IF_EX_.
    So the BADI name of IF_EX_CUSTOMER_ADD_DATA is CUSTOMER_ADD_DATA
    3. Go to “Maintain Transaction” (TCODE- SE93).
    Enter the Transaction VD02 for which you want to find BADI.
    Click on the Display push buttons.
    Get the Package Name. (Package VS in this case)
    Go to TCode: SE84->Enhancements->Business Add-inns->Definition
    Enter the Package Name and Execute.
    Here you get a list of all the Enhancement BADI’s for the given package MB.
    Have a look at http://help.sap.com/saphelp_nw04/helpdata/en/04/f3683c05ea4464e10000000a114084/content.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm
    http://support.sas.com/rnd/papers/sugi30/SAP.ppt
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
    http://members.aol.com/_ht_a/skarkada/sap/
    http://www.ct-software.com/reportpool_frame.htm
    http://www.saphelp.com/SAP_Technical.htm
    http://www.kabai.com/abaps/q.htm
    http://www.guidancetech.com/people/holland/sap/abap/
    http://www.planetsap.com/download_abap_programs.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm
    /people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series
    /people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework
    How to develop BADI
    BADI................
    There is nothing enigmatic or complicated about BAdIs. BAdIs are the most up-do-date technique of user-exits where SAP allows us to adjust a standard process to customer-specific requirements. Important: these user-exits are predefined by SAP.
    The really challenging task is to find the appropriate BAdI (transaction SE18). If you have found the right one implementation is just a piece of cake:
    (1) Define an implementation of your BAdI (transaction SE19) => This simply means: I am about to implement this BAdI.
    (2) Generate automatically the class implementing the BAdI (which is usually an interface) (transaction SE19).
    (3) Implement the method of this generated class (transaction SE24).
    (4) Finally, do not forget to activate your implementation (SE19).
    /people/sergey.korolev/blog/2005/03/14/the-time-for-me-to-have-a-badi-of-my-own
    http://www.ct-software.com/reportpool_frame.htm
    http://www.saphelp.com/SAP_Technical.htm
    http://www.kabai.com/abaps/q.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c2/eab541c5b63031e10000000a155106/frameset.htm
    http://www.esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
    http://www.esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
    http://www.esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
    http://www.esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
    http://www.esnips.com/doc/3b7bbc09-c095-45a0-9e89-91f2f86ee8e9/BADI-Introduction.ppt
    http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm
    http://support.sas.com/rnd/papers/sugi30/SAP.ppt
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
    http://members.aol.com/_ht_a/skarkada/sap/
    http://www.ct-software.com/reportpool_frame.htm
    http://www.saphelp.com/SAP_Technical.htm
    http://www.kabai.com/abaps/q.htm
    http://www.guidancetech.com/people/holland/sap/abap/
    http://www.planetsap.com/download_abap_programs.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm
    /people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series
    /people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework

  • Need BAPI name to change the PO data in SRM.

    HI All,
    Need BAPI name to change the PO data in SRM.
    The BAPI_PO_CHANGE is not available in SRM.
    If there is no BAPI to change PO in SRM, what is the alternate solution?
    Regards,
    A.I.Rajesh.

    hello,
    try using FM BBP_PD_PO_UPDATE.
    regards.

  • Need BAPI function module to change routing (CA12 Tcode)

    Hi Freinds,
       i have bapi function module to create bapi_routing_create,
       but i need bapi function module  to ROUTE CHANGE.
    tcode is ca12
       pls help me out .....it's urgent to me
    mail to me :[email protected]
    regards
    madhu

    Thanks Jitendra,
    I have tried to use it but I am not able to obtain a good result. I have set values for PLKO_DI_TAB and MAPL_DI_TAB, but it does not work…
    What is missing?

  • Need BAPI for Parking G/L Account

    Hi All,
    I need BAPI for Parking G/L account document.
    Please let me know.
    Regards
    R.Ragu
    Useful Answers will be rewarded.

    Hi Ragu.
    Try these:
    BAPI_GL_ACC_EXISTENCECHECK
    BAPI_GL_ACC_GETDETAIL
    BAPI_GL_ACC_GETLIST
    For further details GoTo->Transaction BAPI->Alphabetical->General Ledger Account.
    Good Luck & Regards
    Harsh
    Edited by: Harsh Dave on Jul 11, 2008 10:14 AM

  • Need Bapi or IDOC to insert data into FB60 T-Code

    Hi Experts,
    I need Bapi or standard IDOC to insert data in to FB60 T-Code.
    Thanks in advace
    Krishna

    Hi,
    Thanks for the reply i cant find this fileds.
    INVFO-ACCNT
    LFA1-NAME1
    INVFO-XBLNR
    INVFO-XREF1
    INVFO-XREF2
    INVFO-BLDAT
    INVFO-DMBTR
    ACGL_ITEM-HKONT
    ACGL_ITEM-AUFNR
    ACGL_ITEM-KOSTL
    Thanks,
    Krisna

  • Need BAPI for assignment of services to respective activity

    Hello Friends,
                          I need to assign services to respective activity through uploading. For this purpose i need BAPI which will update the specific field of uploaded file in standared transaction CJ20N. The field which i need to update are all present in ESLL Transp. Table (Lines of Service Package) and the fields are : short text (KTEXT1)  ,  Quantity (MENGE) , Gross price (TBTWR) , Unit (MEINS) .
    Suggest the BAPI which will update this fields.
    Edited by: Jain RahulM on Feb 1, 2011 6:17 AM

    Sasi,
    Simpler would be FM /SAPAPO/DM_MODEL_POST:
      CALL FUNCTION '/SAPAPO/DM_MODEL_POST'
        EXPORTING
          iv_vb     = 'I'
        TABLES
          it_matmod = t_matmod.
    If you have product location existing in the system, you need to read records from respective APO tables and populate into t_matmod with appropriate model and pass it to this FM.
    Rgds,
    Sarah.
    Message was edited by:
            Sarah

  • I need Bapi's

    Hi to all,
         I need BAPI /RFC Fun.module for :
    1 ) Get the materials present in the selected material group.
    2 ) for Scrap Mterial
    Its very urgent.
    Pionts ll b rewarded for this.
    Regards
    satya

    Satya,
    dont talk about points.
    BAPI_MATERIAL_DISPLAY          Display Material
    BAPI_MATERIAL_GETLIST          Supply List of Materials for Search Criteria Transferred
    Amit.
    Edited by: Amit Gujargoud on Jul 17, 2008 9:52 AM

  • I Need BAPI to get partners, product, Product category in CRM

    Hi Experts,
    I need bapi to get all partner detials, All product detials, all product category details.
    I found one bapi(BAPI_CRM_PRODUCT_GETLIST) to get product.But we should give the product category as import field. But i need with out any input should generate all product details. These bapi we will use in crm to create Opportunity.
    Please any one help me...........
    Thanks,
    Sunil

    COM_PRODUCT_CATEGORY_CHECK_ALL
    COM_PRODUCT_CATEGORY_API
    COM_PRODCAT_API_GET_PRODUCTS
    COM_PRODUCT_BASE_CATEGORY_READ
    COM_PRODUCT_CATEGORY_API_FREE
    COM_PRODUCT_CATEGORY_GETLIST
    COM_PRODUCT_CATEGORY_F4
    COM_PRODUCT_CATEGORY_APPL_F4
    COM_PRODUCT_CATEGORY_F4
    COM_PRODUCT_CATEGORY_F4_HIERI
    COM_PRODUCT_CATEGORY_F4_PRREF
    COM_BSP_PRODUCT_GUID_GET
    BAPI_CRM_PRODUCT_GETLIST
    BAPI_PPRODUCT_READMULTIPLE
    COM_PRODUCT_CHANGEM
    COM_PRODUCT_CREATEM
    COM_PRODUCT_FREE
    COM_PRODUCT_GUID_GET_INTERNAL
    COM_PRODUCT_MAINTAIN_INIT
    COM_PRODUCT_MAINTAIN_READ
    COM_PRODUCT_MAINT_CHECK_ON_DB
    COM_PRODUCT_READ_MULTIPLE
    COM_PRODUCT_READ_SINGLE
    COM_PRODUCT_READ_SINGLEM
    COM_PRODUCT_READ_VIA_RFC
    COM_PRODUCT_SAVE
    COM_PRODUCT_SAVE_LOCAL_END
    COM_PRODUCT_SAVE_LOCAL_START
    COM_PRODUCT_GET_PARTNER_PROC
    COM_PRODUCT_GET_REFERENCE_PROD
    COM_PRODUCT_GUID_GET
    COM_PRODUCT_HISTORY_GET
    COM_PRODUCT_ID_GET
    COM_PRODUCT_GETLIST
    COM_PRODCAT_API_GET_PRODUCTS
    COM_PRODUCT_BASE_CATEGORY_REA
    COM_PRODUCT_CATEGORY_API_FREE
    COM_PRODUCT_CATEGORY_GETLIST
    COM_PRODUCT_GETDETAIL_API
    COM_PRODUCT_GETDETAIL_INTERNAL
    COM_PRODUCT_GETHISTORY_API
    COM_PRODUCT_MAPPING_MODULE
    COM_PRODUCT_GET_PRODUCT_STATUS
    COM_PRODUCT_GET_SALES_STATUS
    COM_PRODUCT_HANDLE_ARCHIVE
    COM_PRODUCT_HANDLE_RECAT
    COM_PRODUCT_MOBILE_CHANGE_BDOC
    COM_PRODUCT_SET_CHANGED_FIELDS
    COM_PRODUCT_SET_SENDBITS_TASK
    COM_PRODUCT_SET_UPDATE_TYPE
    COM_PRODUCT_VAR_MAP_TO_BDOC
    COM_PRODUCT_CHECK_DELETED
    COM_PRODUCT_MAINTAIN
    COM_PRODUCT_MAINTAIN_GETSTATUS
    COM_PRODUCT_MAINTAIN_GET_CC
    COM_PRODUCT_MAINTAIN_RESSTATUS
    COM_PRODUCT_MAINTAIN_RES_CC
    COM_PRODUCT_MAINTAIN_SETSTATUS
    COM_PRODUCT_MAINTAIN_SET_CC
    COM_PRODUCT_MAINTAIN_STATUS
    COM_PRODUCT_SAVE_DB
    COM_PRODUCT_GET_TABLES
    COM_PRODUCT_UI_GETDETAIL
    CRM_PRODUCT_GETDETAIL_API
    CRM_PRODUCT_GETLIST2
    CRM_WAP_PRODUCT_GET_CATEGORY   Get Hierarchy and Category of a product
    CRM_WAP_PRODUCT_GET_DETAILS    Get ID,descrion,UOM, Price of a product
    CRM_WAP_PRODUCT_GET_LIST       Get product list from  favorit
    CRM_WAP_PRODUCT_GET_PPR        Get the prp product list for a partner
    COM_PRODUCT_GET_CDB_TABLES
    This is all FM Related to Product deatils Fetching..Hope it will help you

  • Need BAPIs

    Hi All,
    1. We have a process of updating the confirmation of the order i.e. schedule lines tab of the order using a call transaction method(BDC). We need BAPI instead of BDC.
    2. We need BAPI to create or change an order with necesary parameters.
    Please let us know if you have any solution.
    Thanks in Advance,
    Anand.
    Moderator message - Duplicate post locked
    Edited by: Rob Burbank on May 5, 2009 10:06 AM

    Hi Anand,
    I am not sure if you want to create a sales order or what? if yes take a look at these bapi's
    BAPI_SALESORDER_CREATEFROMDAT1 Sales Order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDAT2 Sales Order: Create Sales Order
    Best Regards,
    Lungisani

  • BAPIs required

    Hi friends,
    We are developing an application where SAP EP integrates with SAP R/3.We need BAPIs for the following...
    1) Create Purchase Order(ME21N)
    2) Display Purchase Order(ME23N)
    3) Goods Issue Note Creation
    4) Delivery Stock Status (MMBE)
    5) Store keeper status( To display consignment  
       stock,Quality Inspection,Unrestricted use,Blocked)
    I'll be greatful to you for your help,
    Thanks,
    Ravikumar.

    Please check out the Higher Education Wiki page .  It has a link to Implementation Guides and Cookbooks.  Her is the direct link to that page:
    https://wiki.sdn.sap.com/wiki/display/HER/ImplementationCookbooksandBestPracticesforStudentLifecycleManagement
    You will find a Data Migration Guide there which should help you.
    Michael

  • Need BAPI for MIGO to create a Goods Receipt against PO &Outbound Delivery

    Hi Friends,
    GRN’s (Good receipt notifications) created in DHL (Non SAP system) will need to be communicated to SAP.
    I need to post goods receipt using input data in MIGO. Is there any BAPI that i can use.The requirement is like below:
    PO number field in output file is checked against entries in EKKO-EBELN, if a match is found the GR is posted against a Purchase Order otherwise LIKP-VBELN is checked and if a match is found GR is posted against an Outbound Delivery.
              If PO Number = EKKO-EBELN    GR against Purchase Order
                            = LIKP-VBELN      GR against Outbound Delivery
    Based on the above condition I need to create a Goods Receipt. 
    Could you please tell me the GM code, movement types and the required fields to be passed for the BAPI?
    The fields available are with us are...
    Header text. - Bill of Lading- Posting Date-Quantity- UOM--- Vendor Batch / Batch / Serial No --- PO Number or Delivery Number… SLED
    Are these fields sufficient for doing MIGO with the BAPI or do we require more fields???
    Please provide sample code if possible.
    Waiting for replies,
    Thanks and Regards,
    Sudha

    Hi Friends,
    GRN’s (Good receipt notifications) created in DHL (Non SAP system) will need to be communicated to SAP.
    I need to post goods receipt using input data in MIGO. Is there any BAPI that i can use.The requirement is like below:
    PO number field in output file is checked against entries in EKKO-EBELN, if a match is found the GR is posted against a Purchase Order otherwise LIKP-VBELN is checked and if a match is found GR is posted against an Outbound Delivery.
              If PO Number = EKKO-EBELN    GR against Purchase Order
                            = LIKP-VBELN      GR against Outbound Delivery
    Based on the above condition I need to create a Goods Receipt. 
    Could you please tell me the GM code, movement types and the required fields to be passed for the BAPI?
    The fields available are with us are...
    Header text. - Bill of Lading- Posting Date-Quantity- UOM--- Vendor Batch / Batch / Serial No --- PO Number or Delivery Number… SLED
    Are these fields sufficient for doing MIGO with the BAPI or do we require more fields???
    Please provide sample code if possible.
    Waiting for replies,
    Thanks and Regards,
    Sudha

Maybe you are looking for