09-08-2008 11:38 AM
i have an assignment like this,i need to develop an smartforms in which
employees details will come page wise means for first employee the details will come
in the first page for second employee the details will come in the second page
like this i need the outptut ,here i need to use templates plz let me know how will
i proceed in smartforms as well as in the driver programs....
if possible plz send ur codes as i m new to smartforms.
FOR THIS i already post the maater and got this answer,
write the driver program in se38 ......with taking an internal table with the details of all
employees for your selection.......
in the driver program itself call ssf_function_module ........and pass the internl atable to
this FM .......sort the table by employee number
now create a smartform ......with one page...desgin the page as per your requirement.....
in the mail window create a loop (assgin the tAable ....to it which has been passed from driver program....)
inside the loop create at new (down you will see ) and put the employee number field.....
next inside the loop create a command ...and put a new page(call) ...
new page will trigger automatically for each employeee.
and i did as per the answer but i m not getting here in my smartforms i m using
table under this i have sorted pernr in the data tab and under this event i m
putting command in this command i m using go to new page,as per this scenario
i m getting my output but one blank page is also coming in the output ,
how to remove this page plz help me i also tried in the condition not on first page but it is not coming.
plz help me
09-08-2008 11:42 AM
Hi,
Where exactly did you put the command node under the loop node... is it first or after the display of the record.
check this...
loop node
command node -- condition not on first page
text node
regards
padma
09-08-2008 11:42 AM
Hi,
Where exactly did you put the command node under the loop node... is it first or after the display of the record.
check this...
loop node
command node -- condition not on first page
text node
regards
padma
09-08-2008 12:12 PM
09-08-2008 12:57 PM
Hi,
Uncheck the goto new page command and put the condition pernr not equal to prevevious pernr in the conditions tab of the new command.
This can be done as follows.
with in loop and endloop at the end of the loop create text node(cretae a var called W_prev_pernr and then w_prev_pernr = itab-pernr.) which stores the current pernr.at in the conditions tab of the new command(Create>Flow Logic>Command) put the condition like : pernr NE w_prev_pernr.
Hope this helps you.
Regards,
Rama.P.
09-08-2008 1:21 PM
Hi Rajat,
In driver program declare the structure refering to the employee details.
ex:fs_emp type z_emp
In smartform>form interface>Include fs_emp ,
mainwindow--->create the text node and drap & drop the fields as per your requirement.
In driver program use loop at t_emp into fs_emp.
Regards,
Sravanthi