Application Development and Automation 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: 
Read only

ALV Print dump

Former Member
0 Likes
1,472

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,351

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

10 REPLIES 10
Read only

Sm1tje
Active Contributor
0 Likes
1,351

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.

Read only

Former Member
0 Likes
1,351

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

Read only

Former Member
0 Likes
1,351

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

Read only

0 Likes
1,351

Anyone pls help me. It's very urgent.

I tried old threads. but i dont det any idea.

Read only

0 Likes
1,351

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

Read only

Former Member
0 Likes
1,351

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.

Read only

Former Member
0 Likes
1,351

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

Read only

0 Likes
1,351

Hi sachhi

still going to dump

Read only

Former Member
0 Likes
1,351

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.

Read only

Former Member
0 Likes
1,352

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