Enhancement MEREQ001 (EXIT_SAPLMEREQ_009)

Dear Experts,
Using the above mentioned user-exit I want to achieve to distribute the document number for purchase requisitions from desired number range I defined in OMH7.
In order to achieve that I activated the enhancement MEREQ001 and the component exit EXIT_SAPLMEREQ_009 (Document Number Assignment - Purchase Requisition).
I created a purchase requisition through Tcode ME51N but the number range has been not taken into account and the old one was used. Afterwards I set a breakpoint and tried again but the it looks like the system doesn't use the exit I have activated.
The solution is based on OSS note 316406. Am I wrong with something? Did I miss to perform some steps? Why the system doesn't respect the activated exit at all?
Thanks in advance

Don't know much about this issue but think you are referring to a note which is obsolete (4.6c).
More bad news in note 307760.
Regards
Sreenivas

Similar Messages

  • Enhancement MEREQ001 problem

    We are upgrading from 4.6B to ECC5.0. To get rid of MODS we wanted to use PReq enhancement MEREQ001. The scenario is that we want to change the Preis(Std price) field of an item for a certain condition on PReq creation.
    We included this enhancement in a project and tried to activate the project. According to documentation only the screen needs to be activated even if this is not used. We did that. This project  gets activated only partially. It says to activate the three CI_INCLUDES also for full activation. We dont require these includes.
    But to activate the project we did the following:-
    I activated a structure CI_EBANDB provide by SAP and added a dummy field into it. This structure is part of the table EBAN (Purchase Requistion table). On trying to activate this structure, it gave an error that the structure is part of table EBAN and hence the table also neesd to be adjusted.
    Then I went into the database utilities for the table EBAN and executed it with the option 'Activate & adjust database " + Save data radio button. The activation failed with an error. Many transactions started giving dump .
    So my question is that do we need to activate these CI_INCLUDES also to work with this enhancement.
    Or if anybody has worked on this enhancement in ECC5.0 who can help me in using this enhancement.

    Hi Rohit,
    You don't need to activate the includes such as CI_EBANDB and CI_EBANMEM unless you want to add custom fields into SAP Purchase Requisition screen(s) or make custom enhancement.
    Activate means adding new custom field(s) to include structure like you added dummy field to CI_EBANDB. Once you added and save, the system will prompt you to activate and adjust table EBAN.
    If the activation failed, it will be impacted to any transaction, program, etc that related to table EBAN.
    Please be very careful. Either you fix the error or undo the changes and reactivate.
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward point if helpful.

  • Enhancement MEREQ001 new field

    Hi ,
      I need to add a new field at item level ( in table control ) of tranaction ME51N..
    So I followed the OSS note  408017 . But still its not working.
    Plz guide me..

    Hi
    Using enhancement MEREQ001, insert the field in CI_EBANDB, use the screen exit 0111 for put the field here,
    in the exit EXIT_SAPLMEREQ_003 do this for save a DB the filed:
      DATA: db_data TYPE mereq_item.
      IF NOT im_req_item IS INITIAL.
        db_data = im_req_item->get_data( ).
        IF eban-zzpubbeuropea   NE db_data-zzpubbeuropea.
          db_data-zzpubbeuropea = eban-zzpubbeuropea.
          ex_changed = 'X'.
        ENDIF.
        IF eban-zzpubbnazionale NE db_data-zzpubbnazionale.
          db_data-zzpubbnazionale  = eban-zzpubbnazionale.
          ex_changed = 'X'.
        ENDIF.
        IF ex_changed = 'X'.
          CALL METHOD im_req_item->set_data( db_data ).
        ENDIF.
    p.s.  on the PBO with loop at screen you can make the file read only, invisible, etc etc...

  • Enhancement mereq001

    i am using this enhancement(mereq001) for an appending estructure ci_ebandb in me52n(puchase requisition), i can see the new fields in the alv, and i can see too them if i create the new screen(0111), my problem is that in the alv my fields are only display available, and i can´t change them, and i have gone to the spro for modifying the layout at document level, but i can't see my fields there, and i can´t change the properties in the layout of my alv, i would like to know if i have to insert my fields in a table or if it is an error of implementation of the user-exits,
    thanks in advance

    Hello,
    Check whether you have added your new set of fields in Structures CI_EBANDB / CI_EBANMEM.
    Implement Exits
    EXIT_SAPLMEREQ_003
    EXIT_SAPLMEREQ_001
    Refer to the following thread for sample:
    enhancements MEREQ001 in purchase requisition
    Hope this helps you.
    Best Regards, Murugesh AS

  • In Enhancement MEREQ001 - need to import Purchase Requisition Number

    Hi ,
    I need to import the Purchase Requisition Number and Item Number when the user enters T.code ME52N / ME53N
    From that i need to fetch the data from the Table EBAN , for my Custom Screen which i added using Screen Exit.
    My Question is in Exit MEREQ001 (CMOD) , which Function Module and field  i will use to import that PR Number and Item Field.
    Thanks,
    Prakash K

    Which enhancement component of MEREQ001 is being used ? I could see most of the enhancement components (eg. EXIT_SAPLMEREQ_001) having the importing parameter IM_REQ_ITEM (type ref to IF_PURCHASE_REQUISITION_ITEM).  Extract the PR header data using the interface method IF_PURCHASE_REQUISITION_ITEM->GET_REQUISITION.  This method will return the structure RE_REQUISITION (type ref to IF_PURCHASE_REQUISITION).
    Use the interface methods IF_PURCHASE_REQUISITION->GET_DATA (for header data) and IF_PURCHASE_REQUISITION->GET_ITEMS (for item data) for capturing required information.  If you are using the enhancement components which is having the importing parameter IM_REQ_HEADER ( type ref to IF_PURCHASE_REQUISTION, you can directly use the methods mentioned above.
    Regards, Vinod

  • Enhancements MEREQ001 in purchase requisition

    I have created the screen, and i have created  new  fields in the screen that are included in the append structure CI_EBANDB, but when i save the purchase requisition, the new fields are not saved in eban table with the rest of fields, must i implement an user-exit of this enhancement?
    Thanks in advance

    Hello,
    Here is the sample code...in the exit
    data : l_mereq_item type mereq_item.
    * SAMPLE is the new extended field...
    if not im_req_item is initial.
       l_mereq_item = im_req_item->get_data( ).
         if ( ci_ebandb-sample ne l_mereq_item-sample ).
            move-corresponding  ci_ebandb to l_mereq_item .
            call method im_req_item->set_data( l_mereq_item ).
            ex_changed = 'X'.
          endif.
    endif.
    Hope this helps you.
    Best Regards, Murugesh AS

  • Tcode MD02 - PurchReq number range

    Dear Experts,
    I try to make sure whether it is eventually isn't possible to create a purchase requisition using Tcode MD02 (MRP run) using a defined number range (Tcode OMH7).
    As known a reservation exists and afterawards during the MRP run a purchase requisition is created.
    Using the enhancement MEREQ001(EXIT_SAPLMEREQ_009), M06B0003 (EXIT_SAPMM06B_001) and M06B0004 (EXIT_SAPLEBNE_001) I can only manage the number range for several Tcodes like ME51, ME51N, etc. ...
    Does anybody know whether it's possible to hang on my logic for the Tcode MD02 eventually MD51.
    Please advice
    Thanks
    PS: Please don't concern the Tcode OPTT which is only preordained for networks at all.

    Hi,
    Hmm ... the exit seems to be designated only for purchase orders as I see. There is no feature to link it to purchase requisition number range ... OR?
    Thanks

  • Screen exit MEREQ001- for Transactions ME51N/Me52N/ME53N

    Hi,
      I have implemented the Enhancement MEREQ001 to add a new tab for Purchase Requistion screen.
    Requirement for me is to show the same data in the newly added tab for all line items and also to save the same data in EBAN table.
    I am facing a problem while saving the data. In EBAN table, the data was saved for all line items. But the custom added field values are saved for only the line item displayed.
    I ll explain with an example for better understanding.
    I have created a PR with 2 line items ITEM1 and ITEM2
    When i saved the data when ITEM1 is displayed, EBAN have custom added field values for ITEM1 but not for ITEM2.
    The same way, if I save data when ITEM2 is displayed, EBAN has custom added field values for ITEM2 but not for ITEM1.
      Now, my requirement is to get the both line items ITEM1 & ITEM2 updated with custom added field values in EBAN.
    Has anyone faced this kind of issue.
    Please reply back.
    Regards,
    Sreekanth.G

    Hi,
    Use BADI 'ME_PROCESS_REQ_CUST' to copy item 1 custom fields data to item 2 custom fields data.
    Regards,
    Hemanth

  • Screen enhancement in ME51N/ME52n/ME53N

    Hi All,
    I want to display 2 additional tabs in the line item of ME52N tcode. There is already an enhancement MEREQ001 created in a project named MEREQ001. I tried to do the changes in the existing screen after deactivating the project, But after creating the tabs in the screen & when i try to save it I am getting an information message "Object can only be created in SAP package" , and after clicking continue i get the error "SAP object FUGR XM02 cannot be assigned to package ZMM". But even if I try to save it in any other namespace I am getting the error "Object belongs to function group with customer exit", and it will come out of the screen layout deleting the changes made the screen layout.
    My requirement is to display 2 tabs in the Tcode Me52n, and the user must be able to fill data in these  tabs & the data should be saved  in the database on clicking save.
    Is it possible to use Badi "ME_PROCESS_REQ_CUST"  ?, if yes then please advice how.
    Thanks in advance.

    Hi,
    You can't use the BADI " ME_PROCESS_REQ_CUST.
    The main purpose of this badi is use to validate the PR at different levels. If you see the methods of that BADI  for eg :
    1. Process_header : This for validating the header part.
    2. Process_item : This for validating the line item details.
    Like that there are so many methods are there inside this BADI.
    You mentioned that you deactivated the Existing Project of PR and i want to know in which package you have mentioned.
    If that existing project is not needed you can delete the old one and incoporate the new logic and the old logic in the new project.
    Hope you got some idea now.
    With Regards,
    Sumodh.P

  • Screen enhancement in ME51N - control is not passing to PBO and PAI of exit

    HI ,
    I am doing screen Exit for the Tcode : Me51N / Me52N.
    I have to add 3 Text fields in item level, i am using Enhancement:MEREQ001(in CMOD).
    Initially i added those 3 fields in Structure CI_EBANDB.
    Then i designed Screen in Screen Exit:SAPLMEGUI Screen Num:111.
    Here in the PBO and PAI Module
    MODULE STATUS_0111 , MODULE USER_COMMAND_0111.
    the control is not going , i tried with break-point inside these modules.
    But while executing ME51N , debugger is not working.
    Code i wrote in both PAI and PBO
    MODULE STATUS_0111 and MODULE USER_COMMAND_0111.
    loop AT SCREEN.
           screen-output = '1'.
           screen-input = '0'.
           MODIFY SCREEN.
    endloop.
    I need to display the three screen in Display format not in editable format.
    Thanks and Regards,
    Prakash K

    Hi
    You need to write the code in PBO of that screen based on TRANSACTION TYPE.
    there is a method call 'get_transaction_state' from this you will get the transaction type (H -  create , 'V'-  change  'B' -display) at run time.
    If run time transaction type = B
      LOOP AT screen.
          IF screen-name eq c_name . "field names
            screen-input = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
    endif.

  • Screen exit MEREQ001- Copy 1 PR line item custom fields values in all

    Hi,
    I have implemented the Enhancement MEREQ001 to add a new tab for Purchase Requistion screen at line item level .
    Requirement for me is to show the same data in the newly added tab for all line items and also to save the same data in EBAN table.
    I am facing a problem while saving the data. In EBAN table, the data was saved for all line items. But the custom added field values are saved for only the line item displayed.
    I ll explain with an example for better understanding.
    I have created a PR with 3 line items ITEM1, ITEM2 ,and ITEM2
    When i saved the data when ITEM1 is displayed, EBAN have custom added field values for ITEM1 but not for ITEM2 and item3.
    The same way, if I save data when ITEM2 is displayed, EBAN has custom added field values for ITEM2 but not for ITEM3 and ITEM1.
    Now, my requirement is to get the all  line items ITEM1 & ITEM2 and ITEM3 updated with custom added field values in EBAN.
    The logic i added in  ME_PROCESS_REQ_CUST~CHECK are as below.
           i_items             TYPE mmpur_requisition_ite                       ,
            lv_if_item          TYPE REF TO if_purchase_requisition_item,
            lt_itm_data         TYPE mereq_item   .
    DATA :  LV_dept TYPE EBAN-ZZDEPARTMENT ,
            lx_itm_data type mereq_itemx.
        CALL METHOD im_header->get_items
          RECEIVING
            re_items = i_items.
        LOOP AT i_items INTO wa_item.
          lv_if_item = wa_item-item.
          CALL METHOD lv_if_item->get_data
            RECEIVING
              re_data = lt_itm_data.
          CALL METHOD lv_if_item->get_datax
          RECEIVING
          re_datax = lx_itm_data.
         IF lt_itm_data-zzdepartment IS INITIAL.
             lt_itm_data-zzdepartment =  LV_dept .
             lx_itm_data-zzdepartment = 'X' .
          ELSE.
             Lv_dept = lt_itm_data-zzdepartment.
        ENDIF.
    To set the value for all line item.
            CALL METHOD lv_if_item->SET_DATAX
              EXPORTING
              IM_DATAX = lx_itm_data.
        CALL METHOD lv_if_item->Set_data
            EXPORTING
              IM_data = lt_itm_data.
        ENDLOOP.    " LOOP AT i_items INTO wa_item.
      ENDIF.    " IF ( NOT ls_header1-banfn IS INITIAL
    BUT above logic is not working
    Please give your inputs
    Thanks in advance
    Deepanker Dwivedi

    HI,
    You can use GET CURSOR LINE LINE_NO this will give you the sy-index so that you can read the itab like
    read table itab index line_no. This is one option and second is if you have row selector.
    read table itab with key mark = 'X'.
    If you want the Row contents befor the PAI triggers
    [Check this Thread|Table Control dynamic F4;
    Hope this is clear to you.
    Regards
    Ram

  • Enhancement help in ME51n : Extereme urgent  ! Exit + BADI-EX

    Hi Experts !
    I have added one tab and a field into it in ME51n through screen exit mentioned below :
    Calling screen  No.     Area      Called screen     No.   Short Text
    SAPLMEGUI   0014   SUB0     SAPLXM02        0111
    I need to save the user input value of this field + the PR number generated into my ztable which has only these two fields.
    <b>The issue here is that PR no gets generated only when we save and i cud not fetch it in these exits  ( If some has a point that we can fetch it in one of the exits-plz let me know)</b>
    Now I've used the exit : EXIT_SAPLMEREQ_003 of enhancement : MEREQ001
    to put data from screen field( added ) into a structure 'IM_ITEM' of nature mereq_item  by using methods of interface IF_PURCHASE_REQUISITION_ITEM.
    Below is the code i used in the include of above exit:
    *&  Include           ZXM02U03
    tables  ZTMMP0_PMASTER.
    data im_item type mereq_item.
        CALL METHOD im_req_item->get_data
          receiving
            re_data = im_item.
    im_item-zpurpose = ZTMMP0_PMASTER-PURPOSE.
    CALL METHOD im_req_item->set_data
      EXPORTING
        im_data =  im_item .
    Now i found a BADI ->ME_REQ_POSTED which gets triggered at the time of posting the PR.if u r clear about my above code thru methods<i><b> i am tryin to throw data of screen input from my function exit and catch the same in BADI - where PR no is visible and i wud push both from BADI-method into my ztable.</b></i>
    Issue is that the data of my new field which i passed thru my exit as shown above is not visible in BADI method and i cant use the get_data method
    eagerly waiting for help,
    Sachin Soni
    Message was edited by:
            Sachin Soni

    Hello Sachin,
    You are trying to bring data from an Exit to a BADI , but the BADI cannot recieve the DATA as far as i understood since the parameters are restricted,
    An option coming to me right now is to :
    <b> Use import <--> EXPOT memory</b>
    Export from the Exit and Import from the BADI using ABAP export/import statements
    EXPORT (OBJ_TAB) to memory ID 'ABCD''.
    IMPORT (OBJ_TAB) FROM MEMORY ID 'ABCD'.
    OR
    IMPORT A = A  B = B_PROG  C = C_PROG FROM MEMORY ID 'ABCD'.
    and
    FREE MEMORY ID 'ABCD'
    Please check for correct syntaxes
    Reward if helpful and pls update if problem is solved
    Regards
    Byju

  • How to enhance /PBS/ME53N

    We have added new tab in ME53N using the Enhancement MEREQ001 . How to enhance the /PBS/ME53N to display same tab. If any body know the solution  please share.

    If you have a PBS partner contact them. If the company has a direct contract with PBS you can contact PBS over the Hotline Mail : [email protected] . They need the company name, System release  and they also need to know if this is SAP standard enhancement or one that you have built yourself. A screen shot as to which Tab you need and where it is located in the SAP original ME53N is also helpful.

  • MEREQ001: Will it work for ME51? in 4.6c

    Hi All,
    I have been working on triggering some error message in Purchase Requisition.
    So i have implemented the Enhancement : MEREQ001
    It is working fine in ME51n. But not getting triggered from ME51. But in search i have observed some posts saying that it is working for ME51.
    Just wanted to confirm whether it will work or not. If yes.. may i need to do anything?
    Thanks in advance.
    Jyothi

    MEREQ001 only works with Enjoy transaction, (tested on 4.6C SP33)
    - Look for OSS notes on MEREQ001, they only refer to the Enjoy program (ME51N, ME52N and ME53N and not the legacy transaction)
    - Also look at [Purchasing Applications with New Interactive Design (Enjoy)|http://help.sap.com/saphelp_erp2004/helpdata/EN/0b/e28d38dfc44765e10000009b38f842/content.htm]
    For ME51 you have to look for old Enhancements (beginning with MM06*)
    Also those Customer Exits only work with BAPI "enjoy" like BAPI_PR_CREATE and BAPI_PR_CHANGE (not available before 4.7) and not with the old BAPI BAPI_REQUISITION_CREATE and BAPI_REQUISITION_CHANGE (OSS [Note 499627 - FAQ: BAPIs for purchase requisitions|https://service.sap.com/sap/support/notes/499627])
    Regards

  • MEREQ001 - EXIT_SAPLMEREQ_010

    Hi all,
    While executing the enhancement MEREQ001 in the production it went into dump stating that funtion module EXIT_SAPLMEREQ_010  does not exist in function group XM02.
    ( there is no code used in this FM.The required code is in another fm EXIT_SAPLMEREQ_005 and there is no problem with that  )
    how do i include the function mod in a standard function group.Moreover in development the FM exists in the function group XM02 and hence does not go into a dump.has anyone come across this type of issue ?. pls help to resolve this issue
    thanks.

    Hi,
    Check the function group to see if the EXIT_SAPLMEREQ_010 is in the function group. If not check and/or raise a oss.
    Cheers.
    Reward if useful.

Maybe you are looking for

  • Flash player will not work with Windows Vista?

    I installed flash player but had to uninstall it after I did an update as my Pc would not work properly. Does anyone know which version will work please. Thanks.

  • I have tried everything on Windows ME...can't update; usb won't even read!

    Can anyone help me? I have an apple icon that appears and won't go away. My IPOD mini used to work just fine up until 2 days ago. I have tried all the suggestions listed on this site that I have found and my computer won't download updater nor will i

  • Please tell me e code to clear the dos screen in my program

    please sir/mam if u colud plz elp me to know hoe th clear the dos screen in java and I had tried the code i.e. Runtime.getRuntime.exec("cls") but it did not worked so plz help me out u can mail me at [email protected]

  • My site desappeared from IWeb

    Hello, I am new to iWeb. I have created a website and published it at http://web.me.com/ few months ago. Everythig was OK The problem is that now (maybe after same updates, I don't know) I can not see this site in the "IWeb". It doesn't appear in thi

  • Can't read downloaded document

    The downloaded (to Word) document is all black, with some colors - can't read.....??????