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

Error Message

Former Member
0 Likes
1,583

Hi,

I need to stop creation of Outbound Delivery based on some conditions, i have written the code to issue an error message like 'MESSAGE ID 'VZ' TYPE 'E' NUMBER '000' WITH 'My Reason'.

I expected this message displayed on the bottom of the screen when i create a delivery but it is giving an odd error message 'Unexpected issue of error message (message VZ 000)' and this is coming in a Poop-up.

Could any body let me know how can i produce the error in the bottom of the session

Thanks

Ram

1 ACCEPTED SOLUTION
Read only

Andri
Participant
0 Likes
1,092

Hi,

could it be your setings in SAP Tweak GUI ? "Start" -> "Programs" -> "SAP Front End" -> "SAP Tweak GUI". There under "Interaction Design" -> "Visualization & Interaction" you can set a flag for "Show error messages in dialog window" ... is that flag set for you?

regards,

Andri

6 REPLIES 6
Read only

mvoros
Active Contributor
0 Likes
1,092

Hi,

Where do you want to display that message? There are some user exits where you can not display error message.

Read only

Andri
Participant
0 Likes
1,093

Hi,

could it be your setings in SAP Tweak GUI ? "Start" -> "Programs" -> "SAP Front End" -> "SAP Tweak GUI". There under "Interaction Design" -> "Visualization & Interaction" you can set a flag for "Show error messages in dialog window" ... is that flag set for you?

regards,

Andri

Read only

Former Member
0 Likes
1,092

Hi,

I am using 'USEREXIT_SAVE_DOCUMENT_PREPARE' and giving the error message. Pop-up messge is not a problem but the text i am getting is the probelm.

I need to display my own message not the system message.

Thanks

Sudheer

Read only

0 Likes
1,092

Hi,

check this OSS note 415716. It contains nice description of all user exits related to Outbound deliveries and corresponding constraints.

Read only

0 Likes
1,092

Hi,

one more comment. There is a BADI LE_SHP_DELIVERY_PROC with method DELIVERY_FINAL_CHECK. Check documentation for this BADI and this method. This BADI has also sample code with nice example how to implement method DELIVERY_FINAL_CHECK.

Cheers

Read only

0 Likes
1,092

Marty,

We are still in 4.6c and the BADI which you mentioned is not avilable. I written the code in the user exit USEREXIT_SAVE_DOCUMENT_PREPARE. Could you please let me know is there any way to display my error message rather than the system message. or do i need to write my code in some other place?

Thanks