2008 May 29 7:41 AM
Hi
I am getting ABAP dump when i printing alv report using PRINT button.
Error is
Field symbol has not yet been assigned
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = G_REPID
I_CALLBACK_USER_COMMAND = G_USER_COMMAND
IT_FIELDCAT = FIELDCAT[]
IS_LAYOUT = GS_LAYOUT
I_SAVE = G_SAVE
IT_SORT = GS_SORT
IT_FILTER = GS_FILTER
IS_VARIANT = GS_VARIANT
IT_EVENTS = GT_EVENTS[]
IS_PRINT = GS_PRINT
IMPORTING
E_EXIT_CAUSED_BY_CALLER = G_EXIT_CAUSED_BY_CALLER
ES_EXIT_CAUSED_BY_USER = GS_EXIT_CAUSED_BY_USER
TABLES
T_OUTTAB = I_PODETL
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.Pls advise me
Thanks
Kumar
2008 May 29 9:52 AM
Hi Kumar
I guess the problem should be in fieldcatalog preparation.
Plz go thru the fieldcatalog preparation.
there might by spelling mistake in the fieldname between the names u've used in internal table declaration and field catalog preparation.
ex:
internal table
data : begin of itab occurs 0,
-
> WORKS like MARC-WERKS,
end of itab.
fieldcatalog
CLEAR AFIELD.
AFIELD-FIELDNAME = 'WERKS'. <----
AFIELD-TABNAME = 'ITAB'.
AFIELD-SELTEXT_L = 'Plant'.
AFIELD-JUST = 'L'.
AFIELD-OUTPUTLEN = 4.
APPEND AFIELD TO FIELDCAT.
reward if useful
Regards
Prabumanoharan
Hi
I am getting ABAP dump when i printing alv report using PRINT button.
Error is
Field symbol has not yet been assigned
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = G_REPID
I_CALLBACK_USER_COMMAND = G_USER_COMMAND
IT_FIELDCAT = FIELDCAT[]
IS_LAYOUT = GS_LAYOUT
I_SAVE = G_SAVE
IT_SORT = GS_SORT
IT_FILTER = GS_FILTER
IS_VARIANT = GS_VARIANT
IT_EVENTS = GT_EVENTS[]
IS_PRINT = GS_PRINT
IMPORTING
E_EXIT_CAUSED_BY_CALLER = G_EXIT_CAUSED_BY_CALLER
ES_EXIT_CAUSED_BY_USER = GS_EXIT_CAUSED_BY_USER
TABLES
T_OUTTAB = I_PODETL
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.Pls advise me
Thanks
Kumar
2008 May 29 7:43 AM
you haven't given any coding, but normally this happens when the fieldcatalog is not correctly filled. Otherwise, check all the parameters you are giving for displaying ALV.
2008 May 29 7:59 AM
following is fieldcatalog.
CLEAR AFIELD.
AFIELD-FIELDNAME = 'SORG'.
AFIELD-TABNAME = 'I_PODETL'.
AFIELD-SELTEXT_L = 'Sale Org'.
AFIELD-JUST = 'L'.
AFIELD-OUTPUTLEN = 10.
APPEND AFIELD TO FIELDCAT.Pls help me
2008 May 29 8:10 AM
CLEAR AFIELD.
AFIELD-FIELDNAME = 'SORG'.
AFIELD-TABNAME = 'I_PODETL'.
AFIELD-SELTEXT_L = 'Sale Org'.
AFIELD-JUST = 'L'.
AFIELD-OUTPUTLEN = 10.
APPEND AFIELD TO FIELDCAT.
it should be like this.
AFIELD-FIELDNAME = 'VKORG'.
otherwise check the filed name in yur internal table.
By
Durai.V
2008 May 29 8:24 AM
Anyone pls help me. It's very urgent.
I tried old threads. but i dont det any idea.
2008 May 29 10:05 AM
Hai Kumar,
Check one more time , r u giving correct field name in the field catlog for all & it in should be Capital letters.
Excetly Sales Org. and After field catlog check the field name.
Otherwise u post the Internal table declaraction and field catlog declaraction.
Thanks
Durai.V
Edited by: Durai Venkatachalam on May 29, 2008 11:07 AM
2008 May 29 8:48 AM
Have you appended the internal tables fields in field-catalog in the same order as in the final table I_PODETL. The fields in the field-catalog table must must be in order of the fields in I_PDOETL. If you need to change the order of display then pass the value for COL_POS in field-catalog.
hope this helps.
2008 May 29 9:29 AM
hi
would u plz analyze the dump. error analysis
just match the structure of internal table
and no of fields in the field catalog populated..
if dump is comming at grid display then just comment the "isave" and "layout" and try
regards
sachhi
2008 May 29 9:37 AM
2008 May 29 9:47 AM
hi check this..
use this...
wa_fieldcat-fieldname = 'FIELD'.
wa_fieldcat-reptext_ddic = 'Descrition;.
append wa_fieldcat to it_fieldcat .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = G_REPID
I_CALLBACK_USER_COMMAND = G_USER_COMMAND
IT_FIELDCAT = FIELDCAT[]
IS_LAYOUT = GS_LAYOUT
I_SAVE = G_SAVE
IT_SORT = GS_SORT
IT_FILTER = GS_FILTER
IS_VARIANT = GS_VARIANT
IT_EVENTS = GT_EVENTS[]
IS_PRINT = GS_PRINT
TABLES
T_OUTTAB = I_PODETL
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
regards,
venkat.
2008 May 29 9:52 AM
Hi Kumar
I guess the problem should be in fieldcatalog preparation.
Plz go thru the fieldcatalog preparation.
there might by spelling mistake in the fieldname between the names u've used in internal table declaration and field catalog preparation.
ex:
internal table
data : begin of itab occurs 0,
-
> WORKS like MARC-WERKS,
end of itab.
fieldcatalog
CLEAR AFIELD.
AFIELD-FIELDNAME = 'WERKS'. <----
AFIELD-TABNAME = 'ITAB'.
AFIELD-SELTEXT_L = 'Plant'.
AFIELD-JUST = 'L'.
AFIELD-OUTPUTLEN = 4.
APPEND AFIELD TO FIELDCAT.
reward if useful
Regards
Prabumanoharan
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |