Thursday, June 21, 2007

Popup box function module

POPUP_WITH_TABLE_DISPLAY is the function module to display contents
of an itab in a popup window.

It takes the name of the itab as i/p.
Displays the contents in a popup window.

On the window you can select any line.
The index of the itab corresponding to the line selected is stored in 'choice'.

In your program declare a variable say , indx like sy-tabix.
Pass this in the import parameter 'choice' during function call.

Later , use the variable in a read statement as follows
to retrieve the contents of the clicked line.

read table itab index indx.

No comments: