cancel
Showing results for 
Search instead for 
Did you mean: 

Types in Web Dynpro

Former Member
0 Kudos

Can I define a type within my Web Dynpro application that can be referred to by a view's attribute?

TYPES: BEGIN OF data_record,

cost_element TYPE nLENGTH 10,

END OF data_record.

I understand that I might not be able to, given the following SAP reference I found when declaring the

attributes of my views.

The associated type must be a global Dictionary type or exist in a type pool. In the latter case, the type pool must be declared in the function group.

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Just declare the type in the Data Dictionary or a public type of a class (perhaps your assistance class).

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

For making a type global go to transaction SE11 and make type there.

Now u can create ur attributes with this type. If want to use the same attribute in all the views then declare the attribute in component controller and access it.

Thanks

Pankaj