How to generate item codes automatically

Hi,
My customer wants that the inventory item code be generated automatically based on its description. The code should have:
- 3 first characters of the description
- A sequential increased number, to make the code unique.
e.g. the item called "Petrol" should have the code "pet004".
To achieve this, I have created a database procedure. So the user that works in "Item Master" form, will fill out "description" field and the "Item" field should be automatically populated based on the return value of this procedure.
Is there any way how to achieve this through personalization?
Or, is there any standard way that Oracle offers for automatic generation of item codes?
Thank youl

Hi,
You have to do it using forms personalization.
Thanks,
PS.

Similar Messages

  • How i Rename Item Code and Description

    Dear All,
    Can you please tell me how i change Item code and item description in sap b1 8.8.

    This can be very annoying.  If there's a typo in the product code, we cannot update it anymore (since there are already transactions with this product) and the item is not displayed in the correct place when the item list is sorted on the item code.  We can start a new product with the correct code and transfer the items in stock to the new product code, but then all the current transactions are still linked with the old/deprecated product.  Very annoying.
    If someone could find a method to rename the item code without losing the linked transactions, this would really be helpful.  Thanks!
    Regards,
    Pieter Verhaeghe

  • Item Codes-Automatic(urgent)

    Hi All,
    I want to define Item Code as Default i.e In SAP How we are getting the Default numbering for eg.1,2,3,4.........I want in the same way for the Item Code.IS IT POSSIBLE through Query based FMS or any other way??
    Thanks in Advance.
    mona

    Dear Mona,
    In order to resolve the issue, please do the following steps :-
    1. Create a Initial Item code I0000 manually in the application.
    2. Save the following query :-
    Select max(Itemtype)
    + cast(substring( max(Itemcode), 2, len(max(Itemcode)))
    + 1 as nvarchar(10)) from OITM                                              
    Where Itemtype = $[OITM.Itemtype]
    3. Create a formatted search based on the above query and assign it to the itemcode field. (Open Item master in add mode )
    4. Then select refresh the formatted search regularly with the Item description change.
    5. Then Go to item master data in add mode put something in item code field and then type the correct item description and click tab.
        Now your Itemcode field will display as "I0001".
    Regards,
    Rakesh Pati
    SAP Business One Forum Team

  • How to generate web.xml automatically?

    Hi all!
    I am new to servlets. I have configured the tomcat 5.5.9 with eclipse 3.0 succussfully. It is generating the class files. But I want to know how to generate web.xml through it.
    Thanks in advance...
    Code Snooker

    AFAIK, there's no template for generating web.xml.
    Navigate to <TomcatInstallDir>/webapps/
    You would find lot of directories - each one being a web application.
    Navigate to any one, say ROOT and then to the WEB-INF directory
    under that.
    You would find a web.xml.
    Copy it into your <web-application-dir>/WEB-INF folder and make necessary changes
    cheers,
    ram.

  • How to generate Voucher Codes in CRM 7 EHP1

    Hallo all,
    we have currently set up a CRM7 EHP1 system to check out the latest functions. I try to get the new voucher functions working. I customized the voucher stuff as described in the documentation (http://help.sap.com/saphelp_crm700_ehp01/helpdata/EN/f1/7eb3ccd1ba4a27a8f2ecc07664f7e6/frameset.htm)
    I defined the voucher code variants, a number range for my vouchers and I implemented the BAdI.
    My question now is: how and when are the voucher codes generated? I created a campaign of my voucher type and assigned a simple segment. Then I changed the status to 'released' but nothing happened. Even after explicitly executing the campaign, nothing happened, the number range interval still starts with 0 so no codes were generated. My BAdI implementation is supposed to write the generated code into some db table but that table is empty.
    Does anyone have a clue how I get the codes to be generated?
    Thanks and best regards,
    Martin

    Have you created the mail form and attached the mail form to the campaign you created?
    In the mail form, you have to insert the coupon code attribute in the mail form. you can found that in
    mail form-> Text Element section, click on attribute button -> Attribute Category to be selected as Campaigns.
    The coupon code will be generated when you execute the campaign and the segment receives email.
    Hope this helps.
    Regards,
    Harsh

  • How to generate GUI code from parsed XML file?

    hai,
    I have to generate GUI code after parsing any configuration XML file as input.Now i have parsed my XML file and got its attributed and i want to get some idea of how to map the parsed XML attributes to the java code to build GUI code.

    Hello,
    1. I like to create data type from a XML file structure, which contains the data structure ?
    XML fields will need to be taken note of to see which is repeating or not. You can also load the XML into a third-party tool such as Altova XML Spy and then generate an XSD from there. You will need to import the XSDs into PI under external definitions. However, this does not guarantee business interoperability, as such, it is always best to ask the provider for the XSDs or WSDL. It will also save you a lot of time from guessing which fields are needed or not.
    2. How to create custom node function in graphical mapping editor ?
    In your graphical mapping editor, on the lowest left corner, there is an icon there that says Create New Function. You must take into account their return types:
    1. Single Values = String
    2. Queue/Context (no return type) thus resultList is used.
    Hope this helps,
    Mark

  • Generating BP Codes Automatically.......

    Hi Experts,
                    My Client want to generate his bp codes automatically......
                          C10000, C10001, C10002, C10003..................... like this....
                                Can anyone pls give the solution....

    In order to create consecutive alphanumeric business partner codes, such as C1000, C1001 etc, please follow the procedure outlined below:
    1. Manually create the first customer, supplier and lead type business partners, e.g. C1000, S5000, L8000.
    2. Go to Reports -> Query Generator -> Click on 'Execute' without making any selection.
    3. In the 'Queries' window click on the pencil icon in the upper left area to activate the query structure area. The area appears grey when blocked, white when ready and yellow when active.
    4. Copy and paste the query from below or the attached text file (BPcode_autocreate.txt) into the window, replacing the 'SELECT *' that is present by default:
    select max(cardtype)
    + cast(substring( max(cardcode), 2, len(max(cardcode)))
    + 1 as nvarchar(10)) from ocrd
    where cardtype = $[OCRD.CARDTYPE]
    1. Click on the button 'Save',then, in the 'Save Query' window, enter an appropriate name for the query and select the appropriate category. Then click on 'Save'.
    2. Click on 'Cancel' in the window 'Queries' and 'Close' in the window 'Query Generator'.
    3. Go to Business Partners -> Business Partner Master Data, change to 'Add' mode.
    4. Map a formatted search to this field by either of the following means:
    1. Clicking in the field 'Code' to activate it, then select 'Tools' in the strip menu, select 'Search Function', then 'Define'.
    2. Pressing CtrlAltF2 in the active field.
    5. In the 'Define Formatted Search' window, click on the button for 'Search by Saved Query'
    6. Bring the cursor to the bar that will pop up just below 'Search by Saved Query' until it changes from an arrow to a pointing hand, then double-click.
    7. The 'Query Manager' window will pop up, select the category where the query above was saved under, then click on the query name to select it, click on 'OK'.
    8. Place a tick in the box for 'Auto Refresh When Field Changes' and select 'BP Name' from the drop down menu.
    9. Click on 'Cancel' in the Business Partner Master Data window and open it up again.
    10. Click on 'Refresh Regularly' and click on 'Save'.
    11. Change to 'Add' mode, select the 'Type' (Customer, Supplier, Lead) and enter a name for the new business partner. Press the 'Tab' key and the next available BP code will automatically be inserted into the BP code field.

  • How to generate QR Codes and link then to web site

    I need help generating QR Codes with Adobe Photoshop Elements 12; please

    Thanks for reply, would visual studio professional allow me to generate
    dynamic QR Codes or which software do you recommend

  • How to generate html-code using csv input with JSP or JAVA???

    Hello,
    I want to read out a .csv-file and generate html-code dynmically with JSP in an EP6 Application. The problem is, that the csv-file can’t be located or openend.
    BTW if every knows a good tutorial or weblog for this, please post the link.
    It’s located in a par-archive under:
    />dist>files
    I tried various methods, in the doContent mehtod or with JSP. Everytime same result.
    Here part of the code I tried in the doContent():
    public class CSV extends AbstractPortalComponent
        public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
            String strWRoot = request.getWebResourcePath();
            String contentCSV="", line="";
            String linesep = System.getProperty("line.separator");
            File fileLoadCSV = new File(strWRoot+"/files/ma_infosysteme.csv");
            boolean exCSV = fileLoadCSV.exists();
            boolean reCSV = fileLoadCSV.canRead();
            int a=0;
            if(exCSV&&reCSV){
                response.write("ok");
                try {
                  BufferedReader inputCSV = new BufferedReader(new FileReader(fileLoadCSV));
                  while((line=inputCSV.readLine())!=null){
                    contentCSV=contentCSVlinelinesep;
                    a++;
                  inputCSV.close(); 
                catch(IOException ioex){
                    System.out.println("Fehler");  
            else {
                response.write("not ok");
            response.write("<br>Wroot: "+strWRoot);
            response.write("<br>File: "+fileLoadCSV);
            response.write("<br>exists: "+exCSV);
            response.write("<br>read: "+reCSV);
            response.write("<br>Input: "+contentCSV);
    The Output is:
    not ok
    Wroot: /irj/portalapps/DHTML
    File: \irj\portalapps\DHTML\files\ma_infosysteme.csv
    exists: false
    read: false
    Input:
    So thanks to everyone who can give me a good hint.
    Bye.

    Without really looking too much into this it looks like the problem is with the way in which you are trying to open the file. I believe that when creating a File object you need to use a physical path. By using the getWebResourcePath() method you are retrieving the URL to this file and not the physical path name. There is another method (can't remember the exact name) called getPublicResourcePath() (or something similar) which will return the physical path to this file, i.e. c:\usr\sap\.....etc. If you try it this way it may well work
    I hope this helps
    D

  • How to create Item Codes with multiple Item Description

    Hi,
    for one of my client, we need to create Item Codes with multiple Item Description.
    e.g.,
    Item Code - M00285
    Item Description 1 - Blue Paint
    Item Description 2 - Red Paint
    Is that possible in SAP Business One? If "Yes" kindly provide a solution. Else recommend an alternative method.
    Regards,
    Ammheya U. Naaik

    Ammheya,
    I just wanted to add that there is an Add-On that handles "Style, Color, Size" situations like yours.
    It allows you to define a "master" item, (Paint, for example) and then setup the various styles, colors and sizes it comes in. 
    This creates sub-items for each with the master in the ItemCode (Paint-Blue, Paint-Red, etc)
    It's called MatrixOne from Navigator.  You could find it on the partner portal with other Add-Ons.
    Hope thathelps,
    Brad Windecker

  • How to generate a code?

    How can i generate an automatic code like '0001'

    Hello,
    Sorry, but your requierement is not clear enough for me.
    Could you provide more details ?
    Francois

  • How to get Item-Code wise stock quantity and value for a previous date

    Dear Sir,
    As per the government legal requirement , we are required to furnish a list for items having stock as on a date ( date is not the current date but it is some past date)  and  in the list we need to provide material wise stock quantity and value .
    We can generate a list  for the current date , but do not know how to get it for a previous date .
    We request you to kindly guide us about such a list .
    With Thanks and Regards
    Sonia Agarwal

    hi,
    might be this reports will be help full for your requirement.
    MMBE
    MB53
    MB52
    MB5M
    MB5B
    MB5T
    MBLB
    MBBS
    MB54
    ME56
    Thanking you

  • How to generate customer invoices automatically?

    We are doing direct debit for some of our clients based on the billing plan. 
    I know that it is possible to create customer invoices automatically based on the billing plan, but do not know the details how to trigger the process.
    Imagine I have created the billing plan for the billing WBS-element.  What should be done next to post the customer invoice automatically?
    Many thanks for your help!

    Hi Mrinal,
    I do not know much about SD process, in fact I am mostly interested in FI invoices to be generated and posted while having the most dummy SD flow possible.
    What exactly does VF04, what are prerequisites to run it, and what are the follow up steps?  My starting point is the billing plan maintained for the WBS-element, while the target is FI customer invoices posted, so what are the missing steps in between?
    Many thanks.

  • How to generate a query automatically?

    Hello,
    I set up a PreparedStatment pstmt = conn.prepareStatment(" select distinct ? from table ")
    and then
    pstmt.setString(1, "country")
    and I use ResultSet rs = pstmt.executeQuery()
    but the result is not what I expect.. It only returns "country"
    if I change it to stmt = conn.createStatement("select distinct country from table")
    it works
    So, how can I generate a query like this automatically?
    Thanks!

    The query you posted means "return the first argument once for every row in the table called 'table'." What is it you are trying to do?
    And, you may want to post this on the JDBC forum rather than here.

  • How to generate a class automatically in JDev

    Suppose from OS side, I create a new empty Java file in the src directory of a project in JDev. Then in JDev, I click on the "refresh"/reload button for that project. Now I see the new java file. Double click it to open it; it is blank. In this case, how can I generate a class using the file name as the class name, and a default constructor or even a main method etc.?
    Is there any convenient way of doing this, rather than going to the usual route, which is File menu, then new, java file, from that UI to give a class name, choose to include a main method etc..
    Thank you.

    Duncan Mills blogged about how to build your own templates http://blogs.oracle.com/groundside/entry/adventures_in_adf_logging_part1
    Not exactly your case, but you should get the idea.
    Timo

Maybe you are looking for

  • How do I change my Apple ID for iCloud without losing my data?

    I really seem to have made a mess of my transition to iCloud :-(  I have had an Apple ID for many years - it's my @gmail.com email address.  I also have an @mac.com email address and, because I was a subscriber to MobileMe I have an @me.com email add

  • Error while installing Oracle 10G Grid control in RHEL

    I was installing Oracle 10G Grid control in RHEL. Got the following error. Any idea what this means and what is the remedy? ======================================= Output generated from configuration assistant "Oracle Net Configuration Assistant": /h

  • EAP-TLS authentication failure

    We've been struggling with this problem for weeks without a solution yet. Maybe someone can help us. Note: some information below has been redacted and the IP addresses are not the original ones. They have been changed to fictional IP addresses but t

  • First Name and Last Name goes missing while doing a Request Download for BP

    Hi Friends, We started doing a request download for some of the BP's from ECC to CRM. For some BP's the download was working fine but for some BP's the first name and last name are missing. Kindly suggest how do we correct these BP's and how can we r

  • Error in DP90 transaction

    I want to create Sales Order based on Service Order using DP90 Transaction. I have enter Service Order in selection screen of DP90 and click biling reqest icon then system is not moving futhere showing " Initializing........... " Pl help me to resolv