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

Similar Messages

  • 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

  • Using the function WRITE_FORM in a SAPScript window

    hi everyone.
    I need to print the texts of the SO10 transaction, in a SAPSCRIPT page, but i've not able to do so.
    i have a SapScript with 2 pages: FIRST and SECOND,  in the window "POINT2" of the page "FIRST",  I put a  "NEW-PAGE" , between an if condition,  for to call the next page "SECOND". 
    i'm using WRITE_FORM function, in the control program, to send texts from the SO10 to the window "POINT2-1"  in page "SECONDt".
    now, if  I make debbug to sapscript, i can see when: NEW-PAGE it's called and when the ITAB gets all the text, but in the end it doesn't print the text in the sapscript.
    and if I search in the SP02 transaction, for the spool number, it only appears 1 page.
    not 2  like it supose to be.
    can anyone tell me what i'm doing wrong ?
    this is the code that i'm using.
    page: FIRST
    window: POINT2
    /:       POSITION WINDOW
    /:       POSITION XORIGIN '+0' CH YORIGIN '+0' LN
    /:       SIZE WIDTH '+0' CH HEIGHT '+0' LN
    /:       BOX FRAME 10 TW
    /:       IF V_CONT > 5
    /:       NEW-PAGE
    /:       ENDIF
    PH     2º Descripción de error : <N>&IT_PRINT-QMTXT&<><><><></>  ,,&VIQMEL-QMTXT&
    /:       INCLUDE &IT_PRINT-QMNUM& OBJECT QMEL ID LTQM LANGUAGE 'S'
    page: SECOND
    window: POINT2-1
    /E       ELEMENT
    /:       &IT_TEXTO-TDLINE&
    control program
    DATA: IT_TEXTO  LIKE STANDARD TABLE OF TLINE WITH HEADER LINE.
    FORM print_form .
    LOOP AT IT_TEXTO.
        CALL FUNCTION 'WRITE_FORM'
         EXPORTING
           ELEMENT                        = 'ELEMENT'
           WINDOW                        = 'POINT2-1'
         EXCEPTIONS
           ELEMENT                        = 1
           FUNCTION                       = 2
           TYPE                           = 3
           UNOPENED                       = 4
           UNSTARTED                      = 5
           WINDOW                         = 6
           BAD_PAGEFORMAT_FOR_PRINT       = 7
           SPOOL_ERROR              = 8
           CODEPAGE                    = 9
           OTHERS                         = 10
        IF sy-subrc <> 0.
             MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    ENDLOOP.
    ENDFORM.
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Apr 20, 2010 7:38 AM

    Change the command line /: to some paragraph format PH or line feed /.
    /E       ELEMENT
    PH       &IT_TEXTO-TDLINE&
            OR
    /         &IT_TEXTO-TDLINE&
    Also why are you passing the text elemnt to internal table first using READ_TEXT. It can be directly done with INCLUDE Command.

  • SAPSCRIPT Windows

    Dear experts,
    I have a standard copied Z program having an issue with output.
    I want to change the layout of various Windows but change option is not allowing me to drag and move windows.
    How do we do in sapscript ?

    Hi..
    All the changes you want to do with layout should be carried on with the script in Language 'DE' (not the login language but the language asked in SE71). The changes made will then be reflected in all languages  including the one in which you were trying to change the layout. in any other language than DE it will not be editable in terms of window positions and length, height etc.
    Regards,
    Karthik

  • How can i print all the contect of the code in sapscript window ? ?

    how can i print all the contect of the code in sapscript window ? ?

    Hi,
    Do you mean that you want to print the ABAP code to SAPscrip form ?
    Svetlin

  • 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.........

  • Window position problem

    Hi everyone,
    I am having problems with window position.
    If my portal is set to english language, there are no problem.
    If my portal is set to hebrew language, I have troubles with position of windows. Some windows are moved to left, some are moved to right...and some are moved out of the screen.
    Code:
    IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("MyWindow");
    IWDWindow window = wdComponentAPI.getWindowManager().createWindow( windowInfo, true);
    window.setWindowPosition(WDWindowPos.CENTER);     
    window.open();      
    Can someone help ?
    Thanks in advance.

    David,
       turn down with:
       window.setWindowPosition(XXX,YYY);
    Could be usefull, find some CODE that give you MAX_WIDTH and MAX_HEIGHT of client browser and after
    window.setWindowPosition(func(MAX_WIDTH),func(MAX_HEIGHT));
    Message was edited by: Roberto Tagliento

  • Uploading signature in to sapscript window

    To upload signature I used Import Graphics in sapscript window. It's working fine in dev system. But when I moved to Production the signature is not coming. I had only one transport created for sapscript change.
       Can you please let me know why it's not moved to production.
    Thanks a lot everybody.

    Hi ,
    if you imported from se71 ..check the path you importes
    see below example..
    INCLUDE ZHEX-MACRO-LOGO-A OBJECT TEXT ID ADRS LANGUAGE EN
    the higlighted one is the image name ..
    check in PRD where the highlited one is exit in SE78..
    else you need to upload through Se78 and transport again..
    Prabhudas

  • Mail Not Remembering Window Position of Previous Session (again)

    Everytime I relaunch Mail, I have to rearrange the viewer windows to the way that is most efficient to use them. Is there a way for Mail to remember window positions, and sort preferences for each viewer window?

    Interestingly, Mail does seem to remember the window positions, in its com.apple.Mail.plist, but it isn't applying the remembered positions. I tried a few times, and on at least one try it got the positions correct. Could it be that if you quit, restart then quit and restart again it will have them right on the second restart?
    AK

  • Mail Not Remembering Window Position of Previous Session

    Mail has started forgetting how its main window was sized when previously using the application.
    When I open Mail, the window dimensions are like those for a small screen - not as previously sized.
    Is this a known problem (could not find with discussion search) and is there a fix? Thanks!

    Interestingly, Mail does seem to remember the window positions, in its com.apple.Mail.plist, but it isn't applying the remembered positions. I tried a few times, and on at least one try it got the positions correct. Could it be that if you quit, restart then quit and restart again it will have them right on the second restart?
    AK

  • Get Info window position

    Lately my Get Info window has been opening with its upper left corner aligned with the upper left corner of the topmost Finder window. Previously it had placed its upper left corner at position (0,22) - the extreme left of the screen, just below the menu bar. The former position covers prime Finder window real estate. I prefer the latter position, as it obscures as little of the topmost Finder window as possible.
    How can I revert the behavior of the Get Info window position?

    That didn't do it. Turned out to be a conflict with the application FinderMinder.
    http://www.irradiatedsoftware.com/labs/
    FinderMinder is an old piece of freeware that I enable periodically when my windows become too "undisciplined." Once they've become fairly aligned again I disable it for awhile...mainly because I keep all extraneous process consumers and memory usurpers to a minimum. Hence I didn't notice the conflict until it appeared under 10.6.x.

Maybe you are looking for