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: 

Hi I need Alternative of Se16

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

dani_mn
Active Contributor
0 Kudos

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.

5 REPLIES 5

JK
Contributor
0 Kudos

which sap release?

see here for 7.40:

maybe you should add authority checks for S_TABU_DIS etc

former_member183424
Active Contributor
0 Kudos

Your user may wants to see some of table from SE16. Instead of build a program, you may can use the authorization matrix.

Have a look into the discussion for an alternative

former_member195402
Active Contributor
0 Kudos

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

dani_mn
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Its Working thankx Man...