Application Development 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: 

How do I associate ALV table and smartform?

shrgrl
Participant
0 Kudos

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.

3 REPLIES 3

michael_piesche
Active Contributor
0 Kudos

I assume you are not familiar with Smartforms?

raymond_giuseppi
Active Contributor
0 Kudos

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'

shrgrl
Participant
0 Kudos

@Michael Piesche Yes. I just started working of Smartforms.