cancel
Showing results for 
Search instead for 
Did you mean: 

OB28

Former Member
0 Kudos

Hello,

I had already created Validation rule for Company Code X by Tcode OB28.

It's working fine.

Now created New Company code Y.

Created Validation rule for Company code Y by copying from Company Code X by OB28.

Now when I change any rule for Company Code X then it affects for Company code Y also.

So it gets overnights rule of Y Company.

I don't want to change any rule for Y company when I change any rule for Company Code X.

So why all change affects for both the company code.

Regards

Accepted Solutions (0)

Answers (1)

Answers (1)

Aniket_D
Active Participant
0 Kudos

Hello Swati

You can add company code (use set) in prerequisite of a particular validation rule in transaction GGB0.

Regards

Aniket

Former Member
0 Kudos

Thanks,

Do we really need Company code in prerequisite as we are creating all rules for all company code..

like ,

Company code X --- > Line Items ---> Valid --->Prerequisite, Check & Messages

Company Code Y ---> Line Items ---> Valid ---> Prerequisite, Check & Messages

So Company code is Main Criteria then why need company code in prerequisite.

Regards

Aniket_D
Active Participant
0 Kudos

Hi Swati

As I understand you wanted to change particular rule, so i suggested you to change prerequisite of that rule.

When you assign company code to call point and validation in OB28 all rules under that particular call point (document header / line item / complete document) and validation folder are application for that company code. If you want to skip any rule within validation folder then you can hange prerequisite in GGB0 accordingly.

For better understanding of your requirement / issue please share screenshots.

Regards

Aniket

Former Member
0 Kudos

In above screenshot , There are two company code.

Now even if I change Description of One company , system  changed for another company also.

You can see in above, description are same. Actual I have change for company 'RI01' only.

Same way if I change validation for Company code 'RI01' then system changed for Company code 'TC01' also.

FYI,  Step No. are same for both company.

Regards

Aniket_D
Active Participant
0 Kudos

Hello Swati

What do you mean by chaning description of one company code. The description displayed in OB28 is description of folder name "VALID". Call point 2 is line item folder.

Please check in GGB0>Financial accounting> Line item> Valid folder will be available there. Check description of folder.All rules defined under valid folder are applicable to company codes assigned in OB28. Now if you want to modify any rule then you can change prerequisite in GGB0 accordingly.


P.S. If issue is resovled, please close the thead.

Regards

Aniket

Former Member
0 Kudos

Description Means , You can see in above screen "Description"heading with "Validation for company code XXXXX"

In above screen you can see two different Company code as "RI01" & "TC01" for  Call Point 2.

I am creating New steps by OB28.

Now I have step 001 for company code "RI01"  and step 001 for Company code "TC01".

I want Prerequisite and Check detail different for both company  as per below screenshot.

In GGB0 , there is no company code.

Aniket_D
Active Participant
0 Kudos

Hello Swati

You can write two seperate steps in GGB0, one each for company code RI01 and TC01. Company code is available in GGB0. You need to select "Accounting document header" option under table fields. Refer below screenshot.

Thank you.

Regards

P.S. Please close the thread by if your issue is resovled.

Former Member
0 Kudos

Thanks a lot Aniket,

In simple word , If I have One validation rule created for Company code RI01 IN ob28.

Now if I want to create same validation rule for Company code TC01.

e.g  Following screen shot , validation rule created for Company code 'RI01'

Now same rule I want to create for Company code TC01 with same prerequisite but different Chek.

In Check , It should be 'BSEG-BUPLA = 'TC01' AND BSEG-SECCO='TC01'

Aniket_D
Active Participant
0 Kudos

Hi Swati

Validation rule is triggered and message is displayed when " Prerequisite is met and Check fails" . Based on your screenshot if transaction key is WIT, transaction code is FB60 and if company code is other than RI01 or TC01 an error message should be displayed. For this logic you can write prerequisite and check as mentioned below.

Prerequisite statement BKFP-TCODE = 'FB60' AND BSEG-KTOSL = 'WIT'

Check statement (BSEG-BUPLA='RI01' AND BSEG-SECCO=RI01) OR ((BSEG-BUPLA='TC01' AND BSEG-SECCO=TC01).

Regards

Aniket


P.S. Please close the thread by if your issue is resovled.