Application Development and Automation 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: 
Read only

Table Control

Former Member
0 Likes
447

Hi all,

i am using a table control in my custom infotype screen. the table control contains a checkbox with some fields.

when i check the check box and drag the table control the check box auto matically cleares why it is happening,,,,

How to restrict that.

Please provide a solution for this.....

Thanks in advance,

Yogesh.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
411

Hi narayan,

The TCON1 is that the standard table. what is that TCON! contains i am not able to find any structure like that....

Please explain me!!!

Thanks,

Yogesh

4 REPLIES 4
Read only

Former Member
0 Likes
411

Hi,

I think you are not saving the modifications made.

Like when you check a box, you have to store the changes in, (say) an internal table ,

you can use the internal table that ur using to loop through the table control...

I hope this answers your question.

Regards,

SJ

Read only

varma_narayana
Active Contributor
0 Likes
411

Hi...

When u Scroll verticall in TABLE control it will trigger the PAI.

We have to Save all changes to the ITAB in this event including the Checkbox selection. So that in the next PBO these changes are reflected.

This is the code Sample for that.

Here i am taking the MARK as the Checkbox field.

<b>Flow logic:</b>

PAI.

LOOP AT ITAB.

Module SAVE_CHANGES.

ENDLOOP.

<b>Module pool:</b>

Module SAVE_CHANGES INPUT.

Move-corresponding Wa to ITAB.

Modify itab index TCON1-CURRENT_LINE.

Endmodule.

Read only

Former Member
0 Likes
412

Hi narayan,

The TCON1 is that the standard table. what is that TCON! contains i am not able to find any structure like that....

Please explain me!!!

Thanks,

Yogesh

Read only

0 Likes
411

Hi Yogesh,

The flow is like this. when ever you press page up or page down it will trigger PAI event. hence you have to capture the selected fields and store is in an internal table.

for example if your Table control internal table is Gt_output. The structure of the IT is like this

Types: begin of ty_output,

sel type c,

vbeln type vbeln,

matnr type matnr,

end of ty_output.

data: gt_output type standard table of ty_output,

gs_output type ty_output.

lets hope this internal table is populated with say 25 records.

In the table control, you have to define the selection of col.name as gs_output-sel.

in the PBO write this code,

loop at gt_output into gs_output with control tabcntrl.

endloop.

Now in PAI, you have to write the following code,

Loop.

<b>modify gt_output from gs_output.</b>

endloop.

The above will save the items which you have checked.

hence when u the conrol goes to PBO, the saved items wil be displayed

Pls give points if helpfull...

Regards,

Niyaz