SAP R/3
How to Find the Number of Entries of Internal Table in ABAP/4
We can find out how many entries of internal table by apply statement "DESCRIBE".
Example
DATA: it_tab TYPE TABLE OF BKPF WITH HEADER LINE,
tot_lines TYPE i.
...
...
DESCRIBE TABLE it_tab LINES tot_lines.
Or you can apply statement ’LOOP AT’ and count it.
Example
LOOP AT it_tab.
tot_lines = tot_lines + 1.
ENDLOOP.
- thitima's blog
- Add new comment
- 2756 reads
Move & Move-Corresponding in ABAP/4
In above example, the result of MOVE and MOVE-CORRESPONDING is same.
DATA: BEGIN OF wa_tab1,
fld1(4) VALUE ’FLD1’,
fld2(4) VALUE ’FLD2’,
fld3(4) VALUE ’FLD3’,
fld4(4) VALUE ’FLD4’,
fld5(4) VALUE ’FLD5’,
END OF wa_tab1,
BEGIN OF wa_tab2,
fld1(4),
fld2(4),
fld3(4),
fld4(4),
END OF wa_tab2.
************* Move Corresponding *************
MOVE-CORRESPONDING wa_tab1 to wa_tab2.
************ End Move Corresponding **********
******************** Move ********************
MOVE: wa_tab1-fld1 to wa_tab2-fld1,
wa_tab1-fld2 to wa_tab2-fld2,
wa_tab1-fld3 to wa_tab2-fld3,
wa_tab1-fld4 to wa_tab2-fld4.
****************** End Move ******************
- thitima's blog
- Add new comment
- Read more
- 7116 reads
System Field When Generate ABAP/4 Report (Often to use)
Field Description
COLNO the current column
LINNO the current line
- thitima's blog
- Add new comment
- Read more
- 858 reads
FORMAT Options of Format Statement in ABAP/4
Option Description
COLOR n Specific background colors
INTENSIFIED Intensified the background color
INVERSE Swap background and foreground color
HOTSPOT Effect when mouse pointer and click
INPUT Generate input field
RESET Reset formats. The format will be backed to default format.
- thitima's blog
- Add new comment
- 836 reads
How to Insert Page Break in ABAP/4 Report
You can apply statement "NEW-PAGE" for insert page break in your report.
Syntax
NEW-PAGE [NO-TITLE or WITH-TITLE] [NO-HEADING or WITH-HEADING].
Example
REPORT ZTEST01.
TABLES: SPFLI.
PARAMETERS: p_carrid LIKE SPFLI-CARRID.
START-OF-SELECTION.
...
...
...
END-OF-SELECTION.
...
...
NEW-PAGE.
...
...
- thitima's blog
- Add new comment
- 2396 reads
The structure of BDCDATA in ABAP/4
BDC is a method for transfer data in SAP. Data that you want it to be operated by BCD must have structure as bellows:
BDCDATA Structure
Field Name Type Description
PROGRAM CHAR(40) Program Name
DYNPRO NUMC(4) Screen No.
DYNBEGIN CHAR(1) Begin a screen (If yes then equal ’X’)
FNAM CHAR(132) Field Name
FVAL CHAR(132) Field Value
- thitima's blog
- Add new comment
- Read more
- 2122 reads
Recent comments
3 years 33 weeks ago
3 years 38 weeks ago
3 years 39 weeks ago
3 years 39 weeks ago
3 years 40 weeks ago
3 years 42 weeks ago
3 years 42 weeks ago
3 years 42 weeks ago
3 years 42 weeks ago
3 years 43 weeks ago