ABAP/4

EDITOR-CALL statement to show internal table as editor in ABAP/4

You can show the value of internal table as editor in ABAP/4 editor and you can modify data too by applying EDITOR-CALL statement.

Example

DATA: BEGIN OF itab occurs 0,
        text(100),
      END OF itab.
INITIALIZATION.
  itab-text = ’Line1: ’.
  APPEND itab.
  itab-text = ’Line2: ’.
  APPEND itab.
  itab-text = ’Line3: ’.
  APPEND itab.
  itab-text = ’Line4: ’.
  APPEND itab.
START-OF-SELECTION.
  EDITOR-CALL FOR itab TITLE ’Testing EDITOR-CALL for internal table’.
  LOOP AT itab.
    WRITE:/ itab-text.
  ENDLOOP.

BOX command in SAPscript

You can draw box in your SAPscript form by applying this command.

Syntax

/: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]

Example

We will draw box begins x origin 1 cm, y origin 2 cm, width 3 cm, height 4 cm, frame 10 tw and shade 10 %

/: BOX XPOS 1 CM YPOS 2 CM WIDTH 3 CM HEIGHT 4 CM FRAME 10 TW INTENSITY 10
img41

Output
img42

How to insert graphics image (Bitmap) in SAPscript

You can insert graphics object (Bitmap) in SAPscript as following:

  • Go to editor of SAPscript form  
    img33
  • Select menu Insert -> Graphics
    img34

    img35
  • Select tab img36 and input the graphic object that already uploaded to SAP by transaction SE78.
    img37

Step by step upload bitmap images to SAP

Step by step

  • Go to transaction SE78.
    img20
  • Select tree menu: Form Graphics -> Stroed on Document Server -> Graphics General Graphics -> BMAP Bitmap Images
    img23

    img25
  • Select img26 to import bitmap image file to SAP. System will popup screen for input file information and target name.
    img27

BOTTOM ... ENDBOTTOM Command in SAPscript

You can print text at the bottom of main window on each page by applying this command.

Syntax

/: BOTTOM
   ...
   ...
/: ENDBOTTOM

Example

SAPscript
img19

Output
img18

Time Mask Template in command SET TIME MASK for SAPscript

Syntax

/: SET TIME MASK = ’template’
Template    Description
HH Hour 2 digits
MM Minute 2 digits
SS Second 2 digits

Example

SAPscript
img17

Output
img16