Enhancement for  Me52n/Me51N

I want to update the storage location EBAN-LGORT  on a purchase requisition during create or change mode (Me51n/Me52n)  on SAVE of a purchase requisition for certains fixed vendors on item level.
Whats the best BADI/User Exit to do this ? I have tried a couple of BADI's and User Exits..
I thought I could use - EXIT_SAPLMEREQ_006 , since it triggers on save. But it doesn't seem to have any export/import/change structure. How can I access global EBAN tables so that I could modify their line items?
THanks in advance.

Try Using the BADI "ME_PROCESS_REQ_CUST".
The BADI exit allows modification of most PR fields.
A number of the parameters to each method are defined as "TYPE REF TO" ABAP objects, and if you drill down to these objects you see that they then have methods such as "GET_DATA" and "SET_DATA" to retrieve details and change them.
Use GET_DATA method and get the information and
Use SET_DATA method to change the same.
Le'me know if you need any more info.
Vinodh Balakrishnan

Similar Messages

  • PR (ME51n) enhancement for F4 help on Tracking no (BEDNR)

    Hi all,
    I need to do an enhancement on PR ME51n to incorporate F4 help on Tracking number (BEDNR) in the Item Table.
    I think i have to change the fieldcatalog for the ALV. I cannot figure out how to do that.
    Any help would be greatly appreciated.
    Thanks,
    Sukriti....

    Hi Sukriti,
       did u get any soltuion for the same if yes please do let me know because i also have the same requirement as yours.
    Thanks
    Amit

  • 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

  • BADI for ME52N

    Hi Friends,
    I have a requirement, where if some Users open the Purchase Requisition in Change Mode (ME52N), they should be able to change only Purcahsing Group and no other fields. ie., all the other fields except the Purchasing Group field should be greyed out. Could any one help me out in this?
    I have find out the BADI, ME_PROCESS_REQ_CUST and OPEN Method. But couldnt proceed further.
    Points will be rewarded.
    Thanks in advance.

    there is no badi for that .please find any implict enhancement for that in the program.

  • Looking for enhancement for the price control of purchasr oder

    Hi,
    I'm Looking for enhancement for the price control of purchasr oder
    I need to develop programs to control the price of purchase orders according to some special rules while purchase order is creating, so,
    can anybody tell me which enhancement is beeter to adopt?
    Thanks and best regards.

    hi
    following are there for purchase order...
    AMPL0001            User subscreen for additional data on AMPL
    LMEDR001            Enhancements to print program
    LMELA002            Adopt batch no. from shipping notification when posting a
    LMELA010            Inbound shipping notification: Transfer item data from IDO
    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 releas
    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 toleranc
    MM06E001            User exits for EDI inbound and outbound purchasing documen
    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 order
    MM06E009            Relevant texts for "Texts exist" indicator
    MM06E010            Field selection for vendor address
    MM06E011            Activate PReq Block
    MMAL0001            ALE source list distribution: Outbound processing
    MMAL0002            ALE source list distribution: Inbound processing
    MMAL0003            ALE purcasing info record distribution: Outbound processin
    MMAL0004            ALE purchasing info record distribution: Inbound processin
    MMDA0001            Default delivery addresses
    MMFAB001            User exit for generation of release order
    MRFLB001            Control Items for Contract Release Order
    No of Exits:         36
    to search for any enhancement you can use the following prog..
    report  zfinduserexit.
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
    tables : tstct.
    data : jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    parameters : p_tcode like tstc-tcode obligatory.
    select single * from tstc where tcode eq p_tcode.
    if sy-subrc eq 0.
    select single * from tadir where pgmid = 'R3TR'
    and object = 'PROG'
    and obj_name = tstc-pgmna.
    move : tadir-devclass to v_devclass.
    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.
    move : tadir-devclass to v_devclass.
    endif.
    endif.
    select * from tadir into table jtab
    where pgmid = 'R3TR'
    and object = 'SMOD'
    and devclass = v_devclass.
    select single * from tstct where sprsl eq sy-langu and
    tcode eq p_tcode.
    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.
    else.
    format color col_negative intensified on.
    write:/(95) 'Transaction Code Does Not Exist'.
    endif.
    at line-selection.
    get cursor field field1.
    check field1(4) eq 'JTAB'.
    set parameter id 'MON' field sy-lisel+1(10).
    execute the report and enter the transaction for which u want to find the enhancement and execute. it would show the available enhancements for that tcode.
    <b>Please do reward if useful</b>
    Regards
    Dinesh

  • Suggest EnhanceMent For SALES area determination In stock Transfer.

    Suggest EnhanceMent For SALES area determination In stock Transfer.
    V02V0001 Sales area determination for stock transport order Doesnt Work,

    Is user exit required, as the sales area will be different. Incase of Intra company stock transfer the process will be as under:
    Create Purchase Order (ME21N)
    Create Delivery in background (VL04, VL10a, VL10C, etc)
    Change Delivery for picking / packing & PGI (VL02n)
    Create Billing Document (VF01)
    Assumption: Stock Transfer configuration is in place. Assistance can be taken from SAP Best Practices in help.sap.com
    Incase of Inter-company, the process will be as under:
    Create Sales Order (VA01)
    Create Delivery (VL01N, etc)
    Change Delivery (VL02N)
    Create Billing Document (VF01)
    Assumption: Configuration is in place. Assistance can be taken from SAP Best Practices in help.sap.com
    Regards,
    Rajesh Banka

  • Badi / Exit / Enhancement for replacing INSMK during PO creation

    Hi Gurus,
    we want to default the INSMK field (stock type) during Purchase Order creation..
    Can someone help me findind the right BAdI / exit / enhancement for it?
    Thanks in advance,
    Regards,
    Alessio

    Hi Alessio,
    You may check these first:
    Re: Negative postings to MVER table
    Re: select stock type
    Thanks,
    Gordon

  • I need the drivers of EDR Enhanced for LabVIEW 8.6 or more, please.

    Hello, I want to acquire a signal with the microDAQ-Lite of EAGLE Technology and I need the EDR Enhanced LabView Driver. The one I have is for labview 6.x or 7. Currently I am working in Labview 2010 so I am needing the drivers for this version. I have found in a webpage (http://edr-enhanced-for-labview.software.informer.com/8.5/ ) that a version developed by National Instruments for version 8.5 exists, it says it is free, but i cant find it. Does anyone knows if a newer version exist? or where can I find the latest one?? Please help.
    Thanks in advance.
    Alejandra 

    NI does not develop drivers for third-party DAQ devices. Contact the vendor or use the driver you have. You can load version 6 and 7 into LabVIEW 2010.

  • Implicit enhancement for report painter reports(For GRR3 and CJE3)

    Hi,
    We have a client requirement to add 5 fields (In selection screen) to report painter reports ( Reports of CJE3 and GRR3 ).We created Z reports as a copy of standard reports, added required 5 fields by implementing SAP notes and other settings.We have also done implicit enhancement for all these reports to make change in the behaviour of new fields.This is working fine in the development client but the problem is once we transport this to other client new reports get generated( With new name ) and implicit enhancement will be lost.
    For eg:in development client for CJE1/CJE2 report the program name will be "GPAVPSATWFP4NN0YRDBIQBHI8MQ"
    but when we transport it to other client new program "GP8O1UCNZTJYY5LTO8GN0UW2GQB" is generated in which implicit enhancements are not found.
    Can you please suggest how to handle implicit enhancement in such cases? Or what is the correct way to transport it.
    Thanks in advance
    Regards,
    Shekhar

    Hi,
    Thanks for the quick reply..
    I have already done implicit enhancement as you said ,my problem is to transport it to another client.
    I have implemented implicit enhancement for one report lets say it as "ABC", and i transport it to another client with all the enhancement. But in another client new program "XYZ" is getting generated for same report( dynamic programs ), so my implicit enhancement is present but its applicable to "ABC" program but not for "XYZ".
    Can you please suggest how can i handle this??
    thanks in advance,
    Greeshma.
    Edited by: Accgreeshma on Jan 23, 2012 3:04 PM

  • Implicit enhancement for report painter (CJE2 & GRR3 reports)

    Hi,
    We have a client requirement to add 5 fields (In selection screen) to report painter reports ( Reports of CJE3 and GRR3 ).We created Z reports as a copy of standard reports, added required 5 fields by implementing SAP notes and other settings.We have also done implicit enhancement for all these reports to make change in the behaviour of new fields.This is working fine in the development client but the problem is once we transport this to other client new reports get generated( With new name ) and implicit enhancement will be lost.
    For eg:in development client for CJE1/CJE2 report the program name will be "GPAVPSATWFP4NN0YRDBIQBHI8MQ"
    but when we transport it to other client new program "GP8O1UCNZTJYY5LTO8GN0UW2GQB" is generated in which implicit enhancements are not found.
    Can you please suggest how to handle implicit enhancement in such cases? Or what is the correct way to transport it.
    Thanks in advance
    Greeshma.

    Hi,
    Thanks for the quick reply..
    I have already done implicit enhancement as you said ,my problem is to transport it to another client.
    I have implemented implicit enhancement for one report lets say it as "ABC", and i transport it to another client with all the enhancement. But in another client new program "XYZ" is getting generated for same report( dynamic programs ), so my implicit enhancement is present but its applicable to "ABC" program but not for "XYZ".
    Can you please suggest how can i handle this??
    thanks in advance,
    Greeshma.
    Edited by: Accgreeshma on Jan 23, 2012 3:04 PM

  • Enhancement for F110

    hi,
    Can u please specify the particular enhancement which triggers between payment proposal and payment run.
    Requirement:
    I need to capture the username who performs the payment proposal and check with the same whether the same user is running the payment run....
    Rgds.,
    subash

    FDTAX001  Enhancement to Transaction FDTA (event after the downlo
    FEDI0002  Function exits for EDI DOCS in FI - Incoming pyt adv.no
    FEDI0003  Function exits for EDI docs in FI - Save PEXR segments
    FEDI0004  Function exits for EDI docs in FI - particular events
    FEDI0006  Function Exits for EDI-docs in FI: Save IDCR Segments
    RFFOX003  Frame for user exit RFFOX003 (in program RFFOM100)
    RFFOX041  Framework for user exit RFFOX041 (in program RFFOBE_I)
    RFFOX042  Framework for user exit RFFOX042 (in program RFFOBE_E)
    RFFOX043  Framework for user exit RFFOX043 (in program RFFOBE_D)
    RFFOX061  Frame for user exit RFFOX061 (in program RFFOCH_P)
    RFFOX062  Frame for user exit RFFOX062 (in program RFFOCH_P)
    RFFOX063  Frame for user exit RFFOX063 (in program RFFOCH_P)
    RFFOX064  Frame for user exit RFFOX064 (in program RFFOCH_P)
    RFFOX065  Frame for user exit RFFOX065 (in program RFFOCH_P)
    RFFOX066  Frame for user exit RFFOX066 (in program RFFOCH_P)
    RFFOX071  Frame for user exit RFFOX071 (in program RFFOCH_U)
    RFFOX072  Frame for user exit RFFOX072 (in program RFFOCH_U)
    RFFOX073  Frame for user exit RFFOX073 (in program RFFOCH_U)
    RFFOX074  Frame for user exit RFFOX074 (in program RFFOCH_U)
    RFFOX075  Frame for user exit RFFOX075 (in program RFFOCH_U)
    RFFOX081  Frame for user exit RFFOX081 (in program RFFOF__T)
    RFFOX082  Frame for user exit RFFOX082 (in program RFFOF__T)
    RFFOX100  Frame for user exit RFFOX100 (in program RFFOUS_T)
    RFFOX101  Frame for user exit RFFOX101 (in program RFFOUS_T)
    RFFOX102  Frame for user exit RFFOX102 (in program RFFOUS_T)
    RFFOX103  Frame for user exit RFFOX103 (in program RFFOUS_T)
    RFFOX104  user exit
    RFFOX105  Frame for user exit RFFOX105 (in program RFFOUS_T)
    RFFOX200  Frame for user exit RFFOX200 (in program RFFONZ_T)
    RFFOX210  Frame for user exit RFFOX210 (in program RFFOAU_T)
    RFFOX211  Frame for user exit RFFOX211 (in program RFFONZ_T)
    RFFOX230  General program for user exit RFFOX230 (in program RFFO
    RFFOX240  Enhancement for User Exit 240 (RFFOAT_P)
    RFFOX250  Enhancement for User Exit 250 (RFFODK_E)
    RFFOX901  Framework for user exit RFFOX901 (in program RFFOM100)
    RFFOX902  Framework for user exit RFFOX902 (in program RFFOM100)

  • F-48- Downpayement related to downpayment request and enhancements for PO

    Hi to all,
    Is there anyone that can explain me why in F-48 transaction, when I make a downpayment related to downpayment request, in the subsequent screen the fields are filled with the value retrieve from previous screen ( in which I selected the downpayent request related to DP I'm posting) all fields except the purchase order field that remains NOT filled ("space" ). So it should be filled by the user. I was asked to find a substitution in order to make this field automatically filled with the correct value without the user needs to fill it manually . The problem is that purchase order field seems to be related to another field called LPN (Long Procuerement Number ). Anyone can suggest a suitable enhancement for substitution ?
    Thanks in advance...
    Andrew

    Thanks Tejas sir, AND VV sir,
    Sri Problem resolved.  But sir, we want while F-47 payment request special GL Indicator A in both case in F-48 too.. spl GL Indicator A only. while doing the same thing getting error.. see the error Below.
    Special G/L indicator A is not defined for down payments
    Message no. F5053
    Diagnosis
    The specified special G/L indicator is not classified as "down payment" or not listed in the list of the target special G/L indicators for indicator "F".
    System Response
    The entry is not accepted.
    Procedure
    Enter an allowed special G/L indicator or initiate a change of the default settings.
    Kindly help me sir.
    Thanks
    Pranav Kr. Gupta
    Note: i will give u the point. as well sir.

  • Question about "Enhanced for loop"

    public class NewLoopTest{
         public NewLoopTest(){
              int result=0;                      
              int[] a=new int[20];           
              for(int i=0;i<a.length;i++){
                   a=i++;
              for(int i:a){  
    System.out.println("i="+i+";"+"a["+i+"]="+a[i]+";result="+result+"+"+i+"="+(result+i));
                   result+=i;           
              System.out.println("-------------");
              result=0;
              for(int i=0;i<a.length;i++){
                   System.out.println("i="+i+";"+"a["+i+"]="+a[i]+";result="+result+"+"+i+"="+(result+i));
                   result+=i;
    This code counts sum of the elements of a array.
    At first I use the enhanced for loop and at second I use the traditional for.
    Enhanced for loop in sdk1.5 returns only even elements of array, am I right?

    Enhanced for loop in sdk1.5 returns only even
    elements of array, am I right?No. It covers them all.
    The i in the enhanced for loop is not the index. It's the element at the current index. You don't have access to the index in the new loop because you don't need it.
    for (int item : arr) {
        System.out.println(item);
    // is equivalent to
    for (int ix = 0; ix < arr.length; ix++) {
        int item = aa[ix];
        System.out.println(item);
    }The i in your new loop is the same as a [ i ] in the old loop.

  • Documentation Enhancer for Java

    Documentation Enhancer for Java is a tool that enhances Javadoc files by enriching them with new information. The information is gathered by statically analyzing the corresponding Java class files. This tool enhances the Javadoc HTMLs in three respects: semantic information, sorting, and navigability.
    http://www.alphaworks.ibm.com/tech/docenhancer?open&S_PKG=&S_TACT=103AMW61&S_CMP=GR&ca=dgr-awjw03docenhancer

    First of all, can you explain what do you exactly mean by "is there a java api for java?"
    About the second part of your question, if the desired file format is CSV, then you can use StringTokenizer class that by reading each line of your file, makes tokens based on some delimiter that you specify (space, tab, etc.) and then in each line, you have to concatenate each pair of tokens with a character ";" between them. However as I know, you cannot have text decoration (Bold, Italic, etc) with CSV format

  • Exit/BADI/Enhancement for Payroll driver

    Dear Friends,
    When we run transaction pc00_m10_calc for US payroll driver for an employee for a period,we can see the renumeration statement in the output screen.
    I need to modify the internal table xrt to add the similar wage types in one period before it passes to form , which exit / BADI enhancement should for this purpose.
    Pls. advice.
    Thanks..
    Regards,Prashant

    Hi,
        Please check the below.
    Enhancement
    HRUSRCU0                                Enhancement for Customer Exit for RPCTRCU0.
    Business Add-in
    PC10_PAY0001                            User exit for base_wages in a gross up calculation
    PC10_PAY0002                            Exit to determine if negative taxables should be allowed
    PC10_PAY0003                            Exit to determine if distribution calc should be allowed
    PC10_PAY0004                            Work Tax Area Override Add-In: Activation
    PC10_PAY0005                            Work Tax Area Override Add-In: Default proration of wages
    PC10_PAY0006                            User exit for additional ESS W4 (PZ10) fields; before output
    PC10_PAY0007                            User exit for PZ10 and IT0210 fields; after input
    PC10_PAY0008                            More than 99 exemptions for US payroll withholding tax calc
    Regards,
    Srini.

Maybe you are looking for

  • Problem in Character Mode Report (Urgent)

    Dear All i m designing a character mode report and when i preview it ,,, it will display different report font which is big in size and width so it is not fit in the designed columns can any one help me ,, y this problem is exist though i m using Dot

  • Soundbooth quit, but running in the background

    Has anyone ever quite Soundbooth, yet hours and even days later found that it is running in the background in windows? I have windows 7, with a dual core processor, and the last time I had soundbooth on was 18 or so hours ago, yet right now using the

  • Image map in adf

    Is there any adf or jsf component that produces same features as image map does in html

  • What if I have a wireless mode

    Hi just want to find out more on the airport extreme, how is this used, we have a Telstra wireless modem at home so do I need it ? I just brought a iMac today

  • Purchase Invoice Payment

    Dear all, One of my client have a scenario in purchase invoice payment #They are purchasing from the suppliers for 120 days payment terms. but they need to pay a certain % of interest on that( For Ex: 5 %). May be they make monthly payments and inter