Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

HTMLB - Read records in a table control

Hi all,

We have developed a transaction and have published it as an internet service onto the integrated ITS. In the second screen there is a table control with more than one page of data. In the template I read all the records in the internal table corresponding to the table control and create XML data which will be used by the ASP page that calls the ITS service. This is the code in the HTML template

<CONHIST premtype="`eiac-wi_text.value`">

`repeat with j from 1 to mac_hist-TODATE.dim` <Records>









MAC_HIST is the internal table containing the data for the table control. the name of the Table control is T_CONSUMP_HIST. Now `mac_hist-TODATE.dim` does not return the number of records in the internal table. Instead it returns the number of records that can be displayed on one page of the table control. I have 28 records in the internal table, but the table control can show only 13 records at a time. mac_hist-TODATE.dim returns 13 whereas I need to loop through all 28 records. Pls help.



Helpful Answer

Not what you were looking for? View more on this topic or Ask a question