-
Notifications
You must be signed in to change notification settings - Fork 0
/
abap_syntax_raw.txt
1387 lines (1079 loc) · 41.5 KB
/
abap_syntax_raw.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# A
ADD dobj1 TO dobj2.
ADD-CORRESPONDING struc1 TO struc2.
ADD { { dobj1 THEN dobj2 UNTIL dobj
{ {TO result} | {GIVING result [ACCORDING TO sel]} } }
| { dobj FROM pos1 TO pos GIVING result } }
[RANGE range].
ALIASES alias FOR intf~comp.
ASSERT [ [ID group [SUBKEY sub]]
[FIELDS val1 val2 ...]
CONDITION ] log_exp.
ASSIGN { dobj[+off][(len)]
| [TABLE FIELD] (name)
| dref->*
| {dobj INCREMENT inc}
| {COMPONENT comp OF STRUCTURE struc}
| oref->(attr_name)
| {class|(class_name)}=>{attr|(attr_name)}
| writable_exp }
TO <fs>
[ { CASTING [ {TYPE type|(name)}
| {LIKE dobj}
| {[TYPE p] DECIMALS dec}
| {TYPE HANDLE handle} ] }
| { {TYPE name}
| {[TYPE name] DECIMALS dec} } ]
[RANGE range].
### obsolete
##ASSIGN LOCAL COPY
## OF { {[INITIAL] { dobj[+off][(len)]
## | (name)
## | oref->(attr_name)
## | {class|(class_name)}=>{attr|(attr_name)}
## | dref->* } }
## | {INITIAL LINE OF {itab|(itab_name)}} }
## TO <fs>
## [CASTING ...].
##
##[AT FIRST.
## ...
##ENDAT.]
## [AT field_groupi [WITH field_groupj].
## ...
## ENDAT.]
## [AT NEW comp1.
## ...
## ENDAT.
## ...
## [AT NEW comp2.
## ...
## ENDAT.
## [...]]]
## [ ... ]
## [[[...]
## AT END OF comp2.
## ...
## ENDAT.]
## ...
## AT END OF comp1.
## ...
## ENDAT.]
##[AT LAST.
## ...
##ENDAT].
AT LINE-SELECTION.
AT PFnn.
AT SELECTION-SCREEN [ OUTPUT
| {ON {par|selcrit}}
| {ON END OF selcrit}
| {ON BLOCK block}
| {ON RADIOBUTTON GROUP group}
| {ON {HELP-REQUEST|VALUE-REQUEST}
FOR {par|selcrit-low|selcrit-high}}
| {ON EXIT-COMMAND} ].
AT USER-COMMAND.
#AUTHORITY-CHECK OBJECT auth_obj [FOR USER user]
# ID id1 {FIELD val1}|DUMMY
# [ID id2 {FIELD val2}|DUMMY]
# ...
# [ID id10 {FIELD val10}|DUMMY].
# B
BACK.
BREAK-POINT [ {ID group} | {log_text} ].
# C
CALL BADI badi->meth|badi->(meth_name)
{ [EXPORTING p1 = a1 p2 = a2 ...]
[IMPORTING p1 = a1 p2 = a2 ...]
[CHANGING p1 = a1 p2 = a2 ...]
[RECEIVING r = a ]
[EXCEPTIONS [exc1 = n1 exc2 = n2 ...]
[OTHERS = n_others]]}
| {[PARAMETER-TABLE ptab]
[EXCEPTION-TABLE etab] }.
CALL DIALOG dialog [ {AND SKIP FIRST SCREEN}
| {USING bdc_tab [MODE mode]} ]
[EXPORTING p1 FROM a1 p2 FROM a2 ...]
[IMPORTING p1 TO a1 p2 TO a2 ...].
CALL CUSTOMER-FUNCTION func
[EXPORTING p1 = a1 p2 = a2 ...]
[IMPORTING p1 = a1 p2 = a2 ...]
[CHANGING p1 = a1 p2 = a2 ...]
[TABLES t1 = itab1 t2 = itab2 ...]
[EXCEPTIONS [exc1 = n1 exc2 = n2 ...]
[error_message = n_error]
[OTHERS = n_others]] .
CALL DATABASE PROCEDURE proxy|(prox_name)
[CONNECTION con|(con_syntax)]
{ [EXPORTING p1 = a1 p2 = a2 ...]
[IMPORTING p1 = a1 p2 = a2 ...] }
| { [PARAMETER-TABLE ptab] }.
CALL METHOD {(meth_name)
|oref->(meth_name)
|(class_name)=>(meth_name)
|class=>(meth_name)
|(class_name)=>meth}
[PARAMETER-TABLE ptab]
[EXCEPTION-TABLE etab].
CALL METHOD OF ole meth [= rc]
[EXPORTING p1 = f1 p2 = f2 ...]
[NO FLUSH] [QUEUE-ONLY].
CALL SCREEN dynnr
[STARTING AT col1 lin1
[ENDING AT col2 lin2]].
CALL SELECTION-SCREEN dynnr
[STARTING AT col1 lin1
[ENDING AT col2 lin2]]
[USING SELECTION-SET variant].
CALL TRANSACTION ta WITH|WITHOUT AUTHORITY-CHECK
{ [AND SKIP FIRST SCREEN]
| [USING bdc_tab
{{[MODE mode]
[UPDATE upd]}
|[OPTIONS FROM opt]}
[MESSAGES INTO itab]] }.
CALL TRANSFORMATION {trans|(name)}
[PARAMETERS {p1 = e1 p2 = e2 ...}|(ptab)]
[OBJECTS {o1 = e1 o2 = e2 ...}|(otab)]
[OPTIONS {a1 = e1 a2 = e2 ...}]
SOURCE {XML src_xml}
| {{bn1 = e1 bn2 = e2 ...}|(stab)}
RESULT {XML rslt_xml}
| { {bn1 = f1 bn2 = f2 ...}|(rtab)
[AREA HANDLE handle] }.
#CASE TYPE OF oref
# [WHEN TYPE class|intf [INTO target1].
# [statement_block1]]
# [WHEN TYPE class|intf [INTO target2].
# [statement_block2]]
# ...
# [WHEN OTHERS.
# [statement_blockn]]
#ENDCASE.
CATCH SYSTEM-EXCEPTIONS [exc1 = n1 exc2 = n2 ...]
[OTHERS = n_others].
[statement_block]
ENDCATCH.
CHECK Expression|SELECT-OPTIONS.
CLASS-DATA attr options.
CLASS-EVENTS evt options.
CLASS-POOL [MESSAGE-ID mid].
CLEAR dobj [ {WITH val [IN {CHARACTER|BYTE } MODE]}
| {WITH NULL} ].
CLOSE CURSOR @dbcur.
CLOSE DATASET identifier.
COLLECT wa INTO itab { [ASSIGNING <fs> [CASTING]]
| [REFERENCE INTO dref] }.
COMMIT WORK [AND WAIT].
COMMIT CONNECTION con.
COMMUNICATION { {INIT DESTINATION dest}
| {ALLOCATE}
| {ACCEPT}
| {SEND BUFFER buf}
| {RECEIVE BUFFER buf DATAINFO dat STATUSINFO stat}
| {DEALLOCATE} } ID id
[RETURNCODE rc]
[LENGTH leng]
[RECEIVED rec]
[HOLD].
COMPUTE [EXACT] lhs =|?= rhs.
CONCATENATE {dobj1 dobj2 ...}|{LINES OF itab}
INTO result
[IN {CHARACTER|BYTE} MODE]
[SEPARATED BY sep]
[RESPECTING BLANKS].
CONDENSE text [NO-GAPS].
CONSTANTS const options.
CONTROLS contrl TYPE { TABLEVIEW USING SCREEN dynnr }
| { TABSTRIP }.
CONVERT {DATE dat1 INTO INVERTED-DATE dat2}
| {INVERTED-DATE dat1 INTO DATE dat2}.
CONVERT TEXT text INTO SORTABLE CODE hex.
CONVERT { TIME STAMP time_stamp TIME ZONE tz
INTO [DATE dat] [TIME tim] [DAYLIGHT SAVING TIME dst] }
| { DATE dat [TIME tim [DAYLIGHT SAVING TIME dst]]
INTO TIME STAMP time_stamp TIME ZONE tz }.
##CONTEXTS con.
CREATE DATA dref [ AREA HANDLE handle ]
[ TYPE { {abap_type|(name)
[LENGTH len] [DECIMALS dec]}
| {[LINE OF] type|(name)}
| {REF TO type|(name)}
| { {{[STANDARD] TABLE}
|{SORTED TABLE}
|{HASHED TABLE}}
OF [REF TO] {type|(name)}
[ {WITH [UNIQUE|NON-UNIQUE]
{KEY {comp1 comp2 ...}|(keytab)}|{DEFAULT KEY}}
| {WITH EMPTY KEY} ]
[INITIAL SIZE n]}
| {HANDLE handle} } ]
| [ LIKE { {[LINE OF] dobj}
| {REF TO dobj}
| { {{[STANDARD] TABLE}
|{SORTED TABLE}
|{HASHED TABLE}}
OF dobj
[ {WITH [UNIQUE|NON-UNIQUE]
{KEY {comp1 comp2 ...}|(keytab)}|{DEFAULT KEY}}
| {WITH EMPTY KEY} ]
[INITIAL SIZE n]} } ].
CREATE OBJECT oref [AREA HANDLE handle]
[ [TYPE class]
[EXPORTING p1 = a1 p2 = a2 ...]
[EXCEPTIONS exc1 = n1 exc2 = n2 ... [OTHERS = n_others]] ]
| [ TYPE (name)
{ [EXPORTING p1 = a1 p2 = a2 ...]
[EXCEPTIONS exc1 = n1 exc2 = n2 ... [OTHERS = n_others]]}
| {[PARAMETER-TABLE ptab]
[EXCEPTION-TABLE etab]} ].
CREATE OBJECT ole class [NO FLUSH] [QUEUE-ONLY].
# D
### not support so far
###DEFINE macro.
### ... &1 ... &9 ...
###END-OF-DEFINITION.
DELETE DATASET dset.
DELETE { { FROM dbtab|view|(target_syntax)
[USING CLIENT clnt] | [CLIENT SPECIFIED]
[CONNECTION con|(con_syntax)]
[WHERE sql_cond] [ORDER BY ... [OFFSET o]] [UP TO n ROWS] }
| { dbtab|view|(target_syntax) [CLIENT SPECIFIED]
[CONNECTION con|(con_syntax)] }
FROM wa|{TABLE itab} }.
DELETE { { {TABLE itab
{{FROM wa [USING KEY key_name|(name)]}
|{WITH TABLE KEY [key_name|(name) COMPONENTS]
{comp_name1|(name1)} = dobj1
{comp_name2|(name2)} = dobj2
... }}}
| {itab INDEX idx [USING KEY key_name|(name)]}
| {itab [USING KEY loop_key]} }
| {itab [USING KEY key_name|(name)]
[FROM idx1] [TO idx2] [WHERE log_exp]|(cond_syntax)}
| {ADJACENT DUPLICATES FROM itab
[ USING KEY key_name|(name) ]
[COMPARING comp1 comp2 ...|{ALL FIELDS}]} }.
DELETE FROM { {MEMORY ID id}
| {DATABASE dbtab(ar) [CLIENT cl] ID id}
| {SHARED MEMORY dbtab(ar) [CLIENT cl] ID id}
| {SHARED BUFFER dbtab(ar) [CLIENT cl] ID id} }.
DEMAND val1 = f1 val2 = f2 ...
FROM CONTEXT context_ref
[MESSAGES INTO itab].
DESCRIBE DISTANCE BETWEEN dobj1 AND dobj2 INTO dst
IN {BYTE|CHARACTER} MODE.
DESCRIBE FIELD dobj
[TYPE typ [COMPONENTS com]]
[LENGTH ilen IN {BYTE|CHARACTER} MODE]
[DECIMALS dec]
[OUTPUT-LENGTH olen]
[HELP-ID hlp]
[EDIT MASK mask].
DESCRIBE LIST { {NUMBER OF {LINES|PAGES} n}
| {LINE linno PAGE page}
| {PAGE pagno [LINE-SIZE width]
[LINE-COUNT page_lines]
[LINES lines]
[FIRST-LINE first_line]
[TOP-LINES top_lines]
[TITLE-LINES title_lines]
[HEAD-LINES header_lines]
[END-LINES footer_lines]} }
[INDEX idx].
DESCRIBE TABLE itab [KIND knd] [LINES lin] [OCCURS n].
DETAIL.
DIVIDE dobj1 BY dobj2.
DIVIDE-CORRESPONDING struc1 BY struc2.
DO [n TIMES]
[VARYING dobj FROM dobj1 NEXT dobj2 [RANGE range]
[VARYING ...]].
[statement_block]
ENDDO.
# E
EDITOR-CALL FOR { {REPORT prog [DISPLAY-MODE]}
| {itab [TITLE title]
[{DISPLAY-MODE}|{BACKUP INTO jtab}]} }.
END-OF-PAGE.
END-OF-SELECTION.
ENHANCEMENT id.
...
ENDENHANCEMENT.
ENHANCEMENT-POINT enh_id SPOTS spot1 spot2 ...
[STATIC]
[INCLUDE BOUND].
ENHANCEMENT-SECTION enh_id SPOTS spot1 spot2 ...
[STATIC]
[INCLUDE BOUND].
...
END-ENHANCEMENT-SECTION.
EVENTS evt [ EXPORTING VALUE(p1) typing
[OPTIONAL|{DEFAULT def1}]
VALUE(p2) typing
[OPTIONAL|{DEFAULT def2}]
... ].
EXEC SQL [PERFORMING subr].
...
ENDEXEC.
EXIT.
EXIT FROM SQL.
EXIT FROM STEP-LOOP.
EXPORT { {p1 = dobj1 p2 = dobj2 ...}
| {p1 FROM dobj1 p2 FROM dobj2 ...}
| (ptab) }
TO { { DATA BUFFER xstr }
| { INTERNAL TABLE itab }
| { MEMORY ID id }
| { DATABASE dbtab(ar) [FROM wa] [CLIENT cl] ID id }
| { SHARED MEMORY dbtab(ar) [FROM wa] [CLIENT cl] ID id }
| { SHARED BUFFER dbtab(ar) [FROM wa] [CLIENT cl] ID id } }
[ COMPRESSION { ON | OFF } ].
EXTRACT [ header | field_group ].
# F
FETCH NEXT CURSOR dbcur
{ { INTO { {[CORRESPONDING FIELDS OF] wa} | (dobj1, dobj2, ...) } }
| { INTO|APPENDING [CORRESPONDING FIELDS OF] TABLE itab
[PACKAGE SIZE n] } }
[ EXTENDED RESULT @oref ].
FIELD-GROUPS [ header | field_group ].
FIELD-SYMBOLS <fs> { typing | { STRUCTURE struc DEFAULT dobj } }.
FIELDS dobj.
FIND [{FIRST OCCURRENCE}|{ALL OCCURRENCES} OF]
{[SUBSTRING] substring} | {REGEX regex} IN
{ {[SECTION [OFFSET off] [LENGTH len] OF] dobj}
| {TABLE itab [FROM lin1 [OFFSET off1]]
[TO lin2 [OFFSET off2]]} }
[IN {CHARACTER|BYTE} MODE]
[{RESPECTING|IGNORING} CASE]
[MATCH COUNT mcnt]
{ {[MATCH LINE mlin]
[MATCH OFFSET moff]
[MATCH LENGTH mlen]}
| [RESULTS result_tab|result_wa] }
[SUBMATCHES s1 s2 ...].
### obsolete
##FORM subr
## [ TABLES { t1 [{TYPE itab_type}|{LIKE itab}|{STRUCTURE struc}]
## t2 [{TYPE itab_type}|{LIKE itab}|{STRUCTURE struc}]
## ... } ]
## [ USING { {VALUE(u1)}|u1 [ typing|{STRUCTURE struc}]
## {VALUE(u2)}|u2 [ typing|{STRUCTURE struc}]
## ... } ]
## [ CHANGING { {VALUE(c1)}|c1 [ typing|{STRUCTURE struc}]
## {VALUE(c2)}|c2 [ typing|{STRUCTURE struc}]
## ... } ]
## [ RAISING exc1|RESUMABLE(exc1) exc2|RESUMABLE(exc2) ... ].
## ...
##ENDFORM.
##
##
##FORM subr DEFINITION [ ... ].
##
##FORM subr IMPLEMENTATION.
## ...
##ENDFORM.
FORMAT [COLOR { { [=] { { COL_BACKGROUND
| {1 | COL_HEADING }
| {2 | COL_NORMAL }
| {3 | COL_TOTAL }
| {4 | COL_KEY }
| {5 | COL_POSITIVE }
| {6 | COL_NEGATIVE }
| {7 | COL_GROUP } } [ON] }
| OFF}
| {= col} }]
[INTENSIFIED [{ON|OFF}|{= flag}]]
[INVERSE [{ON|OFF}|{= flag}]]
[HOTSPOT [{ON|OFF}|{= flag}]]
[INPUT [{ON|OFF}|{= flag}]]
[FRAMES [{ON|OFF}|{= flag}]]
[RESET].
FREE dobj.
FREE MEMORY ID id.
FREE OBJECT ole [NO FLUSH].
FUNCTION-POOL fpool [NO STANDARD PAGE HEADING]
[LINE-SIZE width]
[LINE-COUNT page_lines[(footer_lines)]]
[MESSAGE-ID mid].
# G
GENERATE SUBROUTINE POOL itab NAME prog
[MESSAGE mess]
[INCLUDE incl]
[LINE lin]
[WORD wrd]
[OFFSET off]
[MESSAGE-ID mid]
[SHORTDUMP-ID sid].
GET node [LATE] [FIELDS f1 f2 ...].
GET BADI { badi [FILTERS f1 = x1 f2 = x2 ...] }
| { badi TYPE (name)
[ {FILTERS f1 = x1 f2 = x2 ...}
| {FILTER-TABLE ftab}] }
[CONTEXT con].
GET BIT bitpos OF byte_string INTO val.
GET CURSOR { { FIELD field
[VALUE val]
[LENGTH len]
[[DISPLAY|MEMORY] OFFSET off]
[LINE line]
[AREA area] }
| { LINE line
[VALUE val]
[LENGTH len]
[[DISPLAY|MEMORY] OFFSET off] } }.
GET DATASET dset [POSITION pos] [ATTRIBUTES attr].
GET LOCALE LANGUAGE lang COUNTRY cntry MODIFIER mod.
GET PARAMETER ID pid FIELD dobj.
GET PF-STATUS status [PROGRAM prog] [EXCLUDINGfcode].
GET PROPERTY OF ole attr = dobj [NO FLUSH] [QUEUE-ONLY]
[EXPORTING p1 = f1 p2 = f2 ...].
GET REFERENCE OF dobj INTO dref.
GET RUN TIME FIELD rtime.
GET TIME [FIELD tim].
GET TIME STAMP FIELD time_stamp.
# H
HIDE dobj.
# I
IMPORT { {p1 = dobj1 p2 = dobj2 ...}
| {p1 TO dobj1 p2 TO dobj2 ...}
| (ptab) }
FROM { { DATA BUFFER xstr }
| { INTERNAL TABLE itab }
| { MEMORY ID id }
| { DATABASE dbtab(ar) [TO wa] [CLIENT cl]
{ID id}|{MAJOR-ID id1 [MINOR-ID id2]} }
| { SHARED MEMORY dbtab(ar) [TO wa] [CLIENT cl] ID id }
| { SHARED BUFFER dbtab(ar) [TO wa] [CLIENT cl] ID id } }
[ { { { {[ACCEPTING PADDING] [ACCEPTING TRUNCATION]}
| [IGNORING STRUCTURE BOUNDARIES] }
[ IGNORING CONVERSION ERRORS
[REPLACEMENT CHARACTER rc] ] }
| [IN CHAR-TO-HEX MODE] } ]
[CODE PAGE INTO cp]
[ENDIAN INTO endian].
IMPORT DIRECTORY INTO itab
FROM DATABASE dbtab(ar) [TO wa] [CLIENT cl] ID id.
INCLUDE incl [IF FOUND].
INCLUDE { {TYPE struc_type} | {STRUCTURE struc} }
[AS name [RENAMING WITH SUFFIX suffix]].
INFOTYPES nnnn [NAME name]
[OCCURS n]
[MODE N]
[VALID FROM intlim1 TO intlim2]
[AS PERSON TABLE].
INITIALIZATION.
INPUT.
INSERT { {INTO dbtab|view|(target_syntax)
[USING CLIENT clnt] | [CLIENT SPECIFIED]
[CONNECTION con|(con_syntax)]
VALUES wa}
| { dbtab|view|(target_syntax)
[USING CLIENT clnt] | [CLIENT SPECIFIED]
[CONNECTION con|(con_syntax)]
FROM wa|{TABLE itab [ACCEPTING DUPLICATE KEYS]}|( SELECT subquery_clauses ) } }.
INSERT dobj1 dobj2 ... INTO { header | field_group }.
INSERT { wa
| {INITIAL LINE}
| {LINES OF jtab [FROM idx1] [TO idx2] [USING KEY key_name|(name)]} }
INTO { {TABLE itab}
| {itab INDEX idx}
| {itab} }
[ {ASSIGNING <fs> [CASTING]} | {REFERENCE INTO dref } ].
INSERT REPORT prog FROM itab
[MAXIMUM WIDTH INTO wid]
{ [KEEPING DIRECTORY ENTRY]
| { [PROGRAM TYPE pt]
[FIXED-POINT ARITHMETIC fp]
[VERSION|{UNICODE ENABLING} vs] }
| [DIRECTORY ENTRY dir] }.
INSERT TEXTPOOL prog FROM itab LANGUAGE lang.
INTERFACE intf.
[components]
ENDINTERFACE.
INTERFACE intf {DEFERRED [PUBLIC]} | LOAD.
INTERFACE-POOL.
INTERFACES intf
[PARTIALLY IMPLEMENTED]
{ { [ABSTRACT METHODS meth1 meth2 ...]
[FINAL METHODS meth1 meth2 ...] }
| [ALL METHODS {ABSTRACT|FINAL}] }
[DATA VALUES attr1 = val1 attr2 = val2 ...].
# L
LEAVE.
LEAVE LIST-PROCESSING.
LEAVE PROGRAM.
LEAVE { SCREEN | {TO SCREEN dynnr} }.
LEAVE TO LIST-PROCESSING [AND RETURN TO SCREEN dynnr].
LEAVE TO { {TRANSACTION ta} | {CURRENT TRANSACTION} }
[AND SKIP FIRST SCREEN].
LOAD-OF-PROGRAM.
LOCAL dobj.
LOG-POINT ID group
[SUBKEY sub]
[FIELDS val1 val2 ...].
# M
MAXIMUM dobj.
MINIMUM dobj.
MODIFY dbtab|view|(target_syntax)
[USING CLIENT clnt] | [CLIENT SPECIFIED]
[CONNECTION con|(con_syntax)]
FROM { wa|{TABLE itab} }.
MODIFY { { { {TABLE itab}|{itab INDEX idx}
[USING KEY key_name|(name)] }
| { itab [USING KEY loop_key] }
FROM wa
[TRANSPORTING comp1 comp2 ...]
[{ASSIGNING <fs> [CASTING]}|{REFERENCE INTO dref}] }
| {itab FROM wa [USING KEY key_name|(name)]
TRANSPORTING comp1 comp2 ...
WHERE log_exp|(cond_syntax)} }.
MODIFY { {LINE line [OF {PAGE page}|{CURRENT PAGE}] [INDEX idx]}
| {CURRENT LINE} }
[LINE VALUE FROM wa]
[FIELD VALUE dobj1 [FROM wa1] dobj2 [FROM wa2] ...]
[LINE FORMAT ext_format_options]
[FIELD FORMAT dobj1 ext_format_options1
dobj2 ext_format_options2 ...].
MODIFY SCREEN FROM wa.
MODULE mod {OUTPUT|[INPUT]}.
{Statements}
ENDMODULE.
MULTIPLY dobj1 BY dobj2.
MULTIPLY-CORRESPONDING struc1 BY struc2.
# N
NEW-LINE [NO-SCROLLING|SCROLLING].
NEW-PAGE [WITH-TITLE|NO-TITLE]
[WITH-HEADING|NO-HEADING]
[LINE-COUNT page_lines]
[LINE-SIZE width]
[NO-TOPOFPAGE]
[ { PRINT ON [NEW-SECTION]
PARAMETERS pri_params
[ARCHIVE PARAMETERS arc_params]
NO DIALOG }
| { PRINT OFF } ].
NEW-SECTION.
NODES node [TYPE type].
# O
ON CHANGE OF dobj [OR dobj1 [OR dobj2] ...].
statement_block
ENDON.
OPEN CURSOR [WITH HOLD] @dbcur FOR
[WITH
+cte1 AS subquery[,
+cte2 AS subquery
...]]
SELECT { ...
FROM ... }
| { FROM ...
FIELDS ... }
[[FOR ALL ENTRIES IN itab] WHERE sql_cond]
[GROUP BY ...] [HAVING sql_cond]
[ORDER BY ...]
[OFFSET o]
[UP TO n ROWS]
[BYPASSING BUFFER]
[CONNECTION con|(con_syntax)].
OPEN DATASET dset
FOR { INPUT | OUTPUT | APPENDING | UPDATE }
IN { { BINARY MODE }
| { TEXT MODE ENCODING { DEFAULT
| {UTF-8 [SKIPPING|WITH BYTE-ORDER MARK]}
| NON-UNICODE }
[WITH {NATIVE|SMART|UNIX|WINDOWS} LINEFEED] }
| { LEGACY BINARY MODE [{BIG|LITTLE} ENDIAN]
[CODE PAGE cp] }
| { LEGACY TEXT MODE [{BIG|LITTLE} ENDIAN]
[CODE PAGE cp]
[WITH {NATIVE|SMART|UNIX|WINDOWS} LINEFEED] } }
[AT POSITION pos]
[TYPE attr]
[FILTER opcom]
[MESSAGE msg]
[IGNORING CONVERSION ERRORS]
[REPLACEMENT CHARACTER rc].
OVERLAY text1 WITH text2 [ONLY mask].
# P
PACK source TO destination.
PARAMETERS { {para[(len)]} | {para [LENGTH len]} }
[ {TYPE type [DECIMALS dec]}
| {LIKE dobj}
| {LIKE (name)} ]
[ {[OBLIGATORY|NO-DISPLAY] [VISIBLE LENGTH vlen]}
| {AS CHECKBOX [USER-COMMAND fcode]}
| {RADIOBUTTON GROUP group [USER-COMMAND fcode]}
| {AS LISTBOX VISIBLE LENGTH vlen
[USER-COMMAND fcode] [OBLIGATORY]} ]
[MODIF ID modid]
[DEFAULT val]
[LOWER CASE]
[MATCHCODE OBJECT search_help]
[MEMORY ID pid]
[VALUE CHECK]
[FOR {TABLE|NODE} node
[HELP-REQUEST]
[VALUE-REQUEST]
[AS SEARCH PATTERN]].
PERFORM { { { subr
| {subr|(sname) IN PROGRAM [prog|(pname)] [IF FOUND]}
| {n OF subr1 subr2 ...}
| {subr(prog) [IF FOUND]} }
[TABLES itab1 itab2 ...]
[USING a1 a2 ...]
[CHANGING a1 a2 ...] }
| { ON { {COMMIT [LEVEL idx]}
| ROLLBACK } } }.
POSITION pos.
PRINT-CONTROL { INDEX-LINE index_line }
| { formats|{FUNCTION code}
[LINE line] [POSITION col] }.
PROGRAM prog [NO STANDARD PAGE HEADING]
[LINE-SIZE width]
[LINE-COUNT page_lines[(footer_lines)]]
[MESSAGE-ID mid]
[REDUCED FUNCTIONALITY].
PROVIDE FIELDS {*|{comp1 comp2 ...}}
FROM itab1 INTO wa1 VALID flag1 ...
BOUNDS intliml1 AND intlimu1
[WHERE log_exp1]
FIELDS {*|{comp1 comp2 ...}}
FROM itab2 INTO wa2 VALID flag2
BOUNDS intliml2 AND intlimu2
[WHERE log_exp2]
...
BETWEEN extliml AND extlimu
[INCLUDING GAPS].
...
ENDPROVIDE.
PUT { node | <node> }.
# R
RANGES rtab FOR dobj [OCCURS n].
READ DATASET dset INTO dobj [MAXIMUM LENGTH mlen]
[[ACTUAL] LENGTH alen].
READ { {LINE line [{OF PAGE page}|{OF CURRENT PAGE}]
[INDEX idx]}
| {CURRENT LINE} }
[LINE VALUE INTO wa]
[FIELD VALUE dobj1 [INTO wa1] dobj2 [INTO wa2] ...].
READ REPORT prog INTO itab [MAXIMUM WIDTH INTO wid].
READ TABLE dbtab [WITH KEY key]
[SEARCH {FKEQ|FKGE|GKEQ|GKGE}]
[VERSION vers].
READ TABLE itab
{ {{FROM wa [USING KEY key_name|(name)]}
|{WITH TABLE KEY [key_name|(name) COMPONENTS]
{comp_name1|(name1)} = dobj1
{comp_name2|(name2)} = dobj2
...}
| {WITH KEY comp1 = dobj1 comp2 = dobj2 ... [BINARY SEARCH]}
| {WITH KEY key_name|(name)
COMPONENTS comp1 = dobj1 comp2 = dobj2 ... }
| {INDEX idx [USING KEY key_name|(name)]} }
| {WITH KEY dobj [BINARY SEARCH]}
| {WITH KEY = dobj [BINARY SEARCH]} }
{ {INTO wa
[COMPARING { {comp1 comp2 ...}|{ALL FIELDS}|{NO FIELDS} }]
[TRANSPORTING { {comp1 comp2 ...}|{ALL FIELDS} }]}
| { ASSIGNING <fs> [CASTING] }
| { REFERENCE INTO dref }
| {TRANSPORTING NO FIELDS} }.
READ TEXTPOOL prog INTO itab LANGUAGE lang.
RECEIVE RESULTS FROM FUNCTION func
[KEEPING TASK]
[IMPORTING p1 = a1 p2 = a2 ...]
[TABLES t1 = itab1 t2 = itab2 ...]
[EXCEPTIONS [exc1 = n1 exc2 = n2 ...]
[system_failure = ns [MESSAGE smess]]
[communication_failure = nc [MESSAGE cmess]]
[OTHERS = n_others]] .
REFRESH itab.
REFRESH CONTROL contrl FROM SCREEN dynnr.
REFRESH itab FROM TABLE dbtab.
REJECT [node].
REPLACE { { [{FIRST OCCURRENCE}|{ALL OCCURRENCES OF}]
{[SUBSTRING] substring} | {REGEX regex} IN
{ {[SECTION [OFFSET off] [LENGTH len] OF] dobj}
| {TABLE itab [FROM lin1 [OFFSET off1]]
[TO lin2 [OFFSET off2]]} }
WITH new
[IN {CHARACTER|BYTE} MODE]
[{RESPECTING|IGNORING} CASE]
[REPLACEMENT COUNT rcnt]
{ {[REPLACEMENT OFFSET roff]
[REPLACEMENT LENGTH rlen]
[REPLACEMENT LINE rlin]}
| [RESULTS result_tab|result_wa] } }
| { SECTION [OFFSET off] [LENGTH len] OF dobj
WITH new
[IN {CHARACTER|BYTE} MODE] } }.
REPLACE substring WITH new INTO dobj
[IN {BYTE|CHARACTER} MODE]
[LENGTH len].
RESERVE n LINES.
RESUME.
RETRY.
RETURN.
ROLLBACK WORK.
ROLLBACK CONNECTION identifier.
# S
SCROLL LIST [ { TO COLUMN col }
| { {LEFT|RIGHT} [BY n PLACES] } ]
[ { TO { {FIRST PAGE}
| {LAST PAGE}
| {PAGE pag} }
[LINE lin] }
| { {FORWARD|BACKWARD} [n PAGES] } ]
[INDEX idx].
SELECT [SINGLE [FOR UPDATE]]
{ [DISTINCT] { *
| { ..., data_source~*, ...,
col| aggregate( [DISTINCT] col )| sql_exp} [AS alias], ... }
| (column_syntax)
FROM { { {data_source [AS tabalias]}
| { [(] {data_source [AS tabalias]}|join
{[INNER] JOIN}|{LEFT|RIGHT [OUTER] JOIN}|{CROSS JOIN}
{data_source [AS tabalias]}|join [ON join_cond] [)] }
| (source_syntax) [AS tabalias] }
[ {USING CLIENT clnt}
| {CLIENT SPECIFIED [entity1~clnt] [, entity2~clnt] ...} ] } }
| { FROM { { {data_source [AS tabalias]}
| { [(] {data_source [AS tabalias]}|join
{[INNER] JOIN}|{LEFT|RIGHT [OUTER] JOIN}|{CROSS JOIN}
{data_source [AS tabalias]}|join [ON join_cond] [)] }
| (source_syntax) [AS tabalias] }
[ {USING CLIENT clnt}
| {CLIENT SPECIFIED [entity1~clnt] [, entity2~clnt] ...} ] }
FIELDS [DISTINCT]
{ *
| { ..., data_source~*, ...,
col|aggregate( [DISTINCT] col )| sql_exp} [AS alias], ... }
| (column_syntax) }
[[FOR ALL ENTRIES IN itab] WHERE sql_cond]
[GROUP BY {col1| sql_exp1, col2| sql_exp2, ...}|(column_syntax)]
[HAVING sql_cond]
[UNION ALL|DISTINCT SELECT ...]
[ORDER BY { {PRIMARY KEY}
|{{{col1|a1} [ASCENDING|DESCENDING],}
{{col2|a2} [ASCENDING|DESCENDING],}
... }
| (column_syntax) }].
{ { INTO {[CORRESPONDING FIELDS OF] wa}|(dobj1, dobj2, ...) }
| { INTO|APPENDING [CORRESPONDING FIELDS OF] TABLE itab
[PACKAGE SIZE n] }
| { INTO @DATA(wa) }
| { INTO TABLE @DATA(itab) [PACKAGE SIZE n] } }
[ EXTENDED RESULT @oref ]
[ CREATING { READER|LOCATOR FOR { COLUMNS col1 col2 ... }
| { ALL [OTHER] [BLOB|CLOB] COLUMNS }
[READER|LOCATOR FOR ...] }
| { (crea_syntax) } ]
[OFFSET o]
[UP TO n ROWS]
[BYPASSING BUFFER]
[CONNECTION con|(con_syntax)]
...
[ENDSELECT.]