08-24-2020 2:59 PM
I have an alv table. And on this screen, I have the 'Print' button that I added. When I click on any row (s) of the ALV table, I want it to be written with smartform.
I have created a smartform output. I don't know how to relate ALV table and smartform.
When I click on a row of the table, the information I want is as follows:
Help me please with this or suggest a resource.
08-24-2020 3:24 PM
08-24-2020 3:26 PM
If you use standard print function, handle the event 'before_user_command' to handle the call of the Smartform, then reset the function code (to prevent standard print) with method 'set_user_command' passing space as new value. Else just use event 'user_command'.
NB: This information is available in online help
Use FM SSF_FUNCTION_MODULE_NAME and call the returned FM within your method implementation
NB: This information is also available in online help
Also consider adding some multi-lines selection option, so user can select multiple lines and print them together or one after another, but click only once on 'print'
08-24-2020 5:10 PM