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

How can I retrieve a data element attributes

Former Member
0 Likes
2,595

Hello everbody,

I have to create a report using write commands but it need to be dynamicaly displayed. The fields to be displayed may vary depending on the user's needs. I have stored the field descriptions (column headings) and the data element to use in a customizing table.

I would like to display the data accrodingly to each filed lenght and type. I would like to know if there is a wa to retreive a field attributes in an ABAP program? I would like to use the field content stored in the customizing table. Therefore I beleieve that usage of command DESCRIBE FIELD is not possible. Any other alternative?

Thank you for your help.

Best regards,

Sylvain

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,475

Check if Function module 'DDIF_DTEL_GET' helps.

3 REPLIES 3
Read only

Former Member
0 Likes
1,476

Check if Function module 'DDIF_DTEL_GET' helps.

Read only

Former Member
0 Likes
1,475

You can get the details of data element from FM DDIF_DTEL_GET.

Read only

Clemenss
Active Contributor
0 Likes
1,475

Hi Silvain,

the requirement is not very clear: You want to create a report using write commands which is completely outdated. OK, if ALV grid or tree is no alternative and screen output is ruled out, you want a classic ABAPlist. The WRITE statement will create the output according to the technical characteristics of the output field automatically.

There is no visible reason why you can not use DESCRIBE statement. For dynamic determination of technical properties, nowadays class CL_ABAP_TYPEDESCR method DESCRIBE_BY_DATA will be the method of choice.

If you give one or two simple examples of what output you want to get for what data, help is right around the corner.

Regards,

Clemens