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 in CO02

Former Member
0 Kudos

Hi,

I need to perform authority check in the T.Code CO02(Screen : Production order change:Component overviw) for the fields MATNR and MENGE in the list of line items.

Reference Details:-

-


System -> Status->

Transaction CO02

Program (screen) SAPLCOMK

Screen number 120

Program (GUI) SAPLCOCU

GUI status VVKOMP

The user should be restricted to change the Material and quantity in the line items ( T.Code CO02-Production order change : component overview).

For this where should the authority check be done? In which user exit?

I have done the uthority check in the FM : EXIT_SAPLCOMK_006 inside the include : ZXCO1U07 but it is not working.

Can anyone suggest or guide me to the right path to resolve the issue?

Your help will be appreciated.

Regards,

P.S.Chitra

2 REPLIES 2

Former Member
0 Kudos

Hi

u have follow like that...

AUTHORITY-CHECK OBJECT 'ZPRCHK_NEW'

ID 'TCD' FIELD SY-TCODE

ID 'BUKRS' DUMMY

ID 'PRCTR' DUMMY

ID 'SPART' DUMMY

ID 'WERKS' DUMMY

ID 'VKORG' DUMMY

ID 'EKORG' DUMMY.

IF SY-SUBRC NE 0.

MESSAGE I000(VZ) WITH TEXT-002 SY-TCODE .

LEAVE PROGRAM.

ENDIF.

regards:

Prabu

0 Kudos

Hi,

Procedure to code the authority-check is secondary , now i want to know in which exit should i code this authority check?

Actually i have created the authorisation object and coded the authority check in Function module - EXIT_SAPLCOMK_006,but when i debug its not getting triggered.

I want to know the standard exit name to wite the authority check.

regards,

P.S.Chitra