on 05-22-2009 6:07 AM
Dear All,
I am new to BSP need your feedback for below requirments.
(1). I need to create a BSP page with input button to fill employee number - already done.
(2). Employee input button needs a F4 help that will pop-up new page to search employee ?.
(3). The pop-up page should be able to search using "search criteria for employee" ex: lastname, firstname, username. The result list that is shown, when double clicked should select the employee name into the input field in (1) ?.
Could you please give steps,samples for 2 and 3 ?.
Regards,
Neeth
HI,
I implemented this same same code,but in popup i am displaying the data in table view.Everythign is working fine,but in table view I made VISIBLE ROWCOUNT = 25, When I click on next page I am not able to see the next rows.
Is there anything i need to implement.I am using the tabel view for first time.
thank you
ven
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anubhav,
Thanks!.
The requirements is to (1)create a link in WebClient menu area, and when user click on the hyperlink it should (2)popup the WebClient Search Help (for Employee). Once the employee is selected it should (3)output a smartform print-out.
Any inputs ??
Regards,
Neeth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nameeth,
The below code will give you a basic idea on F4 help in BSP...
Create a bsp application and create two pages, say main.htm and pop.htm.
in main.htm layout enter the following code.
<%@page language="abap"%>
<%@extension name="htmlb" prefix="htmlb"%>
<htmlb:content design="design2003">
<sc ript>
function vhelp()
{
var myur = 'pop.htm?carrid=' + docum ent.getEle mentById('I1').value;
window.open (myur, '_blank', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=500,height=550,left = 362,top = 234')
}
< /sc ript>
<htmlb:page title = " ">
<htmlb:form>
<htmlb:inputField id="I1"
value="AA"/>
<htmlb:inputField id="I2"
showHelp = "true"
onValu eHelp="vhelp();"/>
</htmlb:form>
</htmlb:page>
</htmlb:content>
and in the pop.htm create a page attribute called "carrid" type string with "auto" check box checked.
and enter the following code in the pop.htm layout
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" >
<sc ript>
function proce sssel(val)
{
wind ow.ope ner.docu ment.getEle mentById('I2').value = val ;
sel f.clo se();
}
< /sc ript>
<htmlb:page title=" " >
<htmlb:form>
<%
data: contab type standard table of string ,
wa type string .
data: car type S_CARR_ID .
car = carrid .
select connid from SPFLI into table contab where carrid = car .
if not contab[] is initial .
loop at contab into wa.
%>
<a href="#" ick="processsel('<%=wa%>')"><%=wa%></a> <br>
<%
endloop .
endif .
%>
</htmlb:form>
</htmlb:page>
</htmlb:content>
There are many threads on F4 help...I pickec this code from [this thread|; by DuraiRaj.
Also go through the blogs:
[BSP Value Help Input Field and Select-Options Ranges|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3533] [original link is broken];
[Capturing F4 keypressed event in HTML and HTMLB input fields using Javascript validations|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/4153] [original link is broken];
[BSP u2013 a Developeru2019s Journal: Part XII u2013 Value Input Help Popups|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/837] [original link is broken];
Search and you can find more information on F4 help.
Regards,
Anubhav.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.