‎2007 Dec 13 10:32 AM
hi friends,
i am creating a bsp application program. in the main.htm page i am putting a text box material. when i click on ok button on main.htm then i should go to other page where i should display the details of mara table corresponding to that matnr.
pl. guide me how shall i do it?
‎2007 Dec 13 10:51 AM
Hi Samir,
In first bsp page u create an input field and a button and in second page u create a table view for the syntax u can check the bsp tag browser options i.e concept is u need to attach an event to the button such tht when u click it should go to next page for tht syntax we hav onclick tag in bsp tagbrowser chek tht..
if unable to do let me know i will guide u...
Regards,
Sana.
reward if useful....
‎2007 Dec 13 10:56 AM
Hi Samir,
Your page should have layout and Event handlers
Design the layout with the fields
in the event handler there are events
in the event On Initiailization or ON inputprocessing write the select query similar to what we write in routine ABAp and fetch the data into ITAB and that has to be passed to the Layout
see the doc
BSP
To learn how to create Web applications with Business Server Pages, you can work through the simple tutorials that build on each other. You should be able to run through all of the steps described here in your own system.
If you want to develop Web applications with BSPs, your system must meet the following requirements: Prerequisites for Creating Web Applications.
The following tutorials are available:
· First Tutorial: First Steps with Business Server Pages…
· Second tutorial: A Small BSP Application and A Small BSP Application with HTMLB
· Third tutorial: Our First Online Bookshop
· Fourth tutorial: Further Developing the Bookshop
· A small Tutorial is also available for your first steps with the Model View Controller design pattern.
· For a more complex MVC tutorial based on the third tutorial, see: Our Little Online Bookshop Using MVC and HTMLB
When creating BSP applications, note the browser dependencies described in Note 598860.
steps:
1) start the transaction RZ10.
2) now u u have to select Profile name, so select the INSTANCE Profile from the list of options given with the Profile parameter list.U may find multiple instance profile in the list, so select the profile in which ur server name is given.
3) u will also find three options in the same window.
Administrator data, Basic Maintenance, and Extended Maintenance. So select the last one from that.
4) Now click on change button.
5) here u will find parameter icm/host_name_full, so now set it as FQDN.
6) Now copy ur settings with new version number.
7) Activate that version.
😎 And now please restart ur WAS.
So this will set ur FQDN, and also don't forget to login using Admin User.
Now u also check for following service are active in your ICF setting or not,( just start transaction code SICF)
/default_host/sap/bc/bsp/sap
/default_host/sap/bc/bsp/sap/system
/default_host/sap/bc/bsp/sap/public/bc
/def ault_host/sap/public/bc
/default_host/sap/public/bc/ur
/default_host/sap/public/bsp/sap/public
/default_host/sap/public/bsp/sap/public/bc
/defaul t_host/sap/public/bsp/sap/system
/default_host/sap/public/bsp/sap/htmlb
if not then activate all.
check this link
Read this weblog...
/people/brian.mckellar/blog/2003/09/25/bsp-in-depth-fully-qualified-domain-names
http://www.thespot4sap.com/articles/SAP_WAS_Creating_BSP_Apps.asp
it consists of screen shots also
Check it.
http://help.sap.com/saphelp_nw04/helpdata/en/c8/101c3a1cf1c54be10000000a114084/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/e9/bb153aab4a0c0ee10000000a114084/frameset.htm
Kindly reward points if you found the reply helpful.
Cheers,
Chaitanya.
‎2007 Dec 13 11:15 AM
hi,
whatever the code i have written i am writting that. Pl...... go through this and guide me how to display the details of the mara table in the second page corresponding to the input given in the first page...................
main.htm----
>layout
<%@page language="abap"%>
<%@extension name="htmlb" prefix="htmlb"%>
<html>
<head>
<link rel="stylesheet" href="../../sap/zmb51_new/oc_css.css">
<title> MM Report ZMB51 </title>
</head>
<body bgcolor="cyan">
<h3>give the material and clicking on ok to display the zmb51 report</h3>
<form method="post">
<table>
<tr>
<td>Material</td>
<td> <input type="text" name="material" size="10" value=""> </td>
</tr>
</table>
<input type="submit" name="OnInputProcessing(ok)" value="OK"></td>
</form>
</body>
</html>
display.htm(second page)----
>layout
<%@page language="abap"%>
<html>
<head>
<link rel="stylesheet" href="../../sap/styles/oc_css.css">
<title> se38 trans </title>
</head>
<body class="bspBody1">
<table>
<% data wa_tsts2 like line of itab.
Loop at itab into wa_itab. %>
<tr>
<td><%=WA_ITAB-matnr%></td>
<td><%=WA_ITAB-ersda%></td>
</tr>
<% Endloop. %>
</table>
</body>
</html>
display.htm----
>oninitialisation
event handler for data retrieval
select matnr ersda from mara into corresponding fields of table itab
where
matnr = '000000000000001725'.
Loop at itab into wa_itab.
write:/ WA_ITAB-matnr,wa_itab-ersda.
Endloop.
display.htm -
>page attribute
itab TYPE TT_ITAB
material TYPE MARA-MATNR Material Number
wa_itab TYPE T_ITAB
display.htm -
>type definition
TYPES: begin of t_itab,
matnr type mara-matnr,
ersda type mara-ersda,
end of t_itab.
types: tt_itab type standard table of t_itab.
this is my code ... pl guide me