Purchse Requisation ME51N - BADI

Hello,
Am looking to change the value of Requisationer of Purchase Requisation (EBAN-AFNAM), in the process of Purchase requisation creation/change process (ME51N, ME52N)..so, i did not see any user-exit/enhancement spot in the main prog., i mean, SAP has not provided these exits!! so, whren I searched SDN, i found these links (Re: Purchase Requisition BADI/User Exit, Re: how to do a screen enhancement using BADI?), so, am looking BADI ME_PROCESS_REQ_CUST...and kept the break points...now, am creating/changing purchse req. by ME51N, ME52N...but any one of the break-point is NOT getting triggering!! so, pls. let me know, What is the correct way of finding out the invoking behaviour of a BADI against a given functionality/requirement.
thank you

1) Goto se24 (Display class cl_exithandler)
2) Double click on the method GET_INSTANCE.
3) Put a break point at Line no.25 (CASE sy-subrc).
4) Execute SAP standard transaction
5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.
6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.
7) This way you will find all the BADIs called on click of any button in any transaction
can also use function SXV_GET_CLIF_BY_NAME

Similar Messages

  • Direct Ship orders - Purchse Requisation ME51N - AFS - Third Party orders

    Hello,
    There is a user exit EXIT_SAPLJ3AM_003 which exist in 4.6C version of SAP for AFS.
    This user exit is for Third Party order processes. This is called within the include LJ3AMFD1 of the main program SAPLJ3AM.
    But this User exit is missing in ECC version of SAP for AFS.
    Basically when the Dierct ship Sales Order is created, corresponding PR is created for it and using this User exit certain fields in this corresponding Purchase Requisition is filled from Sales Order but this user exit is missing in ECC system.
    Could anyone please let me know how SAP handles the Third party Orders in ECC AFS system?
    Thanks,

    changed the requirement

  • How to attch a  word document to Purchase requisation ME51N

    Hi
    I am facing a problem to attach a drawing document or word document  to the transaction ME51N how I can attach a document  for purchase requisation, when I tried to click attch document in item overview sub menu bar . one pop up screen is coming in that it is asking Document type and document part and version , where i can do the customising  attach the document .
    can any body help me to get the solution .
    Thanks in advance
    Srinivas .Rangi

    Hi,
    Do you need the document to be visible outside of ME52?
    You can attach a document to a requisitions by clciking on the icon underneath the OK code field (on the line that says "Change Purchase req.......).
    It is an Icon that is often overlooked.
    Click on it and then click on the "create" Icon.
    the problem with this isthat the attachment will only be to that requisitions in that transaction, it will not be carried forward to the PO.
    If you want attachments that stay with the document throughout the process then this is available in ECC6 but not in 4.6 or earlier (not sure about 4.7, I don't think it works there either)
    Steve B

  • Purchase Requistion (ME51N) : BADI ME_REQ_POSTED

    Hi,
            I have used ME_REQ_POSTED-post(Method) Badi to check custom consistency in ME51N. If there is any error the badi throws the Message and returns to t-code : using leave to transaction  sy-tcode which is working fine, but the problem is that even the creation of the PR is manually stopped the PR number is generated and not saved(say: 8000012). Next time when I am creating a new PR with the same consisentcy check and if it gets through a new  number is generated with (say 8000013) but not with (8000012).If this case araises there will be problem with number range allocation each and every time they get exhausted?
    Kindly post the solution if any one has ever faced.....
    Thanks in advance for the help.
    with regards,
    krishna Mukthineni.

    Hello Krishna
    Most likely you are not using the correct BAdI. As the name implies (ME_REQ_POSTED) we have passed the last checkpoints already. The method IF_EX_ME_REQ_POSTED~POSTED is not intended to block the posting since it does not contain any exceptions.
    I assume that BAdI ME_PROCESS_REQ_CUST is the one you should implement. Its interface method CHECK ( Closing Check ) allows you to block saving the purchase requisition. If you set its CHANGING parameter CH_FAILED = 'X' then saving should not be possible.
    Regards
      Uwe

  • ME51N badi's

    Dear Experts,
    My requirement is to validate me51n purhcase requsition, if the account assignment category is 'F' and i have to validate it with G/L account with particular acount number, kindly suggest how to proceed.
    Regards,
    Thiru

    METHOD if_ex_me_process_po_cust~process_item.
    *Data declarations
      DATA: item TYPE mepoitem,
          : lv_sakto TYPE sakto.
      item = im_item->get_data( ).
      IF item-knttp = 'F'.
        lv_sakto = item-sakto.
        IF lv_sakto NE '0045310100'.
          CLEAR : sy-ucomm.
          MESSAGE 'Please enter G/L account number as 45310100' TYPE 'E'.
        ENDIF.
      ELSEIF   item-knttp = 'K'.
        lv_sakto = item-sakto.
        IF lv_sakto EQ '0045310100'.
          CLEAR : sy-ucomm.
          MESSAGE 'Please enter G/L Account number other than 45310100' TYPE 'E'.
        ENDIF.
      ENDIF.
    *Clear Variables
      CLEAR : lv_sakto.
    ENDMETHOD.

  • Adding a new tab in the header level of me51n

    Hi gurus
        I want to add a new tab in the header level of purchase requisation (me51n/me52n) , where i want to add some new customer fileds and i will update those in a z table.
    how can i do it . please give the complete code if possible .
    thnks in advance.
    regards
    amarendra

    you can try the enhancement MM06E005, based on the Document category you can show the fields on the screen.

  • Where I hv to SAVE the ERROR file, got in RETURN table of BAPI for ME51N?

    Hi Experts,
    Pls. clarify one of my simple doubt that, the functional owner have been asked to create a ERROR file(has given name as PR_ERROR_FILE), for the encountered errors, while uploading the data from flat file into Data Base for Purchase requisation-ME51N tx.
    So, am thinking to upload by using a BAPI_PR_CREATE.
    1) So, I can catch the ERRORS in RETURN table, then , pls. let me  now that, Where I hv to SAVE/Create this ERROR file-PR_ERROR_FILE? Is it C drive?
    2) Is I hv to SAVE as a Flat file format?
    (the functional guy, is not availble)
    Functinal guy words are,
    For any errors that occur, those should be written out to an error file so that users can review and correct.
    The error file should be name PR_ERRORS_FILE
    thanq

    No this will be save in the aplication server only...on the given path so any one can read it and rectify the error.

  • Flow btwn Purchse Info, Pur Requi, PO, Sales Order?

    Hi Experts,
    Would like to know breifly the flow between Purchse Requisation, Pur Order, Pur Info, Sales Order process.
    by their names, I understood a bit, but confusing, mainly at at Purchase Info.
    thanq

    Hi Srinivas,
    Please check this link
    SD Flow
    http://www.sap-basis-abap.com/sd/sap-sd-processing-flow.htm
    MM and SD Flow
    http://www.allinterview.com/showanswers/677.html
    http://www.erpgenie.com/abap/tables_sd.htm
    MM Flow
    MM process flow
    PP Flow
    http://www.sap-img.com/sap-pp.htm
    Best regards,
    raam

  • Why am getting this ME083 error in BATCH JOB, where as ONLINE not getting?

    Hi Experts,
    Am creating Purchse Requisation by using BAPI ---> BAPI_PR_CREATE.
    If I run ONLINE, Purchse Requisations are creating in EBAN table, with out any erorr messages, fine.
    If the same prog. is scheduled as BATCH JOB in production, the Purchse Requisations are creating, fine, but, there is a ERROR MESSAGE in JOB LOG, saying that " ENTER PLANT " of M essage ID& # is  "ME 083 "
    So, let me know that,
    1 - Why am not getting this error message, If I run it ONLINE?
    2 - Even though there r error message in JOB LOG (as I mentione din the above), Why the Purc. requisations are creating?
    3 - How to track that, from Where this error is coming in BATCH JOB, How to debug the BATCH JOB, after its scheduling?
    4 - How to fix it?

    It is not uncommon for informational/warning messages to appear when a BAPI is run in batch.
    Such messages do not prevent the completion of a job, but may provide information about the status of processing.
    When you run the job online the message may just flash briefly on the bottom of the screen, and you might not even notice it.
    I get similar messages when I run other BAPIs, where the message is logged but the process continues to run.
    To address the question of the message itself, if you look at the code underlying the BAPI, for example, include L2105I01, which contains the methods, you can see the place where the message is issued.
    The message is issued if field PR_TYPE in the header structure is initial.
    This is fairly easy to find just by examining the source behind the BAPI and the methods that it uses.
    You can navigate to include L2105I01 just by clicking on Method process in BAPI_PR_CREATE, just as you can with any other navigable object in ABAP.
    You should see this in BAPI_PR_CREATE around line 108.
    CALL METHOD l_ref_bapi->process( ).
    Double click on process.
    Method renumbering is then called by Method process if the actyp = hin (a constant meaning add/create which is set in BAPI_PR_CREATE), and if ITEM_INTVL (Item number interval) is not initial.
    Double click on Method renumbering.
    Method renumbering then checks if field PR_TYPE is initial, and if it is, then the message 083 that you are getting will be issued.  You will also see that the message is issued as a warning only, which is why the document is still created.
    You can drill down through the code by double clicking, as usual with navigation.
    I found this initially by clicking method set_header, which brought up the include with the method code.  I then searched for 083, which is the message id.  I then backtracked to find out what the path to Method renumbering was.
    Always do a little digging in the source, the message has to come from somewhere.  If the first search does not get a hit, try the next one until you exhaust the possibilities.  I chose set_header, since it appeared to be specific to the function of the BAPI, and something like that will usually be the best place to start.  In this case, it took me right to it.
    Brian

  • Converting Purchase requisition to Shedule agreement shecule lines

    Dear All gurus,
    can we convert already available purchase requisition to Shedule agreement shedule lines by any means of MRP run or so.
    Regards,
    Vimlesh

    problame is that this purchase requisition i am creating through production order release and for external processing which is not haveing any material number
    so that why all these purchse requision with acc assingment with F and items cate as L , I need to convert to shedule lines in sheduleing agreement which already exist.
    so i can not maintain the source list for the same.
    Pl suggest
    Vimlesh

  • Regarding third party sales

    Hi friends
    Regarding third party sales order as per my knowledge
    Me21n is for creating purchase order
    Migo is for goods receipt from vendor
    Miro is for incoming invoice from vendor
    My question is
    wht r for these t-codes
    Me57
    me51n
    Plz reply me
    thanks in advance

    Dear Venkata,
    ME57 - Assign & Process Purchase Requisation
    ME51N - Create Purchase Requisitions.
    By adopting Purchase Requisations you can create Purchase Orders...
    But in case of THird Party Sales, Purchase Requisition would be automatically created as soon you save Sales Order. Subsequently you can create Purchase order based on Purchase requisition...
    Hope this helps...
    Reward if useful...
    Thanks,
    Jignesh Mehta
    98700 10230
    Edited by: Jignesh Mehta on Jul 18, 2008 3:18 PM

  • Problem to find Exit Name for me52n

    Dear all,
                 Recently i've facing a problem for finding the exact Exit Point for transaction ME52N.Can anyone please help me for finding this?
    regards,
    sameek.

    Hi, read http://www.surfingincognito.com/index.php?q=aHR0cDovL2ZvcnVtcy5zZG4uc2FwLmNvbS9tZXNzYWdlLmpzcGE%2FbWVzc2FnZUlEPTQ0OTU5MDE%3D   You can use inside of methods additional metods-GET_ items, GET_DATA. Please ask from your abaper, he'd know how to use it
    Also check this ME51N / BADI ME_PROCESS_REQ_CUST
    Edited by: alex ice on May 7, 2011 12:47 PM

  • ME51n Problem--BADI name required

    Hi ,
       I have attached 2 fields (check boxes) in ME51n tcode with the help of sreen exit . Now my requirement is to get the value of these z-fields (entered through the ME51n ) when i will be creating the Purchase Order in respect to the Purchase Requisition (ME51n).
      Please provide any exit or BADI name to resolve this problem .

    with BADI: ME_GUI_PO_CUST
    1. you can put ur custom fields(the fields which are created in ME51N) on ME21N screen.
    2. using some method of the badi, you can pull the values from requisation tables.
    3. these values can be desplayed on ME21N/22N/23N
    Reddy

  • Badi  for ME51N Item changes

    Hi ,
      Is there any Badi or user exit to make changes to the line item data in the purchase requisition create/change ME51N or ME52N transactions. We would want to populate few fields automatically on the item data, so would request if any of you have worked on any Badi for this transaction, please do post in immediately.
    Thanks,
    Sowmya

    Hi,
    1)BADI to be implemented: ME_PROCESS_REQ_CUST.
    Method to be used: PROCESS_ITEM.
    Place the below code in your implementation.
    data : l_item type MEREQ_ITEM.
    CALL METHOD im_item->get_data
    receiving
    re_data = l_item.
    *C-- L_ITEM-BEDNR is requirement tracking number
    2)Exit in ME51N
    MEREQ001 Customers' Own Data in Purchase Requisition
    You can implemet by this way
    You add your customer fields, which should be saved in the database, to
    the include CI_EBANDB (in table EBAN). You can also add customer fields
    that you want to use during the program run to the include CI_EBANMEM
    (in structure MEREQ_ITEM) These fields are not stored in database table
    EBAN.
    <b>Reward points</b>
    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

Maybe you are looking for

  • ATI Radeon Card with 2 DVI LCD Display

    At last, I made a big step forward by purchasing the new MP. I already have a 23" Apple Display and intend to buy another DVI display (non Apple). How do I connect both LCD screen to the ATI Radeon card? Do I need to purchase any adaptor?

  • Addition to stock in storage bin

    Hi, in the customizing LE-WM-Master data-Define Storage Type  I have defined for storage type 500 that addition to stock is not allowed, so all the bins created in this storage type are not going to allow addition to stock even though in materials ma

  • Converted document won't display in .doc or .docx

    I just purchased the Adobe conversion - when I convert my PDF to a .doc or .docx, when I try to open it, the display is a dot "."  So far I think it's useless.  Help!

  • How to set a reason for locked account throught source code with the API

    Hi all, I need to set the lock reason of an user account. When we lock a user account at identity management, the system shows us a text edit and keep that lock reason on the account data tab. I need to simulate that, anybody could help me with this?

  • Oracle Client 10 Unattended Installation

    Hello, using the unattended installation mode: steup -nowait -force -silent -responseFile c:\test.rsp the installation failes. the errorlog tells me that DepMode and TLDepmode is not defines in the answer file. The test.rsp was recorded by using the