2007 May 07 5:35 AM
Hello Experts,
How can I define an internal table based from a structure that
is declared inside a class?I want to define it in the START-OF-SELECTION event.
I'll create a scenario below:
*----------------------------------------------------------------------*
* CLASS lcl_main DEFINITION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
CLASS lcl_main DEFINITION ABSTRACT.
PUBLIC SECTION.
TYPES: BEGIN OF t_vbak,
vbeln TYPE vbak-vbeln,
erdat TYPE vbak-erdat,
ernam TYPE vbak-ernam,
auart TYPE vbak-auart,
kunnr TYPE vbak-kunnr,
vkgrp TYPE vbak-vkgrp,
END OF t_vbak.
ENDCLASS. "lcl_main DEFINITION
START-OF-SELECTION.
*Here i want to define an internal table based from the structure T_VBAK.
Hope you could help me out here guys. Thank you and take care!
Hello Experts,
How can I define an internal table based from a structure that
is declared inside a class?I want to define it in the START-OF-SELECTION event.
I'll create a scenario below:
*----------------------------------------------------------------------*
* CLASS lcl_main DEFINITION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
CLASS lcl_main DEFINITION ABSTRACT.
PUBLIC SECTION.
TYPES: BEGIN OF t_vbak,
vbeln TYPE vbak-vbeln,
erdat TYPE vbak-erdat,
ernam TYPE vbak-ernam,
auart TYPE vbak-auart,
kunnr TYPE vbak-kunnr,
vkgrp TYPE vbak-vkgrp,
END OF t_vbak.
ENDCLASS. "lcl_main DEFINITION
START-OF-SELECTION.
*Here i want to define an internal table based from the structure T_VBAK.
Hope you could help me out here guys. Thank you and take care!
2007 May 07 10:06 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |