cancel
Showing results for 
Search instead for 
Did you mean: 

How to display table data without using ALV and table element.

Former Member
0 Kudos

Hi,

Its possible to display table data without using ALV and table element.

Every time i am fetching data based on (customer,status) fields and displaying these data in my output using alv

(every time i am fetching single row data ),

But problem is alv occupying more space in the output , i want to display data part only i dont want field names,

settings and header data etc..things.

Give solution to display data part..

Regards,

Rakhi.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

After getting the reference variable of get_model method,

Set the importing parameters as abap_false for the following methods,

lo_model->IF_SALV_WD_TABLE_SETTINGS~SET_FOOTER_VISIBLE( abap_false ).

lo_model->IF_SALV_WD_TABLE_SETTINGS~SET_SELECTION_MODE( CL_WD_TABLE=>E_SELECTION_MODE-NONE ).

lo_model->IF_SALV_WD_FUNCTION_SETTINGS~SET_VISIBLE( abap_false ).

lo_model->IF_SALV_WD_STD_FUNCTIONS~SET_FILTER_FILTERLINE_ALLOWED( abap_false ).

This will hide the functionalites of ALV such as filter button,header,footer,selection mode and displays the data record only.

Hope it helps!!!

Thanks and Regards,

Divya S

Former Member
0 Kudos

Try Using Row Repeater UI element..

Regards

Manas Dua

former_member186491
Contributor
0 Kudos

Hi,

Does you mean that you need ALV without default Function Toolbar...? If this is the case, the easy solution would have been to use Table Element rather. But, if you need to use ALV only without Function Toolbar, you can do away with that as well.

In that case, after calling GET_MODEL, you need to add few more lines of codes to achieve your goal. Those lines are --


  DATA LV_VALUE TYPE REF TO CL_SALV_WD_CONFIG_TABLE.
    LV_VALUE = LO_INTERFACECONTROLLER->GET_MODEL(
    ).

* Standard Filter Function setting to FALSE

    LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_SORT_COMPLEX_ALLOWED( ABAP_FALSE ).
    LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_FILTER_COMPLEX_ALLOWED( ABAP_FALSE ).
    LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_FILTER_FILTERLINE_ALLOWED( ABAP_FALSE ).
    LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_DISPLAY_SETTINGS_ALLOWED( ABAP_FALSE ).
    LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_VIEW_LIST_ALLOWED( ABAP_FALSE ).
    LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_SORT_HEADERCLICK_ALLOWED( ABAP_FALSE ).
    LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_HIERARCHY_ALLOWED( ABAP_FALSE ).


* Standard Filter Function setting to FALSE Ends

Here as you can easily notice that LV_VALUE is instantiated on CL_SALV_WD_CONFIG_TABLE. Now, using this LV_VALUE, you set standard functions as False to dis-allow their display.

Hope this answers your query.

Thanks.

Kumar Saurav.