Main menu
Member section cover

BLOG

ERPCorp SAP FICO Blog

Font size: +

Trading Partner Required Part II

SAP Press Salehttps://shrsl.com/43z0d

 

 

Make Trading Partner a Required Entry Part II

By Ashish Sampat

Ashish Sampat

This is Part II of Make Trading Partner a Required Entry Part I

 

Can You Make Trading Partner Required While Posting Financial Documents?

 

You have three alternatives:

 

1) Field Status Group

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)

  • Transaction OBC4 – Field Status variants - GL Account level

  • Transaction OB41 – Field Status Groups - Posting Key level

 

2) Document Type

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.

 

3) FI Validation

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

Prerequisite:
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

Check:
If Trading Partner is blank
Message:
Return an error with appropriate message

The implication of this validation: the user cannot move forward with this transaction until trading partner is entered.

 JohnJanet

Conclusion

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.

 

Figure1

Figure 1: OB28 – FI Validation for missing Trading Partner for GL Accounts, Users and Document Types

Prerequisite:
BSEG-HKONT IN ZGL_TRAD_PART_REQD AND

BKPF-USNAM IN ZUSR_TRAD_PART_REQD AND

BKPF-BLART IN ZDOC_TYPE_TRAD_PART_REQD

Check:
BSEG-VBUND <> ''

Message:
Error Z1 032 Trading Partner is required for GL

 

Figure2
Figure 2: GS01 / GS02 – Create / Maintain Set to define GL Accounts checked for Trading Partner

 

Figure3
Figure 3: GS01 / GS02 – Create / Maintain Set to define Users to be checked for Trading Partner

 

Figure4
Figure 4: GS01 / GS02 – Create / Maintain Set to define Document Types to be checked

 

This is Part II of Make Trading Partner a Required Entry Part I

 

Reference:

SAP Note 1397715 - FI - Adding VBUND to the coding block

 

Conf CTA

 

 

Glossary

Document Type

 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

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

 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.

 

Video Blog: Case Study - How Lundin Eagle Mine tra...
Trading Partner Required Part I
 

Comments 3

Guest
Guest - KrishRaju on Friday, 05 August 2016 08:39

Hi Ashish,

Thanks for the detailed excellent document. Very useful. I got this link wile searching for an issue with field status...Kittu

Hi Ashish, Thanks for the detailed excellent document. Very useful. I got this link wile searching for an issue with field status...Kittu
Guest
Guest - sri on Sunday, 15 October 2017 23:38

Hi Ashish

very good document

Hi Ashish very good document
Guest
Guest - Ameen on Wednesday, 16 May 2018 07:42

Hello,
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.

Ameen

Hello, 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. Ameen
Already Registered? Login Here
Guest
Tuesday, 21 January 2025

Captcha Image