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

constants in smartform

Former Member
0 Likes
1,625

Hi Gurus,

How do you declare the following constants in the smartform.

chara TYPE c VALUE 'A',

charb TYPE c VALUE 'B',

charc TYPE c VALUE 'C',

chard TYPE c VALUE 'D',

i tried declaring like this

b type charb.

But it says charb does not exist.

Thanks in Advance,

Regards

Rakesh.

Hi Gurus,

How do you declare the following constants in the smartform.

chara TYPE c VALUE 'A',

charb TYPE c VALUE 'B',

charc TYPE c VALUE 'C',

chard TYPE c VALUE 'D',

i tried declaring like this

b type charb.

But it says charb does not exist.

Thanks in Advance,

Regards

Rakesh.

6 REPLIES 6
Read only

Former Member
0 Likes
981

Hi

Data : chara TYPE c VALUE 'A',

charb TYPE c VALUE 'B',

charc TYPE c VALUE 'C',

chard TYPE c VALUE 'D',

Read only

Former Member
0 Likes
981

Hi,

Do the following changes.

chara TYPE char1 VALUE 'A',

charb TYPE char1 VALUE 'B',

charc TYPE char1 VALUE 'C',

chard TYPE char1 VALUE 'D',.

Regards,

Morris Bond.

Reward Points if Helpful.

Read only

0 Likes
981

sorry i think i was not clear. Actually i have alternative loop where the comparison value is b and other constants like it.

So, i need to declare the constants,owise i get an error message saying,it is neither specified in data statement.

So,in this case how should i declare it.

Thanks in Advance,

Regards,

Rakesh.

Read only

Former Member
0 Likes
981

u can use for chararcters like

char1,char2 etc....

for numeric

numc1,numc2....etc

Reward if usefull

Read only

Former Member
0 Likes
981

Hi,

in global definitions of the smartform just declare as like follows.

variable name Type assignment Associated Type

var1 type c

var2 type c

Regards,

Sanki.

Read only

Former Member
0 Likes
981

goto global definitions

var1 type c value '10'

var2 type c value '20'.

and check the constant check box to the right of that variables.

reward if useful.