Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

check box for this entire row

Former Member
0 Kudos

HI Gurus,

i am having a screen where i am displaying the vbeln netwr erdat details ,here my requirement is

to have a check box for this entire row,how to create checkbox for this entire row?

we are having checkbox tool in screenpainter if we use that does it applicable for the entire row?

and when i check a any row and click a push button i should display this checked row details in the next screen,how to catch the checked row details?

Regards ,

Vijay.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Any body Plz Respond..

8 REPLIES 8

Former Member
0 Kudos

Hi vijaya,

Whether you are writing those rows or displaying in table control?

If you are writing, Just use 'READ LINE' statement.

If it is a table control, just use 'MODIFY <Internal_table_name>' statement in a module within LOOP...ENDLOOP statement in the PAI of that screen.

Regards,

R.Nagarajan.

Former Member
0 Kudos

Hi Vijaya,

Are you using table control or normal input fields of various rows if you can revert back then someone can help you.

Cheers!!

0 Kudos

I AM USING TABLE CONTROL WIZARD

Regards,

Vijaya

Former Member
0 Kudos

Any body Plz Respond..

0 Kudos

Do one thing , in your internal table take one extra field as char 1 and when when you make the table control for that internal table ...

there is a option of making that field(of char 1) as radio buton or check box ) ..

I hope this will solve your problem

0 Kudos

Hi Vijaya,

I hope your requirement is that you want check box for selecting each row.

In TABLE CONTROL, a column shiuld be dedicated for row selection. Then only the entire row can be selected. This column name should be mentioned in the 'SELECTION FIELD' property of the table control as 'WA_DATA-SEL' where WA_DATA is the workarea and SEL is the field dedicated for row selection.

We can do like this, whenever the checkbox is clicked, the corresponding 'SEL' value must be set,

Here, CHECK BOX is set to indicate the selection for us. The SEL is set to indicate the table control that show this row as selected.

Do as follow;

1. Declare two additional fields of single charater length in your internal table.

2. Assign one of this field in the 'SELECTION FIELD' property of the table control.

3. Make another field as checkbox and assign FUNCTION CODE for this checkbox.

4. In processing of this FUNCTION CODE, just LOOP the internal table with condition WHERE CHK = 'X' and MODIFY SEL as 'X'.


    LOOP AT GT_TC_TSTCT INTO GW_TC_TSTCT.
      IF GW_TC_TSTCT-CHK = 'X' AND
        GW_TC_TSTCT-SEL IS INITIAL.
        GW_TC_TSTCT-SEL = 'X'.
        MODIFY GT_TC_TSTCT FROM GW_TC_TSTCT.
      ELSEIF GW_TC_TSTCT-CHK IS INITIAL AND
        GW_TC_TSTCT-SEL = 'X'.
        GW_TC_TSTCT-SEL = ' '.
        MODIFY GT_TC_TSTCT FROM GW_TC_TSTCT.
      ENDIF.
    ENDLOOP.

Here, the field CHK is the checkbox for our row selection. SEL is the field assigned in 'SELECTION FIELD' of the table control.

Try this.

Regards,

R.Nagarajan.

0 Kudos

Nagaranjan

Thanks for ur Assistance,Actually i have dedicated a field for Row Selection

but when i am specifying that field in table control proprties, it is giving error like "The field 'WA_OUT-SEL' for the selection column does not exist in the table"

but the field SEL is existing the table and it is Active.

Thanks & Regards,

Vijaya

0 Kudos

yes it had taken only with field name.