2007 Aug 06 5:49 AM
i have a problem , in my customized z program the data fetched in internal table is correct,but when displaying that internal table in alv it is not coming correct,for a single row. i have debugged it but couldn't get it solved can anybody help,points will b rewarded surely.it is urgent
2007 Aug 06 5:54 AM
HI,
check ur coding for function module reuse_alv_list_display.
in this below example itab should be the internal table which has the data.
post ur code if this doesn't solve ur program.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = SY-REPID
I_CALLBACK_PF_STATUS_SET = 'STATUS'
I_CALLBACK_USER_COMMAND = 'UCOMM'
I_STRUCTURE_NAME =
IS_LAYOUT = LAYOUT
IT_FIELDCAT = FCAT
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT = SORT[]
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS = EVE[]
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 5
I_SCREEN_START_LINE = 5
I_SCREEN_END_COLUMN = 120
I_SCREEN_END_LINE = 25
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
<b> T_OUTTAB = ITAB</b>
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.
rgds,
bharat.
i have a problem , in my customized z program the data fetched in internal table is correct,but when displaying that internal table in alv it is not coming correct,for a single row. i have debugged it but couldn't get it solved can anybody help,points will b rewarded surely.it is urgent
2007 Aug 06 5:53 AM
Hi Sarabjit,
You said that, data for a single row is not correct. So, Check if the internal table has the correct entry, before you pass it on to ALV.
Also check the field catalog once more in debugging mode.
Try changing the entries of your internal table, in debugging mode to see if the display is proper...
Best Regards,
Ram.
2007 Aug 06 5:54 AM
HI,
check ur coding for function module reuse_alv_list_display.
in this below example itab should be the internal table which has the data.
post ur code if this doesn't solve ur program.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = SY-REPID
I_CALLBACK_PF_STATUS_SET = 'STATUS'
I_CALLBACK_USER_COMMAND = 'UCOMM'
I_STRUCTURE_NAME =
IS_LAYOUT = LAYOUT
IT_FIELDCAT = FCAT
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT = SORT[]
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS = EVE[]
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 5
I_SCREEN_START_LINE = 5
I_SCREEN_END_COLUMN = 120
I_SCREEN_END_LINE = 25
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
<b> T_OUTTAB = ITAB</b>
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.
rgds,
bharat.
2007 Aug 06 5:57 AM
Hi,
Check out the field name and type with that of the internal table with the original one.
when creating youe internal table.check it data type and length.
Regards
Debjani
2007 Aug 06 6:03 AM
check internal table.
check field catlog.
check row pos
colume pos.
in debug mode.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |