Thursday, February 3, 2011

Providing list box in the BSP Application

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"%>


                 tooltip  = "Quick info for myDropdownListBox">
                 <%
LOOP AT t_mod INTO fs_mod.
                 %>
"
value = "<%=fs_mod%>"/>
<%
                  %>
<%ENDLOOP.%>
     
    



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:




No comments:

Tutorials on SAP-ABAP

Adobe Interactive Forms Tutorials

Business Server Pages (BSP)

Userexits/BADIs

Web Dynpro for ABAP (Step by step procedure for web dynpro,Tutorials on Web Dynpro,)

ALV Tutorials

Blog Archive

goodsites