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
433

Hi,

In PBO module,

Loop at Itab with control table_control_name.

....

endloop.

Why "loop at itab" is used in table control of PBO module?

If we omit the stmt "Loop at itab", we will not be able to display table control.

Thanks in advance.

Regards,

Harsha

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
405

Hi Harsha,

I surely can tell you that you have not properly search the SDN before posting your question.

This is a very basic question while generation any module pool programming.

First, you must understand the concept of Table control , once you get the concept then you can on youer own able to answer your question.

Anyway for your better understnading let me, explain you few thing,

1. from your internal table you are passing the valuse to the SCREEN and while screen you are defining a table control where you want to see the values you have populated thr' your internal table.

So Screen is having some control name ie 'table_control_name' and now the internal table is having some name 'Itab' so when you pass the internal table values you are using the condition as

Loop at Itab with control table_control_name.

....

endloop.

The loop statement is fetch all values of internal table into your table_control_name.

I think, I have made your doubt clear

May this will help you

Rani.

4 REPLIES 4
Read only

Former Member
0 Likes
405

Hi There,

We need that statement in PBO to move the contents of the internal table to the table control. If you dont have that statement the contents will not be moved to the table control.

Regards,

Chan

Read only

Former Member
0 Likes
406

Hi Harsha,

I surely can tell you that you have not properly search the SDN before posting your question.

This is a very basic question while generation any module pool programming.

First, you must understand the concept of Table control , once you get the concept then you can on youer own able to answer your question.

Anyway for your better understnading let me, explain you few thing,

1. from your internal table you are passing the valuse to the SCREEN and while screen you are defining a table control where you want to see the values you have populated thr' your internal table.

So Screen is having some control name ie 'table_control_name' and now the internal table is having some name 'Itab' so when you pass the internal table values you are using the condition as

Loop at Itab with control table_control_name.

....

endloop.

The loop statement is fetch all values of internal table into your table_control_name.

I think, I have made your doubt clear

May this will help you

Rani.

Read only

Former Member
0 Likes
405

hi,

if you don't use the sttement in the PBO then how will the system know that

which internal table's enteries are to be populated in the table control.

regards,

sakshi

Read only

Former Member
0 Likes
405

Dear Harsha,

This is a very basic question and for such type of questions, you should search SCN before your post.