SAP Function BAPI_TSW_PART_GETLIST - Get list of TSW Partner Data for specified selections

Parameter Reference Type Length Default Optional Text
MAXROWS BAPIF4A-MAX_ROWS I 4 200 Maximum number of lines of hits

Parameter Reference Length Optional Text
EXTENSIONOUT BAPIPAREX 990 X Ref. structure for BAPI parameters EXTENSIONIN/EXTENSIONOUT
PARTNERDATA BAPITSWPART08 266 X TSW Partner Role master data (IS-OIL TSW)
RANGE_COMMONPARTNERID BAPITSWPART05 23 X TSW Partnerrole Common Partner ID Range
RANGE_CUSTOMER BAPICUSTOMER_IDRANGE 23 X BAPI Interface Structure for Ranges of Customer Master ID
RANGE_LOCATION BAPITSWLOC02 23 X TSW Location range for selection of entries
RANGE_PARTNERIDBYTS BAPITSWPART06 63 X TSW Partnerrole Partner ID by Transport System Range
RANGE_PARTNERTYPES BAPITSWPART04 7 X TSW Partnerrole Object Type Range
RANGE_PLANT BAPITSWPART09 11 X Ranges table for organizational unit plant
RANGE_ROLEDIFFERENTIATORS BAPITSWPART03 43 X TSW Partnerrole Differntiator Range
RANGE_ROLETYPES BAPITSWPART02 15 X TSW Partnerrole Type Range
RANGE_STORAGELOCATION BAPI_PHYSINV_STGE_LOC_RA 11 X BAPI Communication Structure: Range for Storage Location
RANGE_TRANSPORTSYSTEM BAPITSWTS01 23 X TSW Transportsystem range for ID
RANGE_VENDOR BAPITSWPART07 23 X BAPI Selection Structure: Vendor
RETURN BAPIRET2 548 X Return parameter

Functionality
This method gets a list of TSW partner roles that meet the specifiedselection parameters.

Notes
A partner role is defined in the master data record used to define 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 defines the activities which a business partnercarries out within the TSW supply chain, transport systems and/orlocations must be assigned in the master data record of each partnerrole.

Structure
Each partner object (vendor, customer, plant, storage location)corresponds to certain pre-defined role types. The role type, in turn,determines which differentiator object (transport system and/orlocation) is valid for the partner role being defined. A role type andthe associated 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 supply chain as acarrier for transport system XYZ , enter the following key fields.
VENDORID ABC
ROLETYPE TSW001
ROLETYPEDIFFERNTIATOR XYZ
Example 2
To check whether the plant/storage location ABCD/EFGH is a supplyingPlant for transport system UVW at location XYZ, enter the following keyfields.
PLANTID ,,,,ABCD
STORAGELOCATIONID ,,EFGH
ROLETYPE ,,,,TSW003
ROLETYPEDIFFERNTIATOR UVW XYZ

Note
As the role type differentiator is a composite of transport system IDand/or location ID, the first 10 characters of the field receive theTransport System ID and the last 10 characters ofthe field contain the Location ID.

Description
MAXROWS
This table allows you to add to the export parameters of the BAPIwithout modifying it.
Withthis table you can:

  • Adapti existing SAP database tables by

  • Adding customer-specific fields to SAP tables
    Including existing database fields
    • Include additional customer-specific database tables

    • The following BAPI table extension is available: BAPI_TE_OIJRRA.

      TSW Partner Role Master Data (IS-Oil TSW)

      Description

      Fields
      CUSTOMERID
      VENDORID
      PLANTID
      STORAGELOCATIONID
      ROLETYPEE
      PARTNERTYPETEXT
      ROLETYPEDIFFERNTIATOR
      TRANSPORTSYSTEM
      TRANSPORTSYSTEMNAME
      LOCATIOND
      LOCATIONNAME
      PARTNERTYPE
      COMMONPARTNERID
      PARTNERIDBYTS
      TICKNUMBERRULE
      BLOCKINGINDICATOR
      DELTIONINDICATOR

      Description
      The range for common partner IDs used for a Trader's and Scheduler'sWorkbench partner.
      Sign
      Option
      COMMONID_LOW
      COMMONID_HIGH

      Description
      The range for a customer used as a Trader's and Scheduler's Workbenchpartner.
      Sign
      Option
      LOW
      HIGH

      Description
      The Trader's and Scheduler's Workbench (TSW) location range for which aTSW partner role is used.

      Fields
      Sign
      Option
      LOCATIONID_LOW
      LOCATIONID_HIGH

      Description
      The Trader's and Scheduler's Workbench partner role ID, by transportsystem range.
      Sign
      Option
      TSPARTNERID_LOW
      TSPARTNERID_HIGH

      Description
      The range for partner types used for a Trader's and Scheduler'sWorkbench partner.
      Sign
      Option
      PARTNERTYPE_LOW
      PARTNERTYPE_HIGH

      Description
      The range for role types used for a Trader's and Scheduler's Workbenchpartner.
      Sign
      Option
      DIFFERENTIATOR_LOW
      DIFFERENTIATOR_HIGH

      Description
      The range for role types used for a Trader's and Scheduler's Workbenchpartner.
      Sign
      Option
      ROLETYPE_LOW
      ROLETYPE_HIGH

      Description
      Range for the storage location used as a TSW Partner (together with theplant).
      Sign
      Option
      LOW
      HIGH

      Description
      The Trader's and Scheduler's Workbench transport system ID range forwhich a Trader's and Scheduler's Workbench partner role is defined.

      Fields
      Sign
      Option
      TRANSPORTSYSTEMID_LOW
      TRANSPORTSYSTEMID_HIGH

      Description
      The range for a vendor used as a Trader's and Scheduler's Workbenchpartner.
      Sign
      Option
      LOW
      HIGH

      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 fields.

      Value range

      Type ID ,,,,Number ,,Message
      E ,,OD ,,675 ,,,,You are not authorized to run thisprogram
      E ,,OIJ_IF ,,012 ,,,,Partner Role &1 for Obj. &23 and
      ,,,,,,,,Differentiator &4 does not exist
      W ,,OIJ_IF ,,011 ,,,,Partner Role &1 for Obj. &23
      ,,,,,,,,and Differentiator &4 marked forDeletion