This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REPORT ztest. | |
PERFORM nonexistent_subroutine IN PROGRAM standard_report IF FOUND. | |
ASSIGN ('(STANDARD_REPORT)GV_NAME') TO FIELD-SYMBOL(<gs_name>). | |
IF sy-subrc = 0. | |
<gs_name> = 'Petya'. | |
ENDIF. | |
PERFORM greeting IN PROGRAM standard_report IF FOUND. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REPORT standard_report. | |
DATA gv_name TYPE string. | |
FORM greeting. | |
WRITE |Hello, { gv_name }!|. | |
ENDFORM. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REPORT ZSPEADTEST_READ. | |
CLASS lcl_read_spead_test DEFINITION FINAL. | |
PUBLIC SECTION. | |
TYPES ty_itab TYPE pa0002. | |
TYPES ty_t_itab TYPE STANDARD TABLE OF ty_itab WITH KEY primary_key COMPONENTS pernr subty objps sprps endda begda seqnr. | |
* TYPES ty_t_itab TYPE SORTED TABLE OF ty_itab WITH UNIQUE KEY primary_key COMPONENTS pernr subty objps sprps endda begda seqnr. | |
* TYPES ty_t_itab TYPE HASHED TABLE OF ty_itab WITH UNIQUE KEY primary_key COMPONENTS pernr subty objps sprps endda begda seqnr. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
DATA mt_itab TYPE ty_t_itab. | |
... | |
SELECT * FROM pa0002 INTO TABLE mt_itab UP TO 1000 ROWS. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TYPES ty_itab TYPE pa0002. | |
TYPES ty_t_itab TYPE STANDARD TABLE OF ty_itab WITH KEY primary_key COMPONENTS pernr subty objps sprps endda begda seqnr. | |
* TYPES ty_t_itab TYPE SORTED TABLE OF ty_itab WITH UNIQUE KEY primary_key COMPONENTS pernr subty objps sprps endda begda seqnr. | |
* TYPES ty_t_itab TYPE HASHED TABLE OF ty_itab WITH UNIQUE KEY primary_key COMPONENTS pernr subty objps sprps endda begda seqnr. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*&---------------------------------------------------------------------* | |
*& Report ZSPEADTEST_APPEND | |
*& | |
*&---------------------------------------------------------------------* | |
*& | |
*& | |
*&---------------------------------------------------------------------* | |
REPORT ZSPEADTEST_APPEND. | |
CLASS lcl_append_opera_spead_test DEFINITION FINAL. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CLEAR ls_acc. | |
ls_acc-full_name = |John Doe|. | |
ls_acc-birthday = sy-datum. | |
ls_acc-age = 30. | |
APPEND ls_acc TO lt_acc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lt_foo = VALUE ty_t_foo( BASE lt_foo ( full_name = |John Doe| | |
birthday = sy-datum | |
age = 30 ) ). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
APPEND INITIAL LINE TO lt_foo ASSIGNING FIELD-SYMBOL(<lfs_foo>). | |
<lfs_foo>-full_name = |John Doe|. | |
<lfs_foo>-birthday = sy-datum. | |
<lfs_foo>-age = 30. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
APPEND VALUE ty_foo( full_name = |John Doe| | |
birthday = sy-datum | |
age = 30 ) TO lt_foo. |
NewerOlder