12-19-2008 10:32 AM
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.
12-19-2008 10:40 AM
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
12-19-2008 10:46 AM
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.
12-19-2008 11:30 AM
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