Providing list box in a BSP application

By B.Kalyan

Go to Transaction SE80-> 

Select BSP Application & Enter a Name to create a new BSP Application (Eg:yhbsplistbox): 

 

Press ENTER to create a new Object & Click on Yes:

 

Enter the Short Description and Press Enter:

 

Once the Object is created, Right Click on the Name and create a Page:-

 

Enter the Page Name and the Description and select page with Flow Logic Option

 

 

Now Page is created. Enter the Below Code. 

In Layout Code:-

<%@page language="abap"%>
<%@extension name="htmlb" prefix="htmlb"%>
<htmlb:content design="classic+design2002+design2003">
  <htmlb:page title = "First Page ">
    <htmlb:form>
<htmlb:dropdownListBox id = "myDropdownListDay"
                  tooltip  = "Quick info for myDropdownListBox">
                 <%
LOOP AT t_mod INTO fs_mod.
                 %>
                  <htmlb:listBoxItem   key = "<%=fs_mod%>"
                                       value = "<%=fs_mod%>"/>
                  <%
                  %>
<%ENDLOOP.%>
     </htmlb:dropdownListBox>
    </htmlb:form>
  </htmlb:page>
</htmlb:content> 

In Event-handler – on Initilalization. 

SELECT modul FROM zemployee INTO TABLE t_mod.
sort t_mod.
delete adjacent duplicates from t_mod comparing modul.

Page Attributes:- 

Fs_mod type types_mod

t_mod type fs_module. 

In Type Definition:

TYPES:
  BEGIN OF types_mod,
    modul TYPE zemployee-modul,
  END OF types_mod,
  fs_module type 
  standard table 
            of TYPES_MOD. 

OUTPUT:

 

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image