‎2007 Jun 04 9:55 AM
I have a report that is new to me. Report shows output using smart form. I need to change the output of total that showa like 5000. i ned to show it with decimals ( 5000.00 ) How do I find the field that show this output and how can I change it.
thanks.
khan.
‎2007 Jun 04 10:19 AM
HI Khan,
first you have to identify the variable in theprogram which is giving 5000.
let us take p_integer is the variable which is giving 5000.
declare a temparary variable p_packed as
data: p_packed type p decimals 2.
assign p_integer to p_packed
p_packed = p_integer.
I think this will work.
regards,
jeevi.
‎2007 Jun 04 10:04 AM
You need to change the particular smartform, get the smartfrom name and find out the particular feild by searching.
‎2007 Jun 04 10:04 AM
Hi,
Change the declaration of the field to
Data : p_field type p decimals 2.
in which the 5000 is stored.,
Reward points if it is helpful.
Regards,
Sangeetha.a
‎2007 Jun 04 11:36 AM
Hi,
Do the concatenation,
data : lv_variable(15) type c.
concatenation p_field '.00' to lv_variable.
pass the lv_variable.
‎2007 Jun 04 10:11 AM
Hi
If the oupput is printed in ALV and passed to Smartform you can easily find this from the Grid Display. Otherwise Start Debugging and check for all the total fields that is going to smartform.That you can find from the area of call function. Identify this variable and change the declaration from integer to
Data: dec type p decimals 2.
You can get your desired output...
Hope this will helps you........
‎2007 Jun 04 10:19 AM
HI Khan,
first you have to identify the variable in theprogram which is giving 5000.
let us take p_integer is the variable which is giving 5000.
declare a temparary variable p_packed as
data: p_packed type p decimals 2.
assign p_integer to p_packed
p_packed = p_integer.
I think this will work.
regards,
jeevi.
‎2007 Jun 04 11:18 AM
i appritiate ur reply.
But i think i am unable to find the variable. is there any possiblity that the variable declared somewhere else in smart form or function module.
plz revert bck soon. Thanks