Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Get the field details from one saved layout.

Former Member
0 Kudos

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

2 REPLIES 2

raymond_giuseppi
Active Contributor
0 Kudos

Usually I don't call this FM but call in sequence

  • LVC_FIELDCATALOG_MERGE
  • LVC_VARIANT_SELECT

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

silvanacpv
Explorer
0 Kudos

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,