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

Significance of Prameter ID in data element level

jaya27
Explorer
0 Kudos
1,392

I have created a custom parameter in TPARA. I have assigned it a value in User Profile settings so that fields referring get that default value. Also I have created a custom data element and specified this parameter ID in data element level. I have a dialog program, having a parameter to be entered by the user and this field is of type of the newly created data element.

PARAMETER CHECKPA TYPE ZMAIL1

ZMAIL1 is the data element with custom parameter assigned.

But when I run this, it is not defaulting the value set in user parameters. When I specify it as

PARAMETER CHECKPA TYPE ZMAIL1 MEMORY ID 'ZAB', it works. Then what is the significance of specifying parameter ID in Data element level.

3 REPLIES 3
Read only

Domi
Active Contributor
760

The parameter id of the data element is only used if the structure/table field with this data element is directly assigned to the dynpro.

If you use the element to declare a field/parameter you need to explicite define the SET/GET parameter for the field - either with MEMORY ID at selection screens or at the element list->special attributes tab for "real" dynpro.

Read only

jaya27
Explorer
0 Kudos
760

Thanks for the info Dominik..

So when we declare a field of a particular type in dictionary, only data type and length will be inherited, isn't it?