Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Issues in BADI LE_SHP_DELIVERY_PROC method SAVE_DOCUMENT_PREPARE

Former Member
0 Kudos

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.

1 REPLY 1

Former Member
0 Kudos

Hi Divya,

You can use Method DELIVERY_FINAL_CHECK of the same BADI and pass the message in CT_FINCHDEL.

Documentation is available for the method which you can refer.

Regards,

Praphul Singh