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

Similar Messages

  • 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

  • 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 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.

  • How to generate a Code 39 barcode?

    We want to print our Service Order Numbers as a Code 39 bar-code.
    I read that you can print the bar-code in the report (as a graphic) by downloading a Code 39 barcode font.
    But first I have to convert our SO Number to a Code 39 barcode.
    Is there is a Oracle PL/SQL function to do this?

    Hello,
    http://www.idautomation.com/fonts/tools/oracle/
    Oracle Reports Barcode Font Tutorial & Integration Guide
    This IDAutomation tutorial is designed for implementing barcodes in Oracle Reports with the IDAutomation PL/SQL Barcode Library and IDAutomation barcode fonts. The barcode library is a PLL file that formats data from fields in the report to the barcode fonts, to create a correct barcode. The library contains functions for Code 128, Code 39, GS1, Codabar, UCC/EAN 128, Interleaved 2 of 5, UPC and EAN barcodes.
    Regards

  • How to generate Bar codes from Crystal Report

    I understand that Bar Codes can be genrated from Crystal reports. I am using CR 2008 and trying to convert my Inventory items to bar codes. it does convert it and I can see the bar codes but it looks like; just a garbage and scanner does not recognze it plus the numners are missing @ the bottom.
    Anybody has ever tried this and have some simple instructions to start with.
    Any help will  be appreciated highly.
    Regards,

    Hi,
    What barcode are you using and what barcode font? 
    If you are using Code39 or Postnet then you need to make sure your values are formatted properly by creating a formula and using the barcode functions. 
    Have a search in the forum for barcodes.  It's been talked about a lot and you should find your solution. 
    Good luck,
    Brian

  • How to generate CSS code

    I am working in Illustrator CS6 there is no option to generate CSS or CSS preferences. Is there a free download for this filter somewhere. I can't update to CSS because we are a school system.

    Hi,
    when you create a new report using the wizard you can create both paper and web layout.
    After that, if you update the paper layout it won't change the web layout too.
    You have to modify it by hand.
    Bye
    Raffy

  • How to generate a java class source code?

    I want to generate the code of a java class programatically based on this template:
    Public class glue{
    public void setMethod1(){
    public void setMethod2(){
    }in which the names and the code of setMethod1() and setMethod2() are not constant.
    My problem is that I don't know how to generate the code of a .java class programatically . can you help me?
    Edited by: elebal on May 4, 2009 1:45 AM

    codingMonkey wrote:
    elebal wrote:
    I want to create a file called glue.java for which the method names and parameters are read from an XML file.
    At run time I read the XML file and get the data, now I want to create this .java file based on variables i have from XML file.Why would you want to "write" your Java code in XML then convert it to Java? Seems pretty pointless to me.I can think of several scenarios, but none that someone who doesn't know how to handle this should even remotely consider suitable for his or her level of expertise to try and tackle.

  • How do I generate redemption code for creative cloud?

    how do I generate redemption code for creative cloud?

    On October 27th 2014, you have purchased two CC (one complete &one photography) under the same Adobe ID. That is the reason you are being asked for a code because under one Adobe ID only one CC can be activated(twice).
    Please contact Adobe Support or you can inbox me privately the CC order number  that you would like to cancel.
    You can also check if the host file has Adobe entry or not as if Adobe entries are there then also CC can ask for serial number. You can check the host by the followinh method.
    Creative cloud do not need a serial number. it will be using your Adobe ID on which you have purchased the creative cloud membership.
    So you need to login with your Adobe ID and password to activate the cloud membership.
    Log out & log back in of the CC Desktop App.
    In case it is not signing in successfully please try the following:
    I don't know which operating system you are working on so i am giving you some steps windows and MAC OS:
       Windows:
       In windows 7 navigate to following location:
         /windows/system32/drivers/etc
       1. look out for "Hosts" file
       2. Open it with notepad
       3. Check if you have any entry for Adobe
       4. Remove the entries and try again launching any product from CC
      Mac:
       1. Please click on "Go" and navigate to /private/etc
       2. Open "hosts" file and check out for any entries for Adobe.com
       3. Remove the entries and save the file
       4.  try again launching any product from CC
      Please refer to Creative Cloud applications ask for serial number
    Hope it helps you.
    Regards
    Rajshree
    Cannot license Illustrator CC after buying subscription

  • How to generate new perner number using Abap Code in pa0002. what is the fu

    how to generate new perner number using Abap Code in pa0002. what is the function Module used.

    hi
    define internal number ranges for ur implementation then when u run PA 40  do not input any employee number , system will generate the employee number automatically.
    Regards
    sameer

  • How to generate selection change event through code in JTree?

    I am developing an application which downloads the file from other system and adds it into the tree. On selecting any file in the tree I m displaying it's contents. But now i am trying to display the contents of downloaded file as soon as it's download completes. Here i am not getting the way to how to generate the event as the download completes, because i tried that setSelectionPath(TreePath path), but it also don't generates the selection change event. Is there any other way to do so?

    Put null in place of oldLeadSelectionPath. From the API for TreeSelectionEvent:
    protected TreePath     oldLeadSelectionPath:
    leadSelectionPath before the paths changed, may be null.
    I'm at the office and can't try out anything, so please let me know whether that works for you.
    db
    edit Or it may be easier to put all code from your valueChanged (...) override in a new method and invoke that method both from valueChanged (...) and wherever else you need.
    Edited by: Darryl.Burke

  • How to generate code in Sun Java Studio Enterprise 8

    Do I miss something? I can�t find how to generate code from UML model, which is not reversed from code. Documentation also does not speak about this.
    Code update works fine if project is reversed from code, but if in such reversed model I create new class it does not appear in code and context action "Generate Code" is missing for such class.
    I use Sun Java Studio Enterprise 8

    Thank you for replay, may steps are same:
    1. I have created Java Project With Existing Source
    2. selected directory with code (not whole project but directory with java classes)
    3. After that I have created UML Java Specific project and
    4. Associated UML project with previous created java project
    5. I have selected "Code Generation" check box
    6. Classes from java project were reversed into UML model.
    7. After that I have created new class in java project.
    And there is no Generate code action in this class context menu, also this class do not appeared in code automatically.
    From UML project properties it is shown that UML project is associated with proper java project)
    Same is with Java Application project associated with UML java project.
    Documentation do not talks more about this. Only same steps. It looks like code generation should be working but it isn't. I'm I only one who face this problem, or do smth wrong?

  • Urgent How to generate a random code such as registration code?

    I would like to ask that how to generate a random code?
    For example, when you register a E-mail account, you need to enter the code for activation. I would like to create a java Bean to do this job. Would you help me?

    In fact, I would like to set a 10 digi codes randomly (such as FH654CS081, MKO624VG9f) for user input when they register the forum account. This random code will be sent to the user's email. User have to input this code to a JSP web site. Also, the code which is inputed by user will be matched with the database. If user input success, the forum account will be activated.
    By generating this 10 digi codes, I want to handle this generation by using java bean.
    1) Any thing else i need to import ? (such as <% page import="java.......?")
    2) Any functions can handle this task?
    3) Any example can be my reference?
    Thank you very much

Maybe you are looking for

  • Firewall keeps asking for permission to allow incoming...

    Help! I have a simple Intel MacMini system running OS X 10.5.5 (Client) with a few web services running on it. It has run for years without problem (mostly Tiger, more recently Leopard). Recently have been having problems with the Leopard Firewall as

  • Getting Error: iTunes Library cannot be saved?

    I have an iPhone 4. All of sudden I am getting an error when I sync my iPhone 4 using iTunes with my MBP. The error box says:  "The iTunes Library cannot be saved.  An unknown error occured (-54)" The syc seems to work, but the error message pops up

  • SOL MAN - Maintenance Optimizer

    Hi all I configured Maintenance Optimizer in Solution Manager 4.0 but when launching: dswp -> change management -> support package stack - > maintenance optimizer select product versrion select system -> continue only procedure 8000000x saved display

  • Call off fixed quantity if contracts exits where to add in SAP?

    Hi All, Can you please help me on the next one: We have a MM Quantity Contract for 100.000 PC. Every time we call off for this contract the call off quantity is 500 PC. Where can I put these 500 PC in SAP? Can this be done on Contract level? Or must

  • Error -6753 when airport utility trying "to access wireless device"

    I recently replaced a 3rd party router with Airport Extreme. Airport Express was connected via ethernet to the existing router; a HP C4600 printer was connected to the Express via cable. Since switching the router, I can still print wirelessly from m