Hi,
ALV List created through :
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
My Code for layout:
FORM form_build_layout_1301 CHANGING value(gs_layout_1301) TYPE slis_layout_alv. gs_layout_1301-colwidth_optimize = 'X'. gs_layout_1301-totals_only = 'X'. gs_layout_1301-totals_text = 'Total'. gs_layout_1301-totals_before_items = 'X'. gs_layout_1301-zebra = 'X'. gs_layout_1301-box_fieldname = 'FLAG'. gs_layout_1301-detail_popup = 'X'. SKIP. ENDFORM.
<b>1.</b>
As you can see the itab-Flag (type char length 1) field is being used to show a check box infront of each rows.
these check boz will be selelected and a button will be pressed to create a PO order. Some rows shown here should have these check box disable. I know how to disable all the check box for entire ALV rows. but that is not what we want here.
<b>2.</b>
My ALV records are grouped on the basis of plant and sold-to party. code :
FORM form_build_sortcat_1301 CHANGING value(it_sort) TYPE slis_t_sortinfo_alv. DATA ls_sort LIKE LINE OF it_sort . CLEAR ls_sort. ls_sort-spos = '1' . ls_sort-fieldname = 'KUNNR'. ls_sort-up = 'X' . "A to Z * Uncomment it, if you want to hav sum on the basis of subordernumber * ls_sort-subtot = 'X'. * ls_sort-expa = 'X'. ls_sort-down = space . APPEND ls_sort TO it_sort . CLEAR ls_sort. ls_sort-spos = '1' . ls_sort-fieldname = 'WERKS' . ls_sort-up = 'X' . "A to Z * Uncomment it, if you want to hav sum on the basis of subordernumber * ls_sort-subtot = 'X'. * ls_sort-expa = 'X'. ls_sort-down = space . APPEND ls_sort TO it_sort . ENDFORM.
Whant we have is plant, sold-to in an orange stripe and then related record with check box in normal rows. but these rows are showing plant, sold-to (repeate) in front of each rows.
V want to see plant and sold-to in the sub-total line only and not repeatedly. i have tried
gs_layout_1301-row = 1
but it is not giving me required GUI