Application Development 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: 

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

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

horst_keller
Product and Topic Expert
Product and Topic Expert

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

1 REPLY 1

horst_keller
Product and Topic Expert
Product and Topic Expert

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