cancel
Showing results for 
Search instead for 
Did you mean: 

smart forms currency and totalling

Former Member
0 Kudos

Hi all,

pls tell me the following questions

1. how can we handle currency,quantity in smart forms and scripts pls send the code as example.

2. how can we do sub totals and grand totals in smart forms and scripts pls send the code as example.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi nagendra,

try this,

in loop at the calculation tab define like this

Operation Field Name Target Field Name Time

Total L_WA_ITAB-FKIMG L_WA_TOT After Loop

this l_wa_tot u can define in global definations like this at the global data tab for the target field name,

Variable Name Type assignment Associated Type

L_WA_TOT TYPE FKIMG

and at the currency/quntity tab you should define like this for the itab filed,

Field Name Reference Field Data Type

L_WA_ITAB-FKIMG VRKME QUAN

just do this carefuly then your problem get solved,

reward points if helpful.

regards,

seshu.

Answers (4)

Answers (4)

former_member196280
Active Contributor
0 Kudos

In smart forms if we want to display quantity and currency fields. We can't directly display currency field and quantity fields

GLOBAL Definitions

WA_NETPR LIKE EKPO-NETPR

For that we have to create an extra variable in global definitions

Ex: netpr FIELD of EKPO

CREATE program lines and specify WA_NETWR = itab-netpr.

Reward points if useful.

Regards,

SaiRam

Former Member
0 Kudos

Hi,

For cureency calculation you can use <b>Charcter field.</b>

<b>Reward points</b>

Regards

Former Member
0 Kudos

Hi,

For currency and quantity fields..Move them to a character data type field and use the character field to display variable..

Thanks

Naren

Former Member
0 Kudos

Hi,

If you are using smartforms, then there is a option to do summation for the fiedls you want inside the table

else

you can declare a variable and add the value to it

regards

Shiva