cancel
Showing results for 
Search instead for 
Did you mean: 

Costcenter must be mandatory before SC save

Former Member
0 Kudos

Hi Experts,

we have a scenario where we have to make costcenter as mandatory before we save a SC

as of now system is allowing us to save even with out costcenter

i found the BADI BBP_DOC_CHECK_BADI to implement the above scenario but i want this to be completed by setting any message class

Kindly suggest is there any message class which can fit this requirement or else BADI will be preferable

regards

subbu

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Final solution is you have to go with BADI itself

Muthu,alam thanks for your cooperation

Former Member
0 Kudos

Hi Subbus,

I have the same requirement and was lead to using the same BAdI. But i'm still new to implementing BAdIs, how do i go about using this BAdI? Any information would be very helpful. Thanks.

former_member183819
Active Contributor
0 Kudos

Hi Subhu

If you dont order material as direct, i.e account assignment any one (Cost center is mandatory)

go to Accoutn assignment folder of your sc

cost center

right hand side Delete thrash will be there , press Thrash

immediately system will throw an error message

no accounting assignment exists.enter accounting assignment

error in accounting assignment

SAP SRM validates accounting assignment data in SC.

do you want validate account assignment data validates ? or cost center validateds?

br

muthu

Former Member
0 Kudos

hi muthu,

i agree to your point when we clicl on delete icon under cost Assignment system shows the message "No account assignment exists. Enter an account assignment" but this is a warning message which we are getting here ,system is allowing me to save the SC.

can you tell me how to make the same message as Error and so that system will not allow to save the SC

regards

subbu

former_member183819
Active Contributor
0 Kudos

check this table

BBPV_PDMSG

for bpp_pd - 008

bbp_822

what is the entry for this value in your system

Former Member
0 Kudos

Hi muthu,

there are no entries in the table for below applicaiton area.

bpp_pd - 008

bbp_822

do i need to maintain that? can you let me know what is the exact entry please

regards

subbu

former_member183819
Active Contributor
0 Kudos

how come in your system warning ?

let us wait for others reply

Former Member
0 Kudos

Ok we will wait for others.

R u having any entires with same application area in your system?if so what are they?

regards

subbu

Former Member
0 Kudos

Hi Muthu,

i have gone through the path spro-> srm> srm server> cross apps--> message control.

i did not find any entry here too.Do you have any entry in your system?

regards

subbu

former_member183819
Active Contributor
0 Kudos

NO

do check describe procureemnt . spl request. clear cost center and order let us eee

Former Member
0 Kudos

muthu,

its allowing me to save for describe requirement,internal goods/services, MDM catalog also

How come the entry BBP_PD--008 is there in your system?

i have checked the same settings in dev,Qua,Prd the settings are same

regards

subbu

former_member183819
Active Contributor
0 Kudos

hi buddy

all your test error are in se91 - bbp_pd 008 see

Former Member
0 Kudos

Hi Subbhu,

i have gone through the path spro-> srm> srm server> cross apps--> message control.

i did not find any entry here too.Do you have any entry in your system?

{ please make ur entry there and chnage the default from warning to Error.}

also have a look at table T77OMATTUS making an attribute mandatory.

i still belivve you r requirement would be simple to do it through BADI . Craete you own message class and populate the message.

Former Member
0 Kudos

muthu,

i need to clarify 2 questions from you

1) which one is effective? an entry in the table or else the entry in se91

2) in se91 i can see the message no. but why system is allowing us to save SC even if cost center is not there

regards

subbu

Former Member
0 Kudos

Hi Alam,

do you have entry in table as suggested by muthu

regards

subbu

Former Member
0 Kudos

Hi,

i have maintained an entry in BBPV_PDMSG and also in message control.

still i am able to save SC.it is not showing any error.

If i am missing any steps kindly let me know

regards

subbu

former_member183819
Active Contributor
0 Kudos

please raise to SAP . it is strange .

is it describe procurement?

send me all sc data with PO screeens.

br

muthu

Former Member
0 Kudos

HIi Muthu,

Yes its describe requirement

i have sent the screen shots to u

regards

subbu

former_member183819
Active Contributor
0 Kudos

Hi Subbu

what is the error in rz20 since i could see your cart error in status.

rz20 explains you waht is the error in detail . update me.

is it cost center validation?

abd keep post to SAP also

br

muthu

Former Member
0 Kudos

Hi Muthu,

i cant find the SC in RZ20. i can see a different number over there but not the one i have created.

i have posted the problem to SAP.(awaiting reply)

regards

subbu

former_member183819
Active Contributor
0 Kudos

update SAP results to us also

any error in application monitor via web.

sc error log

Former Member
0 Kudos

hi muthu,

please find the comments given by SAP

1. Yes, BBP_PD 047 and BBP_PD 822 are displayed as warning message in

SRM per standard system design.

2. Yes, since these messages can represent different kind of errors in

SRM, coming from R/3 backend, the customizing "Influence Message

Control" doesn't have effect in this case. A BADI would be a good

solution.

3. With the BBP_DOC_CHECK_BADI, you can check the accounting information

and perform a strict accounting verification, performing an

exception when necessary.

regrads

subbu

Former Member
0 Kudos

Hi Subbu,

I am not clear what you want. but if it is that you want to make cost center as mandatory without implementing the BBP_DOC_CHECK_BADI , then please check table T77MOATTR or something like that as i do not have system right noww, there you can make attributes for a scenario as mandatory.

Once that attribute is mandatory it has to be maintained for the shopping cart before to be saved.

cheers

Iftekhar Alam

Former Member
0 Kudos

HI Alam,

the table T77OMATTR has the option to make the attribute mandatory but after changes also it is allowing me to save SC

regards

subbu