cancel
Showing results for 
Search instead for 
Did you mean: 

Sapscript background image

Former Member
0 Kudos

Hello,

I would like to put a background image im a sapscript.

So I have created a new window in it and included my image.

Everthing is ok but when i am prinitng the document, it printing all without the main window.

It is because the main window is the first window of my sapscript so it print the main and after put my image above , so i couldn't see the main text on my srceen.

Is there a solution for change the order of the window.

Thank you for your help.

Eric.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

Watermark (background images) are possible in SMARTFORMS.

I think it is not possible in SAP scripts.

Regards,

Sailaja.

Answers (8)

Answers (8)

0 Kudos

Hi,

You can also add graphic directly in line windows main

/:  BITMAP 'graphic_name' OBJECT GRAPHICS ID BMAP TYPE BCOL

best regards

Wojtek

Former Member
0 Kudos

Joyjit Ghosh explains on his blog how this can be done:

Create a text object (SO10) with the background image in it and create a 2nd main window

In your 1st main window, as the first 2 commands put

   INCLUDE Z_IMAGE TEXT ID ST

   NEW-WINDOW

Then, after printing the background image, the program jumps to the 2nd window and writes the contents over the background image

I tried it and it works!

Former Member
0 Kudos

Hello Eric Andre,

did you find a solution for the problem. Thanks.

Cheers, Lars.

Former Member
0 Kudos

No imediat solution

Now in the print preview i can't see the main text but if i print the forms the the text is correctly display.

It is not really a solution but it resolve the principal problem

Former Member
0 Kudos

No body has a solution???

Former Member
0 Kudos

Hi,

Did you try with the command

/: BITMAP 'ZPAGE' OBJECT GRAPHICS ID BMAP TYPE BCOL

You can create a big window and put there the picture.

Former Member
0 Kudos

it is possible with the solution of Robin

But I reexplain my problem

Sapscript : order of window

MAIN

GRAPH

WINDOW1

WINDOW2

WINDOW3

In the display screen :

My main window is not display because she is processing before the image.

If I could put Graph as first window everything will be all right.

How to change order window

Thanks A lot

Eric

0 Kudos

Hi Eric,

its possible in SAPScript.

Go to Setting-> Select Form Painter

Then Go to Tab "Workbench (General) "

There is a check box "Display Background Picture"

check this. I think this will solve ur purpose.

Regards

Robin.

Former Member
0 Kudos

Thanks for your helps

But I am oblige to use sapscript form

It isn't a Z program.

The problem is that the main window is in first position and I don't know how change it.

Is there a solution??

Thank you.

Message was edited by: Eric Andre

former_member181962
Active Contributor
0 Kudos

Hi Eric,

It cannot be done using sap scripts.

If you still want it.

YOu can have a script to print only the image.

You the same stationery to print the data over it.(Pre printed stateionery)

Regards,

Ravi

Former Member
0 Kudos

HI,

if your Driver Program is a Z program , then call the Element of the window which one you want first ... based on the write from ,,, the element will call and print it on the layout ..

if your Driver program is not a Z program then you need to arrange the Windows accordingly to print the perfect layout

if you want any images in the SAP Script in the background as a watermark... that is not possible in the SCRIPT ..

Thanks

Sudheer