Skip to content

This is not an official QuietDayVentures product and is solely used for demo purposes.

Legacy Bridge

Demo mode · acting as Alice (demo) · invented test data

Step 2 of 4

What you start with

Purchasing starts from 2 interface descriptions, as they come out of the legacy system. Nothing else is needed.

SAP OData V2 $metadata (EDMX, XML)

The service document an SAP OData service publishes: entity types, keys, fields and functions. Self-authored, modelled on API_INFORECORD_PROCESS_SRV.

legacy/inforecord.edmxlines 15–44 of 125

      <EntityType Name="A_PurchasingInfoRecordType" sap:label="Purchasing Info Record" sap:content-version="1">
        <Key>
          <PropertyRef Name="PurchasingInfoRecord"/>
        </Key>
        <Property Name="PurchasingInfoRecord" Type="Edm.String" Nullable="false" MaxLength="10" sap:label="Info Record" sap:creatable="false" sap:updatable="false"/>
        <Property Name="Supplier" Type="Edm.String" MaxLength="10" sap:label="Supplier"/>
        <Property Name="Material" Type="Edm.String" MaxLength="40" sap:label="Material"/>
        <Property Name="MaterialGroup" Type="Edm.String" MaxLength="9" sap:label="Material Group"/>
        <Property Name="PurchasingInfoRecordDesc" Type="Edm.String" MaxLength="40" sap:label="Short Text"/>
        <Property Name="SupplierMaterialNumber" Type="Edm.String" MaxLength="35" sap:label="Supplier Material"/>
        <Property Name="CreationDate" Type="Edm.DateTime" Precision="0" sap:display-format="Date" sap:label="Created On" sap:creatable="false" sap:updatable="false"/>
        <Property Name="IsDeleted" Type="Edm.Boolean" sap:label="Deletion Flag"/>
        <NavigationProperty Name="to_PurgInfoRecdOrgPlantData" Relationship="API_INFORECORD_PROCESS_SRV.assoc_InfoRecord_OrgPlant" FromRole="FromRole_InfoRecord" ToRole="ToRole_OrgPlant"/>
      </EntityType>

      <EntityType Name="A_PurgInfoRecdOrgPlantDataType" sap:label="Purchasing Organization / Plant Data" sap:content-version="1">
        <Key>
          <PropertyRef Name="PurchasingInfoRecord"/>
          <PropertyRef Name="PurchasingInfoRecordCategory"/>
          <PropertyRef Name="PurchasingOrganization"/>
          <PropertyRef Name="Plant"/>
        </Key>
        <Property Name="PurchasingInfoRecord" Type="Edm.String" Nullable="false" MaxLength="10" sap:label="Info Record"/>
        <Property Name="PurchasingInfoRecordCategory" Type="Edm.String" Nullable="false" MaxLength="1" sap:label="Info Record Category"/>
        <Property Name="PurchasingOrganization" Type="Edm.String" Nullable="false" MaxLength="4" sap:label="Purchasing Organization"/>
        <Property Name="Plant" Type="Edm.String" Nullable="false" MaxLength="4" sap:label="Plant"/>
        <Property Name="PurchasingGroup" Type="Edm.String" MaxLength="3" sap:label="Purchasing Group"/>
        <Property Name="Currency" Type="Edm.String" MaxLength="5" sap:label="Currency" sap:semantics="currency-code"/>
        <Property Name="NetPriceAmount" Type="Edm.Decimal" Precision="12" Scale="3" sap:unit="Currency" sap:label="Net Price"/>

RFC/BAPI signature (JSON)

Import, export and table parameters of the purchasing BAPIs, as an RFC SDK metadata dump lists them.

legacy/purchasing.rfc.jsonlines 1–30 of 143
{
  "system": {
    "id": "purchasing",
    "name": "Purchasing (RFC, SAP mock)",
    "description": "Self-authored, SE37-like signatures of purchasing BAPIs served by the RFC part of the SAP mock. Invented data, not affiliated with SAP SE."
  },
  "commitFunction": "BAPI_TRANSACTION_COMMIT",
  "rollbackFunction": "BAPI_TRANSACTION_ROLLBACK",
  "structures": {
    "BAPIRET2": [
      {
        "name": "TYPE",
        "type": "CHAR",
        "length": 1,
        "description": "Message type: S success, E error, W warning, I info, A abort"
      },
      { "name": "ID", "type": "CHAR", "length": 20, "description": "Message class" },
      { "name": "NUMBER", "type": "NUMC", "length": 3, "description": "Message number" },
      { "name": "MESSAGE", "type": "CHAR", "length": 220, "description": "Message text" },
      { "name": "PARAMETER", "type": "CHAR", "length": 32, "description": "Parameter the message refers to" },
      { "name": "ROW", "type": "INT4", "description": "Table row the message refers to" },
      { "name": "FIELD", "type": "CHAR", "length": 30, "description": "Field the message refers to" }
    ],
    "BAPIEINA": [
      { "name": "INFO_REC", "type": "CHAR", "length": 10, "description": "Purchasing info record" },
      { "name": "VENDOR", "type": "CHAR", "length": 10, "description": "Supplier" },
      { "name": "MATERIAL", "type": "CHAR", "length": 18, "description": "Material" },
      { "name": "MAT_GRP", "type": "CHAR", "length": 9, "description": "Material group" },
      { "name": "SHORT_TEXT", "type": "CHAR", "length": 40, "description": "Info record short text" },
      { "name": "VEND_MAT", "type": "CHAR", "length": 35, "description": "Supplier material number" },