The L-Shape API (LSAPI) enables you to customize navigation in Ajax Framework Page (AFP). The LSAPI is comprised of the following client-side APIs:
Controlling navigation in the portal
Creating custom menus or links displayed in the navigation iViews of the portal
Accessing and manipulating the navigation history
Retrieving the current user data on the client side
Accessing the user session
Managing the portal favorites
Accessing search functionality in the portal
Controlling suggestions displayed for a search term
Controlling tabsets in the navigation panel
You can use the LSAPI in JavaScript files, which are included in the portal applications that you develop in SAP NetWeaver Developer Studio. The workflow is the same as the one used for regular portal applications.
For more information, see Developing Portal Applications .
The LSAPI only becomes available after the AFP client-side scripts have been loaded. As of SAP NetWeaver 7.3 SP03, the client-side AFPisLoaded event is raised once the scripts are loaded. Your code should listen for this event and invoke the LSAPI functions only after it occurs.