on 11-29-2013 1:59 PM
Buenos días
La compañía para la que trabajo se esta migrando SAP BO
la empresa que nos vendió el software en cuanto a soporte de "Transaction Notification" nos a dejado abandonados.
necesito crear un bloqueo para que en las facturas de clientes : nuestros vendedores en el mismo documento no puedan llamar mas de una vez a el mismo articulo o por decirlo así no puedan en un mismo documento tener dos INV1,ItemCode duplicados, tengo conocimientos de SQL medios.
Agradecería muchísimo su ayuda
si existe un manual en español me gustaría el link
Si tienen ejemplos de código que podría editar para lograrlo
Gracias
Buenos días
Puedes usar este código para bloquear eso.
if @object_type='13' and @transaction_type='A'
begin
declare @ItemCode nvarchar(20)
set @ItemCode=(select top 1 T0.ItemCode from INV1 T0 where T0.DocEntry=@list_of_cols_val_tab_del and isnull((select count(*) from INV1 A where A.DocEntry=@list_of_cols_val_tab_del and A.ItemCode=T0.ItemCode),0)>1)
if @ItemCode is not null
begin
set @error=30000
set @error_message='El Item ' + convert(nvarchar(20),@ItemCode) + ' se encuentra duplicado, no puede continuar'
end
end
Saludos
FLR
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hola Juan, aqui se trata un tema igual de duplicados en ordenes de venta, bastaría que cambies las tablas a OINV - INV1.
Artículos Repetidos en una Orden de Venta | SCN
Saludos.
Alessandro.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
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.