Symbols and Control commands
Symbols are placeholders for values that are inserted during print formatting.
Symbols are indentified by name surrounded by "&" and are not case sensitive
Types of symbols
System symbols
DATE Date
DAY Day
NAME_OF_DAY Name of day
MONTH Month
YEAR Year
TIME Time
HOURS Hours
MINUTES Minutes
SECONDS Seconds
PAGE Page number
NEXTPAGE Number of next pagre
DEVICE Output device
SPACE Blank space
ULINE Underline
VLINE Vertical line
Standard symbols
Standard symbols are user defined and are maintained in table TTDG(table is not available???)
. You use transaction SM30 to change or display standard symbols.
An examples of standard symbols is &MFG& fot "Yours faithfully"
Standard text
standard texts is predifined texts that can be used in more than one form. Standard texts are can be created, changed and displayed using transaction SO10.
The text ID is used to classify texts.
To include a standard text in a form, use the INCLUDE command:
INCLUDE Z_BC460_EX4_HF OBJECT TEXT ID SDVD
When formatting the standard text the PARAGRAPH parameter is used. To center the text use:
Example:
INCLUDE Z_BC460_EX4_HF OBJECT TEXT ID SDVD LANGUAGE EN PARAGRAPH C.
Name: Z_BC460_EX4_HF
Object: Text
Text id: SDVD (Text id from SO10)
Language: EN
Paragraph: C (Centered)
Tip: You can use menu Insert->Text->Standard to make it easier to insert the text
Program symbols
Program symbols are for contents of database fields or global program symbols. When you print the form, data from the database tables are printed isntead of the symbols.
In the print program:
TABLES: kna1.
In the form:
&KNA1-NAME1&
Formatting
&SYMBOL& No formatting
&SYMBOL+4& Offset - Output begins here. Offset refers to formatted value
&SYMBOL(5)& Length - Output data in the specified length
&SYMBOL(I)& Suppress initial value - If the field has been initialized, nothing is output
&SYMBOL(Z)& Suppress leading zeros
&SYMBOL(C)& Compress blank spaces - Consecutice spaces are compressed into a single space. Leading spacesare suppressed.
&SYMBOL(R)& Right align output
&SYMBOL(S)& Operators are suppressed
&SYMBOL(*)& Dictionary length - The data length is defined by the ABAP dictionary
&SYMBOL(8.2)& Decimal format. Length 8 decimals 2
&'text1'SYMBOL'text2'& Text can be inserted before and after the symbol
Control commands
Control command are used to modify text output. Use format key /: in the format column.
The intensity is the grey scale of the box as %. The frame parameters is the thickness of the frame. Default is 0.
Each of the paramteters ypos, xpos, width, height and frame muts be followed of the measurement unit:
TW (twip)
PT (point)
IN (inch)
MM (millimeter)
CM (centimeter)
LN (line)
CH (character).
Examples:
BOX XPOS '11.21' MM YPOS '5.31' MM HEIGHT '10' MM WIDTH '20' MM INTENSITY 10 FRAME 0 TW
Draws two rectangles and two lines to construct a table of three columns with a highlighted heading section.
POSITION and SIZE
You can use the POSITION and SIZE commands to set default parmeters for a box. This can be usefull if you have several boxes that share the same parameters.
If you want to set the position realtively to the window use POSITION WINDOW to set the position to the top/left start of the window. Then use POSITION to set the current position relatively to the start of the Window. Note that
you uses "+" or "-" in the ORIGIN position to the set the position relatively.
the position is now 5 MM from the left and 10 MM from the top of the window.
NOTE: After using the position command you can move the current position realtively to the last used position
BADI, BAPI'S, BDC, HR, Interview Questions, Programming, Reports, RFC, TCodes, ABAP-Java, ALE, IDOCs, ALV's, BSP, BTE, Data Dictionary, Dialog Programming, FICO, SD, MM, Function Modules, Interactive Reports, Internal Tables, Locking, Logical Database, OOPS,PM,PP,QM,R/3,BW,SCRIPTS,SMART FORMS
Friday, July 25, 2008
Subscribe to:
Post Comments (Atom)
Archives
-
▼
2008
(112)
-
▼
July
(54)
- The R/3 Basis System: Overview
- Position of the Basis System Within the R/3 System
- Application Servers in SAP
- Work Processes in SAP ABAP
- Overview of the Components of Application Programs...
- Structure of an Application Program in SAP ABAP
- Screens in SAP ABAP
- Structure of ABAP Programs
- Processing Blocks in ABAP Programs
- ABAP Statements in SAP ABAP
- Logical Databases and Contexts in SAP ABAP
- Memory Structures of an ABAP Program
- Creating and Changing ABAP Programs in SAP ABAP
- Opening a Program from the Repository Browser in S...
- Opening Programs in the ABAP Editor
- Opening Programs Using Forward Navigation in SAP ABAP
- Maintaining Program Attributes in SAP ABAP
- Editing Programs in SAP ABAP
- ABAP Syntax
- Processing Data in SAP ABAP
- LESSON 25 CALLING PROGRAM AND PASSING DATA
- LESSON 26 TECHNIQUES FOR LIST CREATION AND SAP QUARY
- LESSON 29 SELECTION SCREENS ABAP REPORT
- ABAP Interview Questions -SQL , Tables , Basic
- Dialog Programming Interview Questions(FAQ's)
- Performance Tuning Faqs in abap
- SAP BASIS LAYER Interview Questions
- SAP ABAPDATA DICTIONARY Interview Questions
- SAP ABAP LOGICAL DATABASE Interview Questions
- SAP ABAP Dialog Programming FAQ
- More than 100 ABAP Interview Faq's
- SAP Workflow Items Sent To Everyone If Agent Not D...
- How to delete an editor lock in sap?
- How can I insert my company logo in the sap abap s...
- sap abap program for Issuing an Unix Command from ...
- Difference for Stock Transfer and Transfer Posting...
- Add a Field To New Condition Table in Pricing in SAP
- Unified Access to All SAP ABAP HR Infotypes
- SAP HR ABAP Logical Database
- Processing Payroll infotypes/Cluster in SAP HR ABAP
- FAQ ON SCRIPTS 1
- FAQ ON SCRIPTS 2
- FAQ ON SCRIPTS 3
- General - Reporting Tree in ABAP
- List Box in ABAP Report
- Example Code For Drill Down Report in SAP ABAP
- TABStrips in ABAP
- A demo program to create subscreen in your ABAP Pr...
- Tree type report in ABAP
- Recursion with Loop Checking in SAP
- ABAP Clipboard Utilities for Beautiful Commented Code
- Create Push Buttons in Application Tool Bar IN SAP...
- Single Bit Processing in Hexadecimal Fields in SAP...
- Showing posts with label ABAP Enhancement. Show al...
-
▼
July
(54)
No comments:
Post a Comment