Shift satetment problem

hi
i am not understanding the output of he last one why the out put is 'abcdefghi'
SHIFT ALPHABET RIGHT DELETING TRAILING M2.
t
DATA: ALPHABET(15) VALUE '     ABCDEFGHIJ',
      M1(4)        VALUE 'ABCD',
      M2(6)        VALUE 'BJJCA '.
SHIFT ALPHABET LEFT DELETING LEADING M1.
The field ALPHABET is unchanged.
SHIFT ALPHABET LEFT DELETING LEADING SPACE.
The field ALPHABET now contains 'ABCDEFGHIJ ' .
SHIFT ALPHABET RIGHT DELETING TRAILING M2.
The field ALPHABET now contains ' ABCDEFGHI'
thanks

Hi sanjeev,
1. I tried the same at my end.
   I was also confused, but now
   i understood what is happening actually.
2. Its not an error.
   Its the way how the ABAP syntax behaves.
3. In your same program (taken from F1 help)
    i have added EXTENSIONS
    which will make clear
    -how this behaves
4. If we take the literal meaning of the words,
   RIGHT = moves the charcters right
   DELETING = Deletes something
   TRAILING = deletes something from right only
   mw       = delete M2 if it is in right only (not in left)
5. Try this code to get a taste of it( just copy paste)
6.
REPORT abc.
DATA: alphabet(15) VALUE ' ABCDEFGHIJ',
m1(4) VALUE 'ABCD',
m2(6) VALUE 'BJJCA '.
SHIFT alphabet LEFT DELETING LEADING m1.
*the field alphabet is unchanged.
SHIFT alphabet LEFT DELETING LEADING space.
break-point.
*the field alphabet now contains 'ABCDEFGHIJ ' .
SHIFT alphabet RIGHT DELETING TRAILING m2
*the field alphabet now contains 'ABCDEFGHI'
EXETENSIONS
alphabet = 'ABCDEFGHIJ'.
m2 = 'IJ'.
SHIFT alphabet RIGHT DELETING TRAILING m2.
*alphabet is 'ABCDEFGH' 'IJ' Deleted
alphabet = 'ABCDEFGHIJ'.
m2 = 'HIJ'.
SHIFT alphabet RIGHT DELETING TRAILING m2.
*alphabet is 'ABCDEFG' 'HIJ' Deleted
alphabet = 'ABCDEFGHIJ'.
m2 = 'GHIJ'.
SHIFT alphabet RIGHT DELETING TRAILING m2.
*alphabet is 'ABCDEF' 'GHIJ' Deleted
break-point.
regards,
amit m.

Similar Messages

  • Color shift printing problem from LR solved!!

    Check this discussion for workaround to the color shift printing problem in LR. It's for the 3800, but I assume it also applies to other Epson printers, and quite possibly to other printer vendors.
    http://www.adobeforums.com/webx/.3c05f2c5/6

    Yes it applies to Canon as well.

  • Left shift key problem help please

    My left shift key is shifting my open page up out of the way and bringing me to my desktop page. My right key works fine. Does anyone know how to fix this problem?

    Well, not sure about you new-fangled Snow Leopard users, but I'd check the Dashboard & Exposé preference pane in System Preferences and see if the Desktop shortcut is "Left Shift" instead of the normal F11.

  • WIreless keyboard shift key problem

    I have an Apple wireless keyboard which was working fine for the past 10 months, until this morning. Now, when I press the shift key, it types an "I" and whatever other key I hit. Also, there are occasional random capital letters when I type without pressing the shift key. I've tried things like resetting the PRAM, going into keyboard preferences and resetting to the defaults, and unpairing/repairing the keyboard to my iMac. It is definitely the keyboard, as I plugged in the USB keyboard from my daughter's iMac, and that works fine. Also, I've tried to get support, but can't get past Apple telling me my serial number is invalid (Thanks so much to srodney for a VERY clear explanation of how to find that miniscule serial number!)
    Thanks for any help you can give!

    Keyboard: lower case letter or letters stop working.
    Friends, I have solved this problem and used it several times successfully. In my case, it was the lower case “a”, the only letter that would not register and because my password contains an “a” I could not even restart and log in without a work-around. Tried numerous keyboards, cables, and all the rest. A safe boot fixed the problem so I knew it was a corruption glitch. Short version: I just did this two hours ago - July 18, 2009 - only the second or so time in a year, although it took me a lot of preference experimentation the first time to sniff it out.
    In my case, went to my “user/library/preferences” folder and dragged onto the desktop the preference “loginwindow.plist” (not the one that starts "com.apple", at least in my case I didn’t need to get rid of that one). Restart and voila! Problem solved. Trash the old "loginwindow.plist" as a new one is created when you restart and you lose no data. To their credit, Apple was very helpful back when it happened the first time, and it was a real conundrum to them as well. I got lucky that it was not too obscure a problem so I didn't have to go through all the preferences and remove them one by one for hours. I found the guilty party fast. Now ya know! Maybe it'll work for you. And a general thanks to all the good people who write these notes and have saved my sanity many, many times. Finally a chance to pay it forward.

  • G505s - Shift key problem

    i have a lenovo g505s and neither of my shift keys are working, out of the box. all other keys appear to be working just fine. i have contacted lenovo tech support and they restored the factory settings, but that did not fix the problem. i called geek squad and they messed with the filter keys and sticky keys. we were only able to type one letter [a fluke, it never happened again] right after turning on the filter keys. after that, no matter what we did, the shift key still does not work. any suggestions/
    Moderator note: moved post from General board.  Edited subject to match content.  Was:  T61 - Shift key problem

    Hi Lkinkley,
    Welcome to Lenovo Community Forums!
    I’m sorry to hear that the Shift Key is not working as expected in your G505s Laptop, as the issue persists. The only available option is to call Technical Support for Assistance to get the details of nearest Authorized Service Center to get the issue analyzed.
    Click here to open a link where you can select the country and get the exact contact support number. I’m sure they will be a great help.
    Do post us back for further queries.
    Best Regards
    Shiva Kumar
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • Safari 3.1 Update and Shift key problem in Gmail

    The problem of the new 3.1 Safari update and its affect on the shift key in Gmail is all over this forum and the Gmail forum. Is anyone from Apple seeing this? This seems a very convoluted way to let Apple/Gmail know about it. It would be good if one could just email Apple with the problem - or even phoning !! instead of one having to join two discussion groups to find out what is going wrong after a frustrating day trying to send Gmails and only being able to send them in lower case. I joined the Mac world to get away from the Microsoft approach to support, but am a little disappointed that there are so many hoops to go through to find an answer to a problem that has sprng up as a result of a Safari update.

    That matter is being discussed in this thread:
    http://discussions.apple.com/thread.jspa?threadID=1447355&tstart=0
    Where to send product feedback to Apple:
    http://www.apple.com/feedback/
    You can also email Gmail and ask them to repair their application.

  • HP Pavilion Shift key problem

    Both shift keys on my HP Pavilion laptop is not working correctly. Problem:When I press the left shift keep.....I get this symbol      > When I press the right shift key ...... I get the letter or number   O I have checked all the keyboard setting to reflect USA.  All drivers are up to date.     Thank for your help,Mike

    Hi , Welcome to the HP Forums! It is a superb  place to find answers and suggestions! 
    For you to have the best experience in the HP forum I would like to direct your attention to the HP Forums Guide. Learn How to Post and More How Do I Find My Model Number or Product Number? I grasp that when you press  the left shift keep,  I get this symbol      >. When I press the right shift key,  I get the letter or number   O. You have checked the keyboard settings and the drivers are current. Have you ran the Windows troubleshooter? Have your ran the  HP Support Assistant  ? Here is a link to HP Notebook PCs - Notebook Keyboard Troubleshooting (Windows 8)  that should also help. If you connect an external keyboard does it respond the same or does it work correctly.  If it works correctly it is not a software issue  but hardware one. Please contact HP support at Contact HP Support for further assistance or repair options.  To say thanks for responding please click the thumbs up button below.If this has helped you overcome this difficulty, please choose solution provided to help other posters locate this information.  Good Luck! 

  • Keyboard Shift Key Problems - HP Envy 15

    My laptop - it is an HP Envy 15 and the product number is G6U23UA#ABA.  recently started having issues with the shift key. I just got this computer in August of this year so it's very new and still under warranty. I have not spilled anything on it and I take very good care of it so I believe it may be a software issue. When pressing the shift key it will not capitalize letters - I have to use the caps lock key. I also am not able to produce the any of these symbols - ! @ # $ & ( ) - on the keyboard since that requires the use of the shift key.
    Is there a fix for this problem? If not, is there a way for me to send in my laptop for repair since it is under warranty?
    Thank you.

    Hi @mlisk17 ,
    Thank you for visiting the HP Support Forums and Welcome. Please call our technical support at 800-474-6836. If you live outside the US/Canada Region, please click the link to get the support number for your region. They will be happy to assist you immediately.
    Thanks.
    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" on the bottom to say “Thanks” for helping!

  • T61 - Shift key problem

    The last week I noticed the shift key was not working when I start up the notebook. After about one hour it starts working again. Anybody have any idea what's causing this?
    T7500(2.2GHz), 2GB RAM, 160GB 5400rpm HD, 14.1in 1440x900 LCD, 128MB nVIDIA Quadro NVS 140M, WinXP Pro
    Solved!
    Go to Solution.

    If your T61 is still in warranty I'd end it in. If not, are you comfortable taking the keyboard out and inspecting it?
    ThinkPad T23, 2647 HU8, Based on 2647-8RU: PIII-M 1.20GHz (512KB), 512MB RAM, 40.0GB HDD, 14.1 XGA(1024x768) TFT LCD, 8x8x24x/8x CDRW/DVD, Modem(MPCI), Ethernet(CDC), WinXP Home, Linksys Wireless B adapter.

  • Shift Fields problems...

    Hi. I wonder if someone could help me with shift fields.
    Well, I've got some HDV (SonyV1U) 1080i footage. I'm editing it just by dropping this footage on my DV NTSC timeline, that's because I also have some DV material. I don't have any video monitor to check how the video plays...just the computer monitor.
    I'd notice that some of my 1080i footage has an automatic shift field (+1) filter, and it seems to be flickering a little.
    Should I remove it from all takes? My finish output would be a Standart DVD and a miniDV tape.
    I've edited almost 30 minutes and I worried if i should turn off all shift fields or not, cause it's gonna take me some time...
    I'm looking foward for an answer.
    thank you!
    paulo gambale
    Brasil - SP

    I would not remove the shift fields filter...
    Patrick

  • CS3 Shift-I Problem

    I can't seem to get rid of the fact that Shift-I acts as
    "paste".
    Doesn't show up in the keyboard shortcuts.
    Help MUCH appriciated!

    Just remember - no answer usually means there is no answer.
    You could consider opening a trouble ticket with Adobe. If
    the program is
    found to be at fault, you don't get charged for this (but
    don't hold your
    breath - it was tested deeply on the Mac).
    http://www.adobe.com/support/programs/dreamweaver/index.html?tab:contact=1
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "thekrynn" <[email protected]> wrote in
    message
    news:f22tdt$31s$[email protected]..
    >I can't seem to get rid of the fact that Shift-I acts as
    "paste".
    > Doesn't show up in the keyboard shortcuts.
    >
    > Help MUCH appriciated!

  • E66 shift key # problem!

    Hi there,
    whenever i click the shift button # once it's like i click and hold it, but i don't! I fix it only if i slide the phone up and down once or wait for the stand by mode. Any suggestions?

    i didn't like garmin at all! I use a pna navigator with Destinator maps loaded. I think that an external GPS navigator is the best solution. I don't have any idea if an updated version of the Garmin will fix the problem

  • How to fix the Shift key problem in Brio 6

    Hi,I'm at Brio/Hyperion Intelligence 6.6.4.40 and need to install the patch to bring Brio to 6.6.4.44. Is this patch available on the web?thanks,-john

    Contact Brio Support, Raise a service request, and they will provide you with the patch

  • Shift Delete problem

    Hi Guys,
    I have a Text as   "ABCDEFGH"
    I need to remove the Quotes ( " ) at the start and the end.
    Kindly help.
    Thanks and regards,
    Frank

    Hi,
    It is very simple.there are 2 approach for doing this:
    1.
    data:l_string(10) type c,
           l_string1(8) type c.
    l_string = '"ABCDEFGH"'.
    l_string1 = l_string+1(8). "this will read l_string A till H into l_string1
    write: l_string1.
    OR
    2.
    data:l_string(10) type c,
           l_string1(8) type c,
          l_len type i,
         counter type i.
    l_string = '"ABCDEFGH"'.
    l_len = strlen(l_string).
    l_string1 = l_string+1(l_len -1). "this will read l_string A till H into l_string1
    Hope this might help you.
    Pooja
    Edited by: Pooja Gupta on Feb 11, 2009 12:53 PM

  • Printing problem with Canon LBP3370

    I'm having an issue relating to the Canon LBP3370.
    I also notice that Canon Europe seem to have removed all trace of any MacOSX drivers from the support page for this printer.
    I have an 'early' MBP running 10.6.6 w/ Suitcase3, QXP8.5 and CS5.
    Just bought a MacMini updated to 10.6.7. Same software. Same files. Same fonts.
    I have one file which gets printed weekly from a template in QXP. It prints fine on the MBP on a Canon LBP3370 using the last 'auto updated' driver. Not sure how to check the version number of the driver, but it works. I looked in 'About this Mac' and looked up the printer, and it says driver version is 2.0 - then again, it says the same for the version on the MacMini, which was installed today using an installer marked 2.24.
    On the MacMini, the same file, on the same software yields an output error to the printer and requests the printer be switched to 'raster' mode in 'Quality' settings in order to print, which I understand yields diminished quality on more complex files.
    I experimented with the file, removing elements and isolating them in another document to test if they print OK on the MacMini. 99% of all the page elements print just fine including a complex EPS without switching to 'raster' mode. All except for... wait for it... a SINGLE weight of the Adobe Helvetica Neue LT Std OpenType font. The document has about seven separate weights of the same font in use, and it is only one of them that triggers this problem.
    I've scanned the font completely for errors and corruption and it gets a clean bill of health. The exact same font, on the MBP, using the same software and the same printer, but used on 10.6.6 prints perfectly without having to switch to raster mode.
    Bizarre.
    What actually is the difference between UFR and Raster modes anyway? How do I fix this? It seems more likely to be a 10.6.7 issue than a Canon driver issue specifically... I notice the webs full of people commenting on 10.6.7 causing problems with OpenType fonts.
    Any ideas?

    sig
    Not really, thanks anyway. I'm already on a later driver than that.
    PAHU
    Thanks for the input. I'm still somewhat confused by the aparrent existence of two different problems - first the sheer number of complaints that 10.6.7 in itself has broken a good deal of OpenType font functionality, particularly in the PostScript flavour, and second that users have been having similar specific problems with this exact printer which appears to be a result of a driver in need of fixing.
    I'm not sure which option to place my bet on, or whether indeed the two are, in fact, connected and the development of the 2.24 and later drivers are in essence 'fixes' for the 'breakage' introduced by 10.6.7 in general.
    The part that confuses me most is that it is a single weight out of five weights of the same font used in the same document which causes the problem. Part of me says that the solution is to just abandon that specific weight, but then another part of me says that I'm managing some three thousand faces on this system, any of which could need to be used, and I cannot test all of them to disable or deactivate the weights (or families) which might cause issues.
    Can you point me in the direction of a clean, pure source of 2.24 for UK English, which I cannot find on the Canon Europe website at all (certainly on the UK site, all Mac drivers for this model appear to have been discontinued and removed from the site, even though the vestigial tech notes for the printer still on display on the product page state that MacOSX is supported). I'm prepared to try a reinstall from a fresh source to see if it shifts the problem. Otherwise, as you say, it would appear that another 'bug' has been found which the attempted fix has not cleared.

Maybe you are looking for

  • $100 off Macbook Student Discount Question

    I'm going to be a university student in the fall. While I have a .edu address, I do not get my student ID until school startsl. Can I still get this discount? Should I just bring my college acceptance letter and my highschool ID?

  • Safari 6.0 command- doesn't work

    Command+ works fine but command- doesn't work. I'm running 10.7.5

  • 65W power adapter VS 90W adapter

    I have a T400 2765, it was shipped with a 90W power adapter, I was recently given a 65W adapter. Is it ok to charge my battery with the 65W?, with my laptop being shippied WITH a 90W? I have a 9 cell batter and a 4 cell battery. T400 Intel® Core™2 Du

  • Seeing exact time of a selected piece of audio

    This used to be possible in older versions. I want to always grab 30 seconds of audio from a wave form. Is there a way of seeing exactly how long the audio is that you highlight in the editing window? at the moment the time display at the bottom righ

  • SCCM 2012 client push occurs from site server or from distribution point?

    I would like to set up client push in SCCM 2012 and I have a remote site with about 80 workstations that I would like to deploy the clients to using client push, but this remote site is VERY slow, as in less than 3Mbps slow. There is a remote DP loca