Read Items in Purchase requisition User exit in ME52n

Hi,
I'm trying to read the items of a PR from the UserExit  EXIT_SAPLEBND_001 (I want to read the screen in ME52N).
Can anybody tell me how to do this ?
Thanks

Hi, Ramesh.
I'm using the I_CEBAN structure in order to modify some characteristic in the release strategy, by item, but in that step (into the exit saplebnd_001), I need to access to the rest of the items to complete the necessary process for my application.
I can't find out the entire items table.
The CEBAN comunication structure, only include  the current item.
I'd appreciate any ideas.
Thank you, very much.
Alejandro

Similar Messages

  • Purchase requisition, user-exit before save

    Hi,
    my need is very simple, when i save my purchase requisition i need to access in modification to items (standard fields) of my document.
    I'm looking for a few days on SDN or Google but without success, the question has often been discussed but the answers are not accurate or some people say "try this or this" but it doesn't work.
    There was an answer to use the Badi ME_PROCESS_REQ_CUST, but all these methods do not suit me. Some people proposes to use the method PROCESS_ITEM or POST. For the first i need to work with global items not line by line and in the method POST i do not have access to lines.
    So can you help me ?
    Cheers.

    >
    Vinod Kumar wrote:
    > Explore the options available in badi ME_PROCESS_REQ_CUST (check methods CHECK & POST).  In both these methods, importing parameter IM_HEADER (type ref to IF_PURCHASE_REQUISITION) can be used to extract all PR related data. See interface method IF_PURCHASE_REQUISITION->GET_ITEMS for item level information.
    >
    > I would suggest you to search for available Wiki pages/ forum posts to get more information.
    Hi Vinod,
    thanks for your reply.
    I found this wiki http://wiki.sdn.sap.com/wiki/display/ABAP/AccessingtheInacessible-LocalClasseswithinGlobalClasses
    I need some help, i would like in method POST change items data (standard), i don't have some success.
    My code :
    METHOD if_ex_me_process_req_cust~post.
      DATA: l_item_list TYPE mmpur_requisition_items,
          l_item      TYPE mmpur_requisition_item,
          l_item_akt  TYPE mereq_item,
          l_item_ref  TYPE REF TO if_purchase_requisition_item,
          lo_obj      TYPE REF TO object,  " root object
          ld_attr     TYPE string.
      FIELD-SYMBOLS:
        <lo_lcl>        TYPE ANY,
        <ls_item>       TYPE mereq_item,
        <ls_itemx>      TYPE mereq_itemx,
        <item>          TYPE mmpur_requisition_item.
      " Get items of purchase requisition
      l_item_list = im_header->get_items( ).
      LOOP AT l_item_list ASSIGNING <item>.
        l_item_akt = <item>-item->get_data( ).
        l_item_ref = <item>-item.   " TYPE REF TO if_purchase_requisition_item
        l_item_akt-afnam = sy-uname.
        <item>-item->set_data( l_item_akt ).
      ENDLOOP.
      l_item_list = im_header->get_items( ).
    ENDMETHOD.

  • Purchase requisition User Exit/BADI

    I am creating a Purchase Requisition using MRP. (Transaction MD50). I am looking for an user exit or BADI which allows me to change Purchase Requisition line item before the Purchase requisition is saved.
    Thanks in Advance.

    Hi,
    Here there are 2 User Exits that may be usefull
    LMDR2001            User exits restr. profiles of opt. pur.ord.-based load bldg    
    LMDZU001            User exits in additional planning                              
    Rgds
    FC

  • Text item in Purchase requisition

    Hi guys,
    my problem is this:I have a text on an item in a Purchase Requisition.By the transaction ME52N I change the material code on that item and that text desappears-->my question is this:is it possible to mantain the original text even if I change the material code?
    I have checked the OSS note 448814 and I have tried to seek for in the FAQ of the forum but I have not found anything of useful for me.
    Do you have any idea?I promise 10 points for a resolutive answer,thanks in advance.
    Best regards
    Maximilian

    Hi
    Please check the copying rule:
    SPRO/Materials Mgmt/Purchasing/PR/Texts for PR.
    In the copying rule, you may use the field "Fix" if you want to fix the text.
    Hope this helps.
    Thanks
    Prashanth

  • New items to purchase requisitions

    Hi all,
    I want to add new items to purchase requisitions, which bapi or function can I use?
    I tried BAPI_PR_CHANGE and BAPI_REQUISITION_CHANGE, but these functions didn't work for new items..
    Thanks..

    Hi,
    You can use FM ME_UPDATE_REQUISITION for updating the purchase requisitions.
    You have to pass XPREXT-KZ = 'U' as import paramter along PR number as import paramter.
    Rest data can be passed to corresponding tables.
    Hope this solves your query.
    Regards,
    Brajvir

  • 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 ME51N/ME52N/ME53N  when save purchase requisition

    Hi,
    I want to validate purchase requisition  data for release startegy. If there is no value for release startegy .Then ME51N/ME52N/ME53N populate a custom message before saving.
    I have found the Enhancement MEREQ001.Can anyone help me to find the exit because there are 10 user exit for this enhancment.
    Thanks in advance,
    Harinder

    Hi,
    Follow the following steps to find the EXIT
    1. Open transaction SE24.
    2. Now open the object CL_EXITHANDLER in display mode.
    3. Go to the method tab and double click on the method GET_INSTANCE.
    4. Put a break point on cl_exithandler=>get_class_name_by_interface.
    5. Now execute the transaction you want to find EXIT for, it will take you to the above method.
    6. Write EXIT_HANDLER in fieldnames and hit enter, it will tell you the EXIT used for your transaction.
    7. Hit F8 and it will tell you all the EXITu2019s for your transaction.
    Now put break points in each user exit and check which one gets triggered for your transaction.
    Regards,
    Manish

  • Purchase Order User Exit (ME21N)

    Hello experts,
    I have a request to enhance SAP for authorization when a user creates a PO (ME21N)that all of the line items have the same purchasing group as the what is in the header, or it cannot be created.
    Anybody have any idea what exit this would be in?
    Thanks.

    Hi Tom,
    Here are the user exits available for ME21N.
    AMPL0001 User subscreen for additional data on AMPL
    LMEDR001 Enhancements to print program
    LMELA002 Adopt batch no. from shipping notification when posting a GR
    LMELA010 Inbound shipping notification: Transfer item data from IDOC
    LMEQR001 User exit for source determination
    LMEXF001 Conditions in Purchasing Documents Without Invoice Receipt
    LWSUS001 Customer-Specific Source Determination in Retail
    M06B0001 Role determination for purchase requisition release
    M06B0002 Changes to comm. structure for purchase requisition release
    M06B0003 Number range and document number
    M06B0004 Number range and document number
    M06B0005 Changes to comm. structure for overall release of requisn.
    M06E0004 Changes to communication structure for release purch. doc.
    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., preview)
    MEFLD004 Determine earliest delivery date f. check w. GR (only PO)
    MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.
    MEQUERY1 Enhancement to Document Overview ME21N/ME51N
    MEVME001 WE default quantity calc. and over/ underdelivery tolerance
    MM06E001 User exits for EDI inbound and outbound purchasing documents
    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 PO
    MM06E008 Monitoring of contr. target value in case of release orders
    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 processing
    MMAL0004 ALE purchasing info record distribution: Inbound processing
    MMDA0001 Default delivery addresses
    MMFAB001 User exit for generation of release order
    MRFLB001 Control Items for Contract Release Order
    For your case, please check <b>MM06E005</b> or you can try BADI <b>ME_PROCESS_PO_CUST</b>.
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • How to Restrict one more line item in Purchase Requisition

    Dear SAP MM Guru's
    My business Requirement is to Restrict one more line item to create in Purchase Requisition,
    Using T code : ME51N  i have  created a PR with 10 (TEN) Line item's on 20 June '14 ,
    Using T Code : ME52N  on 23 June '14 my business demands to add one more line item 11th  with different material code in Purchase Requisition .
    Now Sourcing Team is demanding  is once Purchase Requisition is created Don't allow to create one more Extra line item in same PR .
    Through an Error : " One More Line Item is not possible to ADD "
    Can i use below BAPI :
    1) BAPI_PR_CHANGE
    2) BAPI_REQUISITION_CHANGE
    Please do the Needful
    Thanks & Best Regards
    Kumar

    Hi,
    Change Screen layout for PR.
    For ME52N make Material number and Material description/short text fields to 'Only display'. By this user cannot enter new material code or direct material description to add new item.
    In this scenario check :
    1. Create new with reference to another PR by adopting details.
    2. Check with Change push button behavior within ME52N and ME53N transactions available.
    3. Consider remove ME52N authorizations from users (& Change Push button also from ME53N).

  • Reqmt qty of variable size item in purchase requisition

    Hello All
    I am having a FG "A" & components "B" & "C" out of these two components "B" is variable size item with Base UOM as M, I have given two sizes of "B" as 3M & 2M in the BOM., i.e. material "B" is added two times as a component with variable size item.
    For 1SQM of A"  require 3M & 2M of "B" & 1KG of "C". When am having a reqmt of 10SQM of "A" the sys calculates the dependent reqmt correctly as 30M, 20M of "B" & 10KG of "C", but the purchase requisition of "B" is coming as of 50M.
    My problem here is that how the user would come to know how many qty of "B" is reqd of 3M &  2M length.
    Please throw some light on this behavior of the system. Looking forward to your valuable inputs & guidance.
    Regards,
    J K Tharwani

    jitendra,
    as i post in my earlier reply ,
    there is one work around which will work for you is that , use lead time offset ( with positive + or negative quantity of day ) in component detail screen for one of the position of B in the BOM so in that case you will have 2 different purchase requisition for B.
    Check it out and revert back , i am sure it will work for you.
    Only problem is the date will be delayed by one day or prepone by one day for the second position where B is assigned.
    other wise there for getting this information in PO , you need to go for Z development.
    for it you need to keep a check on specific plant , what are the purchase requisition that have material which are being used as variabble size item category in BOM and for this material you need to Pull values from Variable size field of Item, details screen.
    ROM1 and ROM2 and publish it in text of PR and PO.
    Check and revert back.
    Regards
    Ritesh

  • Purchase order : user-exit to fill new field in table EBAN

    Hi,
    in EBAN table i created a new field named ZTYPE_SITE. Now i would like to fill this field when i save my purchase requisition. I don't found the user-exit or BADI to do that.
    Thanks for help.
    Cheers.

    up

  • Create Purchase Order : User Exit

    Hi,
    When creating a Purchase Order, before saving it, I want to check the line items for certain conditions and want to check or uncheck the Goods Receipt indicator based on the condition.
    Could someone please let me know the user exit for this. I would really appreciate your help.
    Thank You,
    Rekha

    Here is a program which shows you user exits by transaction code.  Implement the program, run it, and enter the transaction code, hit F8.  This will give you a listing of exits.  Look thru them, look at the function modules tied to them and look at the FM signature to see if your data is available.  I don't know for sure if any will actually update a value.
    report z_find_user_exit no standard page heading.
    tables: tstc, tadir, modsapt, modact,
            trdir, tfdir, enlfdir, tstct.
    data : jtab like tadir occurs 0 with header line.
    data : hotspot(30).
    parameters : p_tcode like tstc-tcode obligatory.
    at line-selection.
      get cursor field hotspot.
      check hotspot(4) eq 'JTAB'.
      set parameter id 'MON' field sy-lisel+1(10).
      call transaction 'SMOD' and skip first screen.
    start-of-selection.
      perform get_data.
      perform write_list.
    *       FORM get_data                                                 *
    form get_data.
      select single * from tstc
                  where tcode eq p_tcode.
      check sy-subrc eq 0.
      select single * from tadir
                where pgmid = 'R3TR'
                  and object = 'PROG'
                  and obj_name = tstc-pgmna.
      if sy-subrc ne 0.
        select single * from trdir
                 where name = tstc-pgmna.
        if trdir-subc eq 'F'.
          select single * from tfdir
                         where pname = tstc-pgmna.
          select single * from enlfdir
                         where funcname = tfdir-funcname.
          select single * from tadir
                         where pgmid = 'R3TR'
                           and object = 'FUGR'
                           and obj_name eq enlfdir-area.
        endif.
      endif.
      select * from tadir into table jtab
                 where pgmid = 'R3TR'
                   and object = 'SMOD'
                   and devclass = tadir-devclass.
      select single * from tstct
              where sprsl eq sy-langu
                and tcode eq p_tcode.
    endform.
    *       FORM write_list                                               *
    form write_list.
      format color col_positive intensified off.
      write:/(19) 'Transaction Code - ',
      20(20) p_tcode,
      45(50) tstct-ttext.
      skip.
      if not jtab[] is initial.
        write:/(95) sy-uline.
        format color col_heading intensified on.
        write:/1 sy-vline,
        2 'Exit Name',
        21 sy-vline ,
        22 'Description',
        95 sy-vline.
        write:/(95) sy-uline.
        loop at jtab.
          select single * from modsapt
          where sprsl = sy-langu and
          name = jtab-obj_name.
          format color col_normal intensified off.
          write:/1 sy-vline,
          2 jtab-obj_name hotspot on,
          21 sy-vline ,
          22 modsapt-modtext,
          95 sy-vline.
        endloop.
        write:/(95) sy-uline.
        describe table jtab.
        skip.
        format color col_total intensified on.
        write:/ 'No of Exits:' , sy-tfill.
      else.
        format color col_negative intensified on.
        write:/(95) 'No User Exit exists'.
      endif.
    endform.
    Regards,
    Rich Heilman

  • Regarding Purchase order User-exit

    Hello friends,
    Here is the situation.
    when we create purchase order ... I need to modify the planned delivery field value under delivery tab at item level.
    For this I found user exit. 'EXIT_SAPMM06E_016' and I have written the logic in the include program.
    when I tested in debbugmode... the cursor is not at all comming to that point. It was failing always at the function module 'MODX_FUNCTION_ACTIVE_CHECK'.
    I don't know alwys active field showing blank. I think we need to activate the user exit some where. how to do and where to do?
    plese help me ..
    extract the code --from include program MM06EF0C_CUSTSCR1_ITEM_SET_D03
    User-Exit für Positionsfelder versorgen (PBO)
    FORM custscr1_item_set_data_pbo USING im_no_screen LIKE fc_call.
      DATA: l_enj_call TYPE c.
      STATICS: first_call(1) TYPE c VALUE 'X',
               active        LIKE sy-calld.
      IF NOT first_call IS INITIAL.
        CLEAR first_call.
        CALL FUNCTION 'MODX_FUNCTION_ACTIVE_CHECK'
          EXPORTING
            cprogname  = 'SAPMM06E'
            funcnumber = '016'
          IMPORTING
            active     = active
          EXCEPTIONS
            not_found  = 1
            OTHERS     = 2.
        IF NOT sy-subrc IS INITIAL.
          CLEAR active.
        ENDIF.
      ENDIF.
      CHECK NOT active IS INITIAL.         ==========================> always active sowing blank
      IF fc_vorga EQ cva_en.
        l_enj_call = 'X'.
      ELSE.
        l_enj_call = space.
      ENDIF.
    *-Define Fields:
      DATA: l_ci_ekpo LIKE ekpo_ci,
            lt_usr_tekpo LIKE bekpo OCCURS 0,
            lt_usr_teket LIKE beket OCCURS 0,
            lt_usr_tekkn LIKE ekknu OCCURS 0,
            lt_usr_tkomv LIKE tkomv OCCURS 0.
    *-Copy Tables:
      MOVE-CORRESPONDING ekpo TO l_ci_ekpo.
      lt_usr_tekpo[] = pot[].
      lt_usr_teket[] = ett[].
      lt_usr_tekkn[] = knt[].
      lt_usr_tkomv[] = tkomv[].
    *-User Exit
      CALL FUNCTION 'EXIT_SAPMM06E_016'
        EXPORTING
          i_ekpo      = ekpo
    ===============
    thanks in advance
    Regards
    Raghu

    Hi Raghunath
    I hope you have included your enhancement in a project and activated the project.
    1-Needed help
    2-SMOD and CMOD
    Hope it is helpful.
    Regards
    Neha

  • One line item in po from multiple line items of Purchase Requisition

    Can we merge multiple line items for same item from different different purchase requisition into a single line item in Purchase Order ?
    For example, say department A and B made two different purchase requisition for 1 number of computer system. Now the purchaser viewed these requisitions and he want to make a purchase order to party X for 2 no of computer system. Now how he can do this in Oracle Purchasing.
    Regards
    Edited by: Saroj.Dash on May 31, 2010 6:02 AM

    Hi !
    thanx to all for your responses.
    But, let me explain better.
    Say Dept A raises an Requisition (Req No: 1 ) for 5 Chairs. In the same time Dept. B raises requisition (req no: 2 ) for 10 chairs.
    Now Purchase Dept. wants to make an PO to procure chair with respective to these 2 requisitions i.e. req no 1 from dept A and req no 2 from Dept B.
    Now my query is that, can the purchase dept. prepare a PO with 1 line item only i.e. for chair (5+10) of 15 numbers from these requisitions of dept A and B ?
    If yes then how ?
    Regards

  • Purchase order user exit / BADI / Enhancement points

    Hello  experts,
    Please Help me to get the user exit or any way to enhance the PO functionality. I am trying to set the PO line item status to "Blocked" or "Unblocked" whenever a change is triggered in PO line item for transactions Me21N / Me22N. The blocked status will be triggered by the custom enhancement, this is the requirement.
    Thanks in advance for your help.
    I tried the user exit MM06E005, but not working.
    - Nagarajan

    Hello  Nagarajan Ramudu,
    inside of MM06E005 you should try the function module EXIT_SAPMM06E_012,
    i'm using this user-exit from all things in my company.
    Regards,
    Welinton Rocha

Maybe you are looking for

  • Image source on network

    Hi, I can't use images which are not in the ressource folder ... And i need to access images from network, with a link like: \\Axpc2\doc\xx.jpg How can i do this ? Regards, Julien

  • Express VI - access to POP-UP front panel?

    Hi: Some of the express VI pop-up front panels have an excellent layout and would be similar to some of the front panels that I might have to create (see example for wavelet denoise in latest digital filter design toolkit).  Rather than having to rec

  • CCM - ability to search by Supplier Name characteristic

    Have implemented CCM 2.0 with SRM 5.0 (both at the latest support pack levels) and have two issues when searching for products: 1. I have to prefix and suffix search term words with an asterisk for the search to find products I am interested in. Eg.

  • Photoshop elements 9 screen flickers

    Hello, I have photoshop elements 9 on a desktop computer. Lately when working with photos, the window in editor shifts and jumps around. I have an intel i3 and 6gb ram I have a graphics cards (Nividia gt240). The photos that I work with have an avera

  • Disable Google Sync in 10.9

    Hi I was running with the google synchronization enabled on th "On My Mac" Account of Contacts. Now I have upgrade OS X to 10.9 and found that OS X now supports Google Account completely with Contacts Sync also. So I enabled that Account, but - anywa