11-20-2008 5:22 AM
Hi Gurus,
I have a ALV Grid Output Display.
My requirement is that i have select multiple rows and have button, which i click generates an smartform Output.
If i create a button by coyping the pf-status of the standard ALV program , when i select the rows the checkmark dissappears from the the final internal table.
I am using normal ALV and not OOPS concept.
Could neone suggest nething.
Regards,
Navin Fernandes.
11-20-2008 5:26 AM
hi
use the field catalog property wa_fcat-hotspot = 'X' and then
in in list display
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = g_repid
i_callback_pf_status_set = 'PFTEST'
i_callback_user_command = 'USER_COMMAND_ALV
is_layout = l_layout
it_fieldcat = it_fcat[]
TABLES
t_outtab = it_outtab[]
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc 0.
FORM user_command_alv USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
DATA: l_index LIKE sy-tabix.
DATA: l_belnr TYPE rbkp-belnr.
DATA: l_gjahr TYPE rbkp-gjahr.
DATA: l_awkey TYPE bkpf-awkey.
DATA: lwa_bkpf TYPE bkpf.
CLEAR g_flag.
IF r_ucomm EQ 'CREATESO'.
REFRESH it_outsel[].
LOOP AT it_outtab INTO wa_outtab.
IF wa_outtab-check = 'X'.
call your smartform
ENDIF.
CLEAR wa_outtab.
ENDLOOP.
shiva
11-20-2008 5:26 AM
hi
use the field catalog property wa_fcat-hotspot = 'X' and then
in in list display
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = g_repid
i_callback_pf_status_set = 'PFTEST'
i_callback_user_command = 'USER_COMMAND_ALV
is_layout = l_layout
it_fieldcat = it_fcat[]
TABLES
t_outtab = it_outtab[]
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc 0.
FORM user_command_alv USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
DATA: l_index LIKE sy-tabix.
DATA: l_belnr TYPE rbkp-belnr.
DATA: l_gjahr TYPE rbkp-gjahr.
DATA: l_awkey TYPE bkpf-awkey.
DATA: lwa_bkpf TYPE bkpf.
CLEAR g_flag.
IF r_ucomm EQ 'CREATESO'.
REFRESH it_outsel[].
LOOP AT it_outtab INTO wa_outtab.
IF wa_outtab-check = 'X'.
call your smartform
ENDIF.
CLEAR wa_outtab.
ENDLOOP.
shiva
11-20-2008 5:30 AM
Shiva,
Hotspots may not work, as Navin's requirement is to select multiple rows.......
11-20-2008 5:39 AM
Could you tell me how hotspots work.in detail..
Triggering smartform is not a problem..
The problem is i have copied STANDARD ( pf-status) from program SAPLSALV.
When i tickmark the checkbox , the Flag 'X' is not there in the final internal Table.
If i do not use the Status then the Checkmark ie 'X' exist in the final internal table.
Hope this is clear.
Regards,
Navin fernandes.
10-06-2009 12:37 PM
11-20-2008 5:28 AM
Change your code so that, the smartform output is generated when the checkbox is not present in the final internal table.
If i am not clear, then i have not understood your requirement... ......
Explain in a bit more detail.. and tell the name of the standard program which you are using.