Ver Mensaje Individual
  #3  
Viejo 08/03/12, 17:12:18
oscarmel oscarmel is offline
Junior Member
 
Fecha de Ingreso: mar 2011
Localización: Colombia
Mensajes: 12
Post Un poco tarde pero a alguien le puede servir

Con esta bapi se contabiliza la salida de mercancia, esta es la que ejectua la VL02N cuando se da clic en el boton "Contabilizar EM"

data: it_hd like bapiobdlvhdrcon,
it_hc like bapiobdlvhdrctrlcon,
it_hds like /spe/bapiobdlvhdrconf,
it_hcs like /spe/bapiobdlvhdrctrlcon,
it_ret like bapiret2 occurs 0 with header line.


it_hd-deliv_numb = entrega.
it_hc-deliv_numb = entrega.
it_hc-post_gi_flg = 'X'.
it_hds-deliv_numb = entrega.
it_hcs-deliv_numb = entrega.


call function 'BAPI_OUTB_DELIVERY_CONFIRM_DEC'
exporting
header_data = it_hd
header_control = it_hc
delivery = entrega
header_data_spl = it_hds
header_control_spl = it_hcs
tables
return = it_ret.

call function 'BAPI_TRANSACTION_COMMIT'
exporting
wait = 'X'.

Tomado de :

Publicado por Elmer Rodriguez

Oscar Melendez
Responder Con Cita