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

VBKD-BSTKD

Former Member
0 Likes
2,242

Hello,

in a sales order I should check for defined customers the field VBKD-BSTKD if it is filled. If not I should send out a message type E.

I did this in MV45AFZZ with a user exit and the problem is that as consequence of the message type E all fields are blocked, inclusive the fields the user has to correct. There is no other way than to leave VA01/VA02 and loose all the data the user typed in.

One possibility is that I send a W message from the User-Exit, but than the user can store incorrect data. The other solution is to change the PAI processing, but that will mean a modification of the standard SAP coding. That the customer doesnu2019t really want.

Is it possible to let the incorrect fields open for input with a E message out of the User-Exit?

Regards

Norbert

Edited by: Julius Bussche on Sep 17, 2009 10:49 AM

Please use more meaningfull subject titles

6 REPLIES 6
Read only

jayanthi_jayaraman
Active Contributor
0 Likes
1,491

Hi,

May be you can try after warning message, just write a clear statement to clear the fields.

If this is done, then user even though enters incorrect data, they can't save it.

Read only

0 Likes
1,491

Hi,

for those defined customers the fields are mandatory. So a clear statement doesn't help.

Read only

0 Likes
1,491

Hi,

Just check using an information message and then use leave list-processing.

Read only

0 Likes
1,491

Hi

Try to put your control in 2 different user_exit:

- USEREXIT_MOVE_FIELD_TO_VBAK: here u can trigger a warning message

- USEREXIT_SAVE_DOCUMENT_PREPARE: here u can trigger en error message

Max

Read only

0 Likes
1,491

> Hi,

>

> for those defined customers the fields are mandatory. So a clear statement doesn't help.

Hi Norbert Bürger,

If that field is Mandatory then system will not allow it as Blank entries by default..

In that case just information/warning message is also suffecient to let the enduser know that they need to fill it...

OR...

You can go for screen Variant as another way...

OR

In Configuration if it can be kept as Mandatory Consult your Functional Consultant for it..

Hope it will solve your problem..

Thanks & Regards

ilesh 24x7

ilesh Nandaniya

Read only

0 Likes
1,491

Hi,

I found a solution to handle this for limited customers.

in USEREXIT_SAVE_DOCUMENT_PREPARE I call in case of error a popup with FM POPUP_DISPLAY_MESSAGE and after processing the popup I say LEAVE TO SCREEN sy-dynnr. On this I'm comming back to the current screen. All fields are open for input in thatt case. This works also on screens which are not the screens with the valid input.

Thank you all for your ideas and input.

Regards

Norbert