cancel
Showing results for 
Search instead for 
Did you mean: 

GGB0 Validation for Plant in FB60 and FB65

sumedh99
Explorer
0 Kudos
464

Hello All,

I want to make plant field mandatory in FB60 and FB65.

Client doesnt want to do this through field status OBC4 config.

I wrote a validation rule for the same (Please see the attached image)

The validation error displays when I don't enter plant. But the error persists even after entering plant.

Please suggest a better validation rule or suggest if I am doing anything else wrong.

Thanks!

validation-rule.png

plant-error.png

plant-error-even-after-entering-value.png

Accepted Solutions (0)

Answers (3)

Answers (3)

e_enginyilmaz
Participant
0 Kudos

Hello sumedh99,

Kindly check your validation rule. It states the value of the field KOART = 'K' but you're entering the plant in G/L item. That why the system issues the error.

Kind regards,

Engin

sumedh99
Explorer
0 Kudos

Thanks for the reply.

Can you suggest a better validation rule?

e_enginyilmaz
Participant
0 Kudos

I'd approach the process by the account type not the TCode. The user most probably wants to see the plant in Non-PO invoices for reporting purposes.

-If the field is important for vendor line items, then check the tabs of FB60 and try entering it in the vendor line items.

-If the field is important for G/L items then your validation rule must be KOART = 'S'.

-If the field is important for vendor line items and you can not enter it in FB60 then you can try to enter it in the G/L items and populate it to vendor items via substitution (Callup Point : Complete document).

sanilbhandari
Product and Topic Expert
Product and Topic Expert
0 Kudos

The field has to be at least optional for the value to be updated. I am not sure on the rationle why your customer does not want it to handle through a standard configuration, any specific issue?

sumedh99
Explorer
0 Kudos

I have already made the field optional for the G/L in obc4.

If i make the field required from OBC4 then system gives validation error wherever the G/L is used in any tcode. Even in MIRO.

They want plant field mandatory in specific tcodes only.

So they want to restrict it to FB60 and FB65.

pankajypatil
Active Participant
0 Kudos

Hi

You have to make the filed plant optional in the field status variant in OBC4, then only the system will allow you to update it. The filed status variant is at GL level when you try to post then it checks the settings whle parking or in simulation you may not see any error.

sumedh99
Explorer
0 Kudos

Hello Pankaj,

I have already made plant optional for the specific G/Ls field G004 .

But the error still persists.