Application Development and Automation 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: 
Read only

UI program problem: table field charctor length problem

Former Member
0 Likes
640

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...

5 REPLIES 5
Read only

awin_prabhu
Active Contributor
0 Likes
615

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,

Read only

Former Member
0 Likes
615

Hi Mohan,

Are you using simple ABAP Dynpro Screens or ALV Functionality ?

Best Regards,

Samantak.

Read only

0 Likes
615

oops alv concept

Read only

0 Likes
615

For field catalog ,,i am using LVC_FIELDCATALOG_MERGE.......i dont think it will give problem.......

Read only

0 Likes
615

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,