cancel
Showing results for 
Search instead for 
Did you mean: 

error message for profit center

Former Member
0 Kudos

Hello,

The requirement is that the user should not be able to save the sales order without entering the profit center at the item level.

I have tried to make the profit center mandatory for a particualr company code:-

1.Sales - Item and double click on Procedures. There select Standard Item and click on Fields. There maintain the following:-

Table::::Fld name::::::Description::::::::Screen:::Status

VBAP::::::PRCTR::::::::Profit Center::::::::PKNT:::::00

But the system allows to save the sales order.

2.Tried to use transaction varaint, but these changes would be at client level.

3. Through system enhancement:-

Program name:- SAPMV45A

Include:- MV45AFZZ

Coding done in enhancement:- USEREXIT_MOVE_FIELD_TO_VBAP.

The system displays an error message but allows to save the document.

Please suggest .

Regards

Aadesh Kamat

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

you are assigned wrong status group 00

VBAP::::::PRCTR::::::::Profit Center::::::::PKNT:::::01

Assign 01 or 02 or 03

kapil

Former Member
0 Kudos

Hi Kapil,

I have tried the above mentioned statuses, still the system allows me to save the document. Please suggest.

Warm Regards

Aadesh Kamat

Former Member
0 Kudos

Hi Aadesh

You can try with incompletion log. Create in OVA2.

Go to Sales - Item select the required procedure and add the table and field.

Former Member
0 Kudos

Hi,

Kindly check assignments of in completion procedure to the item categories

Define in completion procedure for SALES - ITEM

include table & profit center field,screen field & status

Assign same procedure to item category which you determining in sales order

It should work I just tested in my system I assigned status group 02 and it working and showing in incomplete log of order

Kapil

Former Member
0 Kudos

Hi Kapil,

Thanks for your prompt reponse.

It is showing in incompletion log in my system too, but i am able to save the document, the requirement is i should not be able to save the document until the user enters the profit center.

Regards

Aadesh

Edited by: aadesh123 on Jun 17, 2011 10:32 AM

Former Member
0 Kudos

Hi,

There is no standard way to stop this as you want.

But even though you save and if user try to do delivery or billing it will not allow as system will give massage DOCUMENT IS INCOMPLETE.

still you want it system should not save it then find any user exit and apply which can make it mandatory.

kapil

Former Member
0 Kudos

Hi Kapil ,

Thanks for your response, can you suggest some user exits.

Regards

Aadesh Kamat

Former Member
0 Kudos

Hi,

Use the same user exit and try writing the same logic in

FORM USEREXIT_SAVE_DOCUMENT_PREPARE

The logic should be somthing like:

if company code = 'XXXX'
if vbap-prctr = ''.

message e000 with 'Profit Center is mandatory'

endif.
endif.

Regards,

Amit

Edited by: Amit Iyer on Jun 17, 2011 2:36 PM

Former Member
0 Kudos

Hi Aadesh,

Try with this go to VOV8 select your document type and there in tranction flow view there is one check box incomplet messages,check this if the document is incomplet system will not allow to save the document.

hope it will solve your problem.

Thanks

Vinayak

Edited by: vinayak4all on Jun 17, 2011 11:45 AM

Answers (0)