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

VA01 Error Message - Partners Validation

Former Member
0 Likes
1,827

Hi Experts,

I have written a code to validate the partners(Sold-to & Ship-to) while creating a sales order in VA01 (program 'MV45AFZB') ( user exit form: USEREXIT_CHECK_VBAK).

If an invalid relationship is detected, this enhancement will display an error message and stop the sales order creation until the correct sold-to/ship-to relationship is entered or maintained.

I could able to give the error message based on the validation but the all the fields(Sold-to & Ship-to) on the screen are grayed out and are not ready for input.

Please suggest if there is any way to make these fields input enabled.

We are using SAP version ECC 6.0

Thanks in advance,

Anil

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,460

You can try it in SAVE_DOCUMENT_PREPARE of MV45AFZZ

7 REPLIES 7
Read only

Former Member
0 Likes
1,460

If the user double click on any of the fields, then the fields will be available for input again.

Regards

Vinod

Read only

Former Member
0 Likes
1,460

Hi Vinod,

PO Number and PO date fields are input enabled but not the sold-to and ship-to fields. I tried even by double clicking on these fields but still these fields are not input enabled.

Thanks,

Anil

Edited by: Anil Lankapalli on Apr 5, 2010 10:01 AM

Read only

0 Likes
1,460

Try putting this code after raising the message

if screen-name = 'VBAK-KUNNR'.
        screen-input = 1.
 endif .

Regards

Vinod

Read only

Former Member
0 Likes
1,460

Hi Vinod,

I want to make Sold-to as well as Ship-to fields as input enabled. Ship-to screen field(KUWEV-KUNNR) is not accessible in the form :USEREXIT_CHECK_VBAK.

Please advise me if I need to use a different user exit form to do this validation.

Thanks,

Anil

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,461

You can try it in SAVE_DOCUMENT_PREPARE of MV45AFZZ

Read only

Former Member
0 Likes
1,460

Hi Keshav,

Thanks for your reply. By including the code in SAVE_DOCUMENT_PREPARE of MV45AFZZ I could able to give the error message. Still all the fields are grayed out. and I need to rerun the transaction VA01 with the correct sold-to and ship-to partner data.

Please suggest is there any other way to correct the ship-to data without re running the transaction VA01. After displaying the error I want the Ship-to and sold-to fields should be displayed as input enabled fields.

Thanks,

Anil

Read only

0 Likes
1,460

Hi,

Dnt Give Error message Use popup and use FCODE RETURN in the EXIT..

Regards,

Srinivas.