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: 

ABAP runtime error - GETWA_NOT_ASSIGNED

Former Member
0 Kudos

Hi experts,

I have a proble with the runtime error GETWA_NOT_ASSIGNED.

I've created a customized program ZPROGRAM. In this program I want call function ALV_WORD_EXECUTE_SIMPLE_LIST so that in my program the data can merge with MS Word.

However, when I want to merge, the above error occured.

The error analysis give:

"You attempted to access an unassigned field symbol" (data segment 32781)"

How can I solve this problem? please help. TQ

7 REPLIES 7

former_member194669
Active Contributor
0 Kudos

Please check your field catalog fields and passing internal table fields. I think a field in the fieldcatalog is not available in passing internal table. and also make sure your field catalog fields are in CAPS

Former Member
0 Kudos

my field catalog declaration is like this:

DATA: BEGIN OF TKBLO OCCURS 0.

INCLUDE STRUCTURE ALV_S_FCAT.

INCLUDE STRUCTURE KKB_S_FCAT.

INCLUDE TYPE SLIS_FIELDCAT_ALV1.

DATA: ROLLNAME_DDIC LIKE DD03P-ROLLNAME,

TECH_ROW_POS LIKE SY-CUCOL, " technical field

TECH_COL_POS LIKE SY-CUCOL, " technical field

TECH_COMPLETE TYPE C, " technical flag DO NOT CHANGE!!

END OF TKBLO.

and while assigning data,

tkblo-row_pos = 1.

tkblo-col_pos = 1.

tkblo-fieldname = 'FILNR'.

tkblo-reptext = File. "

append tkblo.

All thos fields are in ALV_S_FCAT.

Please help.

0 Kudos

HI,

in your field catalog please keep

DATA: BEGIN OF TKBLO OCCURS 0.

INCLUDE STRUCTURE ALV_S_FCAT.

END OF TKBLO.

PLEASE CHECK FUNCTION MODULE FOR EXACT STRUCTURE OF FIELDCATALOG

and also please check field FILNR there in output internal you are passing to fun module

dump clearly saying that field cannot be assigned to field symbol

Former Member
0 Kudos

I call the function like this:

CALL FUNCTION 'ALV_WORD_EXECUTE_SIMPLE_LIST'

EXPORTING

IT_FIELDCAT = TKBLO[]

TABLES

T_OUTTAB = KTAB. " selected data

where KTAB declaration -

DATA: KTAB LIKE ITAB OCCURS 0 WITH HEADER LINE.

and ITAB declaration -

DATA: BEGIN OF ITAB OCCURS 100,

FILNR(30) TYPE C,

END OF ITAB.

and of course in ITAB there are more fields but I just show FILNR in this example to make it simple.

anything wrong with the code above?

dhruv_shah3
Active Contributor
0 Kudos

Hi Dear,

Please Write the code in CAPS especially in ALV reports.

your error will be solved.

Regards,

DS

Former Member
0 Kudos

sorry, but still no result

Former Member
0 Kudos

Hi all,

I think i've found the problem. This is because the program access field-symbol and data mail merge located in other program ZPROGRAM2.

I've coded the forms directly into ZPROGRAM and I found no more runtime error.

Therefore I think my problem already solved. Thanks anyway for all the efforts