I am using integrated ITS i have developed a simple module pool and an internet service for the transaction . I have modified the standard HTML tempate generated by system and inlcuded my code. The program contains only one screen where i input two data and click on "FIND" button. in the same screen results will be displayes. I will enter the year and category fields in the screen. the result will be the winner and nominees for the category.
the HTML code for the screen is as below.
<form action=”`wgateUrl()`” method = "POST">
year : <input type = "text" name = "YMOVIE-YYEAR" value= "`YMOVIE-YYEAR`" size = "`YMOVIE-YYEAR.maxsize`"/>
category : <input type = "text" name = "YMOVIE-CATEGORY" value = "`YMOVIE-CATEGORY`"/>
<INPUT TYPE="submit" name="~OkCode(FIND)" value = "FIND">
<input type = "text" name = "YMOVIE-WINNER" value= "`YMOVIE-WINNER`" size = "`YMOVIE-WINNER.maxsize`"/>
<input type = "text" name = "YMOVIE-NOMINEE1" value= "`YMOVIE-NOMINEE1`" size = "`YMOVIE-NOMINEE1.maxsize`"/>
<input type = "text" name = "YMOVIE-NOMINEE2" value= "`YMOVIE-NOMINEE2`" size = "`YMOVIE-NOMINEE2.maxsize`"/>
<input type = "text" name = "YMOVIE-NOMINEE3" value= "`YMOVIE-NOMINEE3`" size = "`YMOVIE-NOMINEE3.maxsize`"/>
The code in the PAI of the screen is as follows:
if sy-ucomm = 'FIND'.
SELECT SINGLE * FROM YMOVIE
WHERE YYEAR = YMOVIE-YYEAR
AND CATEGORY = YMOVIE-CATEGORY.
when I clcick on FIND button from the web the system is giving an error saying that the template not found. But I have created the template and inlcuded the service in SICF. I think the problem lies in how i am trigerring the fcode FIND from the web.