‎2011 Jul 08 8:38 PM
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
‎2011 Jul 08 8:42 PM
‎2011 Jul 08 8:42 PM
‎2011 Jul 08 8:45 PM
You can get the details of data element from FM DDIF_DTEL_GET.
‎2011 Jul 08 10:47 PM
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