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.
LOOP AT EXTRACT.
AUTHORITY-CHECK OBJECT 'ZCHECK_BUK'
ID 'BUKRS' FIELD ZTTL01-BUKRS.
IF sy-subrc <> 0.
*delete the record from EXTRACT table.
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.