User Exit - 'EXIT_SAPLMEREQ_005'

Hi All,
I need to do an enhancement using MEREQ001.
while executing me51n, the system fetches valuation price automatically for the material but in my case i need to fetch price from the latest PO.i found that the function exit to b used is 'EXIT_SAPLMEREQ_005' . But if i try to change the field it says it cannot be changed and morever in the export parameters of the exit this field is not there in the structure. so how do i change the value kindly help.
thanks

Hi Kavitha,
1).if you wanted to do changes any Enhancement, first of all you needs to create a project under CMOD transaction and there you needs to assign Function Exit,
2) place the cursor on 'INCLUDE ZXM02U05' stament and hit Enter button, it shows some warning message, after you just duble click on the same statement by using Mouse. it will ask you to create new object..? say yes.
3) here you can write the code by using Import and Export parameters.
4) Export parameter EX_MESSAGES returns the Messages after processing.
Thanks,
Murali.

Similar Messages

  • Purchase requisition , ME51N, user exit for change Release date

    Hello.
    Purchase Requisition ( transaction ME51N).
    I want to change the value of u201ERelease dateu201C using user-exit EXIT_SAPLMEREQ_005.
    CALL METHOD im_req_item->get_data
      RECEIVING
        re_data = get.
    set = get.
    set-frgdt = u2026..
      CALL METHOD im_req_item->set_data
        EXPORTING
          im_data = set.
    Next, in dynpro is visible the right value from EXIT_SAPLMEREQ_005, but when saving the system uses another value, not the value from user exit.
    Do you anybody have some experiences with this problem?
    Lumir

    Hi
    The USer Exit you can use for the ME51n Tcode is by using Badi's.The Badi you can use is ME_PROCESS_REQ_CUST BADI.
    Method to be used: PROCESS_ITEM
    This link gives you a brief idea.Hope it helps you.
    BADI for ME51N
    Thanking you.

  • EXIT_SAPLMRMP_010 - User Exit for MIRO

    Hi,
    I'm trying to call this User Exit EXIT_SAPLMRMP_010, in the MIRO transaction, but it is not triggered at all. And so after troubleshooting, in one table TFDIR, for this function module, the MAND field is blank.
    Whereas the program expects character 'C' in the MAND field.
    I do not understand from where this C is coming.
    I executed another User Exit EXIT_SAPLMEREQ_005, which is having MAND = C and it is executing correctly.
    Please help me on this.
    Thanks

    Hi,
    I thought because of this MAND = C the PR user Exit is triggering, but its not due to that.
    Actually i wanted to do one validation in the MIRO using this Function module, but my validation is not getting triggered at all. For testing, i just gave one message, to be prompted, to test whether working or not. but still doesn't work.
    So anyone can tell me, how to trigger this FM.
    Thanks.

  • User exit or BADI for Tcode ME51N

    Hi All,
    My requirement is i need to check available quantity at the time of Purchase req creation. If PR quantity is available in stock then it should not allow to create new PR.
    Is there any user exit or Badi for this requirement. Kindly send me.
    Regards,
    Paras

    Hai,
    User Exit:  MEREQ001
    Function exit             EXIT_SAPLMEREQ_001  
                                   EXIT_SAPLMEREQ_002  
                                   EXIT_SAPLMEREQ_003  
                                   EXIT_SAPLMEREQ_004  
                                   EXIT_SAPLMEREQ_005  
                                   EXIT_SAPLMEREQ_006  
                                   EXIT_SAPLMEREQ_007  
                                   EXIT_SAPLMEREQ_008  
                                   EXIT_SAPLMEREQ_009  
                                   EXIT_SAPLMEREQ_010  
    Screen exit               SAPLMEGUI           
    Include tables           CI_EBANDB           
                                   CI_EBANMEM

  • User exit or badi for me52n transaction.

    Hi all,
           i have a requirement to write a user exit or badi for me52n transaction. the requirement is in header section, only one plant should be accepted. that is in the first row one plant will be inserted. in the second row if we are inserting another plant other the first row plant, it should not accept it and it should raise an error.
    that is from the second row onwards, every plant should match with the first row plant.
    if any part of this issue is unclear, plz let me know so that i can explain it clearly
    this is urgent requirement.
    please let me know the solution as soon as possible.
    points will be awarded.
    thanking u in advance.
    A.srinivas.

    In this version exit EXIT_SAPLMEREQ_005 should exists (look at OSS <a href="https://service.sap.com/sap/support/notes/843446">Note 843446 - MEREQ001: Cannot call up external service data in user exit</a> this note refers to the exit and is applicable in  4.70. Look also at OSS <a href="https://service.sap.com/sap/support/notes/310154">Note 310154 - ME21N/ME51N: Customer-specific check, generating error log</a>
    Regards

  • Valuation price change in PR - User Exit

    Hello all,
    In Purchase Requisition valuation tab there is the field BPUEB (PO Price EBAN-BPUEB) that is used to transfer the valuation price from the PR to the PO.
    The field's values are :
    0. Do not adopt
    1. As gross price
    2. As net price
    The default value is "Do not adopt".
    How can I change the default value to "As net price" ?
    I am looking for a user exit, because i need to do some condition check before i change this to "As net price".
    Pl suggest.
    Thanks

    Solved Myself.
    Solution:
    Exit : EXIT_SAPLMEREQ_005
    Include : ZXM02U05
    Code:
    FIELD-SYMBOLS: <IS_ACC> TYPE LINE OF MMPUR_ACCOUNTING_LIST.
    DATA : ACCOUNTING_LIST TYPE MMPUR_ACCOUNTING_LIST.
    DATA : RE_EXKN TYPE EXKN.
    DATA : L_AUART TYPE VBAK-AUART.
    DATA : L_PSTYV TYPE VBAP-PSTYV.
      CLEAR RE_EXKN.
      ACCOUNTING_LIST = IM_REQ_ITEM->IF_ACCT_CONTAINER_MM~GET_ITEMS( ).
      LOOP AT ACCOUNTING_LIST ASSIGNING <IS_ACC>.
        CALL METHOD <IS_ACC>-MODEL->GET_EXKN
        RECEIVING
        RE_EXKN = RE_EXKN.
      ENDLOOP.
      CLEAR : L_AUART, L_PSTYV.
      SELECT SINGLE AUART FROM VBAK INTO L_AUART
                             WHERE VBELN = RE_EXKN-VBELN.
      SELECT SINGLE PSTYV FROM VBAP INTO L_PSTYV
                             WHERE VBELN = RE_EXKN-VBELN
                               AND POSNR = RE_EXKN-VBELP.
      IF SY-TCODE = 'ME51N' AND L_AUART = 'ZMO' AND L_PSTYV = 'ZTAB'.
        LS_MEREQ_ITEM-BPUEB = '2'.  "AS NET PRICE - PO Price field
      ENDIF.
    Thanks,
    Senthil

  • User Exit for ME51N Transaction

    Hi folks,
         I have a requirement regarding ME51N Tocde. If the user enters the internal order number in ME51N, while creating Purchase Requisition, the corresponding cost center should be displayed in the cost center field by default. I have found one user exit which will be useful for this. I wrote the code and feteched the Cost Center value in the exit EXIT_SAPLMEREQ_005. But i dont field any paramet for sending the Cost center value here. Could any body suggest me how to proceed now...How can i display the cost center value, using this Exit....
                         Thanks in advance,
                          Shyam.

    Hi Shyam,
    You can find the user exit using the following method:
    1. Go to the TCode SE24 and enter CL_EXITHANDLER as object type.
    2. In 'Display' mode, go to 'Methods' tab.
    3. Double click the method 'Get Instance' to display it source code.
    4. Set a breakpoint on 'CALL METHOD cl_exithandler=>get_class_name_by_interface'.
    5. Then run your transaction ML81N.
    6. The screen will stop at this method.
    7. Check the value of parameter 'EXIT_NAME'. It will show you the BADI for that transaction.
    Hope this solves your query.
    Regards,
    Saumya

  • User Exit for me54n on purchase Requisition Release i.e EXIT_SAPLMEREQ_05

    HI   All Experts ,
                          I have one Requirement that  , i want to insert  data in Ztable  using all details from header data in me54n  on purchase release i.e When i will Click on Purchase release Requisition i want to insert records using few fields such as , matnr ,menge , item, quantity ,requisioner,plant storage locaton , date etc  . i am using user exit on this i.e smod EXIT_SAPLMEREQ_005 in mereq001  which is called when clicked on purchase requisition release , now how to collect that details  in this user exit .
    need some help regarding this .
    Thanks And Regards
    Deepak Dhamat

    Dear Peter ,
                   yes you are correct that ebeln is part of structure MEREQ_ITEM but  it is always empty .i want Purchase Requisition no i.e     PR. Manual           2000009940  which is present in me54n first line of screen  i.e above the header note .
    after looking at the property  of that field it show as given
      below
      Struct.          MEREQ_TOPLINE               
      Field name       BANFN_EXT                   
      Data element     BANFN                       
      DE supplement    0                           
      Parameter ID     BAN                                                                               
    Screen field     MEREQ_TOPLINE-BANFN_EXT     
      Program name     SAPLMEGUI                   
      Screen no.       0014

  • User Exit in PO & PR

    Hi all,
    I have a requirement where I have to populate the Material Group and purchasing group of the PO based on the user-selected General Ledger Account Number automatically .
         The change is required when:      
    The user has added or changed the General Ledger Account Number on a Purchase Requisition or a pruchase order Item in transaction ME51N or ME21N the material group and purchasing group has to be selected automatically.
    Can any body suggest a suitable exit where we can implement the required change.
    Regards,
    Anuj Kumar
    Message was edited by: Anuj Kumar

    Hi Anuj,
    There is a user-exit that enables you to change Purchase Requisition Data.  In transaction SMOD(SAP Enhancements), there is an enhancement"MEREQ001" which has a method that allows you to change data in SAP fields.  Use the exit "EXIT_SAPLMEREQ_005" for this purpose.
    To get the item data:
    CALL METHOD im_req_item->get_data
      RECEIVING
        re_data = item_data.
    To get the item data change indicators:
    CALL METHOD im_req_item->get_data
      RECEIVING
        re_data = item_datax.
    Change the desired fields in "ITEM_DATA" and set the corresponding update indicators in "ITEM_DATAX".
    To Set the item data
          CALL METHOD im_req_item->set_data
            EXPORTING
              im_data = item_data.
    To set the item change indicators
          CALL METHOD im_req_item->set_datax
            EXPORTING
              im_datax = item_datax.
    Hope this helps,
    Jerrod Baldauf

  • User Exit for ME51/ME52

    Hi everyone.
    I'm looking for a user exit for these transactions, specifically around requisition save.
    I've seen previous posts regarding MEREQ001, but I can only seem to get it to work with ME51N/ME52N, which we have not turned on for the users.
    Thanks.
    Heather

    Heather,
    I think you have to find an exit witch is executed on the correct momment witch you have to develop your solution.
    So, what momment are you trying to intercept on the transaction ? in the save momment, etc... so, try to put a break-point in each to find it.
    I know these for requisition:
    EXIT_SAPLMEREQ_001
    EXIT_SAPLMEREQ_002
    EXIT_SAPLMEREQ_003
    EXIT_SAPLMEREQ_004
    EXIT_SAPLMEREQ_005
    EXIT_SAPLMEREQ_006
    EXIT_SAPLMEREQ_007
    EXIT_SAPLMEREQ_008
    EXIT_SAPLMEREQ_009
    EXIT_SAPLMEREQ_010
    good luck.
    Glauco

  • User Exit for ME52N with Purchase Requisition number & line item number

    Does anyone know which user exit I could use to get at the purchase requisition number and line item number when I am trying to change a PR.  I see various exits with im_req_item but when I code a popup in the include it is not appearing.  I am just not finding the right exit.

    You can use enhancement MEREQ001, function exit EXIT_SAPLMEREQ_005. This enhancement description gives impression that it can only be used if you have custom fields but it can be used even when you don't have custom fields.

  • User-exit for problem req cretaion

    Good morning!!
    i want to pass some data from project to a purchase requisition, does anybody know a user-exit in purchase requistion creation?,
    Thanks in advance

    hai,
         ya you can do it by using the enhancement componet MEREQ001, in that select function module EXIT_SAPLMEREQ_005 can be used for urchase requisition creation, change also.

  • User exit ZXPADU02 - evaluating SY-UCOMM

    Hello everyone,
    I am trying to display an error message whenever someone tries to create a new work schedule rule (P0007-SCHKZ) in infotype 7. However, the error message should just come up when the user is trying to save his data.
    I am using user exit ZXPADU02 for this purpose. My problem is that SY-UCOMM does not seem to hold reliable data in this user exit, and SSCRFIELDS does not seem to be supported at all.
    My code looks like this (only the relevant code snippet in ZXPADU02):
    CASE INNNN-INFTY.
            WHEN '0007'.
          CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
            EXPORTING PRELP = INNNN
            IMPORTING PNNNN = P0007.
          CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
            EXPORTING PRELP = PSAVE
            IMPORTING PNNNN = P0007_ALT.
          IF P0007_ALT-SCHKZ <> P0007-SCHKZ
          AND IPSYST-MASSN IS INITIAL " do not warn within an info group of a personnel action
          AND SY-UCOMM = 'UPD'. " only warn when saving the data -> problem here <-
            MESSAGE 'Do not change IT7 directly or else.' TYPE 'I' DISPLAY LIKE 'E'.
            SHOW_DATA_AGAIN = 'X'.
          ENDIF.
    At first glance, the above works nicely.  But this is what happens when I test more thoroughly:
    I create a new period in IT 7, enter a P0007-SCHKZ other than the one that was previously valid, press F11. Some warnings appear (for different reasons), which I dismiss using the Enter key. Afterwards, the above code fires, the error message is being displayed, and I am thrown back into the data screen. So far, so good.
    Now I simply alter the value in the field "Weekly hours" (P0007-WOSTD) and press Enter (!). Again a series of warnings appear, including one that a dataset is going to be deleted (seeing that an IT 7-period with just the same date range already exists). I confirm that with Enter, and the data is being saved. The above code does not fire because I have only pressed Enter - but the data is being saved anyway!
    Looks like a pretty erroneous behavior on the side of the SAP system. The question is whether I have a chance to do something about it in the code.

    Mihir Nagar wrote:
    Dear Petersen,
    Your IF condition seems ok. I doubt on the message statement. Can you replace your message statement with type E.
    MESSAGE 'Do not change IT7 directly or else.' TYPE 'E'.
          ENDIF.
    Hope this works.
    Regards,
    Mihir.
    I did not expect this to work, because normally you use type 'E'-messages only in certain PAI-environments, but it does the job, thank you!
    make use of  field IOPER of the structure  PSYST to check on the infotype actions INS, MOD, COP, DEL...
    In this particular case I did not care, so I did not check that. IT 7 should only be maintained through personnel actions in our case.
    Next you can check with sy-ucomm field the different between "enter" and "save". With "save" sy-ucomm will be 'UPD'.
    That is what I did, but as I described, there was a situation when SY-UCOMM is SPACE, but the system saved anyway due to a prior save attempt.

  • Using a variable not in the Export,Import, table Parameters in USER EXIT

    Hi all,
       During the Invoice Creation, I need to add an entry in the VBFS table, so that it will be displayed in the system log.  In the FM 'RV_INVOICE_CREATE', the structure corresponding to it is XVBFS.  There is a user-exit   CALL CUSTOMER-FUNCTION '002', in this FM 'RV_INVOICE_CREATE'.  But the import, export or Table Parameters does not have XVBFS.
      How can I use XVBFS inside the User exit?..
    Please help.
    Regards,
    Asha

    Hi,
    I dont know whether this will help u...
    write this in user exit...to access variables/tables of main program..
    FIELD-SYMBOLS: <komv>.
    ASSIGN ('(SAPLMEPO)TKOMV[]') TO <komv>.
    where.. SAPLMEPO is the main program...and TKOMV[] is a internal table in SAPLMEPO.
    regards
    Sukriti....

  • How to find out the user exit is implemented

    Hi All,
    Kindly let me know the process to be followed to find out the User exit is implemented in SAP system.
    I have seen many senriors suggestions for some treads to check if there is any Exit is implemented in the process when the system is behaving differently rather standard.
    Is it the only way with help of ABAP'er we can find out or the functional consultant also can find out through some procedure?
    I tied in google for this doubt, but i could not get the relavant answer.Pleaea execuse me if this already answered.
    Thanks,

    Hi Krishna/TW,
    Thank you for your immediate replies. Sorry i think i have not explained correctly my requirment.
    Let me explain my requirement once again.Let us say Comapny has implemented one Exit in the project, now i want to find out what exactly the Exit was implemented.
    Example: In STO process user is able to increase the  qty in delivery. As per the client requriement system should not allow.
    This is not possible in standard to control even after maintainig  check over delivery field in 0VLP.
    For this comapny has already implemented one enahnceament.
    User Exit : USER EXIT_READ_DOCUMENT
    Program: MV50AFZ1
    like this when any one joined in the project we do not know what are all the Exits are implemented in the SAP system where we are working.
    So if i want to find out if there is any Exit or enhancement implemented, what is the process to find out?
    I hope now  am clear with my requirement.
    Thanks in advance.

Maybe you are looking for