Tuesday, July 10, 2012

REUSE_ALV_POPUP_TO_SELECT- Utility function module for displaying/selecting entries in table form in a popup


One of the useful function modules provided in ALV area is REUSE_ALV_POPUP_TO_SELECT.The function module makes use of three function modules which are: REUSE_ALV_FIELDCATALOG_MERGE & REUSE_ALV_TRANSFER_DATA & K_KKB_LIST_FOR_ITEM_SELECTION2.The function module also has documentation provided in SAP R/3 system.

The function module REUSE_ALV_POPUP__TO_SELECT needs to have following parameters: the internal table with data, field catalog, details of any flags (like selected, not selected etc).

The Demo program BALV_POPUP_TO_SELECT is used to demonstrate demo of REUSE_ALV_POPUP_TO_SELECT. In this program, the data is picked from SFLIGHT table. The demo program is self explanatory.




 After executing the report, give any title. And select any line in the pop up screen and as shown it would be shown in screen.

How does function module help?
In cases, where we need to record the options of user from a list of options(provided in table form) in a report/module pool/transaction, then using this function module is really helpful.


1 comment:

  1. I am unable to see data only vertical lines appear when I use above code

    ReplyDelete