10-31-2007 5:03 AM
Hi all,
I have an internal table itab which has the following fields:
WRITE:/p_box AS CHECKBOX,
itab-vbeln,
itab-traid,
itab-lifnr,
itab-lfdat,
itab-printed.
But I want that checkbox to be a part of this internal table and not in the way I have written. How can I do that?
10-31-2007 5:13 AM
Hi,
Define one field in internal table as character type and length 1.
Ex.
Data : begin of itab occurs 10,
flag(1) type c,
end of itab.
flag = 'X'.
loop at itab.
write 😕 flag as checkbox input off.
endloop.
Regards,
Prashant
10-31-2007 5:09 AM
Make the first field of the Internal table as 1 character field.
Populate the Field with 'X' is the checkbox is filled.
Regards,
abhishek
10-31-2007 5:13 AM
Hi,
Define one field in internal table as character type and length 1.
Ex.
Data : begin of itab occurs 10,
flag(1) type c,
end of itab.
flag = 'X'.
loop at itab.
write 😕 flag as checkbox input off.
endloop.
Regards,
Prashant
10-31-2007 5:14 AM
Hi Mohanty,
You can just define a variable of type c in the internal table,
fill the variable with 'X' if the checkbox is checked.
regards,
sheron
10-31-2007 6:48 AM
Hi,
My earlier doubt got solved. Thanks..
I got the checkbox as a part of the output list.
Now if I check or uncheck the checkbox on the list after getting the output and use this internal table further in the program then will the values in th checkbox get updated?
If so,how?