Ver Mensaje Individual
  #2  
Viejo 01/06/09, 13:14:34
ballan ballan is offline
Senior Member
 
Fecha de Ingreso: oct 2006
Mensajes: 671
Si utilizas batch inputs no puedes realizar rollback, tendrias que hacer tus procesos con bapis

ME21N -> BAPI_PO_CREATE1
VL01NO -> BAPI_OUTB_DELIVERY_CREATE_SLS
LB04 -> L_TR_CREATE_CHECK y si va ok L_TR_CREATE_UPDATE
LT04 -> L_TO_CREATE_TR con parametro i_commit_work en blanco.

El esquema mas o menos seria

BAPI_PO_CREATE1

Si no devuelve ningun mensaje de error

BAPI_OUTB_DELIVERY_CREATE_SLS

Si no devuelve ningun mensaje de error

L_TR_CREATE_CHECK

Si no devuelve ningun mensaje de error

L_TO_CREATE_TR
i_commit_work = space

Si todo ha ido bien

L_TR_UPDATE
BAPI_TRANSACTION_COMMIT.

A lo mejor alguna de las bapis o modulos de funcion que te digo no son correctos pero en la transaccion BAPI o mirando el grupo de funciones donde estan alojadas la L_TR_CREATE y L_TO_CREATE_TR puedes mirar otras funciones a ver si te sirven
Responder Con Cita