Adding 1 to a letter/character

Hi everyone,
I have a program where I need to find the next available wage type to use per category.
Some wage types, however, are alphanumeric (E.G '0SBC')
In the above example, the next available to use could be 'OSBD'
My question is, how do you add on to alphanumeric characters.
A more simpler example, if I have A, how do i add 1 and get 'B' as a result
Thank you
Daniel

Try this Daniel -
parameters: num1(4) type c default 'B'.
data: total(4) type c.
data: w_len type i.
data: w_num(3) type n,
      w_num1(4) type n,
      w_off type i,
      w_len1 type i,
      w_off1 type i.
w_len = strlen( num1 ).
w_len = w_len - 1.
if num1 CO '0123456789'.
   num1 = num1 + 1.
   stop.
endif.
do w_len times.
  w_len1 = w_len - w_off + 1.
  if num1+w_off(1) CO '012345678'.
     w_off = w_off + 1.
     if num1+w_off CO '012345678'.
          w_off = w_off - 1.
          w_num = num1+w_off.
          w_num = w_num + 1.
          w_off1 = 3 - w_len1.
          num1w_off = w_numw_off1(w_len1).
          stop.
     endif.
   endif.
   add 1 to w_off.
enddo.
if num1+w_len CO '012345678'.
   num1w_len = num1w_len + 1.
   stop.
endif.
if num1+w_len ne 'Z'
and num1+w_len CN '0123456789'..
  search sy-abcde for num1+w_len.
  add 1 to sy-fdpos.
  num1w_len = sy-abcdesy-fdpos(1).
endif.
end-of-selection.
write: / num1.

Similar Messages

  • I added an extra letter in my email login account when signing up for iCloud. How do I change my iCloud account ID?

    I mistakenly added an extra letter into my email address when setting up my icloud account. How do I correct my email ID in icloud?

    Welcome to the Apple Community.
    You can't change your Apple ID or primary email address, if it was your primary email address you messed up, you could always create an alias with the correct spelling.

  • Adding zeros to a character string

    Hello friends,
    I want to add leading zeros for a field.
    the field is a character string.
    for example ,
    data: A(5) type c.
    now when A  = 'ab' (non-numeric value)
    i want this to be converted in '000ab'
    so, is there any standard Function module or any other way for doing this conversion ?
    I tried the FM   'CONVERSION_EXIT_ALPHA_INPUT' but this FM does not work for non-numeric inputs..
    Thanks.

    Hi,
    The packed field is transported right-justified to the character field, if required with a
    decimal point. The first position is reserved for the sign. Leading zeros appear as
    blanks. If the target field is too short, the sign is omitted for positive numbers. If this is still not sufficient, the field is truncated on the left. ABAP indicates the truncation with an asterisk (*). If you want the leading zeros to appear in the character field, use UNPACK instead of MOVE.
    UNPACK
    Converts variables from type P to type C.
    Syntax
    UNPACK <f> TO <g>.
    Unpacks the packed field <f> and places it in the string <g> with leading zeros. The opposite of PACK.
    Regards,
    Bhaskar

  • Adding layer and let a part of the layer blend in to the background

    Hello,
    this is my problem:
    Pic 1. I have an image I want to use as a background, however the image is not complete. I need a part of pic 2 to fullfill it.
    Pic 2. The colors around the object doesn't match the colors of Pic 1.
    Normally it would be best to cut the object out. However in this case it wouldn't look nice (the object is mixed out (in color) with the rest of the image). If I cut out something the object won't look "proper".
    My question:
    How can I blend pic 2 on pic 1, using the original object from pic 2 (as it is), and at the same time blend the colors around it, so that it matches that of pic 1 / or simply remove it somehow?
    Thanks

    Could you please post (lores of) the two images?
    Quite possibly a masked Adjustment Layer clipping masked to »pic 2« might suffice.

  • Mouse click adding character to password

    I am working on my parents IMAC G5 with OS X 10.4.11. The problem is when I click Apply to save the PPPoE settings, it adds an extra character to the password. This under the network setup under System Preferences.
    I can't use the key board to tab through and hit enter to apply either.
    I wind up having to not save the password, and then go through a whole series of diagnostics to sign on through Safari.
    Why is it adding a character when the mouse is clicked on apply? It does this with USB mouse or with a wireless mouse. I all ready tried to turn off the blue tooth, too. I'm stumped, please help.
    Thanks Much, Inkudu

    Thank you for the warm welcome.
    I'm pretty sure it's adding or changing a character. It doesn't do what I described when I tell it to not remember my password and sign in maually.
    It only rejects my password through system preferences.
    I'll try the key chain. I also didn't know about the adding dots to make the password look longer. Are there any known issues where that interfers with passwords?
    Thanks Much, Inkudu

  • When I try to download an app from the AppStore , it asks for my apple password. The problem is in the box that opens to ask this, my apple I'd has a letter missing from it, so keeps on telling me it's a wrong password. I

    I've reset and even added the missing letter to my apple I'd in the request for password box, but it seems to have reverted to what it was before. I can't update or download anything as even though my password is right, it doesn't match the I'd so is always going to not work. Any help in putting this right please?

    Thanks Ralph, i tried that but it still didnt change the ID on the apps store. Strange thing is I tried my origional password and it worked, it seems the Apple ID ie my email address is not transfering to the app store , as when I try to download something and it requests my password when the Apple ID box opens, the ID is still missing a letter? Im at a loss as to how this happened or how to change it, but as it s working with my old password should I be worried about it? its different to anything else On apple ID , other than the one missing letter its the same email address but a different password for each one. It seems that what ever is in my Apple ID, it wont transfer to the app store Apple ID?

  • I need text to show one letter or word at a time.

    Hi there, I've been having this big issue that I can't seem to find an answer to.
    I'm trying to make it so text in a text box shows one letter or word at a time. (letter at a time preferred.)
    Does anyone know if this is even possible with flash? When I look it up I can never seem to get what I'm trying to find.

    That should be simple to do. Place a text box on Stage, enter the first letter and press F6. In the new frame, add the second letter as well and press F6 again. Keep repeating this (adding an additional letter in every frame) until you have the complete text. Adjust your fps speed as desired and Test your movie.

  • Foreign fonts display in character drop down menu

    When designing a sign for a customer, I take a photo of the existing signs, place on a new document in illustrator cs6, type text then scroll through the text character drop down menu to match the new sign text to the font that is currently on the customers signs, business card etc.
    There are many different types of fonts and I would prefer not to have the adobe system fonts, asian, arabic and other fonts that are not used for my purposes.
    Is there a way to remove them from this list.
    I have tried deleteing them from the window 7 font manager but they are essential system fonts and it displays a message that some programes will not work if I delete them.
    I have tried show/hide in the windows 7 font manager but this has no effect on the fonts displayed in illustrator.
    Any help would be appreciated.

    update...
    Seems windows 7 fonts can be set to show/hide for some programs but it does not work in illustrator. I have found a helpful program by Adobe Air called Font Picker which displays only the fonts installed and excludes hidden fonts (windows 7 font manager).
    It would be good to have a search facility that has fonts catagorised. There are a few out there where you can tag them but I don't see myself sitting through 35000+ fonts I have collected over the years.
    I did install Illustrator CC which has a few added options under the character font drop down menu. It also has a link to Typekit on Adobe Cloud but would you believe it didn't have Calligri which is a very common script font.
    Has anyone on this forum found a solution to this before. There are may questions related to this on the web but no answers or feed back.

  • What encoding is  the wide character,UCS2, UTF-8, other?

    (please view using simplified chinese encode )
    environment sets:
    LC_CTYPE=zh_CN.GB18030 LC_ALL=zh_CN.GB18030
    my C program code:
    wchar_t *pwc = L"��";
    main()
    printf("\n [%x]", *pwc);
    run it, the printing result: [2bc7]
    I expect to get the UCS2 code value 0x6c49 of ����"(the character in GB2312 standar) ,but the result is wrong.
    my questions:
    1. What is the wide character that had be got by adding 'L' before locale character ������. Is it UCS2 , UTF-8, other code?
    2. How to getting the UCS2 code of the locale character '��' by adding "L"?

    I see your issue. I tried to reproduce this issue using sqlplus.
    Setup NLS_LANG as you mentioned using WE8ISO8859P1 and connect to a UTF8 db.
    [oracle@server ~]$ locale -a | grep en_US
    en_US
    en_US.iso88591
    en_US.iso885915
    en_US.utf8
    [oracle@server ~]$ export LC_ALL=en_US.iso88591
    [oracle@server ~]$ locale
    LANG=en_US.UTF-8
    LC_CTYPE="en_US.iso88591"
    LC_NUMERIC="en_US.iso88591"
    LC_TIME="en_US.iso88591"
    LC_MEASUREMENT="en_US.iso88591"
    LC_IDENTIFICATION="en_US.iso88591"
    LC_ALL=en_US.iso88591
    [oracle@server ~]$ echo $NLS_LANG
    AMERICAN_AMERICA.WE8ISO8859P1
    SQL> select value from nls_database_parameters where parameter='NLS_CHARACTERSET';
    AL32UTF8
    SQL> select nchr(223) from dual;
    NCHR
    ß
    SQL> select chr(223) from dual;
    ERROR:
    ORA-29275: partial multibyte character
    SQL> SELECT CHR (223 USING NCHAR_CS) from dual;
    C
    ß
    SQL>  select  CONVERT('ß', 'WE8ISO8859P1','UTF8') FROM DUAL;
    CO
    SQL> select  CONVERT(CHR(223 USING NCHAR_CS), 'WE8ISO8859P1','UTF8') FROM DUAL;
    select  CONVERT(CHR (223 USING NCHAR_CS), 'WE8ISO8859P1','UTF8') FROM DUAL
    ERROR at line 1:
    ORA-12703: this character set conversion is not supportedI found that beta is in WE8ISO8859P1 character set
    here[url http://docs.oracle.com/cd/E11882_01/server.112/e10729/ch2charset.htm#NLSPG164]What Characters Does a Character Set Support?
    But I don't really understand whats the problem in the conversion.

  • Change the layout of added infotype (ESS)

    Hi experts ,
    I have added a new infotype and its working fine.Now i have to change the layout of newly added infotype .Please let me know how can i change the layout .
    Thanks in advance
    Regards
    Deepa Arya

    Hi Deepa,
    I Am giving step by step reply.
    1) Ur Structure does not exis.It means u have to create that.
    Follw this http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70016f20-ccc3-2d10-a6a6-887d9c2e258d?QuickLink=index&overridelayout=true
    For that .It will completely helpful for u.
    2)As u know in pa30 if u  enter infotype / ur custom infotype ,
    then from system>status. u  can
    find screen like this.
    Hope ur all doubt clear.
    Thanks
    Gourav.

  • My keyboard is bringing up extra letter when typing for example press O and T comes up next to it or press g and L comes up does anyone know how to fix this please it's a wireless keyboard

    HI my wirelse's keyboard is adding an extra letter to each one I type for example press O get a T next to it or press G and get and L next to it is there a way to fix this please
    thank you

    HI my wirelse's keyboard is adding an extra letter to each one I type for example press O get a T next to it or press G and get and L next to it is there a way to fix this please
    thank you

  • Find the userprofile added from yesterday

    Hi,
     I would like to get the userprofile which was created day before.Is there any way without looping through all the profiles.
    I have checked UserProfileChangeQuery, but it says will reteirve the profile that was modified and not added.
    Please let me know if any solution is avaible.
    Thanks,
    Sudan

    i dont think their is easy way...what we implement to cleanup inactive users(AD)  from UPA( because we have not enable the mysite cleanup due to legal issues).we wrote a custom sript, its read from USer from AD and Same thing from UPA and then compare
    it. after identifying the Inactive user, it then search for mysite for those users and generate the report.it took 2 hours to complete one iteration( almost 300k users).
    In your case( i am assuming you have MySite cleanup job), i think you have to write a logic.
    1st get the all user from User profile, then check for each user and create list of who dont have mysite.at then end create mysites for all the user who dont have Mysites.
    i know its not easy.
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • TM2: Unwanted space added to the left of handwritte​n text

     TM2t-1000 CTO
      Intel SU7300,  ATI 4550, 4Gb RAM, 500Gb HD
    Win7 Home Premium 64 bit (OEM  install)
    Hi there!
     This problem has plagued me since I got my TM2 in April. When I input text using the Handwriting Pad, an extra space is added to the left of the first letter I handwrite.  For example. If I try  to handwrite Hello Word!, the sentence  will look correct inside the Handwriting Pad, however, after a press the INSERT button, this is what is input instead:
    _Hello Word!  <-- underscore  represents a space.
     I'm then forced to delete the extra space before the letter  H. Next, If I reopen the Handwriting Pad to  change WORD into WORLD, this is what happens after  I handwrite  the letter L and press the  INSERT button:
    _Hello Wor_ld!  <-- underscore  represents a space.
     The Handwriting Pad adds a space + L. As you can see throughout this post, there are several extra spaces before words. This problem happens in several  different programs.  Here is a short list:
    Programs affected by the bug
    Visual C# Express 2005
    Google Chrome 5
     Mozilla Firefox 3.6
     Mozilla Thunderbird 3.1
     Notepad ++5
     Window Live Mail 14
    Strangely, this problem does not happen on Windows' own Notepad  or WordPad.  I'd like to  stress that the extra spaces do not appear on the Handwriting Pad! They are  only introduced once the text is inserted into an application  (like the text box where I've  entered my post  here).  I have an  old HP TC 1100 Tablet running Windows XP and,  with it, no extra spaces are added  before any letter, word or sentence  I handwrite.  This is the only problem with my TM2.  Quite  annoying!

    Hi Frank,
    Thank you for replying.
    Unfortunately, neither solution fixed the issue.
    The margin (if this is the correct terminology) is inside the text box, not the page of the document. Also, my insert margin is at zero.
    To describe it in more detail:
    I have a text box with a dotted line border. Inside the text box are the words "participant copy" (no quoatation marks). On my ruler, up the top of the page, I only have the left triangle/topbar (first line indent) marker on the left and the triangle marker on the right. There are no tabs there at all.
    The right triangle marker will draw a straight line to the text when I move it inwards. However, the left marker will never touch the text - always being about 2cm away from it. What I want to do is be able to move the words "participant copy" to the edge of the box and then centre the text. I can't seem to get the words to the left edge of the text box.
    Thanks again,
    Anthony.
    PS - I can email you a copy of the file if that will help clear it up.

  • Adding Checkmarks

    Hi guys. I have seen posts in the forum about this, but I don't understand a lot of the formulas. Can someone just simple post the exact formula for adding checkmarks across, let's say 5 cells. Ex. I checked off 3 of the check boxes so cell 6 would show the total...3. How do I formulate this?
    Thank you soooo much!

    Lets say that you have check boxes in column A then in another cell you could do the following:
    =COUNTIF(A,TRUE)
    If you have two checked this will return two.
    The countif statement takes two argument, the area to check/count and the test condition to compare it with to see if it should be counted.
    Hope this helps,
    Jason

  • How to copy Palm Desktop data to a PC using Windows 8.1

    If like me you still find the Palm Desktop data (address, calendar, memos, etc.) handy and use it long after throwing away the handset and "sync" ability, you may find this useful.  I bought a new PC using Windows 8.1 and had problems transferring data because of a wrinkle that I figured out, which didn't exist in Windows XP, Vista or 7 versions.  Here's a recap of one way to easily transfer data from those earlier versions if you have a USB flash drive (or Dropbox, Google Drive, whatever) handy :
    1) Download Palm Desktop 6.2 or 6.2.2 to your new PC.  Then give a user name exactly as it exists in your old PC's database.  This name will be used by Desktop software to create a six letter folder name (an abbreviated version of your name) to hold data that Palm Desktop will look up.  Wait a few seconds for this to happen, then close the Desktop application on your new PC.
    2) In your old PC from where you want to transfer data, look for the folder called "Palm OS Desktop" which should exist in "Documents" under "Users" folder and subfolders path like >your name subfolder>Documents in Windows 7 (may be Vista too) or may be under "Documents and Setting" folder in Windows XP. 
    3) In this folder "Palm OS Desktop" look for that six letter subfolder of your name, and select that entire subfolder and choose "Copy" or Ctrl-C
    4) Locate the same subfolder name in your new PC (which will have null data), delete it, and then "paste" the subfolder you "copied" into the same exact location.  If you've done it right, Viola!  Your new PC desktop should show all the transferred data once you again open the application.
    Most of the same procedure works with Windows 8.1 (probably also Windows 8) PCs.  What I found different was that the data subfolder created under "Palm OS Desktop} had 7 instead of 6 characters with a "0" (zero) added as the last character.  So when you finally copy and paste that subfolder into the new PC you have to rename it and add that "0" for the Palm Desktop to locate this data.
    Hope this helps.
    This question was solved.
    View Solution.

    To turn off UAC, go to the Control Panel, then User Accounts.
    Under the header, "Make changes to your user account", there is an entry titled "Change User Account Control Settings".
    Pick it, and drag the slider all the way down to "Never Notify".
    Access of Japan is the company Palm hired to write Palm Desktop 6.2.2.  
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

Maybe you are looking for

  • Error when runing report...

    Hi, every think is going correct. but when i try to execute the reports demo at the URL --> http://9iashost:7778/repdemo/examples/Tools/runrepIAS.html and after sign in SSO the server give me this error !!!! for the tow links "Test a JSP Web Report .

  • Using table in h:dataTable

    I'm trying to use <table> tags inside an h:column tag in an attempt to control formating with colspan and rowspan attributes like this: <h:dataTable var="data" value="#{upConference.conferences}" columnClasses="vert" rowClasses="evenrow, oddrow"> <h:

  • X Y origin point in Illustrator

    I need the x, y origin point to be in the lower left corner. In the past I was able to go into the Adobe Illustrator setting and change some code so when I double clicked in the left corner of the ruler it would switch my origin to lower left. Now th

  • Desktop icons non responsive but dock and menu bar ok

    I have at times had a situation where my dock is accessible and the top menu also accessible but non of the icons on the desktop can be accessed. You can click on them all you want and they do not respond. Even the disk drive (which I have displayed

  • Could setup VPN but could not connect to the server behind Windows

    Hello,  Server 1 and Server 2 are directly connect with cable. Server 1 has 2 NIC. I want to configure the following network, already have done most of the steps. Install the Role "Network Policy and Access Services.My router is configured to assign