Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

AUTHORITY-CHECK problem with WERKS

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

Former Member
Former Member replied

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 View this answer in context
Not what you were looking for? View more on this topic or Ask a question