on 02-03-2010 2:21 PM
Hola como estan, e agregado una pestaña con controles que pertenecen a los USERFILEDS de la tabla facturas(OINV) del SAP BO. Lo que quiero es que al momento de dar Grabar a la factura estos campos tambien se guarden en los USERFIELDS de esta.
Espero Respuestas.
Gracias.
Hola, segui las instrucciones de la guia pero como hago para que las variables almacenen los datos que se encentran en la pestaña agregada. Como por ejemplo, tengo 2 combobox en la pestaña, como hago para que el valor de los combobox se guarde en las variables desde el TransactionNotification?
Muestro el query que estoy generando:
/Grabar Localizaciones Ecuador/
DECLARE @CODSUS AS VARCHAR(2) --VARIABLE 1
DECLARE @TIPOCOMP AS VARCHAR(2) --VARIABLE 2
-- Tabla OPCH , Facturas Proveedores
if @object_type = '18' and @transaction_type in ('A','U')
BEGIN
--SET @CODSUS =
--SET @TIPOCOMP =
Update OPCH
set
U_BPE_CODSUSTENTO = @CODSUS, U_BPE_TPCOMPRBNTE = @TIPOCOMP
where
DOCENTRY = @list_of_cols_val_tab_del
-
-
END
Gracias.
Edited by: lfvicente08 on Feb 3, 2010 9:30 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Pruebalo asi
/*Grabar Localizaciones Ecuador*/
DECLARE @CODSUS AS VARCHAR(2) --VARIABLE 1
DECLARE @TIPOCOMP AS VARCHAR(2) --VARIABLE 2
-- Tabla OPCH , Facturas Proveedores
if @object_type = '18' and @transaction_type in ('A','U')
BEGIN
/*Los campos que inician con U_ hacen referencia a tus campos de usuario*/
select @CODSUS=U_codsus,@TIPOCOMP=U_tipocomp from OPCH where DocEntry=@list_of_cols_val_tab_del
Update OPCH set U_BPE_CODSUSTENTO = @CODSUS, U_BPE_TPCOMPRBNTE = @TIPOCOMP
where DOCENTRY = @list_of_cols_val_tab_del
Hola Mauricio gracias por la advertencia.
Tengo una pregunta más. Si creo un EditText mediante código, es decir no agrego ningún USERFIELDS, como hago para que la variable del TransactionNotification almacene el valor del campo.
Gracias.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Estimados amigos buceando un poco por el foro he visto que si se puede actualizar campo de usuario. bueno me he guiado de algunas consulta que han hecho pero no tengo suerte con lo que quier ohacer.
Mi caso es el siguiente: deseo que al crear una nota de credito con la serie 000 se actualize un campo de usuario en la factura que pase del estado 1 al 2 use este codigo pero no actualiza quizas me puedan ayudar y ver que pasa por que no me actualiza el campo que deseo
IF @TRANSACTION_TYPE IN ('A','U') AND @OBJECT_TYPE IN ('14')
BEGIN
DECLARE @TDOCORI nvarchar(2)
DECLARE @TDOCSER NVARCHAR(3)
DECLARE @TDOCCOR NVARCHAR (7)
--VALIDACION QUE ACTUALIZA EL CAMPO DE ESTADO DE LA FACTURA SI ESTA SE ANULA CON UNA NOTA DE CREDITO
BEGIN
SELECT
@CLIENTE = CONVERT(VARCHAR,CARDCODE),
@TDOCORI = CONVERT(VARCHAR,U_BPP_MDTO),
@TDOCSER = CONVERT(VARCHAR,U_BPP_MDSO),
@TDOCCOR = CONVERT(VARCHAR,U_BPP_MDCO)
FROM
ORIN
WHERE
DOCENTRY=@LIST_OF_COLS_VAL_TAB_DEL AND U_BPP_MDSD = '000'
UPDATE OINV SET U_QA_STA = 2
WHERE
CARDCODE = @CLIENTE
AND U_BPP_MDTD = @TDOCORI
AND U_BPP_MDSD = @TDOCSER
AND U_BPP_MDCD = @TDOCCOR
AND DOCENTRY=@LIST_OF_COLS_VAL_TAB_DEL
END
END
Muchas Gracias Mauricio me has quitado un peso de encima.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
-
Edited by: lfvicente08 on Feb 3, 2010 9:30 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ya se puede visualizar en mi perfil: fer_nando08_9 @ hotmail.com
gracias.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Te lo agradeceria mucho MAURICIO.
Gracias.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Mauricio QUINTANA muchas gracias por responder, pero soy un poco nuevo en esto, y no se si tendrias alguna ayuda de como construyo un transaction notification? es como un procedure?
Gracias.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Mete por transactionNotification el update a dichos campos de usuario. Primero guarda los campos que quieres en variables y despues con un update oinv set u_userfield=@variable actualizas los campos.
Asi debe de funcionar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
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.