on 04-04-2014 1:38 PM
Buen Día,
Actualmente estoy revisando una BD configurada por otro Partner, yo he utilizado el post transaction notice para guardar valores en BD externas, sin embargo en la BD se encuentran varios transaction notice para actualizar valores dentro de SAP B1.
----ACTUALIZA CAMPO NUMERO ALTERNATIVO
IF @object_type='4' and (@transaction_type='A' or @transaction_type='U')
BEGIN
UPDATE OITM
SET U_EX_U_ARTNVO=U_ARGNS_MOD
WHERE ITEMCODE=@list_of_cols_val_tab_del
END.
Sap no soporte las BD que han sido actualizadas directamente por SQL, tengo la dudad si este caso entraría en esa tema.
Saludos,
Wuilmer Venegas
Buen día
No puedes actualizar las BD directamente por SQL.
Lo que puedes hacer es usar el POST TN para insertar los datos en una tabla externa y que esa tabla sea tu cola.
Luego puedes crear un servicio windows que lea la tabla cada cierto tiempo y actualice todos los registros que encuentre, algo así.
Dim oItems As SAPBobsCOM.Items
oItems = oCompany.GetBusinessObject(oItems)
if oItems.GetBykey(ItemCode desde tu tabla) = True Then
oItems.UserFields.Fields.Item("U_EX_U_ARTNVO").Value = "TU VALOR"
End If
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 Expertos, Disculpen si me gustaría insistir en este tema que comentan pero me interesa mucho: ¿Es Permitido (correcto o bien visto por SAP AG) hacer un Update a un CAMPO DE USUARIO en el Post Transaction Notification o definitivamente no lo es?
Por mucho tiempo he escuchado que a campos de usuario si se puede hacer un update sin incurrir en ninguna violación de las políticas de integridad de Base de Datos de SAP AG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
9 | |
5 | |
3 | |
3 | |
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.