This can be done but
it is tricky. The system variable
V[_tabrow] contains the selected row number and one could be excused for thinking
that
SearchHelp
[SAPLCOMK_TCTRL_3020,12]
techname="/XXXX/PMGF_CHARGE"
shselname1="MATNR"
shselvalue1="cell[SAPLCOMK_TCTRL_3020,2,&V[_tabrow]]"
passes the right
material number. But this does not work since the expression &V[_tabrow] is
already evaluated by GuiXT when the screen is processed, before the user has
selected the row.
With
Set V[ampersand]
"&"
SearchHelp
[SAPLCOMK_TCTRL_3020,12]
techname="/XXXX/PMGF_CHARGE"
shselname1="MATNR"
shselvalue1="cell[SAPLCOMK_TCTRL_3020,2,&V[ampersand]V[_tabrow]]"
it will work
correctly, since GuiXT replaces &V[ampersand] with & when the screen is
displayed, and the resulting &V[_tabrow] with the selected row number when
the searchhelp is invoked.
|