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

How can we declare variable in program from domain

manoj_goyal2
Participant
0 Likes
1,593

Hi Guys,

Can somebody tell me how to declare a variable in a program from a domain (dec5_3) .

Thanks,

mini

4 REPLIES 4
Read only

naimesh_patel
Active Contributor
0 Likes
925

Find out a dataelement by using the "Where used list" on the domain. And then declare the variable with the type of the data element.

Like DEC5_3 is used in the data element VVBASIS.

You can declare the variable like this:

DATA: L_INDEX TYPE VVBASIS.

Regards,

Naimesh Patel

Read only

Former Member
0 Likes
925
data: lv type VVBALT.

As domain DEC5_3 is used in dataelement <b>VVBALT</b>.

Amandeep

Read only

Former Member
0 Likes
925

Hi mini,

Try this.

DATA: W_VAR TYPE dec5_3.

Even by using data element also we cal declare like this.

Please Reward Your Reward Points will help's me a lot,

Mahi.

Read only

former_member191735
Active Contributor
0 Likes
925

data: t_text type p length 5 decimals 3.