You have three alternatives:
Field status groups can be used to make certain fields required, optional, display, or suppressed with field status definition, however trading partner is not available in field status group.
Trading partner field VBUND, data element RASSC can be enabled in field status group by adding it in table TCOBF Coding Block: Assignment of Modif and Field Names from COBL. With this change, field status groups can be leveraged to influence Trading Partner (suppressed / required / optional). However, this option is not recommended by SAP. It may create inconsistencies while posting FI documents (SAP Note 1397715 “Adding VBUND to the coding block”2)
Document types can be configured so that trading partner is available for input. The following fields need to be activated in document type:
Transaction OBA7 – Document Types Table T003
o Partner Company can be input T003-XMGES
o Cross-company T003-XGSUB
This setup will open up trading partner at the document level. However, it does not make trading partner a required entry.
FI validation can prevent document postings where trading partner is missing for certain GL accounts. A validation in FI has three sections: Pre-requisite, Check and Message. These sections are explained below with example.
- Transaction OB28 – Financial Accounting validation configuration transaction
- Transaction GS01 – Create set master data transaction, generally not transported
- Transaction GS02 – Change set master data transaction, generally not transported
For certain set of accounts defined in set ZGL_TRAD_PART_REQD – figure 2
For certain sets of users defined in set ZUSR_TRAD_PART_REQD – figure 3
For certain document types defined in set ZDOC_TYPE_TRAD_PART_REQD – figure 4
If Trading Partner is blank
Return an error with appropriate message
The implication of this validation: the user cannot move forward with this transaction until trading partner is entered.
With the shortcomings of Field Status Group and Document Type options, these two options are generally not preferred.
FI validations are easy to configure and maintain. They generally do not require ABAP programming unless a user-exit or table-lookup are needed.
A simple validation like the one shown in this example can ensure data consistency and accuracy.
Figure 1: OB28 – FI Validation for missing Trading Partner for GL Accounts, Users and Document Types
BSEG-HKONT IN ZGL_TRAD_PART_REQD AND
BKPF-USNAM IN ZUSR_TRAD_PART_REQD AND
BKPF-BLART IN ZDOC_TYPE_TRAD_PART_REQD
BSEG-VBUND <> ''
Error Z1 032 Trading Partner is required for GL
Figure 2: GS01 / GS02 – Create / Maintain Set to define GL Accounts checked for Trading Partner
Figure 3: GS01 / GS02 – Create / Maintain Set to define Users to be checked for Trading Partner
Figure 4: GS01 / GS02 – Create / Maintain Set to define Document Types to be checked
SAP Note 1397715 - FI - Adding VBUND to the coding block
The document type is a key that is used to classify accounting documents and distinguish between business transactions to be posted. The document type is entered in the document header and applies to the whole document.
Field status group is used to manage the fields of the required object. If field status group is defined for a general ledger master then it's defined to manage the fields to be used while creating the master data.
FI validations allow you to create your own Boolean statements without making any changes to the standard system. A validation can consist of up to 999 steps. You can therefore validate data against any number of Boolean statements before the data is posted.
Thanks for the detailed excellent document. Very useful. I got this link wile searching for an issue with field status...Kittu
Good article... I have used the same validation for the Trading Partner and Created Set for GL Accounts.
Below are the issues which i faced while doing this validation:
1. Multiple line item it fails to validate.
2. Only 1st line item gets validated in FV50.
3. 2nd Line item i need to get into the line item to check the validation. If i get into line item then validation works but not at the entry level.
4. After entering 1st line item trading partner, simulation option vanishes. unable to simulate to check for the next line items.
It will be great if you can help me out in resolving this issue.