on 12-01-2009 6:14 AM
Que tal, espero que me puedan ayudar con este tema, resulta que mi cliente necesita que SAP Business One, no permita hacer entradas de mercancia a Lotes previamente creados. es decir que los lotes sean Unicos, ahora bien para esto estoy utilizando El transaction notification, pero algo va mal y no se que es. este es mi codigo
IF @transaction_type in ('A') AND @object_type='59'
BEGIN
DECLARE @LOTE CHAR (20)
DECLARE BIC SCROLL CURSOR FOR
SELECT T0.[BatchNum] FROM [dbo].[IBT1] T0
INNER JOIN IGN1 T1 ON T0.[BaseEntry] = T1.[DocEntry]
WHERE T0.[BaseType] = 59
AND T1.[DocEntry] = @list_of_cols_val_tab_del
AND T0.[BaseEntry] = @list_of_cols_val_tab_del
OPEN BIC
FETCH FIRST FROM BIC INTO @LOTE
WHILE @@FETCH_STATUS = 0
BEGIN
IF @test IN (SELECT T4.[BATCHNUM] FROM IBT1 T4 where t4.basetype =59 and t4.batchnum = @LOTE)
SET @error = 9
SET @error_message = 'FOLIOS REPETIDOS'
FETCH NEXT FROM BIC
INTO @TEST
end
CLOSE BIC
DEALLOCATE BIC
END
Alguien tiene alguna otra idea?
les agradesco de antemano.
Saludos.
Hola.
Ha quedado repetido este caso.
Por favor cerrar este caso y continuar con el otro: .
Gracias y Saludos.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.