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: 

Incorporating a checkbox field in an internal table.

Former Member
0 Kudos

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?

1 ACCEPTED SOLUTION

former_member386202
Active Contributor
0 Kudos

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

4 REPLIES 4

former_member195698
Active Contributor
0 Kudos

Make the first field of the Internal table as 1 character field.

Populate the Field with 'X' is the checkbox is filled.

Regards,

abhishek

former_member386202
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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?