Ver Mensaje Individual
  #2  
Viejo 23/08/11, 18:13:03
pviralta pviralta is offline
Junior Member
 
Fecha de Ingreso: dic 2006
Mensajes: 2
Talking


Hola, estuve buscando dentro del standard como cambiar los status del HU y encontré lo siguiente, claro está modificado para que se entienda con el ejemplo:

data: pv_activity type hu_st_activity value 'HU03',"HU04 Descarga y HU03 Carga (pone status cargada)
lst_handling_unit type huitem_from.

data: lf_memory_id(10).
lf_memory_id = 'ZZ_MOD_S'.

lst_handling_unit-exidv = '00000000001000001151'.
* updating hu status in HUSSTAT table
call function 'HU_STATUS_SET'
exporting
if_object = '12'
if_activity = pv_activity
if_compl_contens = 'X'
is_handling_unit = lst_handling_unit
exceptions
not_possible = 01
error_message = 02
others = 03.

if sy-subrc is initial.
call function 'HU_POST'
exporting
if_no_refresh = 'X'.

* save internal tables jsto_buf and jest_buf
* before cleared by commit work
call function 'STATUS_BUFFER_EXPORT_TO_MEMORY'
exporting
i_memory_id = lf_memory_id.

commit work and wait.
endif.

Espero te ayude, la mía modificó sin problemas el estatus cargada.

Saludos.
Responder Con Cita