SAPScript dynamic window position by command

Hello Abapers,
I am trying to move up/down a window that contains a graphic by commands because the position needs to be dynamically adjusted.
I tried these commands -
/:POSITION XORIGIN '5' CM YORIGIN '5'CM
But it doesnt work..  Can anyone help? Appreciate it,
Vince

Hi
This is syntax for positon:
Position <xorigin> <yorigin> <window> <page>
example:   /: POSITION 5 5 MAIN FIRST
Please note: in the above example <window> = MAIN and <page> = FIRST
Reward points if helpful

Similar Messages

  • SAPscript - Dynamic box position and height.

    Greetings...
    How to print dynamic box according to the Element. I have an element with looping condition when i used box the line only printed on the first loop, but and no line printed on the next looping even though its is  different element.. Below is the sneak peak of my code.
    /E 101
    /:   BOX WIDTH 0 MM HEIGHT '2' MM FRAME 20 TW
    /:   POSITION YORIGIN '+2' MM
    W2   <B>&text&</><B>,,&zvalue&</>
    Thank you

    Hi
    it is very hard to print a dynamic box with sapscript.
    It is more easy to develop a new-smartform then to develop a dynamic box.
    i know only 1 sapscript which is using dynamic boxes. I do not know the sapscript only the fucntional name we use. That is shopfloor papers (for a production order). It has a good combination of printprogram and sapscript which both has to be working together to get it done. Try to find it and study it. Then you will find out how it works.
      There is no way to get it done with only changes in your sapscript.
    an alternative is to use tab's and '|' and ulines to make something that look a bit like boxes.
    Hope this will help you out.
    Gr., Frank

  • Window position in sapscript

    Hi ppl,
    My requirement is to print the logo on right side for a particular company code. For other company codes, I need to print the logo on left side.
    Always the opposite side (left or right depending on company code) will have address printed.
    How can I achieve this in sapscripts ie. to change the window position dynamically.
    Please reply.
    Reward points guaranteed.
    Thanks,
    Shamoil.

    Hi,
    You must create two windows .
    And then try following code.
    in the text elemnt of first window write following.
    if BUKRS EQ 'PIIL'
    BITMAP 'ZSIGN2' OBJECT GRAPHICS ID BMAP TYPE BMON
    endif.
    and
    in the text elemnt of second window write following.
    if BUKRS EQ 'PIAG'
    BITMAP 'ZSIGN2' OBJECT GRAPHICS ID BMAP TYPE BMON
    endif.
    here
    - 'ZSIGN2' is the name of bitmap image uploaded by se78.
    - PIIL name of first company code.
    - PIAG name of second company code.
    reward points if helpful.
    Regards
    Rajesh

  • Sapscript window position

    Hello all.
    How can i determine the current X,Y window position so i can draw a BOX in the current line?
    Thank you
    Nuno Silva

    Additionally, determining the current key position of the window, usually trial and error method. You can use the 'Test Output' option to see the place where it draws the box.   Another thing, you don't need current line position as in the box command, you have to provide X and Y axis within the window. So it doesn't matter where you are, it will generate the box based on your X,Y inputs with the box command.
    Hope, it helps.
    Thanks
    Viswa

  • How can I override the startup window position?

    Can I override a compiled labview 7 app with ini settings, command line options, via a registry edit, or other option?
    Thanks,
    Mike

    Hello Mike
    Besides saving the vi in a position, you also have a property node to determine window position at startup app.
    Values can be fix, calculated from monitor specs, etc.
    See attached doc.
    Hope it helps
    Alipio
    "Qod natura non dat, Salmantica non praestat"
    Attachments:
    origin.doc ‏35 KB

  • When I use the shortcut to open a new window in safari (command N), I get a 404 error message from Google. How do I change where 'Command N' routes to?

    When I use the shortcut to open a new window in safari (command N) on my Macbook Pro, I get a 404 error message from Google. How do I change where 'Command N' routes to? 

    It's not necessary to change the Command N keystroke..
    From your Safari menu bar click Safari > Preferences then select the Privacy tab.
    Click:   Remove All Website Data
    Then delete the cache.
    Open a Finder window. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.
    If that didn't help, troubleshoot Safari extensions.
    From the Safari menu bar click Safari > Preferences then select the Extensions tab. Turn that OFF, quit and relaunch Safari to test.
    If that helped, turn one extension on then quit and relaunch Safari to test until you find the incompatible extension then click uninstall.

  • Managing Multiple Dynamic Windows (AJAX/HTML)

    Looking for a little direction on managing multiple dynamic windows. Creating windows that can be identified, and altered potentially, from the main window. Also, testing to see if a window already exists.
    Any help in idenitifying windows would be great. Just looking for a little insight to get me going.
    Thanks

    I figured out a way around the dynamic window references. Not truly the ideal solution however it works. I essentially created an array just for window instances. On window creation, I add a reference to it within my window array. Then reference the array to see if the window reference exists. If so, then do nothing. If not, then I can create the new window. On close of the dynamically generated windows, I remove the reference to it from my window array.
    It works, but I feel this is not the most ideal way to do it. If there is another solution or approach that may be easier please feel free to add it.

  • How to delete the items in the recycle bin permanently from the windows using Diruse command

    How to delete the items in the recycle bin permanently from the windows  using Diruse command.
    Because most of the time we get out of disk space issues.
    Can somebody help me in giving with an example

    You can right-click Recycle Bin|Properties and choose radio button for
    Don't move files ....
     This one may also help.
    http://technet.microsoft.com/en-us/library/cc784980(v=ws.10).aspx
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • How to create Dynamic Window in Smartforms

    Hi all,
    Could you please help me out on how to create Dynamic Window in smartforms excluding Main Window.
    Thanks in Advance.
    Vinay.

    hi,
    Hi,
    1.If you are creating the Different windows for the Countries,then In conditions tab of window specify the Condition i.e.
    company -code = '2201'.
    2.Then that window can trigger ofr that condition.
    3.Other wise, if you are using the different layouts ,then write the condition in Print program and call that form .
    reward me if helpful.

  • Window Position & Prefs "Gone"

    Every time I start up or restart, any window position, size, view etc info is gone, and I get a view very different than what I had set. I have tried to delete the Finder plist, but it did not help. I did notice something extremely weird as well.
    I noticed that the Finder plist is actually deleting itself about every 30 - 60 seconds when I open the ~user Library prefs, and cannot find anything that might be causing this. Repairing permissions, running utilities such as DiskWarrior etc have not helped. This condition actually exists identically on two Macs I am using. The only thing in common is that I ran an updater for Missing Sync for BlackBerry from Mark/Space Software, and took note of the condition being created on the second Mac immediately after doing this update.
    I don't really want to do a full reinstall of the System, as I suspect I will still end up with this "condition" after reinstalling my working applications.
    Any suggestions would be appreciated.

    A bit of troubleshooting .....
    On a full restart, any windows left open will retain their position, view, etc - but closed windows "forget" when reopened.
    During the safe boots, files were sent to the Trash, which are as follows:
    In a folder called 501.245359984
    and a folder called 501.245361007
    annex_aux
    annex.db
    filetoken.db
    FondResourceCache (only in the first folder above)
    fonts.db
    Local.fcache
    qdfams.db
    System.fcache
    User.fcache
    My startup items under my account are
    iTunesHelper
    Microsoft AU Daemon
    iKey
    MicrosoftMouseHelper
    MicrosoftKeyboardHelper
    Dashboard KickStart
    EEventManager
    iCalAlarmScheduler
    textsoapHelper
    Epson Scanner Monitor
    All of these items were already in place - for a long time - before this problem started.
    I cannot find /private in order to locate /private/var/run/StartupItems
    Nothing unusual (at least that I can see) in either of the other two locations.

  • External displays - browser window position when disconnected display

    I'm using a laptop, connecting one or two external displays, - one using the HDMI port, second using an USB "dock station" (Toshiba standalone). Second screen normally to the right, third screen (usb) above the laptop screen.
    Often when I have disconnected the USB external display, my Firefox browser window are still "on the third display" - position as if this display was still active.
    Even if I quit Firefox and restarts ( or even restarts windows ) the same position window is retained. The only way to fix it (when the USB connected display is not available), is to change the window position of the second (HDMI) display to cover the area of the USB one, then move Firefox window to my main laptop display, and then reposition the second screen back to the normal.
    Normally, I expect applications to automatically reposition the windows to the available display(s) under the conditions that an extra display is removed. However, this seems not to happen with Firefox. It's inconvinient, but possible to fix with the second screen available, but I'm lost when I am not able to connect an external display ...
    Is there any solution to this? Is it possible to change (reset) window positions directly in RegEdit ??

    Dear varkgirl:
    Thank you very much for your help and valuable suggestion.
    I've tried your suggestion but ran into some problems. The links I am trying to open in another window are actually PDF files that the viewer can download from my website.
    Since I was having problems I decided to try something else. After publishing the website to my desktop I then opened the pages where the links are in Dreamweaver. The layout view is great and displayed the image just the way it appears on the browser's window. I first selected the "link button" to the file and then in the inspector windows (bottom of the page) I chose under target the "_blank" option. This tells the software that the linked page or file is to be opened in a new blank browser window. I then saved the page (re-saved it over the existing file) to incorporate the changes. After this I proceeded to navigate through the website and everything works great.
    Thank you for your help and suggestions. I just thought I would post this here in case it may be of help to you as well as others.
    Best regards,
    Joseph Chamberlain

  • Remembering windows positions when switching from/to dual screen display

    Hello,
    Most of the time, a second LCD screen is plugged in my Macbook and configured as the main display. When I arrange the windows, I keep iTunes or my mail application maximized on the macbook screen and use the bigger external screen for all other windows.
    If I unplug the external display, all the windows are of course moved to the laptop display. When I plug again the external screen, all the windows are moved to the external display. But I would like the iTunes and mail application to remain on the laptop screen.
    Is there any utility to remember the windows positions and arrange them automatically when I switch from/to single/dual-screen display?
    Regards,
    Raph

    Would DisplayWatcher do what you want? I came across this a couple of weeks ago but haven't had the chance to try it out yet.
    - cfr

  • Auto-remember window positions switching from laptop to external screens

    Does anybody know of any utilities available that will automatically remember my app window positions when switching from laptop to external screens?

    'Stay' looks like the best solution found so far but it is not automatic Any more ideas are welcome!

  • How to re-center window positions

    Hi folks,
    I switched from 19" to a 27" screen. How can I tell LR to re-center it's window positions?
    The windos (like the Export window) are still on the old place (centered for 19").
    BRGDS!

    Just drag the top menu bar for either Lightroom or the Menu window. Or the bottom corner.
    I'm not sure what you are after though or where you are startibng from.........

  • Closing all folders and subfolders within a window with one command

    In list view, is there a way to close all folders and subfolders within a window with one command, instead of having to close each individually?
    Thanks!

    Thanks, all, for your feedback, but no cigar, yet:
    - opening folders with "option" is possible but problematic
    - none of this solves the question of closing all the folders and subfolders within a window in one shot.
    Any better solution would be appreciated.
    Thanks!

Maybe you are looking for