Pages

Monday, November 23, 2009

Special Character deletion

Used this Function to remove the special character :

SF_SPECIALCHAR_DELETE

Sunday, November 22, 2009

Function for Spell Amount

CLEAR spell.
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
language = sy-langu
amount = w_amt2
filler = space
IMPORTING
in_words = spell
EXCEPTIONS
not_found = 1
too_large = 2.

Selection Screen using parameter statement

selection-screen begin of block a1 with frame title text-001.
selection-screen begin of line.
selection-screen:
COMMENT 1(20) text-tst FOR FIELD p_date2,
POSITION 33.
parameters: p_date2 LIKE T549Q-begda.
selection-screen POSITION 39.
selection-screen:
COMMENT 52(3) text-and FOR FIELD p_date1,
POSITION 58.
parameters: p_date1 LIKE T549Q-begda.
selection-screen POSITION 64.
selection-screen end of line.
selection-screen end of block a1.

Saturday, November 21, 2009

Explicit Page Break: NEW-PAGE

SAPscript automatically inserts a page break when the main window of a page (MAIN) is full. You can use the NEW-PAGE command to force a page break in the text at any point you want one. The text following this command then appears on a new page. The page break is always performed (it is an unconditional page break).

The NEW-PAGE command completes the current page. This means that all the windows that are still on the page are printed immediately. If you use the NEW-PAGE command without parameters, the page defined in the current form as the next page will be taken next. If, however, your form contains a number of different pages, then you can specify any one of these as the next page to be used.

Syntax:


/: NEW-PAGE [page_name]

SAPscript Control Commands

Syntax of Control Commands

SAPscript control commands are entered and edited in the text editor in the same way as a normal line of text. They do, however, differ from normal lines of text:

* Enter the paragraph format /: in the format column to identify a control command.

* Enter the command itself in the text line. You will notice that all key words and other parts of the specification not given as literal values enclosed in inverted commas are automatically converted to capital letters.

* Make sure that a control command, together with any parameters it requires, does not occupy more than a single line.

* Enter only one control command in each line.

* Note that the editor formatting has no effect on lines containing control commands.

If a control command is unknown or it contains syntax errors, the line containing it is treated as a comment line. It is neither interpreted nor printed.