MUNDOSAP

MUNDOSAP (foro/index.php)
-   LO - MM - SD (foro/forumdisplay.php?f=11)
-   -   Como modificar Hu en Transito? (foro/showthread.php?t=28631)

ngoyenechea 05/03/09 19:13:07

Como modificar Hu en Transito?
 
Hola gente !!

Tengo un problema con un traslado de un Almacén que no gestiona HU hacia otro que Si gestiona HU.
Necesito modificar las HU cuando llegan al Almacén con WM, pero como esa Hu tiene el Status "B" en tránsito, no me deja modificarla.:(

Alguien conoce dónde en el Customizing puedo hacer que las HU que tienen el Status “B” en Tránsito puedan ser modificables?

Saludos a todos!!

Gracias!!!!

pviralta 23/08/11 18:13:03


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.


Husos Horarios son GMT. La hora en este momento es 08:28:22.

www.mundosap.com 2006 - Spain
software crm, crm on demand, software call center, crm act, crm solutions, crm gratis, crm web