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

To list date fields in given table

Former Member
0 Likes
929

hi,

i have got one requirement in that i have to list date fields in given table as list box when user press F4 .Selection screen will have

2 parameters 1) table name

2) field name(Date field)

Can any one tell me is there any function module will list date fields in enterd table. Or there is any way to find total date fields

in table.

thanks in advance.

Regards

Arun

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
820

Hi,

You can use FM 'DDIF_NAMETAB_GET' to get the fields and types of a table and then look on the output table DFIES_TAB where DATATYPE equal to 'DATS'.

Regards,

Himanshu

3 REPLIES 3
Read only

Former Member
0 Likes
821

Hi,

You can use FM 'DDIF_NAMETAB_GET' to get the fields and types of a table and then look on the output table DFIES_TAB where DATATYPE equal to 'DATS'.

Regards,

Himanshu

Read only

Former Member
0 Likes
820

You can count date fileds in a DBTAB


SELECT COUNT(*) FROM dbtab where <condition>

Read only

0 Likes
820

You can count date fileds in a DBTAB

What's your WHERE condition for the specific table? You seem to throw out a lot of non-specific responses, which would be point trolling in my book...

Himanshu already gave a good response, but I'd be curious to know the source of the requirement .