SAP R/3
ABAP/4 Example Code: How to generate graph 2D by ABAP/4
We can generate graph 2D by applying function module ’GRAPH_2D’.
Example
DATA: BEGIN OF itab OCCURS 0,
text(20) TYPE C,
value TYPE i,
END OF itab.
START-OF-SELECTION.
itab-text = ’COL1’.
itab-value = 50.
APPEND itab.
itab-text = ’COL2’.
itab-value = 100.
APPEND itab.
itab-text = ’COL3’.<
- thitima's blog
- Add new comment
- Read more
- 2700 reads
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.
- thitima's blog
- Add new comment
- Read more
- 1889 reads
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 10Output
- thitima's blog
- 4 comments
- Read more
- 15775 reads
How to insert graphics image (Bitmap) in SAPscript
You can insert graphics object (Bitmap) in SAPscript as following:
- Go to editor of SAPscript form
- Select menu Insert -> Graphics
- Select tab and input the graphic object that already uploaded to SAP by transaction SE78.
- thitima's blog
- Add new comment
- Read more
- 7884 reads
Step by step upload bitmap images to SAP
Step by step
- Go to transaction SE78.
- Select tree menu: Form Graphics -> Stroed on Document Server -> Graphics General Graphics -> BMAP Bitmap Images
- Select to import bitmap image file to SAP. System will popup screen for input file information and target name.
- thitima's blog
- 1 comment
- Read more
- 11338 reads
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
Output
- thitima's blog
- Add new comment
- 2888 reads
Recent comments
3 years 29 weeks ago
3 years 34 weeks ago
3 years 35 weeks ago
3 years 35 weeks ago
3 years 35 weeks ago
3 years 38 weeks ago
3 years 38 weeks ago
3 years 38 weeks ago
3 years 38 weeks ago
3 years 38 weeks ago