Skip to Content
0
Former Member
Apr 12, 2007 at 08:45 PM

Smartforms

17 Views

Hi !

I'm having hard times defining my internal table in the smartform Global Settings. This my internal table declaration in the ABAP Smartform calling program:

DATA: BEGIN OF IT_AFKO OCCURS 0,

AUFNR LIKE AFKO-AUFNR, "Order Number

GAMNG LIKE AFKO-GAMNG, "Quantity

PLNBEZ LIKE AFKO-PLNBEZ, "Cod. FIH (Material Number)

MAKTX LIKE MAKT-MAKTX, "Product Header Description

BISMT LIKE MARA-BISMT, "Old Material Number)

MATNR LIKE RESB-MATNR, "Order Components (Material Number)

CMAKTX LIKE MAKT-MAKTX. "Order Component Description

DATA: END OF IT_AFKO.

What Reference type should I type for my internal table ? I've entered AFKO for reference type, but it does not work, for I know table AFKO and my internal table have not the same structure.

Do I still need to declare another table (ITAB2) to receive the data for the internal table?

Global settings :

Form interface

Variable name Type assignment Reference type

IT_AFKO LIKE ?

Global definitions

Variable name Type assignment Reference type

ITAB2 LIKE ?

In the Loop section, the Internal table is filled like this:

IT_AFKO INTO ITAB2