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: 

Custom Message During Outbound deliveries

Former Member
0 Kudos

Hello,

I want to display a custom message during the delivery processing from sales order or from VL01n.

The message has to be displayed before the user saves the document.

Thanks.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

You can use Form exit USEREXIT_SAVE_DOCUMENT_PREPARE in include MV50AFZ1

or use SAVE_DOCUMENT_PREPARE method in BADI LE_SHP_DELIVERY_PROC ( Populate CT_LOG table )

R

9 REPLIES 9

Former Member
0 Kudos

Hi,

You can use Form exit USEREXIT_SAVE_DOCUMENT_PREPARE in include MV50AFZ1

or use SAVE_DOCUMENT_PREPARE method in BADI LE_SHP_DELIVERY_PROC ( Populate CT_LOG table )

R

0 Kudos

Hi Rudra,

Thanks for the reply.

I want the message as a information or pop-up on the delivery processing screen and not when user presses save.

The badi method is called as soon as user presses save. I want this message to be displayed after the initial screen for deliveries.

Thanks.

0 Kudos

Hi,

You can use method INITIALIZE_DELIVERY or READ_DELIVERY in badi LE_SHP_DELIVERY_PROC for issuing message on initial screen.

Please check.

Regards,

Ajinkya

0 Kudos

Hi Vishnu,

You can use Method FILL_DELIVERY_HEADER For header and FILL_DELIVERY_ITEM for items and populate the CT_LOG table .

OR

USEREXIT_MOVE_FIELD_TO_LIKP and  USEREXIT_MOVE_FIELD_TO_LIPS in include MV50AFZ1

R

0 Kudos

Hi Rudra,

I have a logic in the BADI : LE_SHP_DELIVERY_PROC - CHANGE_DELIVERY_ITEM where I determine a condition and if this is satisfied then I need to issue my custom message.

CT_LOG table is a error log table but the requirement is to display a message  on the status bar or as a pop up.

The exits you mentioned are triggered well before it hits my BADI.

So Basically I need a point after this BADI is executed.

Thanks.

0 Kudos

Hi there,

Did you try using POPUP_TO_DISPLAY_TEXT in your BADI method?

Please note you should do a proper check before the popup so that it does not impact Background and Batch processing. ( SY-BATCH , SY-BINPT can be useful ).

R

0 Kudos

Hi Rudra,

Yes I used this popup in my badi method : CHANGE_DELIVERY_ITEM, this metod is called twice for every line item.

My check is for each and every item but the message has to be displayed once.

Thanks.

0 Kudos

Use a Static variable or may be a variable(As Global Static Variable in your implementation class) and check if the variable before calling the popup.

So set the variable after calling the popup for the first time and use that before calling the popup.

Hope it make sense.

0 Kudos

Hi Rudra,

Yes I too used the same method for this and it works.

Thanks.