BADI for ME01-Source lists

Hello and happy new year!!
We need to do some checks before a source list is updated using ME01 transaction code.
Does anybody know if there is a badi for this purpose?
Thank you in advance!
MARTA

Hii
I also have similar kind of requirement,
Need to do some vendor validation and issue a error message, when cliked on save bustton in ME01 tcode.
Please let me know if any body knows suitable exit or BADi
Thank you...!!!
Regards,
Nilesh

Similar Messages

  • Datasource for Purchasing Source List

    Hello Guys
    i need to find datasources for "purchasing source list" that are stored in EORD table ( you can see these data with transaction ME03, ME01).
    Any one knows the datasources to keep these data in BW ?
    thanks in advance
    Boris

    Hi,
    Please find the code below .
    REPORT ZSOURCE.
    TABLES: EORD,
            EINA,
            MARC.
    Batch Input Name
    PARAMETERS P-BTCHSN(12)            DEFAULT 'ME01'.
    Vendor Code
    PARAMETERS P-LIFNR LIKE LFA1-LIFNR DEFAULT 'XXXXX'.
    Material Group
    PARAMETERS P-MATKL LIKE MARA-MATKL DEFAULT 'XXXXXXX'.
    Plants
    PARAMETERS P-WERKS LIKE EORD-WERKS DEFAULT 'XX'.
    Tick Block/Untick Unblock
    PARAMETERS P-NOTKZ LIKE EORD-NOTKZ DEFAULT 'X'.
    Auto / Manual run the Batch Input Program
    PARAMETERS P-RUN   AS CHECKBOX     DEFAULT 'X'.
    INTERNAL TABLE FOR DATA
    DATA:  BEGIN OF ULTAB OCCURS 50,
             MATNR LIKE EORD-MATNR,   "Material No.
             WERKS LIKE EORD-WERKS,   "Plants
             ZEORD LIKE EORD-ZEORD,   "NO
             LIFNR LIKE EINA-LIFNR,   "Vendor Code
           END OF ULTAB.
    INTERNAL TABLE FOR BATCH INPUT DATA
    DATA: BEGIN OF IPUTTAB OCCURS 50.
            INCLUDE STRUCTURE BDCDATA.
    DATA: END OF IPUTTAB.
    INTERNAL TABLE FOR BATCH INPUT ERROR MESSAGE.
    DATA: BEGIN OF MESSTAB OCCURS 50.
            INCLUDE STRUCTURE BDCMSGCOLL.
    DATA: END OF MESSTAB.
    DATA: C_TAXKM LIKE MG03STEUER-TAXKM VALUE '1',
          W-LINE-NO TYPE I.
    REFRESH ULTAB.
    SELECT * FROM EINA WHERE LIFNR = P-LIFNR
                         AND LOEKZ = SPACE.
      SELECT SINGLE * FROM MARC WHERE MATNR = EINA-MATNR
                                  AND WERKS = P-WERKS.
      CHECK MARC-LVORM = SPACE.
      CLEAR ULTAB.
      SELECT * FROM EORD WHERE MATNR = EINA-MATNR
                           AND WERKS = P-WERKS
                           AND LIFNR = P-LIFNR.
         ULTAB-MATNR = EORD-MATNR.
         ULTAB-WERKS = EORD-WERKS.
         ULTAB-ZEORD = EORD-ZEORD.
         ULTAB-LIFNR = EORD-LIFNR.
         APPEND ULTAB.
      ENDSELECT.
      IF SY-SUBRC = 4.
         ULTAB-MATNR = EINA-MATNR.
         ULTAB-WERKS = P-WERKS.
         ULTAB-ZEORD = ''.
         ULTAB-LIFNR = EINA-LIFNR.
         APPEND ULTAB.
      ENDIF.
    ENDSELECT.
    CHECK WHETHER TABLE IS EMPTY
    IF ULTAB[] is initial.
       WRITE: / 'TABLE EMPTY'.
    ENDIF.
    Create Batch session
      PERFORM CRE-BATCH-SESS.
    LOOP TABLE TO CREATE SCREEN INPUT
    SORT.
    LOOP AT ULTAB.
      REFRESH IPUTTAB.
      PERFORM SCREEN1.
      PERFORM SCREEN2.
      PERFORM PRN_ULTAB.
      PERFORM CLOSE-SESS.
    ENDLOOP.
    CALL FUNCTION 'BDC_CLOSE_GROUP'.
    END OF MAIN PROGRAM
    FORM SCREEN1.
    SCREEN #1: INITAL SCREEN FOR MAINTAINING SOURCE LIST
      CLEAR IPUTTAB.
      IPUTTAB-PROGRAM = 'SAPLMEOR'.
      IPUTTAB-DYNPRO  =  '200'.
      IPUTTAB-DYNBEGIN = 'X'.
      APPEND IPUTTAB.
    Source List : Material No.
      CLEAR IPUTTAB.
      IPUTTAB-FNAM = 'EORD-MATNR'.
      IPUTTAB-FVAL =  ULTAB-MATNR.
      APPEND IPUTTAB.
    Source List : Plants.
      CLEAR IPUTTAB.
      IPUTTAB-FNAM = 'EORD-WERKS'.
      IPUTTAB-FVAL =  ULTAB-WERKS.
      APPEND IPUTTAB.
    ENDFORM.
    FORM        : SCREEN1                                               *
    FORM SCREEN2.
    Modify screen for SOURCE LIST
      CLEAR IPUTTAB.
      IPUTTAB-PROGRAM = 'SAPLMEOR'.
      IPUTTAB-DYNPRO  =  '205'.
      IPUTTAB-DYNBEGIN = 'X'.
      APPEND IPUTTAB.
      CLEAR IPUTTAB.
      IPUTTAB-FNAM = 'EORD-VDATU(1)'.
      IPUTTAB-FVAL = '01.01.2001'.
      APPEND IPUTTAB.
      CLEAR IPUTTAB.
      IPUTTAB-FNAM = 'EORD-BDATU(1)'.
      IPUTTAB-FVAL = '31.12.9999'.
      APPEND IPUTTAB.
      CLEAR IPUTTAB.
      IPUTTAB-FNAM = 'EORD-LIFNR(1)'.
      IPUTTAB-FVAL = P-LIFNR.
      APPEND IPUTTAB.
      CLEAR IPUTTAB.
      IPUTTAB-FNAM = 'EORD-EKORG(1)'.
      IPUTTAB-FVAL = 'ALL'.
      APPEND IPUTTAB.
      CLEAR IPUTTAB.
      IPUTTAB-FNAM = 'EORD-NOTKZ(1)'.
      IPUTTAB-FVAL = P-NOTKZ.
      APPEND IPUTTAB.
      CLEAR IPUTTAB.
      IPUTTAB-FNAM = 'EORD-AUTET(1)'.
      IPUTTAB-FVAL = '1'.
      APPEND IPUTTAB.
    Specify that we are now done with this screen (Save it with F11)
      CLEAR IPUTTAB.
      IPUTTAB-FNAM = 'BDC_OKCODE'.
      IPUTTAB-FVAL = '/11'.
      APPEND IPUTTAB.
    ENDFORM.
    FORM        : CLOSE-SESS                                            *
    DESCRIPTION : CLOSE THE SESSION                                     *
    FORM CLOSE-SESS.
    closing the session.
    IF P-RUN = 'X'.
    Auto run the Batch Input Program
    CALL TRANSACTION 'ME01'
              USING  IPUTTAB
              MODE   'E'
              UPDATE 'S'
              MESSAGES INTO MESSTAB.
    ELSE.
    Maual run the Batch Input Program
    CALL FUNCTION 'BDC_INSERT'
           EXPORTING
                TCODE     = 'ME01'
           TABLES
                DYNPROTAB = IPUTTAB.
    ENDIF.
    ENDFORM.
    FORM        : PRN-ULTAB                                             *
    DESCRIPTION : PRINT OK TABLE                                        *
    FORM PRN_ULTAB.
      WRITE: / ULTAB-MATNR, ULTAB-WERKS, ULTAB-ZEORD, ULTAB-LIFNR.
      W-LINE-NO = W-LINE-NO + 1.
    WRITE: '      RECORD# ', W-LINE-NO.
    ENDFORM.
    FORM        : CRE-BATCH-SESS                                        *
    DESCRIPTION : CREATE BATCH SESSION                    *
    FORM CRE-BATCH-SESS.
    Create BTCI session **
    CALL FUNCTION 'BDC_OPEN_GROUP'
         EXPORTING
              CLIENT = SY-MANDT
              GROUP  = P-BTCHSN
              USER   = SY-UNAME
              KEEP   = 'X'.
    ENDFORM.
    Regards,
    Marasa.

  • Extractor for Purchasing Source List

    Hi All,
    Is there any business content extractor for Purchasing Source List in R3 basis component 620?
    Thank you very much in advance.
    RK.

    Hi.......
    Check this........
    http://help.sap.com/saphelp_nw70/helpdata/EN/58/f6383fdb800804e10000000a114084/frameset.htm
    Regards,
    Debjani........

  • User Exit/ BADI for ME01- Sourcelist creation

    Hiii
    We need a place exit/ BADi to do vendor validation before saving soource list in transaction ME01.
    Please provide suitable exit / badi for above requirement.
    Thanks ...in advance.!!
    Regards,
    Nilesh

    EXIT_SAPLMBMP_003     AMPL0001     User subscreen for additional data on AMPL
    EXIT_SAPLMEKO_001     LMEKO001     Extend communications structure KOMK for pricing
    EXIT_SAPLMEKO_002     LMEKO002     Extend communications structure KOMP for pricing
    EXIT_SAPLMEQR_001     LMEQR001     User exit for source determination
    EXIT_SAPLMEQR_001     LMEQR001     User exit for source determination
    EXIT_SAPLQBCK_002     QBCK0002     Extended check in procurement

  • User exit or badi for me01

    Hello all,
    I tried a lot with the user exit EXIT_SAPLMEQR_001and EXIT_SAPMM06E_005 for me01 so the i can insert the material number and plant number to the ztable when ever i am making changes or creating source list for a material.
    Can any once tell me which badi or user exit should i use so the when ever i save the source list it is called and insert the material number and plant number in ztable.
    Help me out of this..............

    Could anbody tell me ?

  • BDC OKCODE - ME01 - Source list

    Hello All,
    I need to write a BDC to update the source list for the materials (master data ) with T-code ME01.
    But ME01 is used both for create and change of the source list.
    I am writing the following BDC for change,but it is not working.
    CLEAR bdc_tab. REFRESH bdc_tab.
      PERFORM  dynpro USING:
    *initial screen
         'X'  'SAPLMEOR'             '0200',
         ' '  'EORD-MATNR'           itab_eord-matnr,
         ' '  'EORD-WERKS'           itab_eord-werks,
         ' '  'BDC_OKCODE'           '/00'.
      PERFORM  dynpro USING:
         'X'  'SAPLMEOR'             '0205',
         ' '  'EORD-VDATU(1)'        from_date.
      PERFORM  dynpro USING:
         ' '  'EORD-BDATU(1)'        to_date,
         ' '  'EORD-LIFNR(1)'        itab_eord-lifnr,
         ' '  'EORD-EKORG(1)'        p_ekorg,
           ' '  'RM06W-FESKZ(1)'       '  ',
           ' '  'EORD-AUTET(1)'        '1',
           ' '  'BDC_OKCODE'           '=BU'.
      CALL TRANSACTION 'ME01' USING bdc_tab MODE bdc_mode UPDATE 'S'.
    I am trying to change the existing source list for a part with above BDC code.
    But it says "Source list for mat. 0403-000363 and plant V711 already being
    processed".
    Please guide me how should i change the existing source list with BDC ?
    Thanks in advance,
    Swati

    Hi,
    The error just means that someone is already editing source list for the  material 0403-000363. Close that and try executing the bdc.
    Regards,
    Vikranth

  • 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

  • No effective source of supply despite valid source in Source List

    Hi,
    Can somebody help me why I can't assign source of supply in PR when I already have multiple valid vendors with info records maintained on the material? I'm using MPN material to maintain info record. I have checked all my master data with validity dates and they are all valid. Also, I noticed that there are no effective source displaying when I do simulation inside ME01 (Source List). Maybe that is one of the reason why I can't assign source of supply in PR.
    hoping for an immediate reply.
    Thanks,
    MM

    If it can't find ANY source and you definitely have FULL info records (I mean manually manitained with ME11 / 12) and you definitely have sources in the source list, then are these entries correct, are the date ranges valid, is the P org correct?
    This functionality WILL work if the data is set up correctly but there are lots of small elements of that data that could stop the system from determining a valid source.
    Try changing one of the entries in the source list (just the date for instance) just to see if there are any warning messages triggered.
    Steve B

  • Source list requirement at document level

    Hello!
    Can anybody suggest is there user exit or badi to set source list requirement on purchase order document.
    I have faced following situation: materials are procured from different external vendors in different plants, to generate PR documents from MRP with fixed vendors for particular plants and set prices in PO from info records that are valid on particular date, I need to use source list. When I set source list requirement on plant level, I have to enter source list for STO items to move materials between plants also, this is very time consuming. I would like to remove source list requirement from plant level and activate source list requirement for particular document type for external procurement.
    Is there Badi or exit to set source list requirement on document level?
    Thanx!
    Brucke

    why dont you set the source list requirment in the material master instead of plant in general.
    then you just do not need to set the source list mandatory indicator for your STO materials.

  • Problem creating source list

    Hi
       We are on ECC 5.0 and in one of our ABAP programs create a PIR as a first step using ME11 BDC call and then go ahead to create a sourcelist for the material + plant and the vendor ( for which PIR was created in the first step ) .
    To create source list we use the following function modules ( fms )  in sequence
    ME_INITIALIZE_SOURCE_LIST
    ME_DIRECT_INPUT_SOURCE_LIST
    ME_POST_SOURCE_LIST_NEW
    What we observe is that - the ME_DIRECT_INPUT_SOURCE_LIST fm always raises an abort message - ' No PIR exists for the material and vendor ' even though PIR is created in the first step and we check for its existence before we call the fms for the source list. However if we introduce a wait for upto 15 seconds after the PIR has been created the sourcelist creation goes through.
    Any idea why the above is happening. Similar situations faced with source list creation - shared is appreciated. Correct answers helping me solve this problem will be promptly rewarded

    Hi Karthik,
    System takes some time to COMMIT all the work thats why it's happening.
    Keep the WAIT FOR UP TO <reasonale seconds value> SECONDS in your code.
    Regards,
    Atish

  • Creation Info Record at Material group,Source List & Assign source to PR

    Hi All,
    Mine is a typical requirement, I would like to create a Info Record at Material Group level and create Source list for the Material & Plant combination. Now for this combination, I would like to create PR & assign source for this PR.
    Completed at my end:
    1. Creation of Info Record at Material Group level
    2. Maintained Source List at Material level.
    Issues/ Errors:
    1. Info Record does not exist for the combination of Material & Vendor combination (which is true & I do not want it also)
    2. Material differs from the Material from the Info Record.
    Help / Information required :
    1. Setting MRP relevant "1" for the Source List and for checking the field "Fix".
    2. Assigning the Source in PR (in ME57)*Can anyone provide solution to the above
    Can anyone please provide the soilution to the above points?
    Thanks in advance for the solution.
    Regards,
    Pavan.

    Hi Please create Contract and refer same while source list. This will help
    Regs,
    AD

  • Source List - Mass Change

    How to change source list in Mass?
    Like I have several materials for which source list is already created for more than one vendor for few materials.
    But MRP relevevant indicator "1" is missing.
    How to update the same in all materials for all vendors.

    Dear,
    If you want have all relevants data for creation of source list. You can create source list for upload source list.If you want to step by step guide document for creation of lsmw please give our mail id. Otherwise check MASS t-code for upload source list of material.
    If it is useful, Please revert back.
    Regards,
    Mahesh Wagh

  • Source List - MRP Run

    Hi all ,
    In our production server Source List is maintained for a material .
    The first line contains a vendor ( say Vendor1 ) with MRP relevant indicator 1
    2nd line contains another vendor (say vendor 2 ) with fixed indicator checked and MRP relevant indicator as 1 .
    1)For both vendor the date range is same
    2)No quota arrangement exists .
    But while MRP run for that material Vendor1 is automatically assigned instead of vendor 2 . (althoug vendor 2 is Fixed )
    What may be the reasons ?Please suggest .
    Regards,
    Anupam
    Edited by: Anupam Halder on Aug 10, 2009 8:23 PM

    Hi,
    System doe not take care of "fixed" indicator in source list during MRP run as per OSS note 668764:
    1. Question:
    The fixed indicator is set for a source list record. Is this source list record preferred for a planning run?
    Answer:
    Only the source list records, for which the indicator 'Source list usage in materials planning and control' is set, are taken into account during a planning run; the fixed indicator is of no importance here. See Note 206684 for more information.
    Please also check the mentioned OSS note (206684)
    Regards,
    Csaba

  • Mass upload of Source List through LSMW

    Dear Experts,
    In our plant we have so many materials for which source list has not been maintained properly.Please,can any one tell me in detail how to do Mass upload of Source list through LSMW in detail.
    Please do reply me...
    Thanks in Advance...
    MK

    Hi,
    lsmw  with Idoc.
    Also use "Search Forum" with keywords "LSMW IDOC" in ABAP Development & you find many threads which explains you in detail.
    Hope this helps.
    Best Regards, Murugesh AS

  • Maintain/ change Source list

    Hi ,
    I am in process of creation of Source List.
    I have entered two suppliers for a material in source list , Info record is available for one supplier - material combination but for another supplier , info record is not maintained.
    System allowed me save both the records time but if I try to make changes by making second vendor (for which info record is not available) as fixed vendor , system is prompting me an Error message
    "Info record for vendor 900052 and material 50000311 does not exist.Message no. 06341
    Diagnosis
    A prerequisite for a source list record or a quota arrangement item is an info record. The system was not able to find an info record for the vendor, material and plant."
    So does it mean it is mandatory to have info records to make a vendor fixed source vendor ONLY or for non fixed vendors also , this condition is manadtory.
    Regards
    Sandeep marwha

    hi,
    it is confirmed thet if you make any vendor fixed in SL then it is compulsory to maintain info record.

Maybe you are looking for

  • Can't batch capture only needed media

    Hi, I have many 7 minute sequences imported from 60 min dv tapes. The drive holding the media crashed and now when I try to re-importing the media by batch capturing directly from the sequence it re-captures the entire tape. I only need a generally h

  • Step in XI

    Hi everybody, I have a follow scenario.   IDoc---XI-XI---R/3 . 1) the Patner send Order over Htttp adapter. 2) we send Orders05 to the Patner 3) and the Patner send a Status  I was done de necessary Configuration in our SAP xi and R/3 like sm59, we20

  • JQuery Functionality

    Has anyone seen a JQuery script that resembles the main image slider on this site? http://www.blazerformen.com/

  • Make my own template for a one page book?

    I need to make a book template that will appear in the list of possible book designs -- is that possible? Secondly -- I want to make a one-page book (call it a poster if you want) it's really a form that I want to print out with a different photo eac

  • Freeze during installation of XP with ms-6547

    I bought a ms-6547 (MSI 645 Ultra-C) last year and tried to make it run at least once in vain!!!! The problem is that the computer freezes when loading the drivers during the installation of Win XP Pro   and I still don't understand why... I gave up