Professional Documents
Culture Documents
Masar Ongp FSD Int000005 V2.0
Masar Ongp FSD Int000005 V2.0
Stream ONGP
RICEFW Number INT000005
BBP Reference
PD.01 - PD.04
Number
Trading System (ASPECT) Integration
FSD Description -Vessel Nomination from ASPECT to
SAP
Version V2.0
Document Control
Change History
Version Date Author Description of Change
0.1 09/05/2020 Gopal Sharma Initial version of Functional Specification
0.9 18/05/2020 Nishant Abichandani Version for business review
1.0 18/05/2020 Nishant Abichandani Accepted FSD
2.0 15/04/2023 Shashwat Sinha Book to book changes
Contact Parties:
Role / Organization Unit Name Description
Functional Consultant Shashwat Sinha
Developer TBD
Development Lead Shashank Subhash
ENOC Reviewed
Name Designation Sign-off date Signature
ENOC Endorsed
Name Designation Sign-off date Signature
1
MASAR_ONGP_FSD_INT00005__V2.0
Table of contents
1. Functional Description.................................................................................................................................3
1.1 Business Requirement..........................................................................................................................3
2. System Scope...............................................................................................................................................4
3. Constraints, Dependencies, Prerequisites & Assumptions..........................................................................5
3.1 Constraints and Dependencies..............................................................................................................5
3.2 Pre-requisites........................................................................................................................................5
3.3 Assumptions.........................................................................................................................................5
4. Development Type (s)..................................................................................................................................6
4.1 Report...................................................................................................................................................6
4.2 Interface................................................................................................................................................7
4.3 Form......................................................................................................................................................8
4.4 Application (Enhancement / Workflow / Conversion).........................................................................9
5. Input / Import Requirements......................................................................................................................10
5.1 Input / Import Variables / Parameters.................................................................................................10
6. Processing Logic........................................................................................................................................11
6.1 Functional Process Logic....................................................................................................................11
6.2 Technical Process Logic.....................................................................................................................14
6.3 Functional Process Flow.....................................................................................................................16
6.4 Data Requirements..............................................................................................................................16
6.5 Authorization Requirements...............................................................................................................16
6.5.1 Authorization Objects for Programs..............................................................................................16
6.5.2 Authorization Groups for Tables....................................................................................................17
6.6 Language Dependencies.....................................................................................................................17
6.7 Error Management..............................................................................................................................17
6.8 Additional Functions..........................................................................................................................17
7. Output Requirements.................................................................................................................................18
7.1 Output Variables / Parameters.............................................................................................................18
7.2 Special Printing Options.....................................................................................................................18
7.3 Example Outputs / Forms...................................................................................................................18
8. IMG Structure for Custom Developments.................................................................................................19
9. Custom Transaction Details.......................................................................................................................20
10. Testing........................................................................................................................................................21
10.1 Input Data...........................................................................................................................................21
10.2 Test Scenario.......................................................................................................................................21
2
MASAR_ONGP_FSD_INT00005__V2.0
1. Functional Description
Currently, scheduling & Actual information is replicated from the trading system, ASPECT, to IRS system & Back
from IRS to ASPECT via a manual process (Email). This can result in the two systems becoming misaligned and
the process is effort intensive. The aim of SAP-ASPECT integration (SAi) project is to generate scheduling data
in both systems from a single point of entry without manual intervention.
While ASPECT is creating nomination and parcel details, in SAP this nomination is used for scheduling,
inventory planning, terminal instructions and instruction to other third party service providers. Hence
nomination in SAP is the Key to all subsequent events as well as inventory updates.
Business requirement is to copy nomination details from Aspect and expand this nomination further for all the
above purposes. Mode of Transport considered is Vessel & Pipeline.
3
MASAR_ONGP_FSD_INT00005__V2.0
2. System Scope
S/4 HANA
ARIBA
IBP
BI
BPC
RETAIL
CPI
PI/PO
FIORI
BO/Lumira
HYBRIS – C4C
HYBRIS – MKT. CLOUD
HYBRIS - COMMERCE
SUCESSFACTORS
MII
LUMIRA
QCI
GRC
Others
4
MASAR_ONGP_FSD_INT00005__V2.0
3.2 Pre-requisites
To c
3.3 Assumptions
All the data needed to create a nomination is entered into the trading systems or can be derived from
data that is present in the trading system.
All the data entered in the trading system is accurate enough to support subsequent nomination activities
in SAP.
All the deals made by trading are entered into the system.
Transfer (between terminals and tank-to-tank) will be created in SAP system.
Data mapping will be done in SAP.
Grade codes will be at the right level of detail in both systems.
ASPECT counter-parties will be mapped to both a vendor and a customer in SAP.
In Tank Transfer for Sales & Purchase
5
MASAR_ONGP_FSD_INT00005__V2.0
REPORT
INTERFACE
CONVERSION
ENHANCEMENT
FORMS
WORKFLOW
FIORI
4.1 Report
NA
Execution Mode Batch Online
Data Volume
6
MASAR_ONGP_FSD_INT00005__V2.0
4.2 Interface
ABAP/Batch ABAP/Proxy
CPI Other:
EDI/ALE
Configuration Yes No
Required
Connected
Systems/Partner
System
Sender System
Receiver System
Primary Protocol
<<<e.g.…SOAP/REST/JDBC/MAIL/ODATA etc.…>>><
Used
Data Volume
Authentication
Basic Certificates Others
Mechanism
7
MASAR_ONGP_FSD_INT00005__V2.0
4.3 Form
NA
Output Receiver:
In-House/Third In-House Only Third Party
Party
Special Printing
Form selection based on the surveyor company
Options
Adobe Form Smart Forms
Type
SAP Script Third Party Service
Output Volume
Multilingual Yes No
Optical Archiving
Required Yes No
8
MASAR_ONGP_FSD_INT00005__V2.0
WebDynpro ABAP
Data Volume
9
MASAR_ONGP_FSD_INT00005__V2.0
10
MASAR_ONGP_FSD_INT00005__V2.0
6. Processing Logic
Aspect will be the single point of entry and will act as the source system for the data to be transferred.
The operation team will schedule nomination in Aspect system.
2. Middle ware
For the mapping and transformation of data it is assumed that SAP PI is the preferred system. SAP PI will
check the incoming data for certain criteria and performs any required calculations, conversions and
formatting of the data. The results will be recorded in S/4 HANA compatible format.
SAP receives the data to be processed. When the data is successfully processed, all nomination details
with relevant line items can be examined in the systems and schedulers working in the Trading and
Scheduling Workbench (TSW) can reference this data.
An interface can be viewed as consisting of three stages – source, middleware and recipient systems. The main
steps to an interface are extract, calculate, convert, format, map and load.
11
MASAR_ONGP_FSD_INT00005__V2.0
Nomination Type:
Default nomination type ZEGC.
Vehicle Identifier
Identifier of the Vessel, or Pipeline in SAP
Transportation System
Identifier for the pipeline, route or other system by which the hydrocarbon is moved.
Unit of Measure
In Transit Plant
This in transit plant will be holding the inventory while it is in transit from the load port to disport journey
Location ID
This is the plant or physical location to which the line item refers. For example, a load line would see the field
referenced as a load plant.
Schedule Type
This identifier references whether the line is a load or a discharge.
Scheduled Material
This is the grade that is being moved. In case of Blended Nomination, Product will be final product.
Scheduled Quantity
12
MASAR_ONGP_FSD_INT00005__V2.0
Unit of Measure
This is the unit to which the quantity above refers.
Scheduled Date
This is the date the line action is due to happen. In case of Load Line it is Loading schedule date & in case of
discharge line item it is discharge schedule date.
Reference Document
This is the document number that is being referenced.
Parcel ID
This is the Document which contains secondary Code
Cost Type
This is the type of secondary cost.
Cost Rate
This is the Amount of secondary cost.
Cost Currency
This the currency of the cost of Secondary expense
Deal System ID
System ID of the Deal to which the mentioned parcels belong
13
MASAR_ONGP_FSD_INT00005__V2.0
The web service will trigger processing at using the Function module ‘ONGP_NOM_PROCESS’.
Function ‘ONGP_NOM_PROCESS’
This function will receive the web service and perform the following actions.
Loading and discharge line items in the nomination will be connected using pegging type carrier
nomination (CN)
The interface needs to determine if the message is to create or change. If there is an entry in OIJNOMI
table pointing to a valid nomination and this nomination line is holding the same ASPECT parcel ID
(Get SO/PO based on Parcel ID from EKKO/EKPO Table & Compare Ref doc Number of OIJNOMI Table)
then we can be certain that this is a change message. At this stage the interface needs to determine
whether there is the correct information in the message to create a change message for the
nomination.
During Change message we need to check the parcel sent in the inbound message & active parcel
available in Nomination Item Table & act as below.
New Parcel was linked to shipment in Aspect: Message will have more Parcel then
Nomination Item Table. In this case create nomination item for this parcel.
Existing Parcel was removed from shipment: Message will have less number of Parcel then
Nomination Item Table. In this case line item with parcel which is not in inbound payload
should be marked as deleted. Check the Parcel ID attached to the Pegged Line Item
If no nomination lines exist for this Parcel ID (Get the PO/SO from EKKO or VBAK table based on Parcel
System ID) and no current entry is maintained in the OIJNMI table then the action should be
considered create. If the action is a ‘Create’ then all the fields needed to create a message should be
there. If any fields are missing then the web service needs to be set to an error status with the
message ‘Mandatory fields for nomination creation are missing from the web service’.
If the quantity in the message is a zero quantity/deletion indicator then this means that the web
service message is a cancellation and the logic from the cancellation scenarios below needs to be
implemented.
Change to Dates, Volumes etc. Change Nomination item Change Nomination item
Changes after actualisation Manual Process to Investigate Manual Process to Investigate
14
MASAR_ONGP_FSD_INT00005__V2.0
To know the correct location type to refer to use this logic beneath.
Load Line Discharge Line Ship From Ship To
Purchase (FOB/CIF) O-P TSW Location (O-Line) SAP Plant (D-Line)
Purchase (DES) D-P TSW Location
Sale ( FOB/CIF) O-S TSW Location
Sale (DES) O-X D-S TSW Location
ISTO (FOB/CIF) OI-P D-X TSW Location SAP Plant
ISTO (DES) O-X DI-P TSW Location SAP Plant
Map the ASPECT vessel to a SAP vessel by querying Vessel Master Table with Vessel System ID.
Get MOT from TSW Details tab of PO/SO based on Parcel System ID.
Ascertain whether the movement relates to a purchase, sales Order or ISTO (also based on deal type).
The web service contains a buy/sell/ISTO indicator. If the field is showing a buy then the movement
relates to a purchase order and if the field is showing a sell then the movement relates to a sales
order. The Parcel ID can be used to tie the nomination lines that are being created back to a SAP order
reference.
If the movement is ISTO, check whether Intercompany STO can be found in the system. If this is the
case then it means that this movement is a back to back sale between 2 supply locations using
Trading.
Default the nomination type to ZEGC. (Get it from Param Table)
Map the ASPECT company code, mode of transport and loading location by querying the Company
Code table mentioned in FS INF00003.
The RFC BAPI ‘RFC_TSW_NOM_CREATEFROMDATA’ then needs to be populated as per the
appendices or in the case of changes and product creations then the RFC BAPI
‘RFC_TSW_NOM_CHANGEFROMDATA’ needs to be populated.
Event Data has to be mapped on Nomination. To get the SAP Event Type query to Event Mapping
Table mentioned in FS INF00003 with Event System ID.
Transport System to be determined from mapping table
Regarding the scheduled dates to be entered, the following logic should be applied but in short load
lines should take the BL Date from the web service, discharge lines should take the ETA Date unless in
tank transfer when the ETA date should be the same as the BL Date anyway.
The another scenarios to focus on the movements whereby goods are procured by trader for immediate re-
sale on to another company. These are most often represented by OP – DS nomination.
Details relate to parcel linked to Shipment needs to be sent with Shipment Details.
Secondary Cost with be static condition types mapped in SO/PO.
Parcel ID
15
MASAR_ONGP_FSD_INT00005__V2.0
Get Cost related details from SO/PO (Database Table related details mentioned in the respective FS
documents) & update below table
2 New Fields to be added in OIJNOMI Table to store Parcel Number & Parcel System ID.
Table: OIJNOMI
Addition of new nomination activity type “BTB” to create plant to plant transfer nomination using an
STO.
Interface modified to create plant to plant transfer nomination with reference of an STO. Scenario
type OT and DT mapped in custom tables using which the nomination will be created.
********************************************
16
MASAR_ONGP_FSD_INT00005__V2.0
a)
Activity
All / Create / Change / Display / Delete
Program Organization Unit (List of activities in the table TACT)
Please specify all single activities (i.e. 01,02,03,
etc.)
<PROGRAM Operating Concern
NAME>
Controlling Area
Company Code
Functional Area
Credit Control
Plant
Purchasing Organization
Warehouse
Storage Location
Shipping Point
Transportation Planning
Point
Sales Organization
Distribution Channel
Division
17
MASAR_ONGP_FSD_INT00005__V2.0
Sales Office
18
MASAR_ONGP_FSD_INT00005__V2.0
7. Output Requirements
19
MASAR_ONGP_FSD_INT00005__V2.0
20
MASAR_ONGP_FSD_INT00005__V2.0
21
MASAR_ONGP_FSD_INT00005__V2.0
10. Testing
22
MASAR_ONGP_FSD_INT00005__V2.0