cancel
Showing results for 
Search instead for 
Did you mean: 

Need help in coding variable components

Former Member
0 Kudos
51

Hello Experts,

I have a query_variable defined in my function module with the following values:

vnam as ZDELNUM

sign as I

opt as EQ

low as 0080000000.

How to write the code in Java, i.e. how does Jave handle ?

Thanks,

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi.

you have to check out the data types in java. here's a site: http://java.sun.com/docs/books/tutorial/java/nutsandbolts/datatypes.html

Former Member
0 Kudos

Hello ZL,

This is not about datatypes but about the variable components. How to write the code when I wanted to get 3 or 4 characteristics of one single variable. As explained before for the variable ZDELNUM the components to be included are sign as I, option as EQ, low as 00800000 etc.

Please share your thoughts on this.

Nikki

Answers (1)

Answers (1)

guru_subramanianb
Active Contributor
0 Kudos

Hi Nikki,

I don't thing this kind of declaration is possible in Java directly,coz primitive types is java is well defined.

Say for ex:-

int i=10; means it is of type integer and it has a range pre defined in the JSDK.

Your requirement has lot of attribute fr the single variable as sign,opt,low etc which I doubt it is possibel at all.

Regards,

Guru

Former Member
0 Kudos

hi Nikki,

in java, you can have like this:

Car that has attributes like model, year, color etc.

Car myCar = new Car();

myCar.getModel() to get the model.

hope this helps.