EXIT_SAPLMEREQ_001

In user exit EXIT_SAPLMEREQ_001, I write the following code:
CALL METHOD im_req_item->get_data
  RECEIVING
    re_data = item.
This only return the first item of PR, if I want to get all the items, how should I do?

It doesn't work, the parameter is a structure not a table.
Now I find a way to do this, but I think it's a little complicated.
Any easy way, please let me know, thanks.

Similar Messages

  • EXIT_SAPLMEREQ_003,006,008 FOR ME51N, ME52N,ME53N

    I have to add a custom  filed to EBAN table. Can anybody help me with the function exit_003,006,008 regarding code.
    Functional Design:
    Short description
    Please enter a new
    numeric field “Budget” (ZZ_BUDGET) on purchase requisition item level (EBAN) on
    writer Customer Data and on purchase
    order item level (EKPO) on writer Customer Data
    Please place it above field Project Name.
    Make sure that the description “Budget” is available in all languages.
    As an amount of money
    should be entered, please display field EBAN_WAERS in the Purchase requisition
    and EKPO_WAERS in the Purchase order behind the new Budget field and format the
    new field in the same way as NETPR (###.###,##).
    If somebody filled the budget field in the purchase requisition, it needs to be shown in the purchase order.

    In Include ''ZXM02TOP'.
      TABLES:ci_ebandb.
    In EXIT_SAPLMEREQ_001 ->    INCLUDE ZXM02U01
    DATA :  lw_preq    TYPE mereq_item,
          CALL METHOD IM_REQ_ITEM->GET_DATA
        RECEIVING
          RE_DATA = W_PREQ.
    * Here Populate the   ci_ebandb structure here with value from W_PREQ
    Example ci_ebandb-zzcustom_fld = W_PREQ-zzcustom_fld
    In Exit - EXIT_SAPLMEREQ_003 -> Include ZXM02U03
       DATA: w_preq TYPE mereq_item.
    * Assign value from ci_ebandb to W_PREQ
    Example W_PREQ-zzcustom_fld = ci_ebandb-zzcustom_fld.
       CALL METHOD im_req_item->set_data
          EXPORTING
            im_data = w_preq..
    EX_CHANGED =  'X'.
    Make sure your screen field should have the name with ci_ebandb.
    Additionally you can write PBO and PAI logic for screen 111..
    Let us know any further help.

  • 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

  • BADI USER/EXIT for inserting cust. data after the Pruch. Requsitio is SAVED

    Hi all,
    Is there any  BADI or USER EXIT available for the transaction ME51N to save
    some customer data fields in a separta Z table , after the data is saved from the
    Purcahse requistion .
    I  have used the customer exit MEREQ001 for additing the customer filelds with TABLE CONTROL.
    I am not able to save the data from the table control . Any suggestion on this will be apprecitated  .
    Best Regards

    Hi,
      You have  to use 'EXIT_SAPLMEREQ_003' to import data from screen to your tables and use 'EXIT_SAPLMEREQ_001' to send data to screen.use the below code like below:
    EXIT_SAPLMEREQ_001:
    tables : ci_ebandb.
    data : i_mereq_item type mereq_item.
    if im_req_item is initial.
    clear: ci_ebandb.
    else.
    i_mereq_item = im_req_item->get_data( ).
    move-corresponding i_mereq_item to ci_ebandb.
    endif.
    EXIT_SAPLMEREQ_003
    data : i_mereq_item type mereq_item.
    if not im_req_item is initial.
    i_mereq_item = im_req_item->get_data( ).
    move-corresponding ci_ebandb to i_mereq_item .
    call method im_req_item->set_data( i_mereq_item ).
    endif.
    Also set the flag EX_CHANGED = 'X' to transafer the changes to database
    Regards,
    Himanshu

  • When is EXIT_SAPLMEREQ_002 triggered?

    Hi all xperts,
    I've seen on [this page|http://sapass.metro.client.jp/UserExit/MEREQ001.htm] many interesting userexits that in my system (46C) can't get to trigger.
    One of these is EXIT_SAPLMEREQ_002. I've seen that the INCLUDE contained, ZXM02U02, is an empty report on the system I'm working on ... and it's also a LOCAL one ($TMP object). I simply added some lines of code just to put a breakpoint in it and check in the development system when the FM is triggered.
    Obviously I did activated the code (even if saved as local) and started a ME52N transaction. I can't get this FM to trigger (and similarly, EXIT_SAPLMEREQ_001 and EXIT_SAPLMEREQ_003) and I don't understand why; can anyone provide me hints/ suggestions about this strange behaviour? These exits should represent a way of connection between the standard report and the screen, so they should trigger every time PAI/PBO module is executed, or at least, I hope once the transaction starts.

    Hello Matteo,
    well, i know, a real programmer tries to solve everything in exits or own programs.
    But you could have a second look into customizing -transaction SPRO:
    under Materials Management-> Purchasing-> Purchase Requisition you'll find the point 'Define screen layout on document level'.
    EPSTP would be ' item category'  in 'basic data Item' where you could simply switch to display.
    Regards Wolfgang

  • Warining Message in ME21N/ME22N in SAP4.6B

    Hi all,
    I have given a warning message in a user exit(EXIT_SAPMM06E_013). This user exit is triggered on PO SAVE. In ME21, ME22 the warning message is being diaplyed as expected. But in ME21N, ME22N the warning message is not being displayed but is just being ignored. Could you please give the reason for this behavior and the solution to provide the warning message in ME21N, ME22N in SAP 4.6B.
    Thanks in advance.
    Amit

    Hello,
    Try using the component MEREQ001 in a project on CMOD.
    You have some exits there:
    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
    Try and see if any of them will work for your case
    Hope that will help.
    Mário Semedo

  • Customer field to purchase requisition

    Hello,
    I add the customer field at subscreen of purchase requisition ( at the data base table i add the relative field in ci_ebandb include ) by EXIT_SAPLMEREQ_001 and
    EXIT_SAPLMEREQ_002 and EXIT_SAPLMEREQ_003.
    I add the same customer field at subscreen of purchase order ( at the data base table i add the relative field in ci_ekpodb include ) by EXIT_SAPLMEREQ_016 and EXIT_SAPLMEREQ_017 and EXIT_SAPLMEREQ_018.
    The problem is: when i convert the purchase requisition in purchase order, the data into customer field of
    purchase requisition not are transfert in the customer field of purchase order.
    thanks for help,
    Roberto Baldassarre.

    correction **
    tks for your help,
    but i had just done it. I explain with detail my step:
    I add the customer field at subscreen of purchase requisition by
    EXIT_SAPLMEREQ_001 and EXIT_SAPLMEREQ_002 and EXIT_SAPLMEREQ_003 (at
    the data base table I add the relative field on ci_ebandb include).
    I add the same customer field at subscreen of purchase order by
    EXIT_SAPMM06E_016 and EXIT_SAPMM06E_017 and EXIT_SAPMM06E_018 (at
    the data base table i add the relative field on ci_ekpodb include).
    Step followed:
    1. add field at EBAN table by CI_EBANDB include
    2. add same field at EKPO table by CI_EKPODB include.
    3. write code at EXIT_SAPLMEREQ_001,EXIT_SAPLMEREQ_003 following
    document's help.
    4. write code at EXIT_SAPMM06E_016, EXIT_SAPMM06E_017 ,
    EXIT_SAPMM06E_018 following document's help.
    5. build dynpro 0111 on function group XM02
    6. build dynpro 0111 on function group XM06
    The problem is: when i convert the purchase requisition in purchase
    order (ME59n), the data into customer fields of purchase requisition
    not are copied in the customer fields of purchase order (this field are
    empty).
    Tks for your help!

  • How to read data from a function exit

    Hi friends,
    I have a requirement, where in i am creating a screen exit for ME51N.I am using MEREQ001 enhancement for this.It is working fine, but i am to get data in to this so as to write any code.For that i am using the function exit EXIT_SAPLMEREQ_001 in that same enhancement(thought of doing export and import).
    But the data is declared in this way..
    REFERENCE(IM_REQ_ITEM) TYPE REF TO IF_PURCHASE_REQUISITION_ITEM
    so now it is having a method GET_DATA in which i have all the parameters required.
    can anyone please tell me how to read this data...
    Regards,
    Thoufique.

    thats ok friends..i got the solution.
    Regards,
    Thoufique

  • Purchase requisition saved with out any warning or error

    Dear Group Members
    User created the Purchase requisition with different item number of purchase requisition      
    Example:
    Item: generally it starts from 10, 20, 30 u2026..
    My user copied the details from other PR using Control C & pasted in the new PR by using Control V item like 270, 280, 290u2026..
    Purchase requisition was saved
    Can we configure the system in such a way that user should not save PR & system showing the error/warning message to make the item number in serial like 10, 20, 30, 40
    Regrds
    Shamulheq

    Hi Shamulheq,
    We have the same issue but with PO numbering and we opted by training the user.  As Jurgen mentioned in customizing you define the interval for numbering however that does not guarantee that will be correct.
    For instance in our case, the user creates the PO using as reference a PR, the Purchasing Requisition documement type is ZXX, after that the user changes the PO type from ZXX to YXX, our numbering for ZXX is 10, but for YXX is 1, then the PO is created with items like 10, 20, 30... instead of 1, 2, 3, which is a real problem since we use EDI and the item number is comunicated to other systems, but still the best idea is to train the user.
    I am not sure if there is a user exit you could use in case you want the system to validate. You can ask your developer.
    EXIT_SAPLMEREQ_001
    EXIT_SAPLMEREQ_010
    Thanks,

  • Adding up a Custom Field Approver in Purchase Requisition

    Hi,
      Could anyone please let me know how to addup a custom field Approver to Purchase Requistion.
       Requesting you to list down the User enhancements that are available for PR Lineitems screen.
       The transaction used is ME51N.
    Regards,
    Ganga

    Hi,
    You can try this enhancement: MEREQ001
    The exits are:
    1)EXIT_SAPLMEREQ_001:-include name is ZXM02U01.
    2)EXIT_SAPLMEREQ_002:-include name is ZXM02U02.
    3)EXIT_SAPLMEREQ_003:-include name is ZXM02U03.
    4)EXIT_SAPLMEREQ_004:-include name is ZXM02U04.
    5)EXIT_SAPLMEREQ_005:-include name is ZXM02U05.
    6)EXIT_SAPLMEREQ_006:-include name is ZXM02U06.
    7)EXIT_SAPLMEREQ_007:-include name is ZXM02U07.
    8)EXIT_SAPLMEREQ_008:-include name is ZXM02U08.
    9)EXIT_SAPLMEREQ_009:-include name is ZXM02U09.
    10)EXIT_SAPLMEREQ_010:-include name is ZXM02U12.
    Regards,
    Viji

  • Customer data in PR

    The user exit EXIT_SAPLMEREQ_001 and EXIT_SAPLMEREQ_003 are not triggered until we click the customer data tab.
    If we save the PR without click the customer data tab, the field in the customer data tab will not be got and saved, how can I avoid this situation?

    HI,
    Check for exit which will be called just before 'SAVE' & in that exit writet logic to check  whether Cusomar data is filled or nor & POP UP a message saying 'Fill Customar Dtaa Forst & then Save'.

  • Add column with preq number to ALV grid in me53n

    hi all,
    i am trying to add column with preq number (BANFN) to ALV with preq items in ME53N. it is not available in column set, when trying to add by "change layout" button - i dont understand why, when the strcucture MEREQ3211GRID contains it :-(
    i also tried to add new field ZZBANFN into the structure CI_EBANMEM and after that, i could add the new field to ALV through change layout, but it was empty of course. so i implemented EXIT_SAPLMEREQ_001 from MEREQ001, but ZZBANFN is still empty, because this exit is not called when opening ME53N, but when clicking on tab "customer data" in preq item detail.
    how to solve this? is there any exit that is called before displaying the ALV grid?

    Here is some more detail. I included my code from the Enhancement.
    ENHANCEMENT-POINT MM06EFPO_POT_AUFBAUEN_02 SPOTS ES_MM06EFPO_POT_AUFBAUEN INCLUDE BOUND.
       ENHANCEMENT 1  Z_MM06EFPO_POT_AUFBAUEN_1.    "active version
      SELECT SINGLE zz_old_material FROM mara
        INTO pot-zz_old_material
        WHERE matnr = pot-matnr.
    ENDENHANCEMENT.
    You will also need to change the layout in Item Overview to bring your field in.

  • Cusotm data tab In ME52n, copy release strategy tab details in custom tab

    I have created a custom data tab in Me52n using exit mereq001, and I need to get purchase requisition number, releasegroup, release code and release strategy values in the custom data tab screen in order to fulfill my requirement.
    I am using the screen exit and trying to code in the include (PBO), But in the include I am not able to get the required data as afore said.
    Can you please tell me the procedure for getting the global structure that I can use in the include to get these values?
    *Please give me the solution ASAP.

    HI,
    Use the fm  EXIT_SAPLMEREQ_001 and get the data ..............
    data : wa type mereq_item .
    call method im_req_item->get_data
      receiving
        re_data = wa
    the structure wa will contain the data .....
    Thanks,
    Shailaja Ainala.

  • Screen exit in ME51n

    hi all,
    my requirement is like this:-
    while creating a purchase requisition user want to see the data of last 2 purchase order of the material (last 2 purchase order price and their date).
    I have implemented enhancement MEREQ001, and written code in function module EXIT_SAPLMEREQ_001.
    There I have been able to display the data of last 2 purchase orders, but I am not being able to save these data in EBAN, where I have created fields in .include structure CI_EBANDB.
    My problem is I am not being able to save the data of last 2 purchase orders in these fields of EBAN.
    I have searched for solutions in SDN but could'nt find a proper solution.
    It will be very helpfull if you people give me a solution to save the data in EBAN.
    Thanks in advance.

    Hi,
    Implement this code in EXIT_SAPLMEREQ_003 exit.
    DATA: lv_req_item TYPE mereq_item.
    DATA: re_aktvt TYPE aktvt.
    CALL METHOD im_req_item->get_data
    RECEIVING re_data = lv_req_item.
    CALL METHOD im_req_item->get_activity
    RECEIVING re_aktvt = re_aktvt.
    CASE re_aktvt.
    * Display mode
    WHEN 'A'.
    * Change mode
    WHEN 'V'.
    lv_req_item-zz_budget = eban-zz_budget.           "<---- Your Feilds here
    lv_req_item-zz_budgetflag = eban-zz_budgetflag.   "<---- Your Feild here
    CALL METHOD im_req_item->set_data
    EXPORTING im_data = lv_req_item.
    ex_changed = 'X'.
    ENDCASE.

  • Userexit  MEREQ001 for ME53n

    I have added a field in  custom  include CI_EBANDB (in table EBAN). Then i have activated
    EXIT_SAPLMEREQ_001
    - EXIT_SAPLMEREQ_002
    - EXIT_SAPLMEREQ_003 have been activated
    I could save the data .But I cannot Change to display mode always the fied i have used is in change mode
    The interface if_purchase_requsition_item provides a method,
    GET_REQUISITION, that returns the purchase requisition header. Using
    method GET_TRANSACTION_STATE for interface if_purchase_requisition, you
    can determine the transaction type from field ex_document
    A display
    V change
    X create
    I wrote  the code in Pbeo of scustomer screen
    Data : gt_atyp as atyp.
    loop at screen .
    If gt_atyp  eq 'A'.
    screen-input = 0.
    else
    screen-input =1.
    Endif
    Endloop .
    Even then
    in debugging mode also there is no value for gt_atyp (transaction typee)
    Can you help where i should write the code to greyed in display mode .

    I guess code is wrong :
    loop at screen .
    If gt_atyp eq 'A'.
    screen-input = 0.
    screen-active = 0.
    else
    screen-input =1.
    screen-active = 1.
    Endif
    <b>modify screen.</b> " Add this code
    Endloop .
    even you can compare with sy-tcode like if sy-tcode = 'ME53N' then use your display logic.
    Thanks
    Seshu

Maybe you are looking for

  • Windows Vista Enterprise (Registered Editi

    I have the full version of Enterprise given to me and my fellow students at my college. I was wondering if I was getting a blue screen of death because the drivers were made for the beta versions of Vista? I have deleted my temp files and have tried

  • Error When using Element level link in Dataset Joins

    Hi All , I am joining two data sets using element level link ,I am getting the following Error message ORA-00972: identifier is too long at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462) at oracle.jdbc.driver.T4CTTIoer.processError(T4C

  • Flat rate prices on iTunes Music Store

    Apple, please pass this along to the greedy record publishers.... If you IDIOT publishers raise the price of music on the iTMS past $.99 to $1.24... MANY will find ALTERNATIVE means of getting their music. Period. End of Story. --- Rob

  • How to download ios 5 to itouch

    how do you download the IOS 5 to your itouch?

  • Ipad as a work tool

    Hi. I use a lot my palm lifedrive on my work and i want to change it for the ipad because ipad y biger and i can put it in waterproof case and work under rain and have almost the same concept than lifedrive. My questions are: ¿What kind of software i