on 08-20-2005 7:00 AM
hi,
can any one tell me how can we populate data into table controls in ecatt?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.