Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Function module required for popup

Former Member
0 Likes
539

HI All,

I have a requirement to have an intermediate popup in a report where It shows all output columns .User should be able to select from this list and output should show only those columns.Please guide me to implement this.

Thanks in advance.

3 REPLIES 3
Read only

Former Member
0 Likes
503

Hi,

Try the function module POPUP_WITH_TABLE_DISPLAY. -

Provide a display of a table for user to select one, with the value of the table line returned when selected.

This FM will return the index of the selected row in the parameter CHOISE. Use this index to further process if required.

Regards,

Sachin

Read only

Former Member
0 Likes
503

you may display an ALV grid in subscreen and call it on selection from the main report.

Read only

Former Member
0 Likes
503

Hi Prashant,

You can go like this:

1.) First build an internal table containing all the fieldnames of the final output internal table. Then build a fieldcatalog for it and keep a checkbox before each field name(row). Use the function module REUSE_ALV_POPUP_TO_SELECT to display the ALV popup for the possible fieldnames.

2.) After the user selects the possible fieldnames and presses Continue button, build the field catalog for the final output table. And display the final output.

If this is too complex for you, then you can debug the TCode SE16 to understand how SAP has handled this scenario for displaying only the user's choice of output fields.

Thanks and Best Regards,

Suresh