Skip to Content

Restrict Inter company Transactions for a given User ID

Hi All,

Scenario - Given user ( say USB2) should not be allowed to post an inter company entries either by MIRO , FB01 for company codes 1000 & 1001

however the user is provided access to post independent transactions ( NOT INTER COMP TRANS) in C.Code 1000 & 1001

In the above scenario I have two queries:-

1. Do you suggest validation approach ( i.e. GGB0) or any other approach ?

2. When I tried validation approach , validation rule is not working

Validation Rule

Line Item

Prerequisite

BKPF-BUKRS = 1000' OR BKPF-BUKRS = '1001' AND BKPF-BVORG <> ' '


AND BKPF-USNAM = 'USB2'

Check

BSEG-HKONT = '999000' OR BSEG-HKONT = '999001'

Message

Message Type "E"

Message Number "007"

Rds

Sanjai

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    Apr 04, 2016 at 08:10 AM

    Hi Sanjai

    Try this

    Try below validation

    Validation Rule

    Full Document

    Prerequisite

    (BKPF-BUKRS = 1000' OR BKPF-BUKRS = '1001') AND BKPF-USNAM = 'USB2'


    Check

    BSEG-VBUND = ' ' (BLANK) {i.e. Trading Partner = Blank)

    Message

    Message Type "E"

    Message Number "007

    After this validation, activate it in OB28 and run program RGUGBR00 selecting

    Application Area = FI, Call Up Point = *,

    Regenrate Main Program

    All Other options wherever you see the term "Validation"

    Ajay M

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 01, 2016 at 07:11 AM

    Hi Sanjai,

    You can achieve it by creating validation for the GL for the user id.

    Prerequisite


    BKPF-BUKRS = 1000' OR BKPF-BUKRS = '1001' AND SYST-UNAME = 'USB2'


    Check

    BSEG-HKONT = '999000' OR BSEG-HKONT = '999001'

    Message

    Message Type "E"

    Message Number "007"

    After create it, you have to activate for the co.code in OB28.

    Regards,

    Mukthar

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Sanjai,

      Define validation as shown below:

      Prerequisite


      SYST-UNAME <> 'USB2'


      Check

      BSEG-HKONT = '999000' OR BSEG-HKONT = '999001'

      Message

      Message Type "E"

      Message Number "007"

      After create it, you have to activate for both the co.codes in OB28.

      Regards,

      Mukthar

  • Apr 01, 2016 at 07:33 AM

    Hello Sanjai

    Please verify the Check statement. Error message will be displayed if prerequisite is met and check is "NOT" fulfilled. If GL accounts 999000 and 999001 are for intercompany posting as per your check statement it is fulfilled and hence error message is not displayed.


    Try below validation

    Validation Rule

    Document header

    Prerequisite

    BKPF-BUKRS = 1000' OR BKPF-BUKRS = '1001' AND BKPF-BVORG <> ' '


    Check

    BKPF-USNAM <> 'USB2'

    Message

    Message Type "E"

    Message Number "007

    Regards

    Aniket

    Add comment
    10|10000 characters needed characters exceeded