09-30-2008 7:49 AM
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
09-30-2008 7:53 AM
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
09-30-2008 8:06 AM
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