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: 

Smartforms Declaration

Former Member
0 Kudos

I declared the following at Types tab:

TYPES: BEGIN OF gty_add,

LIFNR TYPE EKKO-LIFNR,

NAME1 TYPE ADRC-NAME1,

NAME3 TYPE ADRC-NAME3,

NAME4 TYPE ADRC-NAME4,

NAME_CO TYPE ADRC-NAME_CO,

STR_SUPPL1 TYPE ADRC-STR_SUPPL1,

STR_SUPPL2 TYPE ADRC-STR_SUPPL2,

STR_SUPPL3 TYPE ADRC-STR_SUPPL3,

POST_CODE1 TYPE ADRC-POST_CODE1,

CITY1 TYPE ADRC-CITY1,

BEZEI TYPE T005U-BEZEI,

LANDX TYPE T005T-LANDX,

VERKF TYPE EKKO-VERKF,

TELFX TYPE LFA1-TELFX,

EVTXT TYPE T027B-EVTXT,

END OF gty_add.

TYPES: gty_tadd TYPE STANDARD TABLE OF gty_add.

And the following at Global Data tab:

GT_ADD TYPE GTY_TADD

GWA_ADD TYPE GTY_ADD

At Initialization tab:

SELECT LIFNR

VERKF

INTO CORRESPONDING FIELDS OF TABLE GT_ADD

FROM EKKO

WHERE EBELN = EBELN.

When I activate it, error:

Field "GT_ADD" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement

Why do I get such message? Have I not declared correctly at Global Data? Please advise.

3 REPLIES 3

SuhaSaha
Advisor
Advisor
0 Kudos

Hello,

You have to add the table "GT_ADD" to the "Output Parameters" column under the Initialization tab )

It should solve ur problem.

BR,

Suhas

Former Member
0 Kudos

Hi,

Have you added GT_ADD in the "Input Parameters" and "Output Parameters" section of the Initialization tab? If not, do so and you will not get this error.

Best Regards,

Ram.

Former Member
0 Kudos

Hi,

You have to declare GT_ADD as Output Parameter and EBELN as Input Parameter in the Initialization tab. Also you have to declare EBELN as Import parameter in Form interface

like, EBELN TYPE EKKO-EBELN.

I hope this is useful for you.

Regards,

Joan