Userexit for controlling number of PO itmes

Hi Experts,
I got a below requirement.
While creating PO using ME21N, I should allow maximum 20 line items.
If the user enters 21st item, system should display "Maximum 20 entries allowed" message.
Could you pls let me know, what is the best userexit to achieve this,
And also let me know the approch.
thanks
kaki
Edited by: Kaki R on May 22, 2008 1:14 AM

Kaki,
Go to se18
Give the BADI name and hit display
Go to Implementation -> create (Under Menu)
Go to Process item method and write your code using the parameters/attributes of that method.
When you implement a BAdi an implementation class will be generated.
Rgds,
Naren

Similar Messages

  • CRM Web UI :- How to Control number of session of Web UI for a user

    Hello Experts,
    We do have very specific requirement which SAP doesn`t recommend in terms of multi-sessioning for a user.So we are little worried upon the challeges.Could you please share your ideas/Experience on following?
    1.How to Control number of Internet explorer session for the web UI (may be 2 or 3).?
      Though SAP doesn`t recommned more than one but our client requires 2 or more than that but we need to fix it either 
      2 or 3.
      So we are looking for specific setting for this.
    2.What are the challenges we need to face if we implement option 1?
    3.Specially in interaction record management
        a. Is there chance of loosing the data if agent has opened more than two session.
        b. In which session interaction record data will get stored,the one on which agent picked up the call or in the latest 
            one?
    Please let me know if I am not clear enough on any point.
    Thanks in advance,
    Shailendra Tolambiya

    Hi Shailendra,
    The following wiki page might be useful in this respect:
    http://wiki.sdn.sap.com/wiki/x/gxdKDQ
    Best Regards,
    Shiromani

  • Conclusion number for Control import book

    Hello experts,
    I have question regarding one data that is mandatory for Croatian foreign currency payment. That is the conclusion number for Control import book.
    My question is:  Is there any field in Purchase order that can be transferred to logistic invoice, and then to FI invoice so it can be seen in payment and we can fill that conclusion number in that field.
    Regards, Marina

    hi
    check with any order text field.

  • Maximum Number of Columns for Control Break on APEX Reports

    Hi
    I'm new to APEX. I just want to ask if the number of maximum columns for control break in Reports can be adjusted? I have noticed that it can only handle up to six columns for Control Break, I just want to know if it can have more than six columns.
    Thank you very much.

    Are you sure it's the number of columns? It may be one of the columns that is causing this problem.

  • Table control for equipment number in me51n

    There is a field for equipment number in me51n for entering a single value , i have to modify that screen by giving a table control so that multiple values can be entered . How do i do that ?

    any suggestions on this please

  • Control Number for billing

    Hi, I`m traing to put a control number to billing for Venezuela. I`m going to Cross aplication component, General application component, General application function, cross application document numbering, venezuela, Automatic Document numbering, Document Numbering. I had assigned Document class to document type, i put the ranges of number and I assigned the number to the businnes place. But when I do a new bill it doesn`t bring that number. Any body have any idea what´s wrong or where else should I put the control number. Thanks

    Check whether OSS  Note 1179168 - Venezuela Sales Ledger- Multiple issues (See long text) may help you.
    Regards,

  • USEREXIT for Outbound MATMAS

    Hi Guys,
    I am looking for  a  suitable userexit for Outbound matmas idoc.
    The requirement is once the idoc number has been generated with idoc status AFTER that only i need a userexit for my own .
    I am using BD10 transaction code to create the MATMAS idoc.
    Will appriciate your help..!
    Thanks,
    Biswajit.

    Hi,
    The flow is like this in BD10....
    CALL FUNCTION 'MASTERIDOC_CREATE_REQ_MATMAS'
       CALL FUNCTION 'MASTERIDOC_CREATE_MATMAS'
          CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'        " it return the control record with idoc no after execution
              CALL FUNCTION 'IDOC_CREATE_ON_DATABASE'    " it return the control record with idoc no after execution
                  CALL FUNCTION 'EDI_DOCUMENT_CLOSE_CREATE_TAB'     " it return the control record with idoc no after execution
                          PERFORM F09_IDOC_INSERT_WITH_NUMBER USING IDENTIFIER    " idoc no generates here in control record
                                                DOCNUM
                                                IDOC_CONTROL
                                                SYNTAX_RETURN
                                                FREE_RETURN
                                                SYN_ACTIVE.
    So i need a userexit / enhancement point after that with control record data.......

  • BADI or Userexit for ME2Xn for VERSION

    Hello,
    I want to know which is the BADI or USerexit for which in ME22n what ever the changes made in PO,Netprice or Delivery date it should create a NEW VERSION number,only if the Netprice is changed,new version is getting genarated....can any one help me regarding this please?
    Moderator message: please work yourself first on your requirement, search for available information.
    Edited by: Thomas Zloch on Dec 1, 2010 11:43 AM

    List of all U-Exists for ME22N:
    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
    best regards.

  • Reporting Services - How to open a second table inside report, for each number of client (each apears in first table)

    Reporting Services - How to open a second table inside report, for each number of client (each apears in first table)?
    Exemple:
    Table1
    Cliente name:
    John
    Client number:
    12345
    Survay number of negative answers:
    3
    Table2
    Questions and answers that were negative:
    Question: How much time where you waiting
    Avaluation: 3 (from 1 to 10)
    Answer: They only called me 1 mouth later
    Can you please help me?

    Hi,
    Based on the description, I understand that you want to add subreport in the main report. When previewing the main report, the subreport can be shown in detail. Please see the screenshots on my test:
    In Reporting Services, we can create parameters and pass them from main report to subreport in order to control the data dynamically.
    References:
    Subreports (Report Builder and SSRS)
    Add a Subreport and Parameters (Report Builder and SSRS)
    If I have any misunderstanding, please feel free to contact me.
    Regards,
    Heidi Duan
    Heidi Duan
    TechNet Community Support

  • How to control number of rows displayed in a report  by user?

    Hi All!
    I have provided a select list called 'Number of rows' in my report page.User can choose any number in the list, and accordingly he should be able to see so many number of rows in that report page.
    For example: if user selects 50 from the list, he will be able to see 50 records at a time out of say 2000 records retrieved. I want to control number of rows displayed per page dynamically. And if he selects 25 in the select list, he should be able to see 25 records at a time out of 2000.
    How to do it? Please give me ideas.
    Thanking in advance.
    Regards,
    Deepika.

    Hi Deepika,
    If you have a Select List with Submit called, say "P1_ROWS", you just enter P1_ROWS into the Report Attribute's "Number of Rows (Item)" setting.
    Regards
    Andy

  • IO 229 - Batch for serial number 1234 (BBB) differs from document batch AAA

    Hello All,
    We use batch management for serialized materials only at our central plant. For all other plants, there is no batch control. Sometimes we need to return materials back to the central plant but with a different batch number.
    When we do two step stock transfer 303 / 305, we receive the following error message if we don't use the original batch number.
    "IO 229 - Batch for serial number 1234 (BBB) differs from document batch AAA".
    However, when we use one step plant to plant stock transfer 301, there is no error message. The batch number is also updated correctly in IQ02.
    I wonder if there is any configuration to use 303 / 305 with different batch numbers.
    Thanks,
    Hakan

    Thanks Arminda.
    64044 recommends to use 309 to change the batch, which works but this is an additional step.
    Currently 1 step plant to plant transfer i.e. 301 doesn't require this additional step. It updates the batch information with no problem.
    Is there any configuration option to change the behavior of 305, so that we don't have to do an additional movement?

  • Is there any userexit for MIR7 and   MIRO transaction?

    Hai friends,
           Is there any userexit for MIR7 and MIRO transaction at the time of pressing "save as completed" or "save" button. I want to check the sales certificate and invoice verification for the document number entered in MIR7 and MIRO.
    Regards,
    safiq
    NOTE:useful points will be rewarded.

    hi,
    these r the exits related to mir7.
    Transaction Code - MIR7                     Park Invoice
    Enhancement/ Business Add-in            Description
    Enhancement
    LMR1M001                                User exits in Logistics Invoice Verification
    LMR1M002                                Account grouping for GR/IR account maintenance
    LMR1M003                                Number assignment in Logistics Invoice Verification
    LMR1M004                                Logistics Invoice Verification: item text for follow-on docs
    LMR1M005                                Logistics Inv. Verification: Release Parked Doc. for Posting
    LMR1M006                                Logistics Invoice Verification: Process XML Invoice
    MRMH0001                                Logistics Invoice Verification: ERS procedure
    MRMH0002                                Logistics Invoice Verification: EDI inbound
    MRMH0003                                Logistics Invoice Verification: Revaluation/RAP
    MRMN0001                                Message output and creation: Logistics Invoice Verification
      Business Add-in
    INVOICE_UPDATE                          Business Add-In: Logistics Invoice Verification
    put a break point in each exit,like break username and test the transaction .

  • VA01 userexit for PO duplication check

    Hi Experts,
    I have an urgent requirement regarding PO duplication check and I need to know if there is a userexit for VA01 where I can perform PO duplication check. This PO duplication check will consists of fields VBAK-KUNNR, VBAK-BSTKD and VBAK-BNAME.
    Points will be awarded. Thanks in advance.
    Regards,
    Leo

    hi,
    check the include MV45AFZZ...It has number of userexits....put a breakpoint and check..
    Regards,
    Nagaraj

  • Regarding Email address - Userexit for VF02 transaction

    Once you enter a VF02 transaction, If you goto header partners and double click on the partner number it would take you to the customer master data screen in which we have an option for Email address this is in Display mode my requirement demands to make it Visible  so that the enduser would enter the email address which finally reflects in the printoutput.
    I would like to know the correct exit for resolving this issue
    Any suggestions are appreciated........................
    Naveen.

    Hi Naveen,
    Check all Exits for VF02
    Transaction Code - VF02                     Change Billing Document                                                                               
    Exit Name           Description                                                                               
    SDVFX007            User exit: Billing plan during transfer to Accounting                      
    SDVFX008            User exit: Processing of transfer structures SD-FI                         
    SDVFX009            Billing doc. processing KIDONO (payment reference number)                  
    SDVFX010            User exit item table for the customer lines                                
    SDVFX011            Userexit for the komkcv- and kompcv-structures                             
    V05I0001            User exits for billing index                                               
    V05N0001            User Exits for Printing Billing Docs. using POR Procedure                  
    V60A0001            Customer functions in the billing document                                 
    V60P0001            Data provision for additional fields for display in lists                  
    V61A0001            Customer enhancement: Pricing                                                                               
    No of Exits:         10          
    Rewards if useful...............
    Minal

  • What is ISA Control Number in EDI 856

    Hi,
    I'm doing mapping between DEVLRY01 idoc and 856 edi file.
    regarding this i have a doubt on ISA Control Number ?
    What ISA Control Number and how mapping can be done for this field on target side.
    only thing i know about this ISA Control Number is it should of lenght 9 is it correct ?
    can anybody give me suggestions about mapping and information regarding ISA Control Number?
    Regards,
    Sandeep.

    Hi,
    ISA controll number is a unique identification number. In general by writing some UDF we can generate this number.
    Example code :
    public String UniqNumber(String name,Container container)
    String val;
    Object obj = container.getGlobalContainer().getParameter(name);
    if(obj == null)
                throw new RuntimeException ("Exception due to .....");
    else {
    value = obj.toString();
    return val;
    This code generates the unique control number.
    We can give input to this is constant, this is generally the signal number, now in your case 856.

Maybe you are looking for