cancel
Showing results for 
Search instead for 
Did you mean: 

Control anulacion de pagos recibidos

0 Kudos

Hola equipo,

Soy nuevo utilizando SAP B1 sobre HANA y quisiera colocar un control en transactionnotification para que, solo un usuario en especifico, pueda anular los documentos de pagos recibidos.

Tengo algo armado pero no me funciona y quizas ustedes me puedan ayudar identificando el porque.

IF object_type = '24' AND :transaction_type = 'C' THEN

SELECT T0."UserSign" INTO Usuario

FROM "ORCT" T0

WHERE T0."DocEntry" = list_of_cols_val_tab_del;

IF Usuario <> '14'

THEN error := 1100 ; error_message := '(ORCT-I001) No tiene permiso para efectuar esta transaccion';

END IF;

END IF;

Agradeciendo de antemano su colaboración me despido.

Accepted Solutions (0)

Answers (1)

Answers (1)

candrade_0518
Explorer
0 Kudos

The UserSign of the document is not necessarily the one that is going to execute the cancellation or cancellation action, you must capture the user who is logged in in another way to evaluate it, Maybe it would be easier to work the user's permission and restrict the action of canceling