Application Development and Automation 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: 
Read only

Prevent delivery save using save_document_prepare, MV50AFZ1

petra_just
Active Participant
0 Likes
2,446

Dear users,

I have done a development that issues error messages based on certain conditions. The error message comes up, but when the user presses enter, it disappears. When the user presses "SAVE" again, the delivery is saved without going again into save_document_prepare. But, I do not want to allow saving the delivery when this error comes up. Has anyone come across this issue before? What is your suggestion.

I have considered isuing a exit message, has anyone another idea?

Thanks in advance. <Reward offer removed by moderator>

Thanks

Petra

Message was edited by: Vinod Kumar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,458

BAdI LE_SHP_DELIVERY_PROC is the ideal one.  Use the method DELIVERY_FINAL_CHECK & populate the error message in the structure CT_FINCHDEL.

Regards, Vinod

2 REPLIES 2
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,458

First read Note 415716 - User exits in delivery processing, if not already done.

I suppose that the exit is called a second time but not in display mode, can you check it ?

Else you could use BAdI LE_SHP_DELIVERY_PROC methods SAVE_DOCUMENT_PREPARE or DELIVERY_FINAL_CHECK.

Regards,

Raymond

Read only

Former Member
0 Likes
1,459

BAdI LE_SHP_DELIVERY_PROC is the ideal one.  Use the method DELIVERY_FINAL_CHECK & populate the error message in the structure CT_FINCHDEL.

Regards, Vinod