Hola amigos como estan tengo un problemilla y ya lelvo tiempo dandole cabeza, cree un ambito de autorizacion (su20), una clase para mi objeto y un objeto de autorizacion (su21), lo asigne a un rol manualmente (pfcg) y yo tengo ese rol, escribi mi codigo simple y cuando ejecuta me retorna 4 que segun busque y significa “Authorization check not successful. One or more authorizations were found for the authorization object in the user master record and they include the value sets, but not the values specified, or incorrect authorization fields or too many fields were specified.”
Adjunto imagenes de lo que he realizado:
su20
su21
pfcg
en la pestaña autoizaciones de mi rol voy a visualizar datos de autorizacion
y este es mi pequeño codigo
authority-check object 'ZTRANSPORT'
id 'ZTKNUM' field i_transporte
id 'ACTVT' field '3'.
if sy-subrc <> 0.
o_checked = 'X'.
endif.
Y no entiendo por que si le quito el id “ACTVT” si me retorna 0 pero cuando se lo agrego me retorna 4 y no se por que si se supone que debe recibir 2 p arametros