BAPI for Source List Upload ( ME01 )

Hi All..
Is there any BAPI available for uploading source list for a material??
Transaction involved - ME01.
Thanks & Regards,
Nidhi

Hi,
Try the below function module ME_UPDATE_SOURCES_OF_SUPPLY which is being used by standard transaction ME01.
sample code
REPORT ZTEST.
DATA: BEGIN OF XORD OCCURS 50.
INCLUDE STRUCTURE EORD.
DATA: UPDKZ,
END OF XORD,
YORD type table of EORD with header line.
clear xord.
clear yord.
xord-MATNR = '100-100'.
xord-WERKS = '3000'.
xord-ZEORD = '00001'.
xord-ERDAT = '20080403'.
xord-ERNAM = 'SAPDEV02'.
xord-VDATU = '20080403'.
xord-BDATU = '20100510'.
xord-LIFNR = '0000001000'.
xord-FLIFN = 'X'.
xord-EKORG = '1000'.
xord-UPDKZ = 'U'.
append xord.
move-corresponding xord to yord.
append yord.
CALL FUNCTION 'ME_UPDATE_SOURCES_OF_SUPPLY' IN UPDATE TASK
EXPORTING
I_CHANGEDOCUMENT = 'X'
TABLES
XEORD = XORD
YEORD = YORD.
COMMIT WORK.
Cheers,
vasavi.v

Similar Messages

  • BAPI or FM for Source List (ME01 TCode)

    Hello,
             I have a requirement to upload master data for Source List which is T-Code ME01. Now, as there is a Table Control in it, we are having trouble using LSMW because when there is more than 1 record for the given Material Plant Combination, it fails to handle the 2nd Record. There is a table Control in the T-Code ME01 in which if we go by the Recording in LSMW, we would have the 2nd Record overwrite the 1st Record when we actually try to upload the Data.
           So, is there a BAPI by which we can achieve this requirement? Please let me know.
    Thanks and Regards,
    Venkata Phani Prasad Konduri

    Hello Manjunath,
                                  I have neither used BDC or BAPI Method to upload SourceList but used the LSMW-IDOC method using;
    IDoc Type : SRCLST01
    Message Type : SRCLST
    Process Code : SRCL
    Inbound Posting Program : IDOC_INPUT_SRCLIST
                                 It worked fine for me. Try this out.
    Thank You,
    Venkata Phani Prasad K

  • LSMW - Source List Upload

    Hello Experts,
    Would like to know whether SOURCE LIST master records can be uploaded using LSMW functionality?
    Regards
    Mahesh

    Hi,
    Certainly Source List can be uploaded through LSMW functionality.
    You will have to go for recording & while recording LSMW for Source List, after entering Material Number & Plant, in the overview screen, select 'Edit --> New Records' & then enter your details of the vendor.
    The only thing is that, for multiple sources, you will have to give those many input records in your input file while uploading the data.
    Regards,
    Prashant

  • How to Use PM BAPI for equipment Master upload : BAPI_EQUIPMENT_SAVEREPLICA

    Hi ,
      How to use PM BAPI for equipment Master upload : BAPI_EQUIPMENT_SAVEREPLICA.
      May i know what are the input parameters & fields mandatory
      for each Table structures ct_data , ct_datax , it_descript , it_longtext.
      Can any one explain me Step by Step Process.
      B'cos i tried with below code. Equipment is not getting created.
      wa_itab-equipment_ext = '000000000100000001'.
      wa_itab-descript      = 'Test 2 -> Lube Oil Pump'.
      wa_itab-text_language = 'EN'.
      wa_itab-sdescript     = 'Short Description'.
      APPEND wa_itab TO it_itab.
      CLEAR  wa_itab.
      LOOP AT it_itab INTO wa_itab.
        ct_data-ta_guid       = '000000000000000001'.
        ct_data-equipment_ext = wa_itab-equipment_ext.
        ct_data-descript      = wa_itab-descript     .
        ct_data-valid_date    = sy-datum.
        ct_data-equicatgry    = 'M'.
        APPEND ct_data.
        CLEAR  ct_data.
        ct_datax-ta_guid       = '000000000000000001'.
        ct_datax-equipment_ext = 'X'.
        ct_datax-equipment     = 'X'.
        APPEND ct_datax.
        CLEAR  ct_datax.
        it_descript-ta_guid       = '000000000000000001'.
        it_descript-text_language = wa_itab-text_language.
        it_descript-descript      = wa_itab-sdescript    .
        APPEND it_descript.
        CLEAR  it_descript.
        it_longtext-ta_guid        = '000000000000000001'.
        it_longtext-text_language  = wa_itab-text_language.
        it_longtext-text_id        = 'LTXT'.
        it_longtext-text_line      = 'SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS'.
        APPEND it_longtext.
        CLEAR  it_longtext.
        it_longtext-ta_guid        = '000000000000000001'.
        it_longtext-text_language  = wa_itab-text_language.
        it_longtext-text_id        = 'INTV'.
        it_longtext-text_line      = 'aaaaaaaaaaaaaaa'.
        APPEND it_longtext.
        CLEAR  it_longtext.
        it_longtext-ta_guid        = '000000000000000001'.
        it_longtext-text_language  = wa_itab-text_language.
        it_longtext-text_id        = 'INTV'.
        it_longtext-text_line      = 'bbbbbbbbbbbb'.
        APPEND it_longtext.
        CLEAR  it_longtext.
        it_longtext-ta_guid        = '000000000000000001'.
        it_longtext-text_language  = wa_itab-text_language.
        it_longtext-text_id        = 'INTV'.
        it_longtext-text_line      = 'cccccccccccccccc'.
        APPEND it_longtext.
        CLEAR  it_longtext.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
      call BAPI-function in this system
        CALL FUNCTION 'BAPI_EQUIPMENT_SAVEREPLICA'
          TABLES
            ct_data     = ct_data
            ct_datax    = ct_datax
            it_descript = it_descript
            it_longtext = it_longtext
            return      = return
          EXCEPTIONS
            OTHERS      = 1.
        IF sy-subrc = 0.
          CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
          WRITE : 'Successful'.
        ENDIF.
        IF NOT return IS INITIAL.
          LOOP AT return.
            IF return-type = 'A' OR return-type = 'E'.
              WRITE : 'Error'.
            ENDIF.
          ENDLOOP.
        ENDIF.
        REFRESH  return.
      ENDLOOP.
    Regards
    SUrendar

    Hi ,
      How to use PM BAPI for equipment Master upload : BAPI_EQUIPMENT_SAVEREPLICA.
      May i know what are the input parameters & fields mandatory
      for each Table structures ct_data , ct_datax , it_descript , it_longtext.
      Can any one explain me Step by Step Process.
      B'cos i tried with below code. Equipment is not getting created.
      wa_itab-equipment_ext = '000000000100000001'.
      wa_itab-descript      = 'Test 2 -> Lube Oil Pump'.
      wa_itab-text_language = 'EN'.
      wa_itab-sdescript     = 'Short Description'.
      APPEND wa_itab TO it_itab.
      CLEAR  wa_itab.
      LOOP AT it_itab INTO wa_itab.
        ct_data-ta_guid       = '000000000000000001'.
        ct_data-equipment_ext = wa_itab-equipment_ext.
        ct_data-descript      = wa_itab-descript     .
        ct_data-valid_date    = sy-datum.
        ct_data-equicatgry    = 'M'.
        APPEND ct_data.
        CLEAR  ct_data.
        ct_datax-ta_guid       = '000000000000000001'.
        ct_datax-equipment_ext = 'X'.
        ct_datax-equipment     = 'X'.
        APPEND ct_datax.
        CLEAR  ct_datax.
        it_descript-ta_guid       = '000000000000000001'.
        it_descript-text_language = wa_itab-text_language.
        it_descript-descript      = wa_itab-sdescript    .
        APPEND it_descript.
        CLEAR  it_descript.
        it_longtext-ta_guid        = '000000000000000001'.
        it_longtext-text_language  = wa_itab-text_language.
        it_longtext-text_id        = 'LTXT'.
        it_longtext-text_line      = 'SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS'.
        APPEND it_longtext.
        CLEAR  it_longtext.
        it_longtext-ta_guid        = '000000000000000001'.
        it_longtext-text_language  = wa_itab-text_language.
        it_longtext-text_id        = 'INTV'.
        it_longtext-text_line      = 'aaaaaaaaaaaaaaa'.
        APPEND it_longtext.
        CLEAR  it_longtext.
        it_longtext-ta_guid        = '000000000000000001'.
        it_longtext-text_language  = wa_itab-text_language.
        it_longtext-text_id        = 'INTV'.
        it_longtext-text_line      = 'bbbbbbbbbbbb'.
        APPEND it_longtext.
        CLEAR  it_longtext.
        it_longtext-ta_guid        = '000000000000000001'.
        it_longtext-text_language  = wa_itab-text_language.
        it_longtext-text_id        = 'INTV'.
        it_longtext-text_line      = 'cccccccccccccccc'.
        APPEND it_longtext.
        CLEAR  it_longtext.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
      call BAPI-function in this system
        CALL FUNCTION 'BAPI_EQUIPMENT_SAVEREPLICA'
          TABLES
            ct_data     = ct_data
            ct_datax    = ct_datax
            it_descript = it_descript
            it_longtext = it_longtext
            return      = return
          EXCEPTIONS
            OTHERS      = 1.
        IF sy-subrc = 0.
          CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
          WRITE : 'Successful'.
        ENDIF.
        IF NOT return IS INITIAL.
          LOOP AT return.
            IF return-type = 'A' OR return-type = 'E'.
              WRITE : 'Error'.
            ENDIF.
          ENDLOOP.
        ENDIF.
        REFRESH  return.
      ENDLOOP.
    Regards
    SUrendar

  • BAPI FOR SOURCE OF SUPPLY(BWSCL)

    Hi Frnds,
    I need std BAPI / RFC FM for source of supply input help(F4 help). When I execute that BAPI , I shd get list of all existing supply sources along with their description.
    Please provide helpful data.
    Regards,
    Kiran.

    Hi Krishna,
    Check these function modules:
    BAPI_HELPVALUES_GET
    CALL FUNCTION 'BAPI_HELPVALUES_GET'
      EXPORTING
    "   OBJTYPE                          = ' '
    "   OBJNAME                          = ' '
        METHOD                           =
        PARAMETER                        =
    "   FIELD                            =
    "   EXPLICIT_SHLP                    =
    "   MAX_OF_ROWS                      = 0
    "   DESCRIPTIONONLY                  = ' '
    " IMPORTING
    "   RETURN                           =
      TABLES
    "   SELECTION_FOR_HELPVALUES         =
        HELPVALUES                       =
        VALUES_FOR_FIELD                 =
        DESCRIPTION_FOR_HELPVALUES       =
    BAPI_HELPVALUES_GET_SEARCHHELP
    CALL FUNCTION 'BAPI_HELPVALUES_GET_SEARCHHELP'
    " EXPORTING
    "   OBJTYPE                          =
    "   OBJNAME                          =
    "   METHOD                           =
    "   PARAMETER                        =
    "   FIELD                            =
    " IMPORTING
    "   RETURN                           =
      TABLES
        SHLP_FOR_HELPVALUES_GET          =
    "   DESCRIPTION_FOR_HELPVALUES       =
    Hope this helps you.
    Regards,
    Chandra Sekhar

  • REPORT FOR SOURCE LIST OF MATERIAL WITH VENDOR DESCRIPTION

    Dear All
    Let me know is any transaction where i will get the material source list similar as me03 transaction but
    with vendor name also .
    Regards,
    Rajendra Sawant.

    Hi Rajendar,
    I am sorry but the vendor name cannot be displayed in this or any other T-code.
    Or you can select the Vendor code for which you want to see the vendor name and clik on the Vendor tab above.
    Rwd if helpful.
    Regards,
    Robin.

  • BAPIs for Equipment list, Equipment classification details

    Hi,
    Can somebody give me the details of BAPs for getting
    1.    Equipment list for a given function location.
    2.    Equipment classification details for the given equipment number.
    Thanks & Regards
    Lakshminarayanan J

    Hi,
    what do you mean with details? Do you need the fields? You can do a double click on the data type of the details filled for browsing deeper into the structure of the details. Or you can use TCODE SE11 and check the type in the data dictionary.
    Best Regards,
    Marcel

  • Document Management System : BAPI for Distribution list creation CVI1 Tcode

    Hi ,
    Cn you please provide me the available BAPI to create Disctribution lists using CVI1 transaction .
    Urgent
    Regards

    Hello Murugesh,
    Thanks for the responce ,
    But When i tried to use the same FM to create Distribution list i didnt find ant parameter within the FM to pass the correct recepient name linked to the document(recepient list id) .
    Can you please provide me the sample code or help me ,how to pass the recepient name coom type and num of copies for each recepient listid .
    Urgent
    Thanks a lot

  • Bapi for invoice lists for a customer

    Can some one tell me the bapi which can be used to view all the invoice lists for a customer for date range.

    Hello
    I am not sure if there is such a BAPI available. However, you could try a two-step-approach:
    (1) Read sales orders of customer using BAPI_SALESORDER_GETLIST
    (2) Feed selected sales orders into REFDOCRANGE of BAPI_BILLINGDOC_GETLIST
    Regards
      Uwe

  • Bapi for Order list(iw38) and PM Notification(iw21)

    Hi experts,
    Can you please tell me are there any BAPI's which can fullfill the functionalities of the tcodes: IW38 and IW21 ??
    Thanks & regards,
    Aayush Aggarwal

    Please find the list of bapi's present in maintenance notification and orders
    ORDERS:  
    BAPI_ALM_COMPONENT_GET_DETAIL     Read Detail Data for a Component
    BAPI_ALM_OPERATION_GET_DETAIL     Read Detail Data for an Operation
    BAPI_ALM_ORDERHEAD_GET_LIST       Determination of a List of Maintenance/Service Orders from Selection
    BAPI_ALM_ORDEROPER_GET_LIST       Determination of a List of Operations from Selection
    BAPI_ALM_ORDER_GET_DETAIL         Reading of Detail Data for an Order
    BAPI_ALM_ORDER_MAINTAIN           Process Maintenance-/Service Order 
    NOTIFICATIONS:  
    BAPI_ALM_NOTIF_CHANGEUSRSTAT      Change User Status of a PM/CS Notification
    BAPI_ALM_NOTIF_CLOSE              Complete PM/CS Notification
    BAPI_ALM_NOTIF_CREATE             Create PM/CS Notification
    BAPI_ALM_NOTIF_DATA_ADD           PM/CS Notification: Add Data
    BAPI_ALM_NOTIF_DATA_DELETE        PM/CS Notification: Delete Data
    BAPI_ALM_NOTIF_DATA_MODIFY        PM/CS Notification: Change Data
    BAPI_ALM_NOTIF_GET_DETAIL         PM/CS Notification: Read Detail Data
    BAPI_ALM_NOTIF_LIST_EQUI          Select PM/CS Notifications by Equipment
    BAPI_ALM_NOTIF_LIST_FUNCLOC       Select PM/CS Notifications by Functional Locations
    BAPI_ALM_NOTIF_LIST_PARTNER       Select PM/CS Notifications by Partners
    BAPI_ALM_NOTIF_LIST_PLANGROUP     Select PM/CS Notifications by Maintenance Planner Group
    BAPI_ALM_NOTIF_LIST_SORTFIELD     Select PM/CS Notifications by Sort Field
    BAPI_ALM_NOTIF_POSTPONE           Reset PM/CS Notification
    BAPI_ALM_NOTIF_PUTINPROGRESS      Release PM/CS Notification
    BAPI_ALM_NOTIF_SAVE               Save PM/CS Notification
    BAPI_ALM_NOTIF_TASK_COMPLETE      PM/CS Notification: Complete Task
    BAPI_ALM_NOTIF_TASK_RELEASE       PM/CS Notification: Release Task
    BAPI_ALM_NOTIF_TASK_SUCCESS       PM/CS Notification: Set Task to Successful
    BAPI_SERVICENOTIFICAT_CREATE      Create service notification
    BAPI_SERVICENOTIFICAT_GETLIST     Select service notifications according to customer or contact person

  • Bapi for part lists

    Hi all,
    I have a question about part lists and bapis.
    I have to export part lists from SAP R/3.
    To connect to SAP I use JavaConnectors.
    But I don't know how to get for example a list of all part lists.
    Do I have to use any interfaces, too?
    Which BAPIs do I have to use?
    In the BAPI-explorer I found MaterialBOM and there
    BAPI_MATERIAL_BOM_GROUP_CREATE
    BAPI_MAT_BOM_EXISTENCE_CHECK
    But which is the right method to get each part list?
    Can anybody help me?
    thx

    Hi Holger,
    Please check this sample code.
    data: begin of istpox occurs 0.
            include structure stpox.
    data: end of istpox.
      call function 'CS_BOM_EXPL_MAT_V2'
           exporting
                capid                 = 'PP01'
                mehrs                 = 'X'
                datuv                 = sy-datum
                mtnrv                 = matnr
                werks                 = werks
                emeng                 = menge
           tables
                stb                   = istpox
           exceptions
                alt_not_found         = 1
                call_invalid          = 2
                material_not_found    = 3
                missing_authorization = 4
                no_bom_found          = 5
                no_plant_data         = 6
                no_suitable_bom_found = 7
                others                = 8.
    Regards,
    Ferry Lianto

  • Finding FM/RFC/BAPI For PO list In Perticular Vendor

    Hi,
      Can u help for Finding PO list For a perpicular vendor.
      i.s i want to pass Vendor No as In put it will give list of PO as out put
    Regards,
    Sunil sahoo

    Hi
    Try the below code
    types : begin of ty_ekko,
               ebeln type ekko-ebeln,
               lifnr type ekko-ebeln,
              end of ty_ekko.
    data : it_ekko type table of ty_ekko,
             wa_ekko type ty_ekko.
    parameters : lifnr like ekko-lifnr.
    select ebeln lifnr into table it_ekko from ekko where lifnr = lifnr.
    loop at it_ekko into wa_ekko.
    write : / wa_ekko-lifnr,
                wa_ekko-ebeln.
    endloop.
    Regards
    Madhan
    Edited by: Madhan Doraikannan on Oct 8, 2008 12:23 PM

  • BAPI for getting  list of repetitive order

    Hi,
    Can anybody say
    What BAPI is used to get the list of repetitive order...

    Boss,
    ISU_DB_ERDK_SELECT_VKONT
    If you see the function module table parameters you will get to know.
    Pass the contractaccount into ISU_RANGES to get the invoice documents.
    Regards,
    Shiva Kumar.

  • Lsmw by bapi for qm to upload inspection plan qp01

    I want to upload Inspection plan by Transaction qp01
    <Edited by Moderator - Bhavesh Kantilal. Removed all Capitals post. User has been warned and request to move this thread to the appropriate forum has been raised.>
    Edited by: Bhavesh Kantilal on Dec 20, 2008 1:50 AM

    Post it here:
    ABAP Connectivity
    Also, Please do not use all CAPS.
    It is understood as shouting at people.
    Regards,
    Ravi

  • BDC or BAPI for me01 and me02 please read the requirement below

    Hi Experts
    I am having one requirement ,that
    I need to write a BDC program for Source list
    My alt file is having 3 filed with
    matnr werks lifnr
    if the material no and werks are same and the lifnr is not existing then it has to add the new vendor with the material and werks to the source list
    if matnr  werks and lifnr are not existing then need to create a new source list
    flat file
    10000001 4200 0230000000
    10000001 4200 0230000000
    10000001 4200 0230000000
    10000001 4200 0230000001
    10000002 4210 0230000002
    see in this flat file I'm having two diffrent vendors
    suppose in eord table existing
    matnr , werks,lifnr
    10000001   4200 0230000000
    so nw it has to check for whether vendor is existing or not if existing nothing to do if not then it has to add the new vendor
    if matnr werks and lifnr or not existing then it has to create new source list       
    means create the vendor
    Is there any BAPI or any sample prog is thr    please provide me
    WILL GIVE YOU POINTS IMMEDIATELY
    Thanks in advance

    Hi
    You can search in SDN for regarding Table Control and also go through the below links:
    Here are some of the links
    Re: Handling The Table Control while working with BDC
    Re: how do we handle BDC table control
    Re: how to create bdc with table control
    Regards,
    Vishwa.

Maybe you are looking for

  • Safari Crashes when trying to open.

    I have tried reinstalling safari, uninstalling flash and reinstalling. And Repairing Disk permissions....any help would be great...this is my first Mac. Date/Time: 2010-12-05 18:40:22.951 -0600 OS Version: 10.4.11 (Build 8S165) Report Version: 4 Comm

  • HP LaserJet Pro 100 - scans only from tray, won't scan from adf

    Hi I am having issues with my HP LaserJet Pro 100. I load the adf and upen the scan dialog however when I click scan, it will scan from the tray every time. I have cleaned the rollers and checked the paper. I have ran scan doctor and it doesn't notic

  • Error reading contructor method

    Hey there, an error occurs when I try to make an instance of a contructor class file. Can you see what I'm doing wrong? John public class SavingsAccount {      private String firstName;      private String lastName;      private String holderAddress;

  • Access Invoices in Incoming Payments

    Hi everybody. I'm trying to access the lines (Invoices) of a Incoming Payment. When an Incoming Payment is successfully added by the user I have to get the number (DocNum) of the Invoice(s) that is being payed trough DI so I can use it to reference t

  • Role - User Assignment

    I have assigned a New User - the New Role I created. When I logged in the user I do not see any top level Navigation or detailed Navigation folders. I gave the user Super Admin Role and the New Role I created and then when I log in as the New User I