ABAP EXAMPLE
MONDAY, JANUARY 02, 2006
Parameters
ExamplesPARAMETERS name(length) [TYPE type or LIKE obj] DECIMALS d.
PARAMETERS: char1(20) TYPE C,
date1 LIKE SY-DATUM,
number1 TYPE P DECIMALS 2.
Options- DEFAULT
Example: PARAMETERS p1(5) TYPE C DEFAULT ’we’.
- MEMORY ID
Example: PARAMETERS p2(5) TYPE C MEMORY ID pid.
- LOWER CASE
Example: PARAMETERS f1(10) LOWER CASE.
- VISIBLE LENGTH
Example: PARAMETERS f1(10) TYPE C VISIBLE LENGTH 4.
- OBLIGATORY
Example: PARAMETERS f1(10) TYPE C OBLIGATORY.
- MATCHCODE OBJECT
Example: PARAMETERS p_belnr LIKE BKPF-BELNR MATCHCODE OBJECT zsh_f4_belnr.
- VALUE CHECK
Example: PARAMETERS p_belnr LIKE BKPF-BELNR OBLIGATORY VALUE CHECK.
- AS CHECKBOX
Example: PARAMETERS: c1 AS CHECKBOX DEFAULT ’X’.
- RADIOBUTTON GROUP
Example: PARAMETERS: r1 RADIOBUTTON GROUP rad1 DEFAULT ’X’, r2 RADIOBUTTON GROUP rad1, r3 RADIOBUTTON GROUP rad1.
- NO-DISPLAY
Example: PARAMETERS: f1(10) TYPE C NO-DISPLAY.
- MODIF ID
Example: PARAMETERS: f1(10) MODIF ID GR1.
SUNDAY, JANUARY 01, 2006
Program Selections
- PARAMETERS
- SELECT-OPTIONS
Introduction
ABAP/4 Data Type
Type Description Initial Value C Character Space D Date ’00000000’F Floating Point 0.0I Integer 0N Numeric Text ’0’P Packed Decimal 0T Time ’000000’X Hexadecimals X00
SATURDAY, DECEMBER 31, 2005
Commenting
- Line Comment: If you want to comment whole line, you can put * sign in front of the line.
Example:* Comment Line WRITE: This is the example for commenting.
- Partial Line Comment: If you want to comment partail of line, you can put " sign in front of the comment text
Example:WRITE: This is the example for commenting. "Comment Line
No comments:
Post a Comment