cancel
Showing results for 
Search instead for 
Did you mean: 

populating data into table controls in ecatt

Former Member
0 Kudos

hi,

can any one tell me how can we populate data into table controls in ecatt?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

The best way to do this is using the SAPGUI command, recording with the scripting granularity set so that you get a new SAPGUI command on each new dialog step.

Once you have finished the recording, you can put a loop around the commands that fill a line of the table control and create the next line. In order to make the script address consecutive rows of the table, you will need to parameterize the control ID. The control ID will look something like this:

'wnd[0]/usr/tblSAPMP56VTC_ADVANCES_SELECTION/txtPTP02-REINR[0,0]'

where the pair of coordinates at the end represents the cell of the table control [column, row].

To parameterize the row number, use a normal variable but enclose it in the escape sequence <!...!> like this:

'wnd[0]/usr/tblSAPMP56VTC_ADVANCES_SELECTION/txtPTP02-REINR[0,<!V_ROW!>]'

You can fill the variable from the eCATT loop counter &LPC, but bear in mind that &LPC counts from 1 and the row index of a table control starts with zero, so to start from the beginning of a table, the row index always needs to be &LPC-1.

0 Kudos

Hi Jonathan,

Your solution helped me to solve my issue.

Thanks.