09-12-2016 10:15 AM
Hi All,
I used FM ' LT_DBDATA_READ_FROM_LTDX' to get the field details from saved layout and its working fine. Here my problem is I am not getting the column position. So the column position is not coming correctly in my email output as per the report output. Please check the below code and let me know where I did the mistake or plz give me some other way which I can get all the details. Please update for any other info if you want.
CALL FUNCTION 'LT_DBDATA_READ_FROM_LTDX'
EXPORTING
i_tool = 'LT'
is_varkey = v_verkey
TABLES
t_dbfieldcat = lt_field
EXCEPTIONS
not_found = 1
wrong_relid = 2
OTHERS = 3.
Thanks,
Satya
09-12-2016 10:39 AM
Usually I don't call this FM but call in sequence
Delete records with no_out or tech set and sort the field catalog by row_pos and col_pos to build the html mail
Regards,
Raymond
11-16-2022 3:29 PM
Hello,
In t_dbfieldcat table you have the registers with param field = 'COL_POS'. Those lines contain the saved position in the ALV Layout in the value field.
Please, check that field. Due to is char40 and right aligned, maybe it is not visible in the debug, however the value is saved there.
Saludos,