Shift Right and Overlay

Hello,
I have a material = HR-SEC
I want to convert it to Internal format 000000000000HR-SEC. The conversion routine is not working.
I want to shift the material field to right and then add zeros using Overlay.
When I use Shift right, only one character is right shifted.
Any clue??
~Pranu

Hi Pranu,
use
shift material by 12 places right.
here is sample code....
data:
w_i(30) type c value 'HR-SEC', " ur material field shd be  > the length by the number of places u r shiftng it.
w_over(12) type c value '000000000000'.
shift w_i right by 12 places.
write:/ w_i.
overlay w_i with w_over.
write:/ w_i.
Regards,
Mdi.Deeba
Edited by: Mdi.Deeba on Sep 14, 2009 3:38 PM

Similar Messages

  • Contents shift right and down, rulers shift up and right ??? !!!

    Hi Chaps/Chappesses, this one has been bugging me a while now. I create ads for national press and the ads for one client are causing me hassle.
    I open an ad to update it for the following week and the entire contents shift right and down 5 - 10mm not a problem you say, but using any selection tools it selects the position of the item 'before' it shifted making editing a nightmare. How I get around it is to copy and paste into a new doc and I can work the file for a while, then when I come to open it again, it's shifted again.
    I've uploaded a 9mb zipped file if anyone cares to have a go at it for me - it's at www.rodgers.co.uk/test.zip
    I've run font doctor, changed the images, the only thing I can't do is change the fonts.
    Yours hopefully
    Jeff

    Which version of InDesign? Are you using Suitcase?
    This all sounds familiar from a couple of years ago when things appeared shifted on screen. Turned out to be caused by some aspect of Suitcase, if memory serves.
    Dave

  • Circular Shifting Right and Left

    Hi,
    I need help writing a method that performs a circular shift (either left or right, depending on parameter passed it) on a 56 bit number. It has to work such that all the higher order zeroes are retained.
    Put simply, I need to be able to input a 56 bit number, rotate it once left or right, and return that rotated 56 bit number.
    Please, any help out there for me?!
    Thank you
    Jake

    I presume you store the number in a long? In that case you can left shift << and right shift should be done with >>> wich is an unsigned shift. If you use >> 100...0010 will become 1000...0001 because all but the sign bit are shifted.
    a long in java is 64 bit and i think you want to keep the first 8 (unused) bits 0. If this is not the case you should set the firs bits to zero with number &= 0x00FFFFFFFFFFFFFFbefore shifting right you can check what has to become the first bit with long carry = number & 1; this wil set the carry to the last bit. Then you can shift the number: number >>>= 1; Then check what bit 56 should be:if(carry != 0)
    number |= 0x0080000000000000Left shift will becomelong carry = number & 0x0080000000000000
    number <<= 1;
    if(carry != 0)
    number |= 0x0080000000000000Good luck.

  • When I print to pdf on Mac, the first page comes out fine but all the rest are magnified and shifted up and right

    I click File>Print. Whether I open pdf in Preview, save to pdf, or just print, I get this error. The first page is fine, but all the rest are shifted up and to the right and magnified.
    I've never been able to print out a multi-page document on Firefox with my new computer. I can copy/paste the address to Safari (gross) and it prints just fine, either to pdf or to a hard copy.
    Save me from having to use Safari!

    Making sure the fonts were embedded helped some, but it's still hit and miss. Sometimes I'm still missing pieces. One workaround I have found that works is just print one page without security to PDF, and then go back and replace the bad page(s) with them. So it will print properly, just not all the time. I have a copy of a word page and then what acrobat did to it. I just need to figure out how to post it here.
    Kim

  • My shift-r, right shift-f, and right shift-v is not working.

    I've seen questions in the forum about shift-r not working, I've looked into my system preferences and it appears there are no short cuts associated with shift-r.  My right shift-f and right shift-v are not working either.  I'm using a new iMac (10.7.2) with the bluetooth keyboard that came with it.  If I use caps lock I can get capital R, F and V.  It's very strange.  I'm assuming it's a setting that's messed up versus a bum keyboard?  Thanks for any help you can give!

    Good deal, glad it's taken care of. I had a wireless keyboard on which the caps lock key stayed lit all the time, even though it did turn the lock on and off. And sometimes it wouldn't light at all. I took it (just the keyboard) to a local AASP and they checked it out and called to say my new keyboard was ready to be picked up.

  • My 27" iMAC is less than 3 month old. Many times regardless of what application I am in the screen will start shifting  back and forth left to right. Then I can't do anything until the screen stabilizes. This takes anywhere from 5 to 25 secs. Any ideas?

    My 27" iMAC is less than 3 month old. Many times regardless of what application I am in the screen will start shifting  back and forth left to right. Then I can't do anything until the screen stabilizes. This takes anywhere from 5 to 25 secs. Any ideas?

    why don't you take advantage of the free 90 days of AppleCare and utilize the free, professional telephone support from Apple instead of asking in the forums?

  • I am having major problems with Firefox. About 3 weeks ago I started experiencing the display only when on Firefox for all web site, that the display would be shifted right about half a screen. It only happens on Firefox and happens for all web sites.

    I am having major problems with Firefox. About 3 weeks ago I started experiencing the display only when on Firefox for all web site, that the display would be shifted right about half a screen. It only happens on Firefox and happens for all web sites.

    This issue can be caused by the Babylon Toolbar 1.1.8 extension
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Number shift left and shift right

    Hi
    Is there an arithmetic operator to divide a number by a 2^n (same as shifting right by n bits)
    Example:
    8 >> 2 => 4 <= 8/power(2,2)
    8 << 1 => 16 <= 8*power(2,1)
    Kind regards
    Taoufik
    Kind regards
    Taoufik

    I think it is an attempt to squeeze performance. On most CPUs using bit shifting to multiply or divide by powers of two will be much faster than using other arithmetic operations.
    Unfortunately, it doesn't work this way in Oracle. C programmers will also be shocked to learn that arithmetics on NUMBER is much slower than on BINARY_FLOAT, even if the NUMBER is actually an integer.
    Squeezing performance out of Oracle has to be done by looking at the places Oracle lets you squeeze performance (set operations for instance), and not where you used to squeeze performance out of a C program.
    Remember that with PL/SQL you are about four layers above the hardware. In C, you might as well be writing assembly.

  • Horizontal Bar Chart and Overlaying Line Chart

    I am using SSRS 2008 and developing my reports in BIDS.
    I have a report with two data points. I want to chart the first as a bar (horizontal) chart and then the second as an overlaying line chart.
    I created both data series, originally, as a bar chart. I have clicked on the second series in the "Drop Data Fields Here" area and changed the chart to a line chart. When I do that, it changes both series to a line chart.
    However, if I use the column (vertical) chart for the first series, it will let me make the second one a line chart.
    Is this a limitation of SSRS 2008? Can I not have one data point be the horizontal bar chart and the second one a line chart?
    If so, are there any suggestions how to get around this?
    Thanks.

    Both charts for SSRS 2005/2008 are very limited when it comes to horizontal charts and are infact supporting only left-to-right bar charts, with no ability to combine them with other charting types (lines, areas, points etc.). For a SSRS charting solution that supports all types of charting type combinations in left-to-right and right-to-left horizontal fashion you can use Nevron Chart for SSRS - www.nevron.com. Besides a huge number of charting types and subtypes (most of which are not available in the MS Chart for SSRS 2008) it also provides better image quality in 2D and 3D modes, more settings, has support for rich text formatting in texts, has image filters, ability to customize via C# code and implements many more large and small charting related details.
    Best regards,
    Crank

  • My macbook keeps freezing with the left side of the screen on the right and the right side of the screen on the left. Help

    My 17-inch early 2011 macbook pro keeps freezing on me.  The freeze usually occurs when I'm importing or exporting pictures, when I stream anything, or If I am watching a dvd.  The left side of the screen shifts to the right and the right side of the screen shifts to the left.  lines also appear on my screen and I can not force quit any open application.  I have not dropped my laptop at all. 
    Mac OSX Lion version 10.7.5
    2.2 Ghz Intel Core i7
    I would like to avoid going to the an apple store to fix this problem if possible.  The closest one to me is 40 miles away. 
    Help : )

    If you don't have the Applecare extended warranty then you will need to pay for the fix. The fix is a New Logic Board. It seems as your Graphics card is failing in some way. No there is no software fix for this.
    The Graphic chip is soldered to the logic board and the only way to change/fix it is to replace the complete logic board.
    Good Luck and Best Wishes

  • Text shifting Right when printing smarform in Dot matrix printer

    Hi all,
    I have developed a payslip in smart form. I am printing the smartform in dot matrix printer. when there is blank between 2 values like one of the deductions is blank between 2 values while printing its will shift to right indefinitely even though in the print preview it is appearing correctly. In the same way in the last line i am printing Total earnings deductions n net pay...  Total earnings has to be printed approximately after 6 cms from left margin in print preview it is exactly where i wanted but when printing its printing after almost 8 - 9 cms
    I have created a Z page format to fit the copying 6 inch page and added code to make necessary changes to print in continuously
    Kindly help me to overcome the issue.
    Any help appreciable....
    Shivakumar K B
    09098955022

    Hi Pavan,
    I am trying to display the text in the template which is of the exact size as in preprinted stationary, in  paragraph format i am not using space between variables..
    To be clear.................... I am getting my print preview is correctly  but when i give it for printing the text is shifting right...

  • Hp 2311x monitor hs horizontal display shift right about 2 inches

    My HP 2311x monitor worked fine on my old XP system. When installed on my new Asus desktop computer with Windows 8.1, the display shifted right about 2 inches.  I have a black area on the entire left side of the screen, and can't get to my charm bar or other items on the right 2 inches or so of the display.  Nothing I do seems to affect this.  Any ideas, anyone?

    Jimmy, welcome to the forum.
    Here is the Win 8 driver for the monitor.  Install it to see if it solves your problem.
    Also, here is the Solve a problem section for the monitor.
    Please click the "Thumbs Up+ button" if I have helped you and click "Accept as Solution" if your problem is solved.
    Signature:
    HP TouchPad - 1.2 GHz; 1 GB memory; 32 GB storage; WebOS/CyanogenMod 11(Kit Kat)
    HP 10 Plus; Android-Kit Kat; 1.0 GHz Allwinner A31 ARM Cortex A7 Quad Core Processor ; 2GB RAM Memory Long: 2 GB DDR3L SDRAM (1600MHz); 16GB disable eMMC 16GB v4.51
    HP Omen; i7-4710QH; 8 GB memory; 256 GB San Disk SSD; Win 8.1
    HP Photosmart 7520 AIO
    ++++++++++++++++++
    **Click the Thumbs Up+ to say 'Thanks' and the 'Accept as Solution' if I have solved your problem.**
    Intelligence is God given; Wisdom is the sum of our mistakes!
    I am not an HP employee.

  • How can I make open link in new tab cause tabs to the new tab's left to shift left rather than tabs to the new tabs right to shift right?

    When I follow a link in a new tab, the tab opens to the right of the current tab as expected. To make room for the tab on the tab bar, any tabs to the right of the current tab shift right. If there is room for all the tabs on the bar, this behavior is perfect. If however, there isn't sufficient room, some tabs must be hidden to the right or the left of the visible bar. Currently the rightmost visible tab is hidden. This behavior is suboptimal for me because I very often want to switch to tabs on the far right while I very seldom want to switch to tabs on the far left. Is there is a way to cause tabs to the left of the new tab to shift left thereby hiding the leftmost visible tab? Thanks

    I'm not aware of a way to make Firefox hide the first tab instead of the last tab; maybe there is an add-on with that feature.
    There is a hidden setting to open the new tab at the end of the bar instead of next to the page you're reading. Then, of course, you won't have this problem. Instead, you'll have the problem that it's hard to figure out which tab had that link in it. In case you want to try it out, here's how.
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the search box above the list, type or paste '''tabs''' and pause while the list is filtered
    (3) Double-click the '''browser.tabs.insertRelatedAfterCurrent''' preference to switch it from true to false (it should turn bold)
    You're done here. You can keep it open in case you hate the change and watch to switch it right back. In that case, double-click again to switch it back to true.

  • Image shifting back and forth

    Is anyone experiencing strange shifts back and forth of images while they are working with them?
    The image moves about 1mm diagonally, sometimes a couple of times.
    Also scrolling of galleries seems to be much less smooth than before, sometimes locking up for many seconds, or the screen going completely white and then coming back.
    Everything seems to have started happening after upgrading to LR1.3 (I am on 1.3.1)
    I am also experiencing strange flickers on my screen even when using other programs as long as LR is loaded.
    Windows XP 4GB / ATI Radeon 256MB
    (So it is not an Nvidia issue)
    I'm starting to think that a downgrade to LR1.2 may be a good thing.

    Don,
    The image is supposed to dance around on it own?
    I took a closer look, and I think that I know what's causing it. It needs to be fixed, because it is reaaaaaly annoying.
    If you are in any mode, and the image is enlarged (not grid), you will notice a small drop shadow going down to the right. Well, what is happening is that the drop shadow is changing to visible / not visible, and when the drop shadow is not there, the image moves down and to the right to the spot where the drop shadow was, and when the shadow reappears the image moves back up to make room for the drop shadow. So the image just dances diagonally a few times for no apparent reason. But the reason is a drop shadow YES/NO fast toggle.

  • Why do the sound balance settings change every time i start up my MacBook Pro OSX 10.8.4. I set balance to middle and it reappears way off to the left or right and the volume is at maximum.

    I set the balance and sound levels on my MacBook Pro 10.8.4 but when I start up again the balance has shifted to one channel or the other [left or right] and the volume has become maximum. Does not always happen but frequently does. Any ideas?

    It should remain the way you have adjusted them.  Delete the System Preferences.plist per these instructions:
    https://discussions.apple.com/docs/DOC-4301
    Ciao.

Maybe you are looking for

  • How do I change the weather icon to my local weather?

    I am new to iPhone and have 2 questions: 1. How do I change the wether icon from Cupertino and New York to local weather? 2. How do I remove icons from the home page that came already installed? I tried pressing and holding until they vibrate but no

  • How do I find all iTunes Plus content?

    I've tried searching for individual artists and songs, but I haven't found any music in iTunes Plus format that I would like to purchase. Is there a way to list all Plus content available in the iTunes store so I can browse through it all?

  • Referencing a method in one class from a constructor in another?

    Hi, I'm not sure whether this is a simple question or not, but instead of rewriting the method in another class, is there a way that I can reference that method, eg: public int getTitleCode() {         return titleCode;  }within the constructor of an

  • Flash player - why no sound after installing update?

    I installed new version of Flash Player but get no sound on videos. Using MAC 10.7.5 and firefox 34.0.5. Installed latest version of Flash Player

  • Can I find a similar product to Note Tab?

    Hi, I'm a new iMac user. Used to use Note Tab Lite (http://www.notetab.com) a great deal both at home and work. If anyone is familiar with this program, what would a Mac user get that is about the same? Thanks much, Lee P.S. Where do you post kind of