2007 Oct 26 6:49 AM
User will create batch-input-sessions for one company code, but we should check if the user has permission to access to this company code before the creating action. then which FM or method can we use to make authorization check for this company code? Thanks a lot.
User will create batch-input-sessions for one company code, but we should check if the user has permission to access to this company code before the creating action. then which FM or method can we use to make authorization check for this company code? Thanks a lot.
2007 Oct 26 7:00 AM
Hi
Implement the code:
FORM authority_check .
Authority Check For the Migration
AUTHORITY-CHECK OBJECT 'YX30_MIGR'
ID 'SYSTEM' FIELD p_sysid
ID 'BUKRS' FIELD p_bukrs
ID 'YX30_DMOBJ' FIELD p_object
ID 'ACTVT' FIELD '16'.
IF sy-subrc <> 0.
MESSAGE e010 WITH p_sysid p_bukrs p_object '16'.
ENDIF.
ENDFORM. " authority_check
Regards,
Sree
2007 Oct 26 7:26 AM
hi
good
go through this link,hope this would help you to solve your problem
http://www.mariewagener.de/Note.Juni.2006
reward point if helpful.
thanks
mrutyun^