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: 

AUTHORITY-CHECK problem with WERKS

Former Member
0 Kudos

Hi,

Why this authority check work with PARAMETER and with SELECT-OPTIONS fails with SY-SUBRC = 4

SELECT-OPTIONS pcentro FOR vbrp-werks OBLIGATORY. (doesn´t work)

PARAMETER pcentro LIKE vbrp-werks OBLIGATORY. (works)

AUTHORITY-CHECK OBJECT 'Z_CENTRO'FOR USER sy-uname

ID 'ACTVT' FIELD '03'

ID 'ZCENTRO' FIELD pcentro.

Thanks on advance

David Fúnez

Tegucigalpa, Honduras

1 ACCEPTED SOLUTION

Former Member
0 Kudos

HI,

When you use the Select-option, use the below code

SELECT-OPTIONS pcentro FOR vbrp-werks OBLIGATORY. (doesn´t work)
PARAMETER pcentro LIKE vbrp-werks OBLIGATORY. (works)

AUTHORITY-CHECK OBJECT 'Z_CENTRO'FOR USER sy-uname
ID 'ACTVT' FIELD '03'
ID 'ZCENTRO' FIELD pcentro-low.

Thanks

Sudheer

2 REPLIES 2

Former Member
0 Kudos

HI,

When you use the Select-option, use the below code

SELECT-OPTIONS pcentro FOR vbrp-werks OBLIGATORY. (doesn´t work)
PARAMETER pcentro LIKE vbrp-werks OBLIGATORY. (works)

AUTHORITY-CHECK OBJECT 'Z_CENTRO'FOR USER sy-uname
ID 'ACTVT' FIELD '03'
ID 'ZCENTRO' FIELD pcentro-low.

Thanks

Sudheer

0 Kudos

thanks a lot... it works ok now.