Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to define an itab based from a structure inside a class

aris_hidalgo
Contributor
0 Kudos

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!

1 REPLY 1

aris_hidalgo
Contributor
0 Kudos

.