Docs / Connectors / mysupply

mysupply Connector

The ASAPIO connector for mysupply links SAP purchase requisitions directly to the mysupply sourcing platform. PR items flagged with a blocked indicator are transferred to mysupply — individually or in batch — where sourcing takes place. Once a deal is closed in mysupply, the connector writes the awarded price and vendor back into the SAP purchase requisition automatically.

This connector is configured via SAP GUI only. Event Studio is not supported.

Overview

DirectionTriggerAction
OutboundPR item created or changed with blocked indicatorItem sent to mysupply Demand API as a sourcing demand
InboundScheduled ASAPIO job polls mysupply Demand APIClosed deals written back to SAP PR; blocked indicator removed

Prerequisites

SAP Connection Setup (in SAP Gui)

Step 1: Import SSL Certificate (STRUST)

Export the SSL certificate from mysupply.io and import it into SAP via transaction STRUST.

Step 2: Create RFC Destination (SM59)

Create a type G (HTTP connection to external server) RFC destination:

Step 3: Create Connection Instance (SPRO)

Navigate to SPRO → ASAPIO Integration Add-on → Connector for mysupply. Create a new connection instance and link it to the RFC destination created above.

Step 4: Set Cloud Connection Password

Enter the mysupply API key as the Cloud Shared Secret on the connection instance.

Outbound Configuration

The outbound flow reacts to create and change events on purchase requisition items (SAP business object BUS2105). When the blocked indicator on the PR item matches the configured value, the item is sent to the mysupply Demand API.

Outbound Object: PREQ_MYSUPPLY

FieldValue
Extraction FM/ASADEV/ACI_GEN_PDVIEW_EXTRACT
Response FM/ASADEV/RESP_MYSUPPLY_PR
Formatter FM/ASADEV/DEMA_CUSTOM_FORMATTER
Payload View/ASAPIO/MYSUPPLY_DEMAND (V1 DEMAND)

Event Linkage (SWE2)

Create an event linkage for business object BUS2105, event CHANGED, with receiver function module /ASADEV/ACI_EVENTS_TRIGGER.

Inbound Configuration

A scheduled ASAPIO job polls the mysupply Demand API for closed deals. For each closed deal, an IDoc is created and post-processed to write the awarded values back into the SAP purchase requisition and remove the blocked indicator.

Step 1: Create Message Type (WE81)

Define a new message type for the mysupply inbound IDoc.

Link the message type to IDoc type /ASADEV/ACI_GENERIC_IDOC.

Step 3: Assign Processing Function Module (WE57)

Assign processing FM /ASADEV/INB_DEAL_MYSUPPLY to the message type.

Step 4: Register Function Module (BD51)

Register the inbound processing FM in the IDoc function module table.

Step 5: Create Process Code (WE42)

Create an inbound process code linking the message type to the processing FM.

Step 6: Create Partner Profile (WE20)

Create an inbound partner profile. Default logical system: LOCAL.

Field Mapping

Outbound: PR to mysupply Demand

SAP FieldDescription
EBAN-BANFNPurchase requisition number
EBAN-BNFPOPR item number
EBAN-MATNRMaterial number
EBAN-MENGEQuantity
EBAN-MEINSUnit of measure
EBAN-WAERSCurrency
EBAN-LIFNRDesired vendor
EBAN-WERKSPlant

Inbound: mysupply Deal to PR

SAP FieldDescription
EBAN-PREISValuation price (from awarded deal)
EBAN-FLIEFFixed supplier (from award)
EBAN-MENGEQuantity

Known Restrictions

Enhancements (BAdI)

The following BAdI implementations are available for custom logic: