SALV OM Undocumented Limitations – Separator in the Toolbar

By | December 29, 2009 | SALV Limitation | 4,365 | 0

SALV Limitations: Separator in Toolbar

In this new series on SALV Object Model (SALV OM), I will document some of the Limitations which are not documented in standard SAP documentation.

In the ALV GRID (created using container) type of SALV, we can’t have a Separator in the Toolbar. To add the separator in the Toolbar, button type (BUTN_TYPE) field of toolbar must be set to “3”. SALV OM doesn’t allow to specify this button type. It assumes that there would be only normal buttons (BUTN_TYPE = ‘0’). Method IF_SALV_TOOLBAR_ADAPTER~BUILD_UIFUNCTION in class CL_SALV_GRID_ADAPTER, creates the toolbar functions.

Code Lines which impose this restriction in SALV OM

To overcome this limitation, SAP could enhance SALV OM to provide us the method to set the button type in the CL_SALV_FUNCTION and use that button type here in the code instead of assuming that button as the normal button.

Like It? Share!!

Don't miss an Update

Get notified of the new post, right into your inbox

Naimesh Patel{274 articles}

I'm SAP ABAP Consultant for more than a decade. I like to experiment with ABAP especially OO. I have been SDN Top Contributor.
Follow :

Explore all of his 274 articles.

Load comments

Comments on this Post are now closed. If you have something important to share, you can always contact me.

You seem to be new here. Subscribe to stay connected.