Application Development and Automation 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: 
Read only

Authority Check

Former Member
0 Likes
714

Hi all!

I´m trying to insert an Authority Check in some reports, but i don´t know how...

This is de select options for de Authority check

SELECT-OPTIONS:

division FOR bseg-gsber[/i],

fecha FOR bkpf-budat OBLIGATORY,

cuenta FOR bseg-hkont.

My object:

AUTHORITY-CHECK OBJECT 'ZDIV'

  • id 'GSBER' field division.

The division have intervals, How can i do this?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
610

Hi julio,

1. Since it is a select option,

we cannot do it directly.

2. We have to fetch all GSBER from master table,

which are selected in select options.

3. do like this.

4.

report abc.

tables : bseg.

data : itab type gsber occurs 0 with header line.

*----


SELECT-OPTIONS: division FOR bseg-gsber.

*----


START-OF-SELECTION.

select gsber from

tgsb

into table itab

where gsber in division.

LOOP AT ITAB.

            • AUTHORITY-CHECK

*----- ON FIEL ITAB-GSBER

*---- IF SY-SUBRC <> 0 MEANS NO AUTHORITY

ENDLOOP.

regards,

amit m.

Hi all!

I´m trying to insert an Authority Check in some reports, but i don´t know how...

This is de select options for de Authority check

SELECT-OPTIONS:

division FOR bseg-gsber[/i],

fecha FOR bkpf-budat OBLIGATORY,

cuenta FOR bseg-hkont.

My object:

AUTHORITY-CHECK OBJECT 'ZDIV'

  • id 'GSBER' field division.

The division have intervals, How can i do this?

3 REPLIES 3
Read only

Former Member
0 Likes
610

I also want to show the division accepted of the interval...

Read only

Former Member
0 Likes
611

Hi julio,

1. Since it is a select option,

we cannot do it directly.

2. We have to fetch all GSBER from master table,

which are selected in select options.

3. do like this.

4.

report abc.

tables : bseg.

data : itab type gsber occurs 0 with header line.

*----


SELECT-OPTIONS: division FOR bseg-gsber.

*----


START-OF-SELECTION.

select gsber from

tgsb

into table itab

where gsber in division.

LOOP AT ITAB.

            • AUTHORITY-CHECK

*----- ON FIEL ITAB-GSBER

*---- IF SY-SUBRC <> 0 MEANS NO AUTHORITY

ENDLOOP.

regards,

amit m.