2008 Jan 26 6:32 AM
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
2008 Jan 26 6:43 AM
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
a®
2008 Jan 26 6:54 AM
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.
2008 Jan 26 7:06 AM
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
a®
2008 Jan 26 7:28 AM
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?
2008 Jan 26 8:39 AM
Hi Dear,
Please Write the code in CAPS especially in ALV reports.
your error will be solved.
Regards,
DS
2008 Jan 26 9:11 AM
2008 Jan 26 9:56 AM
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