cancel
Showing results for 
Search instead for 
Did you mean: 

ALV hierarchy with Smartform

Former Member
0 Kudos

How can I do a Smartform from an ALV hierarchy? Is this possible?

Please give me any help...

Regards.

Hugo

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

If I understood well, you just want to display the output into a smartform directly from the ALV. If I am right, then it is not possible using the standard functions available with the ALV.

But you can just create your own button in the ALV and do your own logic for the same.

Please refer the standard program - BCALV_GRID_08 and the below page:

http://www.sapalv.net/2009/07/sap-alv-tutorial-4-%E2%80%93-add-button-to-toolbar/

Kindly ignore this reply if my understanding is wrong.

Regards,

Selva K.

Former Member
0 Kudos

Hi, thank for your reply.

Well... I've a hierarchy alv report with a status bar... It's working properly.

Now, I want to print a smarform from this report...

                      • this show the alv ************

call function 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'

exporting

i_callback_program = vl_repid

is_layout = st_layout

it_fieldcat = t_fieldcat[]

i_tabname_header = 'T_AUX'

i_tabname_item = 'T_OUTPUT'

is_keyinfo = st_key

tables

t_outtab_header = t_aux[]

t_outtab_item = t_output[]

exceptions

program_error = 1

others = 2.

************************************************************

My doubt is in the smartform... I can pass 2 tables as parameters???

-->

call function l_fm_name

exporting

p_gjahr = p_gjahr

p_form = p_form

p_date_d = p_date_d

p_date_h = p_date_h

p_nom = p_nom

tables

gt_salida = gt_salida ???? "Table 1

exceptions

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

others = 5.

I'm sorry for my poor english...

Former Member
0 Kudos

My doubt is in the smartform... I can pass 2 tables as parameters???

R: Yes, you can pass all the tables you want

Former Member
0 Kudos

Thanks. I'll try...

Edited by: hadorno on Feb 15, 2011 11:53 PM