11-27-2014 7:25 AM
Hi All
Thankx in Advance .
I Have Custom Requirement.
My USERS want Rights of se16 which my company dont allow them.
I need To build a Program That show data of a table into a ALV Report.
Do any one know the The Solution how i can achieve this goal.?
Or if u have any knowledge about it please let me know.
Regards
Kaushal Patel
11-27-2014 7:59 AM
DATA: wf_ref TYPE REF TO data.
DATA: wf_tname TYPE dd02v-tabname VALUE 'BKPF'.
FIELD-SYMBOLS : <fs_itab> TYPE STANDARD TABLE.
CREATE DATA wf_ref TYPE STANDARD TABLE OF (wf_tname).
ASSIGN wf_ref->* TO <fs_itab>.
SELECT * FROM (wf_tname) INTO TABLE <fs_itab>
WHERE mandt = sy-mandt.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
i_structure_name = wf_tname
i_callback_pf_status_set = 'SET_PF_STATUS'
i_callback_top_of_page = 'F_TOP_OF_PAGE'
i_callback_user_command = 'USER_COMMAND'
TABLES
t_outtab = <fs_itab>
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE e000(ze1) WITH 'Error in displaying ALV'.
ENDIF.
11-27-2014 7:30 AM
11-27-2014 7:37 AM
11-27-2014 7:51 AM
Hi,
you can create a parameter transaction for SE16 for a single table name.
Set the flag to skip the start screen and select transaction SE16. After pressing ENTER you can select dynpro fieldname DATABROWSE-TABLENAME and fill it with the name of this single database table.
So you can create several parameter transactions.
We are using a similar solution for SM30 on our systems.
Regards,
Klaus
11-27-2014 7:59 AM
DATA: wf_ref TYPE REF TO data.
DATA: wf_tname TYPE dd02v-tabname VALUE 'BKPF'.
FIELD-SYMBOLS : <fs_itab> TYPE STANDARD TABLE.
CREATE DATA wf_ref TYPE STANDARD TABLE OF (wf_tname).
ASSIGN wf_ref->* TO <fs_itab>.
SELECT * FROM (wf_tname) INTO TABLE <fs_itab>
WHERE mandt = sy-mandt.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
i_structure_name = wf_tname
i_callback_pf_status_set = 'SET_PF_STATUS'
i_callback_top_of_page = 'F_TOP_OF_PAGE'
i_callback_user_command = 'USER_COMMAND'
TABLES
t_outtab = <fs_itab>
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE e000(ze1) WITH 'Error in displaying ALV'.
ENDIF.
11-27-2014 9:08 AM