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

Problems in smartforms

Former Member
0 Likes
321

Hi Experts,

In my smartforms, I want to print 3 decimal places instead of 2 decimal places for the values being printed. At occurrence of every new bank key in my internal table, I want to print on a new page. Please do help me. Points will be rewarded to helpful answers

Regards,

Abdullah

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
282

Hi,

To answer your first question of printing three decimal places in smartforms, you can add a new column to ur internal table which is type c. write the currency (amount) field with respect to the currency unit field into this new field.

use statement : write itab-amount into itab-newfield crency itab-curr_unit.

this will write the amount into the new field with three decimals if the currency is configured to have three decimal spaces.

The answer to the second question:

Probably the easiest way to do this is to loop at the internal table into another internal table of the same structure in the program and use the 'at new banks' statement. Make sure you sort the itab first using field banks. Call the smartform (using the function) within the at..endat statements. single form will be printed everytime the bank code is changed.

Hope this will prove to be helpful..

Regards

Ajith Sivadasan

1 REPLY 1
Read only

Former Member
0 Likes
283

Hi,

To answer your first question of printing three decimal places in smartforms, you can add a new column to ur internal table which is type c. write the currency (amount) field with respect to the currency unit field into this new field.

use statement : write itab-amount into itab-newfield crency itab-curr_unit.

this will write the amount into the new field with three decimals if the currency is configured to have three decimal spaces.

The answer to the second question:

Probably the easiest way to do this is to loop at the internal table into another internal table of the same structure in the program and use the 'at new banks' statement. Make sure you sort the itab first using field banks. Call the smartform (using the function) within the at..endat statements. single form will be printed everytime the bank code is changed.

Hope this will prove to be helpful..

Regards

Ajith Sivadasan