EXIT_SAPLMEREQ_005

I can debug abap objects but I'm not good at programming it.
Can anyone show me how to change the contents of
REFERENCE(IM_REQ_ITEM) TYPE REF TO  IF_PURCHASE_REQUISITION_ITEM
in this user exit? I need to be able to change the item and itemx data.
Thanks in advance!

Hi,
Please try something like this.
DATA: LS_ITEM TYPE MEREQ_ITEM,
      LS_ITEMX TYPE MEREQ_ITEMX.
CALL METHOD IM_REQ_ITEM->GET_DATA
  RECEIVING
    RE_DATA = LS_ITEM.
CALL METHOD IM_REQ_ITEM->GET_DATAX
  RECEIVING
    RE_DATAX = LS_ITEMX.
* Do your modification to LS_ITEM and LS_ITEMX information.
CALL METHOD IM_REQ_ITEM->SET_DATA
  EXPORTING
    IM_DATA = LS_ITEM.
CALL METHOD IM_REQ_ITEM->SET_DATAX
  EXPORTING
    IM_DATAX = LS_ITEMX.
Regards,
Ferry Lianto

Similar Messages

  • EXIT_SAPLMEREQ_005 EBAN-FIPOS?

    I use EXIT_SAPLMEREQ_005 (4.6C version) for filling item`s field in ME51N 'Commitment Item' in tabstrip Account assignment.
    DATA item TYPE   MEREQ_ITEM.
    DATA itemx like  MEREQ_ITEMX.
      item = im_req_item->get_data( ).
      itemx = im_req_item->get_datax( ).
      itemx-fipos = 'X'.
      item-fipos = lv_fipos.
      call method im_req_item->SET_DATA
        EXPORTING
           im_data = item.
      call method im_req_item->set_datax
        EXPORTING
          im_datax = itemx.
    In structure MEREQ_ITEM_S_CUST_ALLOWED I create append-structure with field FIPOS.
    But it don`t working. Why? When I create new item, field is empty.

    HI
    goto se80..enter ME in the package..will return u various enhancements ..choose the relevant one!!

  • EXIT_SAPLMEREQ_005  for PR cmod

    is EXIT_SAPLMEREQ_005 the best place to change the standard field ekgrp (purchasing group ) or should i put it in other exit?

    HI
    goto se80..enter ME in the package..will return u various enhancements ..choose the relevant one!!

  • 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.

  • ME51N - EXIT_SAPLMEREQ_005

    Hello.
    I have problem with 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-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 similar problem?
    Lumir

    HI Lumir,
    Just debug the enhancements and check from where it is picking.
    Regards,
    Madhu.

  • Forced to go through the exit  EXIT_SAPLMEREQ_005

    Hi All,
    I modified the program of the standard SAPLMEGUI. I added a field Z into a dynpro and if change its content at a certain moment I want to force to pass through the exit EXIT_SAPLMEREQ_005, but as a field is not standard is not going through this exit when it changed.
    Do you know any way to pass for this exit ?
    Thanks.

    Hello
    Fair enough .  Sounds llike the program is checking for changed data before callin the exit. 
    One thing I would try( if you haven't already done so) would be to set a breakpoint in the exit.  Make  a change to the field you know triggers the exit and then look at the call stack to see if you can find where the program is checking for changed data.  Not much fun I know but you should eventually find it .
    Hope this helps a bit.
    Regards
    Greg Kern

  • Error message does not lead to the custom tab me51n

    Hi Experts,
    When I try to to create a PR in me51n and check, a popup with error messges appear when we pick one of the entry and select edit button that leads to the field of that concerned tab.I have a custom tab and cutom field the issue is error message is displayed to fill the custom field but when I check mark that error and select edit that does not take me to the custom tab where custom field exists please suggest I have tried lot of user exits but no use.
    appreciate your help......

    We added some error message checking using Function exit EXIT_SAPLMEREQ_005. How we can bring the screen to Customer Data Tab when there are any errors under the tab. And as long as the error is not fixed, the screen will stay on the tab?
    To eloborate my question - in ME51n/Me52n, the system gives a messages window/subscreen with errors or warnings upon clicking the check button or upon save. On the messages window/subscreen, we can select a particular message and edit will take action to the corresponding tab with the cursor on the field with the issue. I understand this is standard functionality.
    However I'm looking for a way to make this work for a mandatory field on the customer data tab i.e., when I select the error message pertaining to this mandatory field and choose edit, control should jump to the customer data tab with the cursor on the mandatory field.

  • BZTEK - Purchasing Processing Time to convert PR in PO

    Hi all,
    In SAP stanrdard, Purchasing Processing Time to convert PR in PO is maintainable in customizing at plant level.
    As anyone any advice of solution to implement when there is a business need to have this time depending on:
    - PO type
    - PO type / material
    Thank you,
    Laetitia

    Hello, Laëtitia,
    not in standard; but you can modify the field FRGDT "Purchase Requisition Release Date" through customer enhancement MEREQ001 "Customers' Own Data in Purchase Requisition" / function EXIT_SAPLMEREQ_005 "Checking Customer's Own Purchase Requisition Data" -- yep, it sounds strange that you can change some standard fields thou function called " "Checking Customer's Own Data", but that is how it works (see enhancement documentation for details).
    Of course, the PO type (or rather PREQ type) / Material Purchasing Processing Time will have to be stored in custom tables.
    Kind Regards
    TomT

  • Goods receipt check box

    Dear All,
    For one of my plant whenever i process PO against an MRP generated PR (account assignment F) the Goods receipt check box in the Delivery tab comes unchecked & user has to manually tick & then only can process the GR...I have already checked the Account assignment F in spro settings & there Goods Receipt check box is ticked.
    What can be the possible reason behind this & how to solve this?
    Regards,
    Indranil

    I006107 wrote:>
    > Hi Indranil,
    >
    > check the Customizing :
    > OLME > Define External Representation of Item Categories
    >
    > and also check if you implemented user exit EXIT_SAPLMEREQ_005, maybe this can influence the setting...
    >
    > Regards,
    > Mauro
    >
    > Edited by: Mauro Bianchi on Oct 19, 2010 4:26 PM
    In OLME against Standard the PO item linked is checked in Goods Receipt, Chgble in PO is checked GR Indicator firm & nothing is checked in GR valuation
    Now i am checking EXIT_SAPLMEREQ_005 is implemented & will revert if i get something in use
    Regards,
    Indranil

  • 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

  • Exit / BADI for ME51N / ME52N

    Hi experts,
    I have the following requirement:
    1. In transactions ME51N / ME52N, the long text field for the item (Item Text) must be made read-only if the PR is already approved / released (release strategy indicator = '2').
    2. The PR workflow approvers must recieve an e-mail if this text has been changed while the PR is still blocked / not fully approved (release strategy indicator = 'X').
    I'm guessing both can be achieved through BADI implementations (in this case, IF_EX_ME_REQ_POSTED~POSTED), but I've read a lot about various Exits in these transactions, and now I'm not sure if this is the right one. Can you help me?
    PS.: I'm not completely familiar with BADIs and Exits, so please bear with me on this.

    Thanks for the replies.
    The MM consultant is still looking for a way to grey out the text field within SPRO. It's not an easy requirement
    Regarding the text changes, I followed your advices and I'm now trying to implement my code within the exit EXIT_SAPLMEREQ_005 (it's triggered right after the user saves the document, so it makes sense). The problem now is that when this exit is called, the changes made to the item text are already committed, and I can't compare the new text with the old one.
    I also tried implementing ME_REQ_PROCESS_ITEM, but it doesn't seem to be called from ME52N.
    Isn't there a log for long text changes? It would be really easy to just read CDHDR / CDPOS and know if the text has been changed. Also, is this text the same text from material master? If it is, I guess it would be easier to log its changes, right?
    Will appreciate your input on this.
    Regards,
    Leo

  • Custom field in Purchase Requisition Release

    Hi all,
    I have create a popup with a custom field when the user releases first step of a Requisition Release, via ME54N.
    The system don't save my custom field, I have used this exit:
    EXIT_SAPLMEREQ_005 of the ampliament MEREQ001.
    my code:
       CALL SCREEN 999 STARTING starting at 5 10                 MOVE: eban-zzsubmi       TO ls_item-zzsubmi,
                eban-zzappunto     TO ls_item-zzappunto,
                zzautfor           TO ls_item-zzautfor,
                eban-zzattautor    TO ls_item-zzattautor,
                eban-zzdatattoauto TO ls_item-zzdatattoauto.
       CALL METHOD im_req_item->set_data( ls_item ).
    the ls_item, is ok, with my custom field, but seeing in debug this method, the system don't save my field.
    Maybe we don't have the permission of change custom field on EKKO during Release step?
    Thanks all.
    Reward for all.

    Hi ,
    Try with create new tab in PR item level, add field in custom tab example Final release Tab.
    Try to fetch data from EBAN table when final release happened ( based on status ) the date will update in this table. I hope this is helpful.
    Use user exit to create custom tab and custom field 
    enhancement MEREQ001 : check this enhancement.
    user exit EXIT_SAPLMEREQ_0*
    I hope it is helpful

  • 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.

  • Field Value in ME51N Transaction

    Hi Gurus.
    I need assign from EBAN table one value, to field value in Item 'Valuation'  (tabstrip vauation) in the data
    of the position.
    Is this possible ??
    Thank You for yours helps.

    HI
    Use user eixt EXIT_SAPLMEREQ_007 or EXIT_SAPLMEREQ_009 to get the value of valuation from eban and then use user exit EXIT_SAPLMEREQ_005 to populate new value in table IM_DATA_NEW.
    Regards
    Sachin

Maybe you are looking for

  • Airplay causing MacBook Pro to overheat

    When I AirPlay video from the MacBook Pro to the tv, it overheats (fan goes like mad and won't turn off) but if I watch the exact same video on the monitor, it is fine. Do I have a setting wrong here, or is there something that I can do to help with

  • 16 MB ZEN - Cannot browse media on player through ZEN Media Explo

    Hi all,?My ZEN was'nt giving me any problems for the two months I have it. However I now can't see my files that are stored on my half full player. When I click on music, photos, or videos in ZEN Media Explorer (5.70.5) it shows it as empty when I kn

  • Keep getting error when trying to use =related function in PowerPivot

    Greetings, I have created a relationship between two tables based on a common field in PowerPivot, and whenever I use the =related() function to try and bring data from a field in one table to a field in another table, I keep getting and error messag

  • Selection Variable on Report Heading

    Dear Friends, i have a report with four variables on selection screen. i would like to show one of variable on the heading of my report. regards, Malik

  • Please  help  it's  urgent

    Hi  all I  have  the  following  requirement after  the  output  is  displayed  with  ALV A status field will be found at the end of the row and will reflect the current status of the print documents.  After printing occurs, the screen should refresh