ME_UPDATE_SOURCES_OF_SUPPLY

Hello,
have anybody used above function module. I have used it and when i test in my program, i get a system error saying " Error while updating EORD".
any idea how to solve this problem

Ok, try this.
Write a custom program with following logic.
Data declaration
call ME_UPDATE_SOURCES_OF_SUPPLY
COMMIT WORK.
For some FMs(like BAPIs) you need to issue COMMIT command explicitly.
Hope this works.
Amit.
Edited by: Amit on Jun 25, 2008 5:13 PM

Similar Messages

  • Function modules to update ME01 transaction

    Hi,
    Can I get the list of Function modules to update ME01 transaction..
    Thnx in advance,
    Shivaa

    Hi shiva,
          Try this funtion module ,
    ME_UPDATE_SOURCES_OF_SUPPLY        Update source list
    ME_UPDATE_SOURCES_OF_SUPPLY_BA Update source list records in background during generation
    I hope,it will help you
    <=<< Sharing Knowledge is a way to Innovative >>=>
    By,
      Yoga

  • Updation of sourcelist.(Transaction : ME01)

    I need to put new valid to and from dates.Is there a function module whic will do this updation in the source list.I dont want to use BDC.
    Plz let me know if the same can be done using the FM.

    Dear Dheeru,
    Use the below F.M
    CALL FUNCTION 'ME_UPDATE_SOURCES_OF_SUPPLY'
    EXPORTING
      DOCUMENT_NUMBER        = ' '                                                " not mandatory
      I_CHANGEDOCUMENT       =                                                   " not mandatory
      TABLES
        xeord                  =   lt_eordu                                                   " table to be updated after making reqd : chnages
        yeord                  =   lt_eord                                                     " table with out chnages

  • 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

Maybe you are looking for