Call form时不用传内表,切记。

1。在Global Definitions->types页面里输:

   types:begin of wa_test,

               matnr like mara-marnt,

               maktx like makt-maktx,

               end of wa_test.

types:it_test type wa_test occurs 1.

 

2. Global Definitions->Global Data

   Variable Name   Type assignment  associated Type

   g_it_test            TYPE                     IT_TEST

    g_wa_test          TYPE                    WA_TEST

 

3.Global Definitions->Initialization

input parameters            output parameters

g_it_test                         g_it_test

code:

DATA:field(50).

FIELD-SYMBOLS:<TEST> TYPE any.

field = '(zmm001)RES_ITAB[]'.        "RES_ITAB[] ZMM001里的内表

ASSIGN (field) TO <TEST>.

g_it_test = <ISEG>.

 

4.现在g_it_test就已经可以使用了。并且数据也与程式里的一样 试试吧