Home > SAP software/management Tips > SAP ABAP/Java developer tips > Print a TEST indicator on non productive documents
SAP Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

SAP ABAP/JAVA DEVELOPER TIPS

Print a TEST indicator on non productive documents


Wim Schreuders
04.04.2001
Rating: -3.12- (out of 5) Hall of fame tip of the month winner


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


To avoid confusions about the origin of printed documents a Test Indicator can be printed on each page of all SAP-Script documents that are issued from a Test System.

This Test Indicator shows in the top line of the page
 -The user who initiated the print.
 -The test system that was used to print.
 -The date and time the document was issued.
 -in the center of the page the word 'TEST' in big gray characters.


Code

To add a Test Indicator to every new or copied SAP-Script document
apply the following code. 1. Edit the Script in the original language. 2. Create a paragraph = 'ZI' Description = 'Test Indicator' Alignment = 'CENTER' Font family = 'HELVE' Points = '8' Attributes = 'BOLD'. 3. Create a Window = 'TESTINDI' Description = 'Test Indicator' Type = 'CONST' Default Paragraph = 'ZI' 4. Add the next command to this window '/: INCLUDE Z_TESTINDICATOR OBJECT 'TEXT' ID 'ZSCR' LANGUAGE 'EN' PARAGRAPH 'ZI'' 5. Add this window to every page of the form Width = '21 CM' Height = '1 LN' 6. Edit the Script in every available language open window 'TESTINDI' and apply step 4. The include 'Z_TESTINDICATOR' does the formatting and printing and tests for the production system (no output). Standard Text Z_TESTINDICATOR /* INCLUDE TO PRINT THE WORD "TEST" USING BOXES /* /* MAKE SURE WE ARE NOT ON THE PRODUCTION SYSTEM /: IF &SY-SYSID& <> 'P01' /: BOX HEIGHT 7 MM INTENSITY 20 /* Character "T" /: POSITION WINDOW /: POSITION XORIGIN 40 MM YORIGIN 100 MM /: BOX HEIGHT 5 MM WIDTH 26 MM INTENSITY 20 /: POSITION WINDOW /: POSITION XORIGIN 51 MM YORIGIN 100 MM /: BOX HEIGHT 40 MM WIDTH 5 MM INTENSITY 20 /* Character "E" /: POSITION WINDOW /: POSITION XORIGIN 70 MM YORIGIN 100 MM /: BOX HEIGHT 5 MM WIDTH 24 MM INTENSITY 20 /: POSITION WINDOW /: POSITION XORIGIN 70 MM YORIGIN 115 MM /: BOX HEIGHT 4 MM WIDTH 20 MM INTENSITY 20 /: POSITION WINDOW /: POSITION XORIGIN 70 MM YORIGIN 135 MM /: BOX HEIGHT 5 MM WIDTH 24 MM INTENSITY 20 /: POSITION WINDOW /: POSITION XORIGIN 70 MM YORIGIN 100 MM /: BOX HEIGHT 40 MM WIDTH 5 MM INTENSITY 20 /* Character "S" /: POSITION WINDOW /: POSITION XORIGIN 105 MM YORIGIN 100 MM /: BOX HEIGHT 5 MM WIDTH 20 MM INTENSITY 20 /: POSITION WINDOW /: POSITION XORIGIN 105 MM YORIGIN 115 MM /: BOX HEIGHT 5 MM WIDTH 15 MM INTENSITY 20 /: POSITION WINDOW /: POSITION XORIGIN 100 MM YORIGIN 135 MM /: BOX HEIGHT 5 MM WIDTH 20 MM INTENSITY 20 /: POSITION WINDOW /: POSITION XORIGIN 100 MM YORIGIN 105 MM /: BOX HEIGHT 10 MM WIDTH 5 MM INTENSITY 20 /: POSITION WINDOW /: POSITION XORIGIN 120 MM YORIGIN 120 MM /: BOX HEIGHT 15 MM WIDTH 5 MM INTENSITY 20 /* Character "T" /: POSITION WINDOW /: POSITION XORIGIN 130 MM YORIGIN 100 MM /: BOX HEIGHT 5 MM WIDTH 26 MM INTENSITY 20 /: POSITION WINDOW /: POSITION XORIGIN 140 MM YORIGIN 100 MM /: BOX HEIGHT 40 MM WIDTH 5 MM INTENSITY 20 ZI printed by &SY-UNAME& from test system &SY-SYSID& on &SY-DATUM& = &SY-UZEIT& /: ENDIF

Rate this Tip
To rate tips, you must be a member of SearchSAP.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
SAP ABAP/Java developer tips
How to do additional dialog processing after SAP COMMIT WORK statement
How to find a piece of SAP ABAP code without debugging
How to read an SAP transaction in an ABAP code
How to provide an SAP R/3 4.5B application server with a Web service interface
How to find owners and transports of deleted ABAP programs
Fixing a common OPEN_FORM and START_FORM error in SAPscript
Select Text fields: Case-insensitive
Is this the quickest way to find a BADI?
Easily debug error messages in SAP processes
Accessing private attributes in ABAP Objects

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



NetWeaver SAP White Papers
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
SearchSAP.com is a search service provided by TechTarget and is completely
independent of and not affiliated with SAP AG.
  TechTarget - The IT Media ROI Experts