cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform: Calculations on specific wagetypes

Former Member
0 Kudos

Hey Experts,

I have some issues filtering some data out of a loop. I'm creating a payslip for a Dutch company.

Now i want, in the employee data section, his basic wage. This is the sum of 2 specific wagetypes 1000 and 1020.

Now i tryed to filter them out using conditions on the loop, programming rules etc, keep getting value 0.00.

I use this portion of code to filter the correct values out of it.

IF wa_net-wagetype_key-wagetype EQ '1000'

OR wa_net-wagetype_key-wagetype EQ '1020'.

basicpay = basicpay + wa_net-pay_amount.

ENDIF.

Importing parameters are the workarea with the data wa_net and the global variable i defined to put the solution in.

In the textfield below i put &basicpay& (i used &basic(C)& also ) and it keeps giving me blanks.

If anyone has a good solution on how to add multiple specific values from a loop into a custom variable, it would help alot.

Greetz,

MIke

Edited by: Grinnam on Oct 11, 2010 11:05 AM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

WHere u r calculting this value ...

If it is with in the loop statement (TABLE OR loop)it will calculate, if it is other than the looping read the internal table with the wagetype and calculate it..

Let me know if u have any concerns...

Regards,

Lokesh