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

Matchcode Dinamic colum in ALV grid control objects

Former Member
0 Likes
1,257

We have a ALV whose columns we made dinamic with fields symbols, a column is type dats and we wants a matchcode with the calendary. For this in the fieldcat we put:

F4AVAILABL = 'X'.

REF_FIELD = 'F_CURSO'.

REF_TABLE = 'ZEP_ALV_DATOS'.

edit = 'X'.

With that we get show the calendary but don't to take the value on the cell.

I think that the problem is for that REF_FIELD = 'F_CURSO', because my internal table don't have the field with the name F_CURSO, because the name of all fields is dinamic as well. Thanks very much, take care.

4 REPLIES 4
Read only

Former Member
0 Likes
688

Hi,

i did one such..

i specified like this..

 X_FIELDCAT-TABNAME = 'IT_FINAL'.
  X_FIELDCAT-COL_POS    = L_POS.
  X_FIELDCAT-OUTPUTLEN = '10'.
<b>  X_FIELDCAT-EDIT = 'X'.
  X_FIELDCAT-DATATYPE = 'DATS'.
  X_FIELDCAT-INTTYPE = 'D'.
  X_FIELDCAT-REF_TABLE = 'VEKP'.
  X_FIELDCAT-REF_FIELD = 'ZZPROMDT'.</b>

<b>ZZPROMDT</b> should be of type DATS.

i got the F4 help for date.

Regadrs

vijay

Read only

0 Likes
688

Hi,

with this the colum show the calendar, but when I click for a date the value of cell don´t take the date.

You internal table is dinamic?

Thanks

Read only

0 Likes
688

Hi,

my program uses normal internal table, not dynamic one.

How are you creating the Dynamic internal table.

Regards

vijay

Read only

0 Likes
688

I create the table with

call method cl_alv_table_create=>create_dynamic_table

The columns are in a table Z in BBDD, for each line of the table I create a column in the ALV.