Skip to Content
0
Former Member
Aug 03, 2016 at 01:14 AM

Issues in BADI LE_SHP_DELIVERY_PROC method SAVE_DOCUMENT_PREPARE

319 Views

Hi Everyone,

While creating a delivery in VL31N, we are performing a check in BADI LE_SHP_DELIVERY_PROC method SAVE_DOCUMENT_PREPARE on the material used in the PO. If the material is not maintained in PAL (Pallets), then we throw a warning message by appending the message in CT_LOG.

This works fine when the delivery is created for Complete Putaway, i.e. Overall Put Away Status = C but when we create a delivery with Partial Putaway, i.e. Overall Put Away Status = B, the warning message comes up in form of a pop up and takes us out of the transaction.

Let me know if anyone has faced a similar issue.

We are populating the CT_LOG as below.

ls_shp_log-vbeln = <ls_xlikp>-vbeln.

ls_shp_log-msgty = ls_return-type.

ls_shp_log-msgid = ls_return-id.

ls_shp_log-msgno = ls_return-number.

ls_shp_log-msgv1 = ls_return-message_v1.

ls_shp_log-msgv2 = ls_return-message_v2.

ls_shp_log-msgv3 = ls_return-message_v3.

ls_shp_log-msgv4 = ls_return-message_v4.

APPEND ls_shp_log TO ct_log.



Any kind of help is highly appreciated.


Thanks.