2009 Apr 25 5:31 AM
Hello Gurus,
In my ZPROGRAM when I am trying to download ALV to local system it is going for short dump with runtime error GETWA_NOT_ASSIGNED.
I am using FM 'REUSE_ALV_FIELDCATALOG_MERGE' for buliding fieldcatalogue.
and FM 'REUSE_ALV_GRID_DISPLAY' for displaying alv.
Please suggest the solution.
Regards,
Vijay
2009 Apr 25 6:14 AM
it is mainly because of layout or Fieldcatalog. Are you passing any layout information..??
how are you creating you Fieldcatalog, is it from Structure or Internal table.
Hello Gurus,
In my ZPROGRAM when I am trying to download ALV to local system it is going for short dump with runtime error GETWA_NOT_ASSIGNED.
I am using FM 'REUSE_ALV_FIELDCATALOG_MERGE' for buliding fieldcatalogue.
and FM 'REUSE_ALV_GRID_DISPLAY' for displaying alv.
Please suggest the solution.
Regards,
Vijay
2009 Apr 25 6:14 AM
it is mainly because of layout or Fieldcatalog. Are you passing any layout information..??
how are you creating you Fieldcatalog, is it from Structure or Internal table.
2009 Apr 25 6:22 AM
Hello vijay,
I am using ztable as structure to fm alv_fieldcatalogue_merge
which has some currency fields
2009 Apr 25 7:13 AM
what about layout..??
if you specify anything wrong in layout also you will get the error.
can you show the ALV Function call..??
2009 Apr 25 7:15 AM
Please Find the below call
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = SY-REPID
I_INTERNAL_TABNAME = 'G_IT_ZORDERCOST'
I_STRUCTURE_NAME = 'ZORDERCOST'
I_CLIENT_NEVER_DISPLAY = 'X'
I_INCLNAME = I_INCLNAME
I_BYPASSING_BUFFER = I_BYPASSING_BUFFER
I_BUFFER_ACTIVE = I_BUFFER_ACTIVE
CHANGING
CT_FIELDCAT = FIELDCATALOG[]
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2.
2009 Apr 25 7:26 AM
2009 Apr 25 7:56 AM
Hi please find the below alv call.
data:G_WA_ZORDERCOST TYPE ZORDERCOST,
G_IT_ZORDERCOST TYPE STANDARD TABLE OF ZORDERCOST,.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = GD_REPID
I_CALLBACK_TOP_OF_PAGE = 'TOP-OF-PAGES' "see FORM
I_STRUCTURE_NAME = 'G_WA_ZORDERCOST'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
I_GRID_TITLE = OUTTEXT
IS_LAYOUT = GD_LAYOUT
IT_FIELDCAT = FIELDCATALOG[]
I_DEFAULT = 'X'
IS_PRINT = GD_PRNTPARAMS
I_SAVE = 'X'
it_special_groups = gd_tabgroup
IT_EVENTS = IT_EVENTS1
is_variant = z_template
TABLES
T_OUTTAB = G_IT_ZORDERCOST[]
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
2009 Apr 25 8:05 AM
> IS_LAYOUT = GD_LAYOUT
what are you passing in GD_LAYOUT, check what options you are filling in layout. if you send some wrong values you will get the same error.
Edited by: Vijay Babu Dudla on Apr 25, 2009 3:05 AM
2009 Apr 25 8:29 AM
hi vijay,
Thanks for your time
i am passing following data to layout
GD_LAYOUT-NO_INPUT = 'X'.
GD_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
GD_LAYOUT-ZEBRA = 'X'.
GD_LAYOUT-COLTAB_FIELDNAME = 'TABCOLOR'.
GD_LAYOUT-NO_HOTSPOT = 'X'.
2009 Apr 25 9:09 AM
GD_LAYOUT-COLTAB_FIELDNAME = 'TABCOLOR'.Ok, as per the above code, if there is no field in internal table called TABCOLOR then you will get the similar dump. Check you have the fieldname called TABCOLOR in your internal table or not.
2009 Apr 25 9:31 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |