2007 Oct 04 5:31 AM
Pls urgetn helpme ,
i am passing one internal table to REUSE_ALV_GRID_DISPLAY to dispaly list having 30 col's.the data is there in internal table but in the output list last field (30th col) is not diaplying .i debugged at the FM in the internal table data is there for 30 th col but i am not finding in the list . is there any solution for this pls help me
2007 Oct 04 5:33 AM
Hi,
Pls check whether your fieldcatalog contains all the 30 fields.
If it's not there in fieldcatalog , then it is not going to be displayed .
Regards,
Raghavendra
2007 Oct 04 5:42 AM
2007 Oct 04 5:47 AM
Hi ,
Check whether the field no_disp = 'X' is there in the fieldcatalog display
or check the layout buttons ie change layout (cntrl + F8) button on the alv function toolbar, see there some columns might be hidden.
regards,
Santosh Thorat
2007 Oct 04 5:34 AM
Hi ,
Check ur fieldcatalog table , some columns might be hidden positon or check the layout variant there some columns might have hidden.
regards,
Santosh Thorat
2007 Oct 04 5:41 AM
2007 Oct 04 5:54 AM
2007 Oct 04 6:01 AM
hi pandu
u have 30 fields so pls use fm
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = SY-REPID
I_INTERNAL_TABNAME = 'I_OUTPUT' "capital letters!
I_INCLNAME = SY-REPID
I_BYPASSING_BUFFER = 'X'
CHANGING
CT_FIELDCAT = I_FIELD_CAT
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3.
IF SY-SUBRC = 0.
ENDIF.
2007 Oct 04 6:12 AM
2007 Oct 04 6:14 AM
HI,
this function module is for creating the fieldcatalog.
see this example.
TABLES:MARA.
DATA:BEGIN OF ITAB OCCURS 0,
MATNR LIKE MARA-MATNR,
ERSDA LIKE MARA-ERSDA,
ERNAM LIKE MARA-ERNAM,
MBRSH LIKE MARA-MBRSH,
END OF ITAB.
TYPE-POOLS:SLIS.
<b>DATA:FIELDCAT1 TYPE SLIS_T_FIELDCAT_ALV.</b>
<b>CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = SY-REPID
I_INTERNAL_TABNAME = 'ITAB'
I_INCLNAME = SY-REPID
CHANGING
CT_FIELDCAT = FIELDCAT1.</b>
SELECT * FROM MARA INTO CORRESPONDING FIELDS OF TABLE ITAB
UP TO 20 ROWS.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-REPID
IT_FIELDCAT = <b>FIELDCAT1</b>
TABLES
T_OUTTAB = ITAB.
rgds,
bharat.
2007 Oct 04 6:27 AM
Hi
it will happens some time
please check the fieldcatalog 1st
2nd check wether that 30th field name is in CAPITOL letters or not
i got same problem once at that time my field name is in small letters
in debugging it is showing that that last field have data but its not displaying tehre
finally i changed that field name into CAPITOL letters then the output came corectly
<b>Reward if usefull</b>