‎2008 Mar 13 10:48 AM
Hi experts,
kindly help me in sorted this..
in my coding:
ztest is a structure.
I want to ask u that what datatype shud i give to my field so that it can gv me acorrect value after appending.
also i have to sort my data and decimal shud b 2 place only.
kinldy response
data: itab like ztest occurs 10 with header line.
move '0.23566' to itab-value.
append itab.
move '1.98323' to itab-value.
append itab.
move 900 to itab-value.
append itab.
move '100' to itab-value.
append itab.
sort itab by value descending.
loop at itab.
write: / itab-value.
endloop.
thanks n regards
puneet
‎2008 Mar 13 10:50 AM
‎2008 Mar 13 10:50 AM
‎2008 Mar 13 11:01 AM
thanks all of u to reply
but i have to declare this field in my structure.
kindly tell me a datatype for structure field.
thanks and regards
puneet
‎2008 Mar 13 11:05 AM
USe type DEC with length 13 and 2 decimals
OR
You can use BAMNG data elemnt
(Use reference table EBAN ref. field MEINS)
‎2008 Mar 13 11:07 AM
hi,
create a data element with 2 demial places and assingn that data element to ur fields(ie value) in ur z structure (ie.ztest) ur problem will be solved
‎2008 Mar 13 10:50 AM
Hi,
Try declaring it as type p decimals 2.
Reward if helpful.
regards,
ramya
‎2008 Mar 13 10:50 AM
‎2008 Mar 13 10:56 AM
Hi,
you can declare the value in the following way.
DATA : value type p decimals 2.
Reward points if useful.
Regards
rose