‎2009 Dec 02 11:37 AM
Hi team,
I created program which will be useful for modify the custom table entries.In this UI,,we can save new entries ,Delete and change. while giving new entries,screen is not tsking length which i provided in tables.It is taking only 130 charactor length instead of taking 200 ...i have used grid and dynamic internal table in this program...i am not understanding y it is taking like this.
i have used fm for field catalog...Plz let me know how to rectify this problem...
‎2009 Dec 02 3:30 PM
Hi Mohan,
While builiding Field catalog, pass 'REF_FIELD' and "REF_TABLE' also.
If 'REF_FIELD' and "REF_TABLE' is passed, all characteristics(Length,Type) of database field are inherited to internal table field.
Ex:
Data: l_r_fieldcat type lvc_s_fcat,
l_t_fieldcat type lvc_t_fcat.
l_r_fieldcat-ref_field = 'MATNR'. " Table
l_r_fieldcat-ref_table = 'MARA'. " Field name
append l_r_fieldcat to l_t_fieldcat.
clear l_r_fieldcat.
Thanks,
‎2009 Dec 02 5:53 PM
Hi Mohan,
Are you using simple ABAP Dynpro Screens or ALV Functionality ?
Best Regards,
Samantak.
‎2009 Dec 03 3:52 AM
‎2009 Dec 03 4:00 AM
For field catalog ,,i am using LVC_FIELDCATALOG_MERGE.......i dont think it will give problem.......
‎2009 Dec 03 5:02 AM
Hi Mohan,
Since u are using 'LVC_FIELDCATALOG_MERGE', no need for that. But check whether internal table field names and Dictionary Table field names are same. It should be same. If not change it.
Thanks,