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

Similar Messages

  • 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

  • BADI/User exit for Purchase Requisition from MRP

    I am looking for a BADI or any enhancement when a purchase requisition is created or modified from MRP .ie. MD50 transaction. Can anyone help ?
    THanks in advance.

    Hello Shareen
    Have you had a look at package <b>MD03 </b>(contains transaction MD50). It contains lots of BAdIs. Perhaps the following ones may be useful:
    MD_PLDORD_CHANGE (BAdI for Changing Planned Orders)
    MD_PURREQ_CHANGE (BADI for changing purchase requisitions)
    However, I should mention that I have not found anything when I checked the <i>Where-Used-List</i> for these BAdIs (on ECC 5.0).
    Regards
      Uwe

  • 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

  • Help needed for enhancement in Purchase requisition

    Hi all,
    Our client uses me59n to generate PO's automatically using purchase requisitions.
    Now, the requirement is ...
    If net Purchase value  is 0 in purchase requisition, then
    Free(UMSON) field in Purchase order shoud be "checked".
    lemme explain the steps a bit detail.
    1. lots of purchase requisitions will be created in me51n.
    2. Client will use me59n to generate PO's automatically, using Purchase requisitions.
    3. purchase orders will be created.
    3. Now, i am in search of a badi/user exit , which will
         if netPurchasevalue(gswrt) = 0
            (free)umson = X.
         endif.
    so , i need a enhancement, which links both fields(gswrt) from purReq & (umson) in PO. 
    please lemme know if anybody have experience on similar issues earlier.
    Regards.
    santosh.

    Hi,
    Try implementing the BADI -ME_PROCESS_PO_CUST ...the method "PROCESS_ITEM" can be used to do the check that you want...
    Thanks,
    Renjith

  • Purchase requisition document type change after Enhancement pack 4

    HI,
    we have recently upgraded to enhancement pack 4, after which i am not able to change purchase requisition document type.
    In change mode ME52N, the system is allowing to make change but when i goback and display the same PR again the change is not visible in change history also.
    I am able to make other changes. facing the problem with change in document type only.
    Regards,
    Raghu

    Hi,
    One thing please note that once you select the document type and draft the PR and save the PR, you will  get the doc number.
    Once you get the document number you cannot change the PR document type .
    The reason is document type is linked with number range so it cannot be changed because different seriers of document number is assined to differentdocument type. 
    And moreover document type is linked with the screen settings also. So I would request you to check the settings for each doc. type

  • Benefits of Purchase Requisition in Web Portal betw Enhancement Pkg 4 & 5

    Hi there!
    I am gathering inputs regarding implementation of the EP5 on having Purchase Requisition in the Web Portal.  I noted that it requiers NWBC version 7.02 but our current is in 7.01.
    I need relevant benefits should we need to move to NWBC 7.02 or higher... your inputs will be highly appreciated!
    thanks,
    M

    Hi Melih,
    Thanks for your response.  Can you help me further with the Purchase Requisition functional requirements/capabilities that EHP5 can offer?  I would appreciate if you can give me links... i've been searching the whole day but to no success.  I usually search for "Purchase Requisition in SAP EHP5" but nothing relevant comes up..
    hope you can help,
    M

  • Creation of Purchase Requisition with MRP - MD02

    Hello,
    I have created a sales order using one material with MRP. When I run MRP-transaction MD02 for this material, a purchase requisition is created.
    What we want is to block the creation of the purchase requisition when the sales order has delivery block (code 02). I have been trying to use this enhancements; setting break-points in all function modules, but when running MD02 is does not stop there:
    MEREQ001      Customers' Own Data in Purchase Requisi
    LMDR2001      User exits restr. profiles of opt. pur.ord.-based load bldg
    LMDZU001      User exits in additional planning                         
    M61X0001      User exits PP-MRP materials planning                      
    M61X0002      User Exits PP-MRP Material Requirements Planning Evaluation
    Do you know a way to do this or also change data in the purchase requisition created with MD02?
    Thanks and regards.

    Dear ,
    Are you very particualr to process the Sales Order demand when there is a delivery block ?
    To restrict that  one you can do the following steps :
    1.Goto Sales Order -VA02-Select the line item -Double Click -Select the Schedule line  tab -Set Sechedule line item categoery as CN instead of CP.If it is CP then it will processed through MRP
    2.Change the pricining date and make credit block for sales Order and do not release though VKM3 so it will not be tearted through MRP run  to have PR geneartion
    Hope this is clear
    regards
    JH

  • Purchase requisition with reference to blocked sales order

    Hello,
    we are creating purchase requisitions (PR) manually with reference to a sales order (account assignment Z). When this sales order is blocked, we still can issue the purchase requistion.
    What can we do to avoid this? I think in 2 solutions:
    - use enhancement MEREQ001 to show error message when SO is blocked, so PR is not created. Is this possible?
    - create a release strategy for PR created in that plant (tr. OME6). The problem is that release strategy refers to an amount in the PO, and not to other factor, like SO blocked. Maybe in the former enhancement we can set the field EBAN-GSFRG to 'X'?
    Thanks for your help.

    Many thanks for your answer. It help me to solve the issue.
    So applying note 738171, with transaction OVB5 (or VOFM, requirements->subsequent functions->Purch.requisitions) we create one new requirement, ie RV07A900, and then we apply the rule that if we have delivery or billing block, that is, VBAK-LIFSK or VBAK-FAKSK not empty, then we set an error with a code similar to this:
                da_sy-msgid = 'Z1'.    (message class)
                da_sy-msgno = '001'.  (message number)
                error_exception = true.
    and then the PR is not created.
    Regards.

  • User Exit/BADI for Purchase Order and Purchase Requisitions

    HI,
    I have a requireent where i have to check the the user does not enter both Subitems and Over a Limit for a Service Purchase Requisition.
    Is there a User Exit or Badi that i can use where this information is availaible.
    also i have to check that release strategy is assigned to every purchase order where the version has been completed.
    Is there a User Exit or Badi where Information of EREV table is availaible.
    Regards,
    Tarun Bahal

    For Purchachase requisition , the BADIs and USER EXITS are
    ME_COMMITMNT_PARKING BAdI for Redefining Commitment Interface When Parking
    ME_MEREQ_PARKING BAdI Purchase Requisition: "Hold"
    ME_REQ_HEADER_TEXT Copy Header Text: Enjoy Purchase Requisition
    try with the above BADI's
    MEREQ001 Customers' Own Data in Purchase Requisition
    for Purchase order , the BADIs and USER EXITS are
    ARC_MM_EKKO_CHECK BAdI: Enhancement of Archivability Check (MM_EKKO)
    ARC_MM_EKKO_WRITE BAdI: Enhancement of Scope of Archiving (MM_EKKO)
    EXTENSION_US_TAXES Extended Tax Calculation with Additional Data
    MEGUI_LAYOUT BAdI for Enjoy Purchasing GUI
    ME_ACTV_CANCEL_PO BAdI for Activating the Cancel Function at Header Level
    ME_BADI_DISPLAY_DOC BAdI for Internal Control of Transaction to be Invoked
    ME_BAPI_PO_CREATE_01
    ME_BAPI_PO_CREATE_02
    ME_BAPI_PR_CREATE_01
    ME_BAPI_PR_CREATE_02
    ME_BSART_DET Change document type for automatically generated POs
    ME_CCP_ACTIVE_CHECK BAdI to check whether CCP process is active
    ME_CCP_BESWK_AUTH_CH BAdI for authorization checks for procuring plant
    ME_CCP_DEL_DURATION Calc. of Delivery Duration in CCP Process (Not in Standard)
    ME_CHANGE_CHARACTER Customer-Specific Characteristics for Product Allocation
    ME_CHANGE_OUTTAB Enrich ALV Output Table in Purchasing
    ME_CHECK_ALL_ITEMS Run Through Items Again in the Event of Changes in EKKO
    ME_CHECK_OA Check BAdI for Contracts
    ME_CHECK_SOURCES Additional Checks in Source Determination/Checking
    ME_CIN_LEINRF2R BADI for CIN India - Delivery charges
    ME_CIN_LEINRF2V BADI for LEINRF03 excise_invoice_details
    ME_CIN_MM06EFKO Copy PO data for use by Country version India
    ME_CIP_ALLOW_CHANGE Configuration in Purchasing: Changeability Control
    ME_CIP_REF_CHAR Enables Reference Characteristics in Purchasing
    ME_COMMITMENT_RETURN Commitment for return item
    ME_COMMITMENT_STO_CH BadI for checking if commitments for STOs are active
    ME_COMMTMNT_PO_RELEV Check for Commitment-Relevance of Purchase Orders
    ME_COMMTMNT_PO_REL_C Check for Commitment-Relevance of Purchase Orders
    ME_COMMTMNT_REQ_RELE Check of Commitment Relevance of Purchase Requisitions
    ME_COMMTMNT_REQ_RE_C Check of Commitment Relevance of Purchase Requisitions
    ME_DEFINE_CALCTYPE Control of Pricing Type: Additional Fields
    ME_DP_CLEARING Clearing (Offsetting) of Down Payments and Payment Requests
    ME_FIELDSTATUS_STOCK FM Account Assignment Behavior for Stock PR/PO
    ME_GUI_PO_CUST Customer's Own Screens in Enjoy Purchase Order
    ME_HOLD_PO Hold Enjoy Purchase Orders: Activation/Deactivation
    ME_INFOREC_SEND Capture/Send Purchase Info Record Changes - Internal Use
    ME_PO_PRICING Enhancements to Price Determination: Internal
    ME_PO_PRICING_CUST Enhancements to Price Determination: Customer
    ME_PO_SC_SRV BAdI: Service Tab Page for Subcontracting
    ME_PROCESS_COMP Processing of Component Default Data at Time of GR: Customer
    ME_PROCESS_PO Enhancements for Processing Enjoy Purchase Order: Intern.
    ME_PROCESS_PO_CUST Enhancements for Processing Enjoy Purchase Order: Customer
    ME_PROCESS_REQ Enhancements for Processing Enjoy PReqs: Internal
    ME_PROCESS_REQ_CUST Enhancements for Processing Enjoy PReqs: Customer
    ME_PURCHDOC_POSTED Purchasing Document Posted
    ME_RELEASE_CREATE BAdI: Release Creation for Sched.Agrmts with Release Docu.
    ME_REQ_OI_EXT Commitment Update in the Case of External Requisitions
    ME_REQ_POSTED Purchase Requisition Posted
    ME_TAX_FROM_ADDRESS Tax jurisdiction code taken from address
    ME_TRF_RULE_CUST_OFF BADI for Deactivation of Field T161V-REVFE
    ME_TRIGGER_ATP Triggers New ATP for Changes in EKKO, EKPO, EKPV
    ME_WRF_STD_DNG PO Controlling Reminder: Extension to Standard Reminder
    MM_DELIVERY_ADDR_SAP Determination of Delivery Address
    MM_EDI_DESADV_IN Supplementation of Delivery Interface from Purchase Order
    SMOD_MRFLB001 Control Items for Contract Release Order
    AMPL0001  User subscreen for additional data on AMPL             
    LMEDR001  Enhancements to print program                          
    LMELA002  Adopt batch no. from shipping notification when posting
    LMELA010  Inbound shipping notification: Transfer item data from 
    LMEQR001  User exit for source determination                     
    LMEXF001  Conditions in Purchasing Documents Without Invoice Rece
    LWSUS001  Customer-Specific Source Determination in Retail       
    M06B0001  Role determination for purchase requisition release    
    M06B0002  Changes to comm. structure for purchase requisition rel
    M06B0003  Number range and document number                       
    M06B0004  Number range and document number                       
    M06B0005  Changes to comm. structure for overall release of requi
    M06E0004  Changes to communication structure for release purch. d
    M06E0005  Role determination for release of purchasing documents 
    ME590001  Grouping of requsitions for PO split in ME59           
    MEETA001  Define schedule line type (backlog, immed. req., previe
    MEFLD004  Determine earliest delivery date f. check w. GR (only P
    MELAB001  Gen. forecast delivery schedules: Transfer schedule imp
    MEQUERY1  Enhancement to Document Overview ME21N/ME51N           
    MEVME001  WE default quantity calc. and over/ underdelivery toler
    MM06E001  User exits for EDI inbound and outbound purchasing docu
    MM06E003  Number range and document number                       
    MM06E004  Control import data screens in purchase order          
    MM06E005  Customer fields in purchasing document                 
    MM06E007  Change document for requisitions upon conversion into P
    MM06E008  Monitoring of contr. target value in case of release or
    MM06E009  Relevant texts for "Texts exist" indicator             
    MM06E010  Field selection for vendor address                     
    MMAL0001  ALE source list distribution: Outbound processing      
    MMAL0002  ALE source list distribution: Inbound processing       
    MMAL0003  ALE purcasing info record distribution: Outbound proces
    MMAL0004  ALE purchasing info record distribution: Inbound proces
    MMDA0001  Default delivery addresses                             
    MMFAB001  User exit for generation of release order              
    MRFLB001
    Regards,
    Anirban

  • Purchase requisition- Mat. description problem.

    Hi Experts,
    I am stuck with one problem regarding Purchase requisition material description. The scenario is as follows.
    We have two types of PR creation. With or without material code.
    Material description is set to display only. But if the user enters the material code and random description and then press Enter button then the system doesnt pick the description from MAKT and keep the random description and disabling it for input. As shown in below screen shot.
    I want to restrict this, So I used the enhancement - MEREQ001 in CMOD and exit - EXIT_SAPLMEREQ_010  and INCLUDE ZXM02U12 , to compare the material description and change it to master data from table MAKT. But the problem here is the original PR data fetched in to the exit is not changing. I have written below code.
    +++++++++++++++++++++++++++++++++++++++++++++
    LOOP AT im_t_eban INTO l_s_eban.
    IF l_s_eban-matnr <> ''.
            SELECT SINGLE maktx FROM makt INTO mde
              WHERE matnr = l_s_eban-matnr.
              IF mde <> l_s_eban-txz01 .
                MESSAGE w007(zm_msg) . " DISPLAY LIKE 'E'.
                l_s_eban-txz01 = mde.
                  MODIFY im_t_eban FROM l_s_eban TRANSPORTING txz01. " THIS LINE IS GIVING SYNTAX ERROR THAT im_t_eban is not changeable
              ENDIF.
          ENDIF.
    ENDLOOP.
    ++++++++++++++++++++++++++++++++++++++
    So how to solve this problem??
    Or is there any other way to restrict the user to change the material description ??
    Thanks,
    Vishal .

    hello abaper,
    have a look on this
    Hi Gaurav, try this:
    http://scn.sap.com/thread/3297154
    FIELD-SYMBOLS: <T_EBAN> type mereq_t_eban.
    FIELD-SYMBOLS: <im_t_eban> type mereq_t_eban.
    DATA: wa_eban LIKE eban.
    ASSIGN ('(SAPLMEREQ)LT_EBAN[]') to  <T_EBAN> .   <-Uncommet this line
    LOOP AT <im_t_eban> INTO wa_eban.
    * => here you can change the value
       SELECT SINGLE matnr maktx into (mcode,mdesc)
             FROM makt
             WHERE matnr = wa_eban-matnr.
         if sy-subrc = 0 .
         move mdesc to wa_eban-txz01.
       MODIFY <T_EBAN> from wa_eban TRANSPORTING txz01.   <-Change the field-symbol for the one that is referencing the standard table
         ENDIF.
    ENDLOOP.

  • While creating Purchase Requisition we need to send a mail for approvers

    Hi All,
    While creating Purchase requisition we need to send a mail to approvers.
    Dowe  need to create Function module ?
    if You know the steps can you please give me the steps.
    Thanks In advance
    Sriman.

    Hi Sriman
    Here we can try for 2 approach
    one is workflow and other his sending emails via user exit.
    I am not much aware about workflow, but you can explore for user exit.
    Try for enhancement component 'MEREQ001'.
    let me know, if you need further help
    Regards
    MD

  • Change status Purchase Requisition

    Hi - I have to use the following enhancement to change the status of a purchase requisition depending on the valuation price.
    MEREQ001- EXIT_SAPLMEREQ_008.
    Is it posible to change here the field IM_EBAN_CHANGES-FRGKZ of any row??
    Any help would be greatly appreciated.
    Thanks in advance !

    I'm trying to use some methods to change EBAN-FRGKZ but the following code doesn't work fine as it's said in some post.
    Does anyone knows why it s not working?
    DATA: i_items TYPE mmpur_requisition_items.
      DATA: wa_item LIKE LINE OF i_items,
            lv_if_item TYPE REF TO if_purchase_requisition_item,
            lt_itm_data TYPE mereq_item,
            lx_itm_data TYPE mereq_itemx.
      CALL METHOD im_req_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.
        lx_itm_data-frgkz = 'X'.
        lt_itm_data-frgkz = 'Z'.
        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.
    Regards

  • Activate new tab in Purchase requisition

    Hello Folks,
    I am trying add a new tab in purchase requisition on Screen exit MEREQ001. Can anybody tell me where I should go in SPRO and activate my tab?
    Thanks in advance and reward point will be given.
    ZC

    Hi,
    You cannot activate new tab through SPRO.
    You have to goto CMOD > give some project name say <CREATE>, Give some description and press SAVE > select Enhancement assignment > give Enhancement "MEREQ001" and press SAVE .
    Select Components, double click on Screen exit, it will prompt you to create screen 111. Then add required fields in screen.
    Further you will need ABAPer.

  • Service Limits in Purchase Requisitions: Where to Insert Custom Code?

    The issue is related to finding a place in SAP logic where a BADI, or, an
    enhancement can be implemented when inside transaction ME52N for a
    Service Limits type Purchase Requisition where K is the Account
    Assignment and B is the Item Category for a Service Limit Purchase
    requisition. Especially. or initially, at the point of navigation when
    going from (within the Limit Tab) and selecting the Account Assignment
    Icon to the right.
    By finding a good place to insert custom code in between these two tabs
    during navigation I am referring to (1)the actuality of the transaction
    breaking into this location, and,(2)a place where the global fields can
    be read and changed ie. GL Account Number, Material Group, etc.
    I have read, and reviewed several SAP Notes: 496082, 627072 and 551863.
    Failed Attempts:
    1)I have tried finding BADIs via breakpoints inside of
    CL_EXITHANDLER~GET_INSTANCE. None that are found are used and are not ofany help.
    2)I have attempted to use various user exits within the following SMODs,to name a few:
    MEREQ001 |Customers' Own Data in Purchase Requisition
    SAPLF0PR |Requests: Account Determination and Checks
    SAPMF02H |Function exit: G/L account master data
    V45E0002 |Data transfer in procurement elements (PRreq., assembly)
    WDFE0001 |Customer-Specific Determination of Requirements Data
    COZF0001 |Change purchase req. for externally processed operation
    COZF0002 |Change purchase req. for externally procured component
    3)I have implemented various custom enhancements inside of SAP Main
    Program SAPLMEREQ inside include LMEREQF09, and a few other LMEREQFXX.
    4) We previously used BADI 'ME_PROCESS_REQ_CUST' to satisfy a similar
    requirement, but is of no help for this request.
    Thank-You,

    Custom tags are different than udfs.  Let's stick with udfs.  Your location choices are:
    1.  If only one template is going to use it, you can put it in that template.  Otherwise,
    2. You can put it in a .cfm file and cfinclude that file whenever you want to call the function, or
    3. You can put it into a .cfc.
    A little while back, someone ran some tests and posted the results on one of these forums.  The gist of it was that Option 2 would run faster than Option 3.

Maybe you are looking for