Get new number for combination of Field1 field2 and numeric

Hi,
i have a internal table with one field i.e. fname1
the data contains like this.
fname1
========
AAAAA_BBBBB_V001.TXT
AAAAA_BBBBB_V002.TXT
AAAAA_BBBBB_V003.TXT
AAAAA_BBBBB_V004.TXT
AAAAA_BBBBB_V005.TXT
AAAAA_BBBBB_V006.TXT
AAAAA_BBBBB_V007.TXT
Here AAAAA_BBBBB_V001.TXT means... field1_field2_v(number). these values are stored in the internal table.
now my requirement is i have to generate the new version number in the internal table.
i.e. AAAAA_BBBBB_V008.TXT
i have to get the latest version and i need to display the value in the popup box.
Thanks in advance.
Regards,
Balu
Thread locked for further postings, Considering this as Basic post and locking
Edited by: Vijay Babu Dudla on Jun 23, 2009 5:23 AM

Hi,
data: v_str type string,
        v_version_old(3) type n,
        v_version_latest(3) type n.
loop at itab.
v_str = itab-field1.
REPLACE ALL OCCURRENCES OF REGEX '\D' IN v_str  WITH ''.
condense v_str.
move v_str to v_version_old.
if v_version_latest LT v_version_old.
   v_version_latest = v_version_old.
endif.
endloop.
Finally v_version_latest contains the maximum number.
Regards,
Kumar Bandanadham

Similar Messages

  • Where to get serial number for photoshop cs2?

    Hi! where do i get serial number for photoshop cs2 free dl? Thanks

    Error: Activation Server Unavailable | CS2, Acrobat 7, Audition 3
    CS2 is not free. The download is for existing owners of CS or CS2.

  • How do i get serial number for my element12 i have the redemption code

    how do i get serial number for my element12 i have the redemption code

    Hi ylee0y0te,
    Please follow the steps here.
    1. http://helpx.adobe.com/x-productkb/global/redemption-code-help.html
    2.http://helpx.adobe.com/x-productkb/global/find-serial-number-student-teacher.html
    3.http://helpx.adobe.com/x-productkb/global/find-serial-number.html
    Hope it helps you.
    Regards,
    Rajshree

  • TB 27.0.1 (W7) will not "get new messages for all accounts"

    I installed W7 with IE11and downloaded the latest TB (27.0.1) I have added five email accounts (more to be added) and none of them show up in the left pane - only global Inbox and two folders I created. I can get new messages manually one account at a time, but "get new messages for all accounts" (or Shift F5) does nothing. Most of this happed after MS installed well over 100 updates to my W7, but some of my accounts never did show up in the left pane even before the W7 updates. I have reinstalled TB - nothing changes.

    Matt, I thank you for your kind and gracious response (Ok I will say this only once....). Be assured that I would never think of asking your advice again.
    The crux of the matter has been resolved by checking the “Include this server when getting new mail” box in each account’s “Advanced” box under “Server Settings.” Now every time TB checks for new mail (including on startup), the process is displayed in the lower left portion of the window. I wish this had been explained to me more clearly early on.
    Having all accounts in the left pane has become unimportant now that I can see the mail being checked on startup, periodically, and on Shift F5.
    I consider this thread closed.

  • I cant get a number for my ipod on iMessage?

    I'm having troubles, I can't get a number for my ipod on iMessage. Like I send & receive texts from my email but I cant get a phone number. If I try to add it on the field it wont let me put it in. So what do I do?

    An iPod (and iPad) will only have a phone number for Messages (and FaceTime) if the same ID is used on an iPhone with iOS 6
    iOS 6 and OS X Mountain Lion: Link your phone number and Apple ID for use with FaceTime and iMessage

  • Where can I get serial number for Lightroom to start using it?

    Hello. I have just created Adobe CC account and purchased a Photography membership plan for Individuals. The price is 9,99 per month and this sum has already been taken from my card. On this page (https://accounts.adobe.com/plans) I can see the confirmation that I have obtained this plan.
    Now I want to use Lightroom but it asks me for serial number. After reading some help I found that I should get serial number from here - https://www.adobe.com/account.html. But on this page it says that "You have no registered products.". So I see no serial number.
    So there's a simple question - where can I get serial number for Lightroom to start using it?

    Jeff, thanks for your answer but it doesn't help. I've successfully passed all checks on page Sign in, activation, or connection errors | CS5.5 and later . My internet connection is ok, hosts file ok, certificates ok, etc. It's not a source of the problem.
    I've found that on page Adobe ID it says that I have free membership. Somehow it turns that my purchased Photography membership plan is not there at all. in order to proof that I really purchased it please see screen from my internet-banking page below:
    Why it is displayed only free membership in my account page and not Photography subscription which was already paid?

  • I cant get the number for imessage

    I cant get the number for imessage
    i press receive at and it only gives me my email

    An iPod uses the email address that you assign for Messages to receive messages. It is usually your Apple ID email address but you can add others to.

  • Redemption code needed to get serial number for Lightroom is not activated. What to do?

    redemption code needed to get serial number for Lightroom is not activated. What to do?

    Redemption Code http://helpx.adobe.com/x-productkb/global/redemption-code-help.html

  • How to get online Number for India ?

    Spoiler (Highlight to read)
    How to get online Number for India ? 
    Spoiler (Highlight to read)

    Hello,
    Skype does not offer Online Numbers in this country.
    For more info regarding Online Numbers please visit: https://support.skype.com/en/faq/FA269
    If my answer helped to fix your issue, mark it as a Solution to help others.
    Thank You!
    Please send private messages only upon request.

  • I have a ipod classic 5th gerneration. Is there any way I can get a new battery for it? Or does Apple only get new batteries for the 7th generations? Thanks

    I have a ipod classic 5th gerneration. Is there any way I can get a new battery for it? Or does Apple only get new batteries for the 7th generations? Thanks

    Yes you can still purchase replacement batteries your iPod from third party repair companies.  Apple does not offer replacement parts.
    Do a Google search for iPod battery replacement and you should get a plethora of results.  There are many good deals on Amazon and eBay.
    B-rock

  • Any table or program to get the number of records in P, A and F tables

    HI all
    any table for program to get the number of records in P, A and F tables. I want to create SQ01 queries to get the status of number of records. We are gng for a production cutover next week. Want to capture all the data before and after Upgrade cutover.
    Also suggest me how to create sq01 queries.
    Thanks in advance
    regards
    Janardhan KUmar K.

    Use Transaction LISTSCHEMA to see all the tables assosciated with ur cube
    Total number would be what you find in both the E & F fact tables. If there is no compression in the cube then E table will be empty.
    Alternatively u can use se16 transaction and enter E table and F table manually
    E table - /BIC/E(Cube name) and Ftable -  /BIC/F(Cube name)
    Or else u can go to the manage of the cube and without selecting any field for O/P and ticking the option output number of hits execute. The total of Row Count will give u the total no of records in the cube.

  • I get incomplete printing for anything in black ink. and test bars are also faint

    when printing documents the text in black comes out incomplete, some are fine, others are missing.  color images, printing are fine.  Test page comes out with extremely light for the black toner images as well as the black bars

    Hi @denwa13,
    Welcome to the HP Forums!
    I understand that you are getting incomplete printing for anything in black ink, and test bars are also faint. I am happy to help you with this printing issue!
    For further assistance, I will need some additional information:
    The Product/Model Number of your printer. Follow instructions in this link. Finding Your HP Product Model Number.
    If you are using a Windows or Mac Operating System, and the version number. To find the exact version, visit this link. Whatsmyos.
    If the printer is connected, Wireless, Ethernet, or USB.
    If the printer is able to make copies.
    If the power cable is plugged into a surge protector, or directly to the wall outlet. Issues when Connected to an Uninterruptible Power Supply/Power Strip/Surge Protector. This applies to Inkjet printers as well. 
    If you are using Windows, please try our HP Print and Scan Doctor, and post the results!
    Please see this post, Want Good Answers? Ask Good Questions, by @Bob_Headrick, so you can get the most out of these forums.  
    Hope to hear from you soon!
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • My serial number for adobe photoshop elements 12 and premiere elements 12 does not work

    My serial number for adobe photoshop elements 12 and premiere elements 12 does not work.  On adobe.com it shows that the serial number I received is associated with adobe photoshop elements 9 and premiere elements 9.  I have purchased those products in the past, but just recently upgraded to elements 12.  I can use the the photoshop organizer, but can't open the photoshop editor.

    You need to contact Adobe Support either by chat or via phone when you have serial number and activation issues.
    Here is a link to a page with options to help make contact:
    http://www.adobe.com/support/download-install/supportinfo/

  • I never receive my serial number for my product by email and I don't see in my product online.

    How to find my information. The Adobe service is really bad for that...
    I think to cancel everything !!!

    Hi Rahul,
    I’m ok now. I solve my problem on your chat Tuesday this week.
    Thanks for your help.
    Have a great day !
    <mailto:[email protected]> Carole Gillant 
    Assistante de Direction | Coordinatrice clinique
    Executive assistant | Clinic coordinator
    Connaissiez-vous notre clinique-école? Renseignez-vous  <http://www.epoqosteopathie.com/infoClinique.php> ici! |  <https://app.cyberimpact.com/clients/4704/subscribe-forms/B4FA8F33-35EE-4035-8B24-5888D47EF 268> Abonnez-vous à nos infolettres en cliquant ici.
    Did you know about our school clinic? Find out more  <http://www.epoqosteopathie.com/infoClinique.php?> here! |  <https://app.cyberimpact.com/clients/4704/subscribe-forms/0236388F-90FC-4D89-B310-3499CC7C7 556> Click here to subscribe to our newsletter.
    <https://www.facebook.com/ecoleprofessionnelledesosteopathesduquebec>    <https://plus.google.com/u/0/b/113483650816849309191>    <https://twitter.com/EPOQosteopathie> 
    De : RahulTyagi4you 
    Envoyé : 30 avril 2015 06:48
    À : EPOQ BROSSARD
    Objet :  I never receive my serial number for my product by email and I don't see in my product online.
    I never receive my serial number for my product by email and I don't see in my product online.
    created by RahulTyagi4you <https://forums.adobe.com/people/RahulTyagi4you>  in Acrobat Reader - View the full discussion <https://forums.adobe.com/message/7497853#7497853>

  • Got a used Ipad. restored it. cant get an update for ios7. it has 5 and says its up to date?

    got a used Ipad. restored it. cant get an update for ios7. it has 5 and says its up to date?

    If it doesn't have a camera it is a iPad 1 and can't be upgraded beyond IOS 5.1.1.

Maybe you are looking for