SCSD - Version 2
SCSD - Version 2
SCSD - Version 2
processes required in the petroleum trade with end customers, wholesalers, resellers, or service
stations. It comprises the purchase, storage, transportation, and sale of fuels and lubricants. It
contains the following functional areas:
● Interfaces (IF)
Implementation Considerations SAP S/4HANA Supply Chain for secondary distribution is an SAP Oil &
Gas add-on that uses functions from ISOil Downstream. Integration with the industry solution Oil &
Gas is guaranteed. You cannot implement SAP S/4HANA Supply Chain for secondary distribution on
its own. It must be implemented in conjunction with IS-Oil Downstream (for example, functions for
oil quantity conversion) and SAP ERP (for example, Sales and Distribution functions).
You can use this business function to activate the functions of Oil & Gas Secondary
Distribution (OGSD). With OGSD you can manage all business processes required
in the petroleum trade with end customers, wholesalers, resellers, or service
stations. The component comprises the purchase, storage, transportation, and sale
of fuels and lubricants.
Prerequisites
You have installed the following components as of the version mentioned:
Software S4SCSD
Component
Features
Tele Sales
Data Collation
Data Collation helps you to post complex logistics business processes especially for
Oil and Gas Downstream by entering only reference data (e.g. reference document,
business partner) and after-the-fact data like changed quantities for loading, sales,
and unloading. Data Collation then makes the necessary adjustments in existing
logistics documents and creates all required follow-up documents.
Interfaces
Interfaces helps you to integrate external data from partners such as depots and
haulers received via ALE or flat files. Interfaces can verify and convert received data
and then feeds it to Data Collation. By combining Interfaces and Data Collation a
high grade of automation in logistics processes can be achieved.
This process provides your customers with a steady supply of products based on
their requirements by continuously calculating and monitoring the expected material
consumption.
Contents
1. Introduction.....................................................................................................................................
2. Data Collation (DC-PAT)...................................................................................................................
2.1. PAT-DC Data Structures...........................................................................................................
2.2. PAT-DC IMG.............................................................................................................................
2.2.1. Process Automation Toolset (PAT).......................................................................................
2.2.2. General Settings...................................................................................................................
2.2.3. Data Collation Documents...................................................................................................
3. SCSD Interface...............................................................................................................................
3.1. General Settings.....................................................................................................................
3.2. Interface Control....................................................................................................................
3.2.1. Define Segment Conversion Rules.....................................................................................
3.2.2. Define Conversion Groups.................................................................................................
3.2.3. Define Interface.................................................................................................................
4. SCSD Ticket Processing..................................................................................................................
4.1. SCSD Ticket Processor definition............................................................................................
4.2. SCSD Item Category Set.........................................................................................................
4.3. SCSD Field Group...................................................................................................................
4.4. SCSD Cross Reference Types Definition.................................................................................
4.5. SCSD Business Process ID.......................................................................................................
4.6. SCSD Interface Sales Return order type mapping..................................................................
4.7. SCSD Global Control Panel Process Button Definition............................................................
5. STVARV variant maintenance........................................................................................................
1. Introduction
SCSD PAT Data Collation is the solution being used for BOL handling at Ticket. The solution comprises
of the standard Data Collation solution for automating the posting of BOL documents and a Ticket
Processing solution that is responsible for bringing the interface data and converting it to PAT reports
based on the PIN in the BOL.
1. Business Processes
The cross reference defines the Item Category Set to be posted. An Item Category Set consists of
one or more Business Process IDs which translate to an item category which than defines the
sequence of SAP transactions to be posted.
The following table shows the business process IDs defined with their corresponding PAT item
categories:
These business process IDs are used to put together a chain of these processes, called Item
Category Sets.
The following chapters showing each process flow separately. They are sorted in the sequence of
how often they have been used for customer PINs.
This process is posted on TLLP side. The process enables the inventory tracking and terminalling
fee determination. It is not for selling the product. The SD pricing setup is just for calculating
fees.
This process is posted on TRMC side. The process steps potentially posted are:
1. /PAT/METADOCS – Holds the PAT report status, creation and change record and other
meta-data associated with the document.
2. /PAT/DC_HEAD – Header data
a. /PAT/DC_HITEM – Head Item data. PAT Item category and other to be generated
document header level data (e.g. Sales Order types, Customer, Vendor, etc) are
stored here.
i. /PAT/DC_ITEM – Sub-item data. Document item level data like Material
number, volumes, plant, etc is stored at this level.
1. /PAT/DC_RBMAT – Material transfer item components for blending
are stored in this table.
ii. /PAT/DC_SDDOCS- Sub-item sales document data. All the referenced and
posted sales documents like Contract, orders, deliveries, etc are stored in
this table.
iii. /PAT/DC_MMDOCS- Sub-item Purchase document data. All the referenced
and posted MM documents like Contract, orders, etc are stored in this table.
iv. /PAT/DC_PARTNER – Header and item level partner data are saved here.
v. /PAT/DC_EXTDTL – All the item is-oil external details data are stored here.
vi. /PAT/DC_DCDOCS – The reference PAT reports for reversal are stored in
this table.
The Customizing node for Data Collation can be accessed via the following path: IMG-> IS-Oil
(Downstream) -> S4SCSD -> Data Collation (DC)
o Define the Mapping Schema and Assign the Mapping Groups: Mapping
Schema is defined here and one or more mapping groups can be assigned to
it.
4. Process -> General -> Define Item Types: The process controlling item types are
defined here. Item types are formal elements to which one or more process
schemas are assigned. Whether an item type can be used for reversal also needs to
be specified here.
5. Process -> General -> Define Document Types and Assign Item Types: The PAT report
document types are defined in this activity. We use document type ‘Standard’ at
Ticket. The item types and the corresponding cancellation item types are also
assigned to the document type in this activity.
6. Process -> General -> Define Reference Objects: In this Customizing activity, you
create reference object types and define fields in the document pricing procedure,
which can contain reference objects. If the assigned fields are filled, the PAT
document will be completed with data from the reference object. In addition, you
can define the processing sequence for the reference documents. E.g: Sales Contract
is the reference object for Item category CSC.
The underlying posting class can be inherited to a custom class and only
certain required methods can be redefined to write custom code:
Like for Sales order creation step, we redefined the SUBMIT method to use
BAPI_SALESDOCUMENT_COPY for creating the return order.
The diagram below explains the relationship between the components that form
the posting backbone of PAT:
8. Dialog-> Define Item Categories: In this activity, the PAT item categories we see in
the dialog are mapped to the Item types.
1. Process Event Methods of Data Collation: Use this activity to define event methods
that are specific to Data Collation. A custom routine is defined for Ticket to
determine the return order type here:
The return order type is read from the customizing table /ITPC/SOTYPE_MAP in this
method.
2.2.3. Data Collation Documents
IMG: S4SCSD->Data Collation->Data Collation Documents
1. Specify Document Type: The Data Collation document type is defined under this
node. We are using ‘Standard’ document type at Ticket.
2. Specify Item Type: The item types specified here represent the posting engine for
the Item Category used on the PAT report for Data Collation application. The
following Item types are being used at Ticket:
o SALES – Sales
o RSALES – Return (Reversal of Sales)
o XSALES – Cancellation of Sale
o STGESUPPLY - Storage Supply (Purchase)
o XSTGESUPPL – Reversal of Storage Supply (Cancellation of Purchase)
o STOSUPPLY – Stock Transport Orders
o XSTOSUPPLY – Reversal of Stock Transport Orders
o CARRLOADO – Own Storage supply (used for re-grading to Service Station
material)
o XCARRLOADO – Reversal of Own Storage supply (cancellation of re-grade to
Service Station material)
4. Multireference: Using the activities under this node, we can pass reference
documents to the multi-reference tab in the sales order. At Ticket, we use this
function to pass the blending material document number to the sales order that has
the final finished product. The material document is used in the sales order to do
calculate excise taxes based on the component products.
Below is an example:
During posting, PAT posts the blending material document first and then creates the
sales order and attaches the blending document to the order as a multireference.
3. SCSD Interface
3.1. General Settings
IMG: S4SCSD -> Interfaces (IF) -> General Settings
1. Define Event Methods for IF: In this Customizing activity, you create methods that
control the behavior of the interface during different events such as Read Source data,
Save Data, etc.
The following interface methods are used for Ticket Processing:
2. Assign Document Tables to the Applications: In this activity, the tables that are used to
store the interface data are defined. The ticket tables store the interface data for the
ticket interface:
3. Define Document Schema: The interface data schematic (Ticket data for Ticket
Interface) is defined in this activity.
3.2. Interface Control
IMG: S4SCSD -> Interfaces (IF) -> Interface Control
Here we can control how the data gets transferred from idoc to ticket (E.g: perform data
formatting, data conversion/lookup using custom methods, preconditions):
The conversion rules that are defined in the step above are assigned to the conversion group:
3.2.3. Define Interface
In this Customizing activity, you define an interface. It determines which inbound files will be
processed and by which conversion rules the processing will be conducted. We have created
the below interface for Ticket processing:
Other attributes like the number range for the tickets to be created from idoc data, the
document schema, log object etc are also defined here.
Multiple message types can be defined here if Ticket chooses to add more messages in the
future for this interface.
The Item Category Set should be defined along with the applicable cross reference type (CR
Type) and the processing class. The ICSet header consists of the PAT document type to be used
and the field group definition of the header fields available on the Cross Reference document to
be created for this ICSet. The mapping method to transfer the header level fields to the PAT
creation BAPI and the method to Save and Post the PAT BAPIs is defined here, as well.
The ICSet Item data that consists of the applicable Business Process Id and the sequence in which
they should be accessed should be defined here. The field group applicable for the BP Id and the
corresponding item level mapping method should also be defined here
To create a new Item Category set, we need to follow the below steps:
Enter the Header level details for the IC set. We define the PAT report type to be used
and the method to define the header field mapping and the method to save and post
the PAT report. One Item Category set can create more than one PAT report by adding
more header data count. At Ticket, all the configured ICsets only create one PAT report
Under each header data, we assign the items. At the item level we define the sequence
of business process that should be posted by an Item Category Set. The field groups and
the mapping method for each business process step are also to be assigned here.
Note: When creating new methods, always copy from existing methods to keep the required
interface for the methods
Define the field groups to be used for Header and Items of the Item Category sets. The table
being used as a field source should be assigned here. The control can be set at individual fields of
the catalog to allow enablement of the field, if the field can be edited in the cross reference and
if the field is mandatory.
New field groups can be created in future for new item category sets.
The button code should be set based on the process that can be executed for the combination of
Ticket Type and Overall status. The button codes are defined as a sum of values of individual
buttons represented in binary progression as explained in the attachment below.