formsabapsapscript

Put graphics behind the text in the same window of SapScript


I need to put a .bmp of a stamp behind some text in a sapscript form - in one window. I've uploaded the bitmap of the stamp by using the se78, I uploaded it as standard text.

I'm already done some testing. This is what I got so far:

/:      INCLUDE Z_ADRS_SIGN_CN30 OBJECT TEXT ID ADRS LANGUAGE EN
/:      INCLUDE 'Z_SIGN_STAMP_CN30' OBJECT TEXT ID ST LANGUAGE EN

This is working, but the stamp gets printed under the text. If I switch the code-lines, the stamp gets printed above the text.


Now to my question: Is there a way to print the stamp behind the text in one window ? And if yes, how?


Solution

  • It can be done, but it's better to use SmartForms for this, because it can print watermarks natively.

    For SapScript:

    1. Create SO10 text element and insert graphics object there

    enter image description here

    1. Put this statement into your text element

      BITMAP 'YOURBMP' OBJECT GRAPHICS ID BMAP TYPE BCOL.
      
    2. In the MAIN window of your form put these statements

      INCLUDE BMP OBJECT TEXT ID ST.
      NEW-WINDOW.
      

    The key point here is NEW-WINDOW statement. It opens new window oon the page explicitly and prints all consecutive SapScript statements in the new window.