Skip to Content
0

How to create dictionary association between a field of an ABAP dynpro and a class attribute?

Feb 09, 2017 at 03:27 PM

61

avatar image

Hi all,

I am creating an okd fashioned ABAP dynpro (not web dynpro) .

I am able to bind a class attribute to a dynpro field using the <instanc>-><attribute> syntax in the dynpro element list:

In the above screen you see, that G_CONTROLLER_D9150 (defined globally as: DATA g_controller_d9150 TYPE REF TO lcl_ve_card_controller.) provides data for thw field (green mark).

Unfortunately I am not able to use the same approach to get this field to refer to a dictionary entry (data element or structure). The marked red area is ready for input :-(

How to achieve the binding to a dictionary definition (to get the label texts inclusive translations)?

Kind Regards,

Thomas

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Horst Keller
Feb 09, 2017 at 05:47 PM
1

To my knowledge, for Dynpro fields that refer to dictionary types, you need a TABLES statement in the ABAP program and that supports only flat types, no references.

Therefore, you might think of creating a dictionary structure with all the fields and semantic properties you need, use it as an "interface work area" to the Dynpro and assign the values at PAI to the class attributes.

Horst

Share
10 |10000 characters needed characters left characters exceeded