Fonction SAP BAPI_TSW_PART_EXISTENCECHECK - Check if TSW Partner Role exists

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CUSTOMERID BAPITSWPART01-CUSTOMERID C 10 Customer number
PLANTID BAPITSWPART01-PLANTID C 4 Plant
ROLETYPE BAPITSWPART01-ROLETYPE C 6 OIL-TSW: Role type
ROLETYPEDIFFERNTIATOR BAPITSWPART01-ROLETYPEDIFFERNTIATOR C 20 OIL-TSW: Role differentiator
STORAGELOCATIONID BAPITSWPART01-STORAGELOCATIONID C 4 Storage location
VENDORID BAPITSWPART01-VENDORID C 10 Account number of vendor or creditor

Paramètre Reférence Long. Facultatif Description
RETURN BAPIRET2 548 Return parameter

Functionality
This method checks the existence of a TSW partner role.

Notes
A partner role is defined in the master data record and defines abusiness partner. The partner role includes information about theactivities that the business partner can carry out and where thebusiness partner carries out these activities. Stockholding objects,such as plants and storage locations, can also be defined as partnerroles.
A partner role is defined using existing SAP System master data records,such as a vendor, customer, or plant. Because the partner role definesthe activities which a business partner carries out within the TSW
supply chain, transport systems and/or locations must be assigned in themaster data record of each partner role.

Structure
Each partner object (vendor, customer, plant, storage location)corresponds to certain pre-defined role types. The role type, in turn,determines which differentiator (transport system and/or location)object is valid for the partner role being defined. A role type and theassociated differentiator is assigned when creating the master datarecord of each partner role.
The following graphic illustrates the relationship between partnerobject, role type, and differentiator when creating a TSW partner role.
Partner Object Role Type ID Desciption Differentiator
Vendor TSW001 Carrier Transport System
Vendor TSW002 Shipper Transport System
Vendor TSW003 Supplier Transport System &Location
Plant TSW003 Supplier Transport System &Location
Plant/Storage Loc. TSW003 Supplier Transport System &Location
Vendor TSW004 Suppl.in Pipe Transport System
Customer TSW005 Receiver Transport System &Location
Plant TSW005 Receiver Transport System &Location
Plant/Storage Loc. TSW005 Receiver Transport System &Location
Customer TSW006 Rec. in Pipe Transport System
Vendor TSW007 Consignee -
Vendor TSW008 Tanker Transport System &Location
Customer TSW008 Tanker Transport System &Location
Vendor TSW009 Inspector Location
Plant/Storage Loc. TSW010 Breakout S/L Transport System &Location

Examples
Example 1
To check whether the vendor ABC exists within the TSW Supplychain as aCarrier for Transport Systen XYZ , complete the key fields as follows.
VENDORID ABC
ROLETYPE TSW001
ROLETYPEDIFFERNTIATOR XYZ
Example 2
To check whether the plant/storage location ABDC/EFGH is a supplyingplant for transport system UVW at location XYZ, enter the key fields asfollows.
PLANTID ABCD
STORAGELOCATIONID EFGH
ROLETYPE TSW003
ROLETYPEDIFFERNTIATOR UVW XYZ
Note
The role type differentiator is a composite of the transport system IDand/or the location ID. The first 10 characters of the field receivecontain the Transport System ID and the last 10characters of the field contains the Location ID.

Description
CUSTOMERID

Description
Plant Number

Definition
A TSW partner role type determines the business function that can becarried out by a partner.

Use
At the present time, the following role types are recognized inconnection with the primary distribution process:

  • TSW001 - Carrier

  • TSW002 - Shipper

  • TSW003 - Supplier

  • TSW004 - Supplier in pipe

  • TSW005 - Receiver

  • TSW006 - Receiver in pipe

  • TSW007 - Consignee

  • TSW008 - Tanker

  • TSW009 - Inspector

  • TSW010 - Breakout storage location - locational

  • TSW011 - Breakout storage location - notional

  • Some of the available TSW role types can be used according to the rolepartner types.


    Role Partner Type : Customer

    • TSW005 - Receiver

    • TSW006 - Receiver in pipe

    • TSW008 - Tanker

    • Role Partner Type : Vendor
      • TSW001 - Carrier

      • TSW002 - Shipper

      • TSW003 - Supplier

      • TSW004 - Supplier in pipe

      • TSW007 - Consignee

      • TSW008 - Tanker

      • TSW009 - Inspector

      • Role Partner Type : Plant
        • TSW003 - Supplier

        • TSW005 - Receiver

        • TSW010 - Breakout storage location - locational

        • TSW011 - Breakout storage location - notional

        • Role partner type : Plant / storage location
          • TSW003 - Supplier

          • TSW005 - Receiver

          • TSW010 - Breakout storage location - locational

          • TSW011 - Breakout storage location - notional
          • Description
            Partner roles are defined with a particular role type and are associatedwith a transport system, location, or transport system-locationcombination.

            Description
            STORAGELOCATIONID

            Description
            VENDORID

            Description
            Return parameter
            INCLUDE BAPI_TABLE
            For information on the meaning of the individual fields in the
            structure, see the corresponding data element documentation for the
            individual fields.

            Value range

            Type ID Number Message
            E OD 675 You are not authorized to run this program
            S OIJ_IF 009 Partner Role &1 for Object &2 &3 andDifferentiator &4 exists
            E OIJ_IF 010 Keyfields not completely specified
            W OIJ_IF 011 Partner Role &1 for Obj. &2 &3and Differentiator &4 marked for Deletion
            E OIJ_IF 012 Partner Role &1 for Obj. &2 &3 andDifferentiatotor &4 does not exist