Skip to Content
0
Former Member
Feb 14, 2011 at 10:46 AM

Table control in Module pool program

161 Views

Hi,

I am working on module pool program. The below is my code. Here itab it_articles is a table control. I entered two records while running and when I checked in debugging mode this table does not have my two records but still it loops and control goes inside the loop. But the header field it_articles-ean11 have value.

My requirement is to get all the articles to make a select from another standard table. I dont want to put the select inside the loop. But here since itab it_articles does not have any value at the beginning, I am not able to use it before the looping. Any advice.

LOOP AT it_articles.    "no value in it_articles and still it loops
    CHAIN.
      FIELD it_articles-ean11       "Value is there in header it_articles-ean11
      MODULE get_article ON INPUT.
    ENDCHAIN.
  ENDLOOP.