cancel
Showing results for 
Search instead for 
Did you mean: 

Validation

Former Member
0 Kudos

Hi Experts,

I want to create a validation rule for accounting document. The logic is " for particular set of accounts if the Profit center entered is ' XXXXXX ' then system should not allow the document to be posted and display ahe error message that check the profit center.

Can any one tell me how to cinfigure the rule

Condition?

Check?

Message?

Pls. help me out.

Thanks in advance

JS

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I would like to add to the comments made by Sai.

As per my understanding of your requirement, check will be as follows:

CKECK:

BSEG-PRCTR = ' '

It means if the GL account is as mentioned and if there is some value in profit center field, then show the error message. In other words, a value cannot be entered in the profit center field for the mentioned accounts.

Assign points if useful

Regards,

Mayank

Answers (1)

Answers (1)

saikrishna_vallurupalli
Active Contributor
0 Kudos

Hi JS,

For default Profit center for particular set of accounts u can set the define the default profit center through T.code 3KEI or if u want to write the validation as follows.

Prerequisite:

if your gl accounts are continious series

BSEG-HKONT >= XXXXXX AND BSEG-HKONT <= XXXXXX

if your gl accounts are not continious series

BSEG-HKONT = XXXXXX AND BSEG-HKONT = XXXXXX

CKECK:

BSEG-PRCTR = YOUR PROFIT CENTER

MESSAGE:

put the message type E for Error message .

u can create your own message class through se91

please assign points if its useful

regards

sai krishna

saikrishna_vallurupalli
Active Contributor
0 Kudos

Hi js,

please assign the points if its usefull

Former Member
0 Kudos

Hi Sai,

Thanks for your answer but i dont want to set a Profit center as default profit center. My requirement is that if the account no in particular line is from the account set maintained and if that line is assigned with particular Profit center then system "should not" accept the entry.

js

saikrishna_vallurupalli
Active Contributor
0 Kudos

Hi js,

As per your requirement, please chenge the check field as follows, remaining fields there is no change.

CKECK:

BSEG-PRCTR <> ' '

above mening is profit center not equal to value, better take the ABAPER help

please assign the points if helpful ?

regards

Sai krishna