2007 Sep 18 7:40 AM
Hi experts,
I have an internal table with 2 fields Emp No and Name to be displayed in an ALV grid. But i want the Empno to be start displaying from the 3rd row 1st col. Emp name to be displayed in the 3rd row and 2nd column. How is it possible in ALV grid. Pls Help me with the coding.
Regards,
Shanthi.
2007 Sep 18 8:51 AM
Hi shanti,
U can insert 2 blank lines in the internal table at index 1 & 2 before displaying the grid. So that ur data will display from the third line.
Think this will serve ur purpose.
Please let me know whether it works or not?
2007 Sep 18 12:31 PM
Dear Shanthi,
You can do by teh help of field catalog,
for filling the data u r using the:
DATA: FIELDCAT TYPE LVC_T_FCAT WITH HEADER LINE.
then double click on LVC_T_FCAT and check it has the attribute ROW_POS and COL_POS, pass the value in this like:
FIELDCAT-COL_POS = 1.
FIELDCAT-ROW_POS = 3.
FIELDCAT-COLTEXT = 'Material'.
FIELDCAT-FIELDNAME = 'MATNR'.
FIELDCAT-TABNAME = 'T_MATNR'.
FIELDCAT-OUTPUTLEN = 24.
APPEND FIELDCAT.
Give point if helpfull.
Thanks