Skip to Content
author's profile photo Former Member
Former Member

[ALV] Disable Check box for some rows / Group field sudnt be repeated

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2006 at 10:27 AM

    Hi Anurag,

    1.

    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>

    For all the lines in your internal table that you want to disable, just fill field FLAG = '1' (if you want it marked and disabled) or FLAG = '2' (if you dont want it marked and just want it disabled).</b>

    I will get back to you on <b>2.</b> in the same post shortly.

    Hope this helps..

    Sri

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.