Skip to Content
0
Former Member
Sep 16, 2011 at 04:13 AM

Cocode check at PBO and PAI

128 Views

Hi

I should not allow Cocode AD01 records to update and Display when user has authorization for CoCode AD01.

i know in Event its possible, but we need to do it in PBO PAI of Screen.

PBO

*First statement

Module Authorictycheck.

Include LZXXXO01

module Authoritycheck

LOOP AT EXTRACT.

AUTHORITY-CHECK OBJECT 'ZCHECK_BUK'

ID 'BUKRS' FIELD ZTTL01-BUKRS.

IF sy-subrc <> 0.

*delete the record from EXTRACT table.

Append Extract.

ENDIF.

ENDLOOP.

endmodule

Does the above PBO code will work for display nonauthorized company code?

In PAI, No idea where to write and which table should i have to loop. Pls advice.

Regards

Prince