09-27-2008 2:01 PM
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.
09-27-2008 6:45 PM
09-27-2008 2:07 PM
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.
09-27-2008 2:07 PM
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!!
09-27-2008 6:22 PM
09-27-2008 6:45 PM
09-28-2008 1:41 PM
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
09-28-2008 3:01 PM
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.
09-29-2008 11:53 AM
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
09-29-2008 12:05 PM