cancel
Showing results for 
Search instead for 
Did you mean: 

How to print water mark on forms printing from development and test boxes

Former Member
0 Kudos

Hi,

I need to print water mark "DUPLICATE" across any form which is printing through development server or test server (ex,sales order,PO's etc).

Can anybody help me on this!!!!

Thanks in advance,

Raja Kunapareddy.

Accepted Solutions (1)

Accepted Solutions (1)

former_member480923
Active Contributor
0 Kudos

Hi

in the Global defnition / initialization of the Smartform declare the follwoing varibles

w_back type TDOBNAME 
w_object type TDOBJECTGR  
w_TDIDGR  type TDIDGR

and in intialization write the follwoing peice of code

if sy-SYSID >< 'PROD'.
    w_back  = 'ENJOY'. "Your background Duplicate Image 
    w_object = 'GRAPHICS'.
    w_tdidgr = 'BMON'.
else.
    clear: w_back, w_object, w_tdidgr. 
endif.

pass this varibale to the page background imag, do not forget to press the > arrow to < side beside the graphics name.

Hope that helps

Anirban M.

Answers (3)

Answers (3)

Former Member
0 Kudos

hi, Raja Kunapareddy

its nice to see your question, even i am facing the same problem with me can you please take the screen shorts of your smart form and send me to my mail id along with the print program so that it will be helpfull for me , my mail id: ramaraoinbox@yahoo.com i will be waiting for your mail

Former Member
0 Kudos

In Global Definitions -> Initialization

" -


Watermark -


"

" Adding a watermark when printing from non-productive systems !

"

" 1)

" On your page, add a background picture called &water_back&

" This is done by clicking the "Background Picture" tab

"

" 2)

" Define water_back and my_state in "Global Data" and add these

" to "Output Parameters"

"

" water_back type TDOBNAME

" my_state type T000-CCCATEGORY

"

"

" 3)

" Add the code below

CALL FUNCTION 'VIEW_GET_CLIENT_STATE'

IMPORTING

CLIENT_STATE = MY_STATE.

if my_state ne 'P'.

water_back = 'MY_WATERMARK3'. "Import watermarks(bitmaps) in TC SE78

else.

water_back = 'MY_WATERMARK_NONE_COL'. "Just 1x1 white pixel

endif.

" -


End Watermark -


Have fun

Jan

Former Member
0 Kudos

Thank you very much for the reply. so for smartforms that works ,but i need to do it for SAP scripts also. please advise.

Former Member
0 Kudos

hi

give condtion for that node

SYST-SYSID = 'DEV'

so that the node or graphice will be printed only on the development..

<b>instead of DEV give u r Development server id </b>

i hope u under stood wht i mean.

Please Close this thread.. when u r problem is solved. Reward all Helpful answers

Regards

Naresh Reddy K