Determinación automática Lotes, Salida Mercancía

Buenos días grupo.

Actualmente se esta usando la Bapi BAPI_GOODSMVT_CREATE para la salidas de mercancía, la nueva necesidad es poder determinar automáticamente los Lotes, del mismo modo que funciona en la transacción Migo al momento de presionar el siguiente botón.

Por lo que tengo entendido no es posible hacerlo dentro de dicha función, les agradecería mucho si tienen alguna idea.

Muchas gracias.

Saludos.

Buenas tardes.

Lo que encontré en la SAP Note 2305708 es, más o menos, lo que estás pensando sobre esa BAPI.

Symptom
The single-unit batch indicators transferred via the interface are not set when you use the BAPI /SAPMP/BAPI_GOODSMVT_CREATE.

Other Terms
is_mp_goodsmvt_item
Multiple-unit batch
Single-unit batch

Reason and Prerequisites
When you use the BAPI /SAPMP/BAPI_GOODSMVT_CREATE, a goods movement of a batch with the product unit of measure is either to create another batch with the product unit of measure or a single-unit batch. The receiving batch does not exist before the posting. When you create the receiving batch, however, it is not possible to create a single-unit batch.

Solution
Implement the attached correction instructions in your system.

In addition, you must ensure that when you call the BAPI of the parameter, is_mp_goodsmvt_item is filled correctly. For each posting record, a data record with sequential index in accordance with the posting record index in the table is_mp_goodsmvt_item must be transferred. is_mp_goodsmvt_item-su_batch_set must be set to ‘X’, if the result is to be controlled using this table. is_mp_goodsmvt_item-su_batch refers to the issuing batch and is equal to SPACE in this scenario. is_mp_goodsmvt_item-su_batch_tp then contains the required single-unit batch indicator, that is, SPACE if the receiving batch is not to be a single-unit batch, and ‘X’ if the receiving batch is to be a single-unit batch.

Fuente: SAP NOTE 2305708 - Setting the single-unit batch indicator using /SAPMP/BAPI_GOODSMVT_CREATE

BAPI’s
Por lo que vi, estas son todas las BAPI que hay sobre movimientos de mercancías.

Alternativa
Si no podés resolverlo aplicando la solución de la SAP Note, se me ocurre como alternativa que podrías hacer un BATCH INPUT con una transacción vieja, dependiendo de qué tipo de salida de mercancía quieras hacer. No se recomienda hacerlo con la MIGO porque puede fallar. Por ejemplo, si fuera un consumo de un material (mov. 262) para notificar producción, podrías usar la MFBF.

Saludos, Fernando

2 Me gusta

Este tema se cerró automáticamente 91 días después del último post. No se permiten nuevas respuestas.