‎2009 May 14 7:15 AM
Hi,
I am doing my first HR Forms so am very new to this.
I have created by HR form in transaction HRFORMS and added the info stars. I have also created the smartform and it is printing correctly with the data.
But i need to add few checks, one being - if there is an IT0655 record for each employee selected and if this Infotype exists, test if field P0655-ESSONLY is checked and if so, the payslip form will not produce a payslip for that individual and continue onto the next employee. Please can you advice where can i write this check so that it doesnot produce the payslip when the check is satisfied?
Thanks & Regards,
Naba
Edited by: Naba Kumar Saha on May 14, 2009 8:21 AM
Edited by: Naba Kumar Saha on May 14, 2009 8:31 AM
Edited by: Naba Kumar Saha on May 14, 2009 8:48 AM
Edited by: Naba Kumar Saha on May 14, 2009 8:56 AM
‎2009 May 14 7:58 AM
Hi,
when u are passing the data to the smartforms than check the value of ESS in table PA0655
ie.
select <fields> from PA0655 into table <internal_table>
where ESSONLY eq 'X'.
CALL FUNCTION <Function_name>
" Pass the internal table to the smartform
tables
table = <internal_table>.
This will produce only payslip for the person whose ESSONLY is checked.
hope this helps!!
thanks
ravi
‎2009 May 14 8:05 AM
I am sorry Ravi this is not ABAP where we can write the code. its HR ABAP where the print program is generated automatically based on your HRFORM so we cannot write the code as the generated print program is a standard one..
Naba
Edited by: Naba Kumar Saha on May 14, 2009 9:14 AM
Edited by: Naba Kumar Saha on May 14, 2009 9:54 AM