cancel
Showing results for 
Search instead for 
Did you mean: 

Validation - can someone help me?

Former Member
0 Kudos

Dear all,

i want to make a validation in SAP FI.

There should be a test, when the accountant is posting e.g. on account 418000 and he doesnt fill in the field Partner, there should come a message...

but i dont know where to start in the validation sektor.

can someone help me?

thanks

Accepted Solutions (1)

Accepted Solutions (1)

former_member182098
Active Contributor
0 Kudos

Hello,

If you do not want to use that field, then hide it in field status of posting key OB41.

Otherwise, you can write validation in GGB0 and assign the same in OB28.

Regards,

Rav

Former Member
0 Kudos

Thanks, but there are 2 kinds of problems:

there are account numbers, where i dont want to have partners and there are account numbers, where there only have to be postings with partner.

would you do this all in the field groups?

iklovski
Active Contributor
0 Kudos

Hi,

Create two different status groups (OB41). Assign these G/Ls to different field status group (FS00): the one with a partner and one without.

Regards,

Eli

Former Member
0 Kudos

hi thanks,

but the thing is, in ob41 i haven't the field partner to choose...

you know what i mean?

Former Member
0 Kudos

How do i make the validation, has someone an example?

there are rules, substitituion and validation.

i made something like this:

Test:

BSEG-SAKNR = '418010'

AND

BSEG-VBUND <= '0'

BSEG-VBUND = '1000'

but i dont know where i should go one, so it doesnt work.

thanks a lot

former_member182098
Active Contributor
0 Kudos

If the field itslef is not available in OB41, then the question of field appearing will not arise.

Because the line item field status is being controlled from OB41.

Regards,

Ravi

Former Member
0 Kudos

i think we are talking against each other.

when iam looking in ob 41, then i see general data, konsolidation data etc.

but in this rows, there is nowhere the partner, so i cant so, must, can, hide...

you know what i mean?

the thing is: there are accounts, where there didnt have to be a partner, and there are accounts, where there only have to be partner.

do you have a email, so i can send you a screenshot?

Former Member
0 Kudos

Hi,

I presume you have one big group of accounts you do not want them to enter Parterner and also another goup of accounts you want them to enter parterner. What you do is you build two sets for theses two groups of accounts. Then you create two validation steps. The first step: prerequisite BSEG-HKONT IN set1, check BSEG-VBUND = "". The second step: prerequisite BSEG-HKONT IN set2, check BSEG-VBUND <> ""

Regards,

Ming

Answers (1)

Answers (1)

Former Member
0 Kudos

I had a case where users could use an account and leave the fund field blank. I created a "Line Item" validation in Financial Accounting as follows...

Validation Name = NOFUND

Application area = FI

Callup point = 2

Message ID = ZFI

Step 001

Prerequisite = (SYST-TCODE = 'FV50' AND BSEG-KOART = 'S' )

Check = BSEG-GEBER <> ' '

Message Type = E

Message Number 030

Message Text = "The Fund has been left blank. Please correct your entries"

The error message is displayed if the prerequisite is met and the check is NOT fulfilled.

So when a user uses transaction FV50 to create an accounting document and the account type equals S for GL accounts, the check is performed. If the GEBER (fund) field is left blank, the check is not fulfilled because the check wants the fund field populated.

I created message number 030 (error message) to say specifically what I wanted it to say.

It seems you may be able to create a similiar validation with a prerequisite of the account 418000 and using a check on BSEG-VPTNR which is Partner to make sure it is not left blank. I am not sure if this is the same partner field that you are referring to.

I used the following path in the IMG to set up the validation under Financial Accounting...

Financial Accounting, Special Purpose Ledger, Tools, Maintain Validation/Substitution rules, Maintain Validation.

I hope this helps some.