Alphanumeric serial number increment

Hi All,
    Can anyone help me to increment an alphanumeric sequence.
For eq: 12B345A, should become 12B345B,12B345C...,12B345Z after Z it should take the second last character and inceremnt it, say 12B346A,12B346B,12B346C.........
Please let me know whether we can use some Function Modules for this operation or can anyone please help me with a pseudocode for the same.
Thanks in Advance,
Rijish

Try this Code:
data: v_str(7) type c,
      v_hx(1) type x,
      v_len type i,
      v_off type i.
field-symbols <fs>.
v_str = '12B345Z'.
write:/ 'Initial:', v_str.
v_len = strlen( v_str ).
v_off = v_len - 1.
do v_len times.
  if v_str+v_off(1) between 'A' and 'Z'.
    if v_str+v_off(1) lt 'Z'.
      assign v_str+v_off(1) to <fs> casting type x.
      add 1 to <fs>.
      exit.
    else.
      v_str+v_off(1) = 'A'.
    endif.
  elseif v_str+v_off(1) between '0' and '9'.
    if v_str+v_off(1) lt '9'.
      v_str+v_off(1) = v_str+v_off(1) + 1.
      exit.
    else.
      v_str+v_off(1) = '0'.
    endif.
  endif.
  v_off = v_off - 1.
enddo.
write:/ 'Final:', v_str.
Regards
Sridhar

Similar Messages

  • User Exit for generating alphanumeric serial number when P.O created

    Hi All,
               i am a na ABAPer.The PP guy in my module has asked me to look for an user exit which generates an alphanumeric Serial Number
    when a purchase order is  generated.
    Any help as i have no clue about this.
    Thanks in Advance,
    Saket.

    Hi,
       Try the following exits by putting break point in the include.
    IQSM0001  Automatic Serial Number Assignment
    PPCO0018 Check for changes to production order header
    PPCO0019 Checks for changes to order operations
    PPCO0021 Release Control for Automatic Batch Determination
    Regards
    Kiran Sure

  • Automatic Alphanumeric serial number in outbound delivery

    Hello All,
    Can we able to generate Automatic alphanumerical serial number while doing outbound delivery. At present, last numerical serial number gets picked. i changed the last numeric serial number to alphanumeric in table MASE and tried to generate serial number automatically in outbound delivery, but it generates the last numerical serial number from that alphanumeric serial number.
    Thanks & Rgds
    Zion
    Edited by: george zion on Sep 29, 2011 2:51 PM

    Thanks all for ur inputs...
    Here i dont want serial number to be generated from last numerical serial number while we click "create serial number automatically" in outbound delivery instead it should get generate from a particular storage location. That is, if a storage location say ZLOC has serial numbers, then the system should pick from that particular location while we click on the automatic button. Is it possible?
    Thanks
    Zion

  • Reg: Alphanumeric serial number assignment for material

    Hi all,
             I am able to generate the serial number numerically material wise using IQ01 t code. But my client requirement is alphanumeric serial numbers. Is it possible in standard SAP. Even though some threads are there regarding this issue, i am not able to understand clearly. Please guide me with a detailed explanation.
    Regards,
    Krishna Chandra

    Hello,
    Serial numbers can be auto generated or created manually; the length of single number is limited to 18
    characters. SAP supports both numeric and alphanumeric serial numbers. Serial number master record
    can be created directly prior to business transaction, this would appropriate to have serial numbers already
    in system so these can be assigned during business process. Serial numbers can be created individually
    (IQ01) or several at the time (IQ04), depending on transaction chosen.
    Serial number masters contents following information
    ->Status information: System status of gives idea about current status and availability of serial
    number. User status also used for precise control over serial number movement.
    -> Stock information: This shows the plant and storage location of material, also the stock type of
    material like unrestricted, quality or blocked stock.
    -> Serial number history: The history tells about the past business process with serial number.
    Serial numbers are also categorized on broader level like Machine, Customer equipment etc. These categories mainly serve the reporting purpose.
    Maintain all the mandatory information and the issue should be solved
    Regards,

  • How to generate alphanumeric serial number automatically through IQSM0001

    Dear Expert,
    We have requirment ie serial number should get generate automatically with initail letter include W CURRENT MONTHCURRENT YEAR+Running serial number during Good receipt (MIGO)
    We are using user exit  IQSM0001 and Include ZXQSMU01,Please logic for writing code
    Regards,

    Thanks

  • Without equipment creation serial number required at the time of delivery?

    Dear SAPIENTS,
    Without equipment creation serial number required at the time of delivery? In customizing i have defined that equipment not required in serialization profile. But still i am getting equipemnt number at the time of delivery of sales order.
    Regards,
    Kaushal Rai

    Dear Venu,
    You want to generate Alphanumeric Serial Number that is possible by following Enhancement for Serial Numbers:
    Pls find here some details about generating alphanumeric serial numbers as below :
    You can generate alphanumeric serial number with the following BADI / Customer Exit:
    Name of Enhancement : IQSM0001
    Name of Function Module Exit: EXIT_SAPLIPW1_001
    Name of Include : ZXQSMU01
    ZXQSMU01:
    This user exit can be used to create the serial numbers automatically for material of a production order. Number of serial numbers generated will be equal to the total number of quantity. The purpose behind development of this user exit was to attach prefix in each serial number generated.
    so as per your requirement you can generate serial number like ABC0001 etc.
    Process Steps:
    For exit: EXIT_SAPLIPW1_001
    1. Get serial number profile for a material in respective plant.
    2. Check if the profile is u2018XYZu2019.
    3. If profile is u2018XYZu2019 generate the serial numbers for the given quantity of material in production order.
    General Program Structure
    For exit: EXIT_SAPLIPW1_001
    1. Get the serial number profile using function module 'MARC_SINGLE_READ' for a material.
    2. Check if the profile is u2018XYZu2019.
    3. If the serial number profile is u2018XYZu2019 then generate the serial numbers for the given production order quantity of a material.
    4. Concatenate ABC as a prefix to the all generated serial numbers
    Provide above details reg. implementation BADI / Enhancement to your ABAPer and go ahead.
    You can implement above Enhancement in CMOD.
    Hope this helps.
    Revert in case of any doubt.
    Award points if useful.
    Regards,
    Tejas

  • SD : Serial number in production order

    Hi,
    SAP doesn't copy my serial number set by function 'SERIAL_LISTE_POST_AU' into the production order. Why is this ?
    When i go into the sales order i see the serial number, but after running mrp the number can't be found in the production order. When i go into the 'technical object' screen in the sales order and press 'ok' and then save the sales order, the serial does appear.
    with regards.
    Erik

    Hi,
    Pls find here some details about generating alphanumeric serial numbers in production order as below :
    You can generate alphanumeric serial number with the following BADI / Customer Exit:
    Name of Enhancement : IQSM0001
    Name of Function Module Exit: EXIT_SAPLIPW1_001
    Name of Include : ZXQSMU01
    ZXQSMU01:
    This user exit can be used to create the serial numbers automatically for material of a production order. Number of serial numbers generated will be equal to the total number of quantity. The purpose behind development of this user exit was to attach prefix in each serial number generated.
    so as per your requirement you can generate serial number like ABC0001 etc.
    Process Steps:
    For exit: EXIT_SAPLIPW1_001
    1. Get serial number profile for a material in respective plant.
    2. Check if the profile is u2018XYZu2019.
    3. If profile is u2018XYZu2019 generate the serial numbers for the given quantity of material in production order.
    General Program Structure
    For exit: EXIT_SAPLIPW1_001
    1. Get the serial number profile using function module 'MARC_SINGLE_READ' for a material.
    2. Check if the profile is u2018XYZu2019.
    3. If the serial number profile is u2018XYZu2019 then generate the serial numbers for the given production order quantity of a material.
    4. Concatenate ABC as a prefix to the all generated serial numbers
    Provide above details reg. implementation BADI / Enhancement to your ABAPer and go ahead.
    Hope this helps.
    Regards,
    Tejas

  • Reg serial number generation at the time of GR-(MB31)

    Dear all,
    can we create a customized serial number  at the time of goods receipt (MB31)like ex: S0900001  where in S stands for plant number , 09 stands for the year and 00001 is running serial number
    please give the required steps to get the customized number for product identification.
    Thanks in advance
    venu

    Dear Venu,
    You want to generate Alphanumeric Serial Number that is possible by following Enhancement for Serial Numbers:
    Pls find here some details about generating alphanumeric serial numbers as below :
    You can generate alphanumeric serial number with the following BADI / Customer Exit:
    Name of Enhancement : IQSM0001
    Name of Function Module Exit: EXIT_SAPLIPW1_001
    Name of Include : ZXQSMU01
    ZXQSMU01:
    This user exit can be used to create the serial numbers automatically for material of a production order. Number of serial numbers generated will be equal to the total number of quantity. The purpose behind development of this user exit was to attach prefix in each serial number generated.
    so as per your requirement you can generate serial number like ABC0001 etc.
    Process Steps:
    For exit: EXIT_SAPLIPW1_001
    1. Get serial number profile for a material in respective plant.
    2. Check if the profile is u2018XYZu2019.
    3. If profile is u2018XYZu2019 generate the serial numbers for the given quantity of material in production order.
    General Program Structure
    For exit: EXIT_SAPLIPW1_001
    1. Get the serial number profile using function module 'MARC_SINGLE_READ' for a material.
    2. Check if the profile is u2018XYZu2019.
    3. If the serial number profile is u2018XYZu2019 then generate the serial numbers for the given production order quantity of a material.
    4. Concatenate ABC as a prefix to the all generated serial numbers
    Provide above details reg. implementation BADI / Enhancement to your ABAPer and go ahead.
    You can implement above Enhancement in CMOD.
    Hope this helps.
    Revert in case of any doubt.
    Award points if useful.
    Regards,
    Tejas

  • Serial Number range

    Dear Experts,
    I have a situation,  Where i need to activate the serial Numbers, For FERT and couple of Sub Assemblies.
    If i am using standard SAP Serial Number management, Numbers are starting from 1,2,3 . Can I assign the Number range In serial Numbers. From--to.
    What if i need to genrate the Alfa-Neumeric serial Numbers.
    Please suggest.
    Regards
    Raghu

    Hi,
    Pls find here some details about generating alphanumeric serial numbers in production order as below :
    You can generate alphanumeric serial number with the following BADI / Customer Exit:
    Name of Enhancement : IQSM0001
    Name of Function Module Exit: EXIT_SAPLIPW1_001
    Name of Include : ZXQSMU01
    ZXQSMU01:
    This user exit can be used to create the serial numbers automatically for material of a production order. Number of serial numbers generated will be equal to the total number of quantity. The purpose behind development of this user exit was to attach prefix in each serial number generated.
    so as per your requirement you can generate serial number like ABC0001 etc.
    Process Steps:
    For exit: EXIT_SAPLIPW1_001
    1. Get serial number profile for a material in respective plant.
    2. Check if the profile is u2018XYZu2019.
    3. If profile is u2018XYZu2019 generate the serial numbers for the given quantity of material in production order.
    General Program Structure
    For exit: EXIT_SAPLIPW1_001
    1. Get the serial number profile using function module 'MARC_SINGLE_READ' for a material.
    2. Check if the profile is u2018XYZu2019.
    3. If the serial number profile is u2018XYZu2019 then generate the serial numbers for the given production order quantity of a material.
    4. Concatenate ABC as a prefix to the all generated serial numbers
    Provide above details reg. implementation BADI / Enhancement to your ABAPer and go ahead.
    Hope this helps.
    Revert in case of any doubt.
    Award points if useful.
    Regards,
    Tejas

  • PS Batch/Droplet serial number not incrementing?

    Hello
    I'm hoping someone can provide a solution.
    I'm trying to make a batch that ill then convert to a droplet so I can then use a watch folder to run the droplet. (Automate as much as possible, as I process a lot of files)
    A little how I would process files at present: Open mockup in PS>run batch with action already created, once complete, move onto the next mockup.
    Now the master mockup file I use has a smart layer that I place data into, this then transforms the pasted image into a mockup to represent the product.
    Now the problem, the serial number does not increment as I'm trying to use a droplet I have to include an open and close command for the mockup, this then stops the number incrementing. (The number must be attached to the PS file). This then keeps exporting the files and over riding 001 every time.
    We use extend script with illustrator daily so I'm not sure if using this is a solution?
    Any feedback is highly appreciated!
    Thanks!

    Try using the Image  Processor Pro in the action you used to create the droplet.   If the output file exist that script will generate the next name. Actions can not use logic on their own.  If the droplet you create has a problem naming the output file that it replaces files rather then generating the next name the action you created the droplet  needs to use some scripting. See that the output file exists and if it does generate a unique name upping the sequence number till  its unique one that does not exists.  Actions can not use logic without using a script.
    The Image Processor script is not a plug-ij it will always show its dialog.  The Image Processor Pro script is a Photoshop Plug-in It will bypass displaying iys dialog when user by playing the action step that was generated recording its used.  What it recorded will be used.    Once installed the Image Processor Pro script is accessec and recorded usinf  menu File>Automate>Image Processor Pro...   Where the non plug-in Image Processor the ships with Photoshop is Access via menu File>Scripts>Image Processor.  It does not have plug-in support programmed in. It can not record settings into an actions step.
    When you record the IPP action the dialog will show and IPP will record the settings used into the action step,  When the action is played the dialog will not show instead the recorded setting will be use.  If you do not turn on that action step dialog.
    There is no requirement to use the bridge.... Infact if you use the bridge to select files then use menu tools Photoshop Image processor Pro  you will not be using  your droplet or action..  If you set up the IPP dialog to use your action that uses IPP I think it may fail recursive use of a plug-in is questionable.

  • Alphanumeric Number Range For Serial Number

    Hi Friends
    How can i use alpha-numeric number range for serial numbers.I am using serial number profile For  GR Process
    Regards
    Vivek

    Hi,
    You may check link
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/3c/abc157413911d1893d0000e8323c4f/frameset.htm
    Ramesh

  • Install acrobat 9 standard to new PC without CD (lost) error invalid serial number

    Why I have serial number but cannot install to new PC

    So I tried to do some sleuthing on Adobe's FTP site.
    They host every single incremental update file to the Adobe Acrobat 9 software, but not the installation software itself!  How ridiculous!
    ftp://ftp.adobe.com/pub/adobe/acrobat/win/9.x/
    I also found out that other users are having the same issue:
    Re: Need Acrobat 9 Standard download
    Why should I have to waste more time arguing with the TST just to install something that could be public facing to begin with?

  • Adding a serial number to a template in Numbers

    Hi everyone, I'm hoping someone may be able to help. I run a small business and would like to create an invoice template in Numbers. Could anyone tell whether there is a way to create a serial or invoice number each time I create a new document from a template?
    Thank you very much for your help.

    Hello
    If someone is interested, it would be easy to write an AppleScript to insert a serial number in a document.
    The advantage is that it would be a frozen number.
    Two ways to do that:
    a - generate a number incremented by one each time you run it.
    b - generate a string like the one created by the formula I passed.
    The behaviour would be slightly different.
    The first version assumes that the last used number is stored somewhere.
    The second one is not tied to this obligation.
    In fact I was able to write two scripts of a special kind.
    They may enclosed in a structure changing them in Services.
    Instructions to do that are given in the header of the second script.
    The first one inserts the long date_time string where you want.
    The second insert a serial number built according to the currentdatetime.
    --[SCRIPT insertDateTime]
    on process()
    set curDate to (current date) as Unicode text
    --return curDate
    end process
    --[SCRIPT]
    --[SCRIPT insertSerialNumber]
    (* From the Script Editor, save this script as a Script
    Then pack it as a Service using the tool which you may download from:
    http://wafflesoftware.net/thisservice/
    Apply the setting: Produces output.
    The Service will be directly created, installed and activated
    then working with a Services aware application,
    select an insertion point then go to
    menu theApplication >Services > pasteSerialNumber
    will insert the serial number.
    on process()
    set cd to current date
    set serial to (year of cd as text) & text -2 thru -1 of ("0" & (month of cd as number)) & text -2 thru -1 of ("0" & day of cd) & "_" & text -2 thru -1 of ("0" & hours of cd) & text -2 thru -1 of ("0" & minutes of cd) & text -2 thru -1 of ("0" & seconds of cd)
    --return serial
    end process
    --[SCRIPT]
    Yvan KOENIG (from FRANCE samedi 19 janvier 2008 21:18:12)

  • Associate a serial number to activity

    i have create a custom to report to create an activity in CRM, the activity is created and that's ok.
    Is it possible to associate the serial number to the activity?

    Hello
    If someone is interested, it would be easy to write an AppleScript to insert a serial number in a document.
    The advantage is that it would be a frozen number.
    Two ways to do that:
    a - generate a number incremented by one each time you run it.
    b - generate a string like the one created by the formula I passed.
    The behaviour would be slightly different.
    The first version assumes that the last used number is stored somewhere.
    The second one is not tied to this obligation.
    In fact I was able to write two scripts of a special kind.
    They may enclosed in a structure changing them in Services.
    Instructions to do that are given in the header of the second script.
    The first one inserts the long date_time string where you want.
    The second insert a serial number built according to the currentdatetime.
    --[SCRIPT insertDateTime]
    on process()
    set curDate to (current date) as Unicode text
    --return curDate
    end process
    --[SCRIPT]
    --[SCRIPT insertSerialNumber]
    (* From the Script Editor, save this script as a Script
    Then pack it as a Service using the tool which you may download from:
    http://wafflesoftware.net/thisservice/
    Apply the setting: Produces output.
    The Service will be directly created, installed and activated
    then working with a Services aware application,
    select an insertion point then go to
    menu theApplication >Services > pasteSerialNumber
    will insert the serial number.
    on process()
    set cd to current date
    set serial to (year of cd as text) & text -2 thru -1 of ("0" & (month of cd as number)) & text -2 thru -1 of ("0" & day of cd) & "_" & text -2 thru -1 of ("0" & hours of cd) & text -2 thru -1 of ("0" & minutes of cd) & text -2 thru -1 of ("0" & seconds of cd)
    --return serial
    end process
    --[SCRIPT]
    Yvan KOENIG (from FRANCE samedi 19 janvier 2008 21:18:12)

  • Runtime Error / Invalid Serial Number

    I have Tech Comm Suite 3 on Windows XP SP3.  Things were running fine yesterday when I left the office.  This morning I am getting a "Runtime Error! This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information."  when I attempt to launch either FrameMaker or Photoshop.  For FrameMaker, if I leave this message alone, the application attempts to start, but then displays a "Your serial number is no longer valid. Try reinstalling FrameMaker using a valid serial number." message.  What does all of this mean?  And why is it suddenly appearing today?

    So I tried to do some sleuthing on Adobe's FTP site.
    They host every single incremental update file to the Adobe Acrobat 9 software, but not the installation software itself!  How ridiculous!
    ftp://ftp.adobe.com/pub/adobe/acrobat/win/9.x/
    I also found out that other users are having the same issue:
    Re: Need Acrobat 9 Standard download
    Why should I have to waste more time arguing with the TST just to install something that could be public facing to begin with?

Maybe you are looking for

  • Can't open Logic session without crashing PLEASE HELP

    Hi how's it going? Having a crisis with Logic pro 9 on a 15inch macbook pro running osX.6.8 Every time i open a session, it is crashing right away.. Thought it could be a problem with Omnisphere but bounced all the omnisphere tracks in place and is h

  • Jtable not scrollable

    My app pops up a new JFrame in which I create and add a JPanel with a scrollable JTable as follows, however no vertical scrollbar appears. frame.getContentPane().add(new ResultsPanel(),BorderLayout.CENTER); frame.setVisible(true); public class Result

  • Value additions in pp module

    Hi, pls mention some of the examples for value additions that can be proposed in pp module? also mention if that value additions are the functionlities of the pp module, then can we call them as value additions? pls clarify.

  • Running Essbase 6.1 as a service on Windows 2000

    OK, what's the scoop about running Essbase 6.1 as a service on Windows 2000?Besides not seeing the graphic interface, are there any issues? Are there any issues with shutting down the Essbase server by either clicking "Stop" in the Services panel or

  • Solidarity day

    Hi sap expert! I have a question in HR for France. They have a solidarity day, a day they worked for but which is normally a day off/legal holiday, and for which their wages go to the state. How manage this for the absence? Do i just have to modify t