sap.s4hana.api_material_document_srv
Module sap.s4hana.api_material_document_srv
API
Definitions
ballerinax/sap.s4hana.api_material_document_srv Ballerina library
Overview
SAP S/4HANA is a robust enterprise resource planning (ERP) solution, designed for large-scale enterprises by SAP SE. It covers core business processes such as finance, procurement, sales, and materials management, including inventory and warehouse operations.
WSO2 SAP S/4HANA Material Document provides a way to interact with the Material Document - Read, Create API. The service allows to retrieve and create material documents, for example, to post a goods receipt for a purchase order or to document the transfer of materials between two storage locations, and to cancel existing material documents or single items.
Key Features
- Post goods movements such as goods receipts, goods issues and transfer postings as material documents
- Read material document headers and items with OData query options
- Cancel complete material documents or individual items
Setup guide
This connector uses Basic Authentication with an SAP S/4HANA Cloud communication user. Each S/4HANA API is
exposed through a communication scenario, so the user must be assigned to a communication arrangement for the
Material Document Integration (SAP_COM_0108) scenario before the connector can call it.
All the apps used below are in the Communication Management group of the SAP Fiori launchpad.

Step 1: Create a communication user
- Sign in to your SAP S/4HANA Cloud system as an administrator.
- Open the Maintain Communication Users app and choose New.
- Enter a user name and a description, set a password, and choose Create.
Note the user name and password. These are the credentials the connector uses.
Step 2: Create a communication system
-
Open the Communication Systems app and choose New.
-
Enter a system ID and a system name, and choose Create.

-
Under General > Technical Data, enter a host name and a Logical System (an uppercase ID of up to 10 characters, for example,
INTEGRATOR). Some scenarios refuse to activate when the logical system is empty. -
Under Users for Inbound Communication, add the communication user from Step 1 with the User Name and Password authentication method.

-
Choose Save.
Step 3: Create a communication arrangement
-
Open the Communication Arrangements app and choose New.
-
In the Scenario value help, search for Material Document Integration and select
SAP_COM_0108. This is the scenario that exposesAPI_MATERIAL_DOCUMENT_SRV, the service this connector calls.
-
Enter a unique name for the arrangement and choose Create.

-
Select the communication system from Step 2. The communication user from Step 1 is filled in as the inbound user. If the scenario lists outbound services that the integration does not need, clear their Active check boxes so that no outbound user is required.

-
Choose Save.
Step 4: Note the hostname
Open the saved arrangement. The API-URL next to Own SAP Cloud System shows the hostname
(<unique id>-api.s4hana.cloud.sap).

You now have everything the connector needs:
- hostname - the API hostname, for example,
my123456-api.s4hana.cloud.sap - username - the communication user name
- password - the communication user password
Quickstart
To use the sap.s4hana.api_material_document_srv connector in your Ballerina application, modify the .bal file as follows:
Step 1: Import the module
Import the sap.s4hana.api_material_document_srv module.
import ballerinax/sap.s4hana.api_material_document_srv as materialdocument;
Step 2: Instantiate a new connector
Use the hostname and credentials to initiate a client.
configurable string hostname = ?; configurable string username = ?; configurable string password = ?; materialdocument:Client materialDocumentClient = check new ( { auth: { username, password } }, hostname );
Step 3: Invoke the connector operation
Now, utilize the available connector operations.
materialdocument:CollectionOfA_MaterialDocumentItemWrapper listAMaterialDocumentItems = check materialDocumentClient->listA_MaterialDocumentItems();
Step 4: Run the Ballerina application
bal run
Examples
The SAP S/4HANA Inventory Ballerina connectors provide practical examples illustrating usage in various scenarios. Explore these examples, covering use cases like point-of-sale stock reservations and warehouse document automation.
-
POS Integration with S/4HANA - Check real-time material stock and create reservation documents in S/4HANA from point-of-sale orders.
-
Warehouse Automation through S/4HANA Integration - Digitize paper delivery notes with OCR and create material documents in S/4HANA from the extracted data.
Clients
sap.s4hana.api_material_document_srv: Client
This service enables you to retrieve and create material documents, for example, to post a goods receipt for a purchase order or to document the transfer of materials between two storage locations. Additionally, the service allows you to cancel existing material documents or single items. It can be consumed by external systems and user interfaces.
Constructor
Gets invoked to initialize the connector.
init (ConnectionConfig config, string hostname, int port)- config ConnectionConfig - The configurations to be used when initializing the
connector
- hostname string -
- port int 443 -
createA_MaterialDocumentHeader
function createA_MaterialDocumentHeader(CreateA_MaterialDocumentHeader payload, map<string|string[]> headers) returns A_MaterialDocumentHeaderWrapper|errorCreates a material document
Parameters
- payload CreateA_MaterialDocumentHeader - New entity
Return Type
- A_MaterialDocumentHeaderWrapper|error - Created entity
createCancel
function createCancel(map<string|string[]> headers, *CreateCancelQueries queries) returns A_MaterialDocumentHeaderWrapper|errorCancels a material document
Parameters
- queries *CreateCancelQueries - Queries to be sent with the request
Return Type
- A_MaterialDocumentHeaderWrapper|error - Success
createCancelItem
function createCancelItem(map<string|string[]> headers, *CreateCancelItemQueries queries) returns A_MaterialDocumentItemWrapper|errorCancels a material document item
Parameters
- queries *CreateCancelItemQueries - Queries to be sent with the request
Return Type
- A_MaterialDocumentItemWrapper|error - Success
getA_MaterialDocumentHeader
function getA_MaterialDocumentHeader(string MaterialDocumentYear, string MaterialDocument, map<string|string[]> headers, *GetA_MaterialDocumentHeaderQueries queries) returns A_MaterialDocumentHeaderWrapper|errorReads information for a specific material document header
Parameters
- MaterialDocumentYear string - Material Document Year
- MaterialDocument string - Number of Material Document
- queries *GetA_MaterialDocumentHeaderQueries - Queries to be sent with the request
Return Type
- A_MaterialDocumentHeaderWrapper|error - Retrieved entity
getA_MaterialDocumentItem
function getA_MaterialDocumentItem(string MaterialDocumentYear, string MaterialDocument, string MaterialDocumentItem, map<string|string[]> headers, *GetA_MaterialDocumentItemQueries queries) returns A_MaterialDocumentItemWrapper|errorReads information on material document items level for a specific material document
Parameters
- MaterialDocumentYear string - Material Document Year
- MaterialDocument string - Number of Material Document
- MaterialDocumentItem string - Material Document Item
- queries *GetA_MaterialDocumentItemQueries - Queries to be sent with the request
Return Type
- A_MaterialDocumentItemWrapper|error - Retrieved entity
getA_SerialNumberMaterialDocument
function getA_SerialNumberMaterialDocument(string Material, string SerialNumber, string MaterialDocument, string MaterialDocumentItem, string MaterialDocumentYear, map<string|string[]> headers, *GetA_SerialNumberMaterialDocumentQueries queries) returns A_SerialNumberMaterialDocumentWrapper|errorReads information of serial number on material document item level for a specific material document, item, year and material
Parameters
- Material string - Material Number
- SerialNumber string - Serial Number
- MaterialDocument string - Number of Material Document
- MaterialDocumentItem string - Material Document Item
- MaterialDocumentYear string - Material Document Year
- queries *GetA_SerialNumberMaterialDocumentQueries - Queries to be sent with the request
Return Type
- A_SerialNumberMaterialDocumentWrapper|error - Retrieved entity
getMaterialDocumentHeaderOfA_MaterialDocumentItem
function getMaterialDocumentHeaderOfA_MaterialDocumentItem(string MaterialDocumentYear, string MaterialDocument, string MaterialDocumentItem, map<string|string[]> headers, *GetMaterialDocumentHeaderOfA_MaterialDocumentItemQueries queries) returns A_MaterialDocumentHeaderWrapper|errorReads information on material document item and header level for a specific material document item
Parameters
- MaterialDocumentYear string - Material Document Year
- MaterialDocument string - Number of Material Document
- MaterialDocumentItem string - Material Document Item
- queries *GetMaterialDocumentHeaderOfA_MaterialDocumentItemQueries - Queries to be sent with the request
Return Type
- A_MaterialDocumentHeaderWrapper|error - Retrieved entity
listA_MaterialDocumentHeaders
function listA_MaterialDocumentHeaders(map<string|string[]> headers, *ListA_MaterialDocumentHeadersQueries queries) returns CollectionOfA_MaterialDocumentHeaderWrapper|errorReads information on material document header level
Parameters
- queries *ListA_MaterialDocumentHeadersQueries - Queries to be sent with the request
Return Type
- CollectionOfA_MaterialDocumentHeaderWrapper|error - Retrieved entities
listA_MaterialDocumentItems
function listA_MaterialDocumentItems(map<string|string[]> headers, *ListA_MaterialDocumentItemsQueries queries) returns CollectionOfA_MaterialDocumentItemWrapper|errorReads information on material document items level
Parameters
- queries *ListA_MaterialDocumentItemsQueries - Queries to be sent with the request
Return Type
- CollectionOfA_MaterialDocumentItemWrapper|error - Retrieved entities
listA_SerialNumberMaterialDocuments
function listA_SerialNumberMaterialDocuments(map<string|string[]> headers, *ListA_SerialNumberMaterialDocumentsQueries queries) returns CollectionOfA_SerialNumberMaterialDocumentWrapper|errorReads information of serial numbers on material document items level
Parameters
- queries *ListA_SerialNumberMaterialDocumentsQueries - Queries to be sent with the request
Return Type
- CollectionOfA_SerialNumberMaterialDocumentWrapper|error - Retrieved entities
listMaterialDocumentItemsOfA_MaterialDocumentHeader
function listMaterialDocumentItemsOfA_MaterialDocumentHeader(string MaterialDocumentYear, string MaterialDocument, map<string|string[]> headers, *ListMaterialDocumentItemsOfA_MaterialDocumentHeaderQueries queries) returns CollectionOfA_MaterialDocumentItemWrapper|errorReads information for a specific material document header and material document items
Parameters
- MaterialDocumentYear string - Material Document Year
- MaterialDocument string - Number of Material Document
- queries *ListMaterialDocumentItemsOfA_MaterialDocumentHeaderQueries - Queries to be sent with the request
Return Type
- CollectionOfA_MaterialDocumentItemWrapper|error - Retrieved entities
listSerialNumberssOfA_MaterialDocumentItem
function listSerialNumberssOfA_MaterialDocumentItem(string MaterialDocumentYear, string MaterialDocument, string MaterialDocumentItem, map<string|string[]> headers, *ListSerialNumberssOfA_MaterialDocumentItemQueries queries) returns CollectionOfA_SerialNumberMaterialDocumentWrapper|errorReads information on serial numbers for a specific material document item
Parameters
- MaterialDocumentYear string - Material Document Year
- MaterialDocument string - Number of Material Document
- MaterialDocumentItem string - Material Document Item
- queries *ListSerialNumberssOfA_MaterialDocumentItemQueries - Queries to be sent with the request
Return Type
- CollectionOfA_SerialNumberMaterialDocumentWrapper|error - Retrieved entities
performBatchOperation
function performBatchOperation(Request request, map<string|string[]> headers) returns Response|errorSend a group of requests
Parameters
- request Request - Batch request
Records
sap.s4hana.api_material_document_srv: A_MaterialDocumentHeader
Fields
- MaterialDocumentYear? string -
- MaterialDocument? string - Number of Material Document
- InventoryTransactionType? string? - Transaction/Event Type
- DocumentDate? string? - Document Date in Document
- PostingDate? string? - Posting Date in the Document
- CreationDate? string? - Day On Which Accounting Document Was Entered
- CreationTime? string? -
- CreatedByUser? string? -
- MaterialDocumentHeaderText? string? -
- ReferenceDocument? string? - Reference Document Number
- VersionForPrintingSlip? string? - Version for Printing GR/GI Slip
- ManualPrintIsTriggered? string? - Print via Output Control
- CtrlPostgForExtWhseMgmtSyst? string? - Control posting for external WMS
- GoodsMovementCode? string? -
- to_MaterialDocumentItem? A_MaterialDocumentHeader_to_MaterialDocumentItem -
sap.s4hana.api_material_document_srv: A_MaterialDocumentHeader_to_MaterialDocumentItem
Fields
- results? A_MaterialDocumentItem[] -
sap.s4hana.api_material_document_srv: A_MaterialDocumentHeaderWrapper
Fields
sap.s4hana.api_material_document_srv: A_MaterialDocumentItem
Fields
- MaterialDocumentYear? string -
- MaterialDocument? string - Number of Material Document
- MaterialDocumentItem? string -
- Material? string? - Material Number
- Plant? string? -
- StorageLocation? string? -
- Batch? string? - Batch Number
- GoodsMovementType? string? - Movement Type (Inventory Management)
- InventoryStockType? string? - Stock Type of Goods Movement (Stock Identifier)
- InventoryValuationType? string? -
- InventorySpecialStockType? string? -
- Supplier? string? - Supplier's Account Number
- Customer? string? - Account number of customer
- SalesOrder? string? - Sales Order Number
- SalesOrderItem? string? -
- SalesOrderScheduleLine? string? -
- PurchaseOrder? string? - Purchase Order Number
- PurchaseOrderItem? string? - Item Number of Purchasing Document
- WBSElement? string? - Work Breakdown Structure Element (WBS Element)
- ManufacturingOrder? string? -
- ManufacturingOrderItem? string? -
- GoodsMovementRefDocType? string? - Goods movement ref doc type
- GoodsMovementReasonCode? string? -
- Delivery? string? -
- DeliveryItem? string? -
- AccountAssignmentCategory? string? -
- CostCenter? string? -
- ControllingArea? string? -
- CostObject? string? -
- GLAccount? string? - G/L Account Number
- FunctionalArea? string? -
- ProfitabilitySegment? string? -
- ProfitCenter? string? -
- MasterFixedAsset? string? - Main Asset Number
- FixedAsset? string? - Asset Subnumber
- MaterialBaseUnit? string? -
- QuantityInBaseUnit? string? -
- EntryUnit? string? - Unit of entry
- QuantityInEntryUnit? string? - Quantity in unit of entry
- CompanyCodeCurrency? string? -
- GdsMvtExtAmtInCoCodeCrcy? string? - Externally Entered Posting Amount in Local Currency
- SlsPrcAmtInclVATInCoCodeCrcy? string? - Value at Sales Prices Including Value-Added Tax
- FiscalYear? string? -
- FiscalYearPeriod? string? - Period Year
- FiscalYearVariant? string? -
- IssgOrRcvgMaterial? string? -
- IssgOrRcvgBatch? string? -
- IssuingOrReceivingPlant? string? - Receiving/Issuing Plant
- IssuingOrReceivingStorageLoc? string? - Receiving/issuing storage location
- IssuingOrReceivingStockType? string? -
- IssgOrRcvgSpclStockInd? string? -
- IssuingOrReceivingValType? string? - Valuation Type of Transfer Batch
- IsCompletelyDelivered? boolean? - "Delivery Completed" Indicator
- MaterialDocumentItemText? string? - Item Text
- GoodsRecipientName? string? -
- UnloadingPointName? string? -
- ShelfLifeExpirationDate? string? - Shelf Life Expiration or Best-Before Date
- ManufactureDate? string? -
- SerialNumbersAreCreatedAutomly? boolean? - Create serial number automatically
- Reservation? string? - Number of reservation/dependent requirements
- ReservationItem? string? - Item Number of Reservation / Dependent Requirements
- ReservationItemRecordType? string? -
- ReservationIsFinallyIssued? boolean? - Final Issue for Reservation
- SpecialStockIdfgSalesOrder? string? - Sales order number of valuated sales order stock
- SpecialStockIdfgSalesOrderItem? string? - Sales Order Item of Valuated Sales Order Stock
- SpecialStockIdfgWBSElement? string? - Work Breakdown Structure Element (WBS Element)
- IsAutomaticallyCreated? string? - Item Automatically Created Indicator
- MaterialDocumentLine? string? - Unique Identification of Document Line
- MaterialDocumentParentLine? string? - Identifier of immediately superior line
- HierarchyNodeLevel? string? - Hierarchy level of line in document
- GoodsMovementIsCancelled? boolean? - Item has been Cancelled
- ReversedMaterialDocumentYear? string? - Reversed Material Document Year
- ReversedMaterialDocument? string? - Reversed Material Document
- ReversedMaterialDocumentItem? string? - Reversed Material Document Item
- ReferenceDocumentFiscalYear? string? - Fiscal Year of a Reference Document
- InvtryMgmtRefDocumentItem? string? - Item of a Reference Document
- InvtryMgmtReferenceDocument? string? - Document No. of a Reference Document
- MaterialDocumentPostingType? string? - Reversal, return delivery, or transfer posting
- InventoryUsabilityCode? string? -
- EWMWarehouse? string? - Warehouse Number/Warehouse Complex
- EWMStorageBin? string? -
- DebitCreditCode? string? - Debit/Credit Indicator
- to_MaterialDocumentHeader? A_MaterialDocumentHeader -
- to_SerialNumbers? A_MaterialDocumentItem_to_SerialNumbers -
sap.s4hana.api_material_document_srv: A_MaterialDocumentItem_to_SerialNumbers
Fields
- results? A_SerialNumberMaterialDocument[] -
sap.s4hana.api_material_document_srv: A_MaterialDocumentItemWrapper
Fields
sap.s4hana.api_material_document_srv: A_SerialNumberMaterialDocument
Fields
- Material? string - Material Number
- SerialNumber? string -
- MaterialDocument? string - Number of Material Document
- MaterialDocumentItem? string -
- MaterialDocumentYear? string -
- ManufacturerSerialNumber? string? - Manufacturer's Serial Number
sap.s4hana.api_material_document_srv: A_SerialNumberMaterialDocumentWrapper
Fields
sap.s4hana.api_material_document_srv: CollectionOfA_MaterialDocumentHeader
Fields
- __count? count -
- results? A_MaterialDocumentHeader[] -
sap.s4hana.api_material_document_srv: CollectionOfA_MaterialDocumentHeaderWrapper
Fields
sap.s4hana.api_material_document_srv: CollectionOfA_MaterialDocumentItem
Fields
- __count? count -
- results? A_MaterialDocumentItem[] -
sap.s4hana.api_material_document_srv: CollectionOfA_MaterialDocumentItemWrapper
Fields
sap.s4hana.api_material_document_srv: CollectionOfA_SerialNumberMaterialDocument
Fields
- __count? count -
- results? A_SerialNumberMaterialDocument[] -
sap.s4hana.api_material_document_srv: CollectionOfA_SerialNumberMaterialDocumentWrapper
Fields
sap.s4hana.api_material_document_srv: ConnectionConfig
Provides a set of configurations for controlling the behaviours when communicating with a remote HTTP endpoint.
Fields
- auth BearerTokenConfig|OAuth2RefreshTokenGrantConfig|CredentialsConfig - Configurations related to client authentication
- httpVersion HttpVersion(default http:HTTP_2_0) - The HTTP version understood by the client
- http1Settings ClientHttp1Settings(default {}) - Configurations related to HTTP/1.x protocol
- http2Settings ClientHttp2Settings(default {}) - Configurations related to HTTP/2 protocol
- timeout decimal(default 60) - The maximum time to wait (in seconds) for a response before closing the connection
- forwarded string(default "disable") - The choice of setting
forwarded/x-forwardedheader
- followRedirects? FollowRedirects - Configurations associated with Redirection
- poolConfig? PoolConfiguration - Configurations associated with request pooling
- cache CacheConfig(default {}) - HTTP caching related configurations
- compression Compression(default http:COMPRESSION_AUTO) - Specifies the way of handling compression (
accept-encoding) header
- circuitBreaker? CircuitBreakerConfig - Configurations associated with the behaviour of the Circuit Breaker
- retryConfig? RetryConfig - Configurations associated with retrying
- cookieConfig? CookieConfig - Configurations associated with cookies
- responseLimits ResponseLimitConfigs(default {}) - Configurations associated with inbound response size limits
- secureSocket? ClientSecureSocket - SSL/TLS-related options
- proxy? ProxyConfig - Proxy server related options
- socketConfig ClientSocketConfig(default {}) - Provides settings related to client socket configuration
- validation boolean(default true) - Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
- laxDataBinding boolean(default true) - Enables relaxed data binding on the client side. When enabled,
nilvalues are treated as optional, and absent fields are handled asnilabletypes. Enabled by default.
sap.s4hana.api_material_document_srv: CreateA_MaterialDocumentHeader
Fields
- MaterialDocumentYear string -
- MaterialDocument string - Number of Material Document
- InventoryTransactionType? string? - Transaction/Event Type
- DocumentDate? string? - Document Date in Document
- PostingDate? string? - Posting Date in the Document
- CreationDate? string? - Day On Which Accounting Document Was Entered
- CreationTime? string? -
- CreatedByUser? string? -
- MaterialDocumentHeaderText? string? -
- ReferenceDocument? string? - Reference Document Number
- VersionForPrintingSlip? string? - Version for Printing GR/GI Slip
- ManualPrintIsTriggered? string? - Print via Output Control
- CtrlPostgForExtWhseMgmtSyst? string? - Control posting for external WMS
- GoodsMovementCode? string? -
- to_MaterialDocumentItem? CreateA_MaterialDocumentHeader_to_MaterialDocumentItem -
sap.s4hana.api_material_document_srv: CreateA_MaterialDocumentHeader_to_MaterialDocumentItem
Fields
- results? CreateA_MaterialDocumentItem[] -
sap.s4hana.api_material_document_srv: CreateA_MaterialDocumentItem
Fields
- MaterialDocumentYear string -
- MaterialDocument string - Number of Material Document
- MaterialDocumentItem string -
- Material? string? - Material Number
- Plant? string? -
- StorageLocation? string? -
- Batch? string? - Batch Number
- GoodsMovementType? string? - Movement Type (Inventory Management)
- InventoryStockType? string? - Stock Type of Goods Movement (Stock Identifier)
- InventoryValuationType? string? -
- InventorySpecialStockType? string? -
- Supplier? string? - Supplier's Account Number
- Customer? string? - Account number of customer
- SalesOrder? string? - Sales Order Number
- SalesOrderItem? string? -
- SalesOrderScheduleLine? string? -
- PurchaseOrder? string? - Purchase Order Number
- PurchaseOrderItem? string? - Item Number of Purchasing Document
- WBSElement? string? - Work Breakdown Structure Element (WBS Element)
- ManufacturingOrder? string? -
- ManufacturingOrderItem? string? -
- GoodsMovementRefDocType? string? - Goods movement ref doc type
- GoodsMovementReasonCode? string? -
- Delivery? string? -
- DeliveryItem? string? -
- AccountAssignmentCategory? string? -
- CostCenter? string? -
- ControllingArea? string? -
- CostObject? string? -
- GLAccount? string? - G/L Account Number
- FunctionalArea? string? -
- ProfitabilitySegment? string? -
- ProfitCenter? string? -
- MasterFixedAsset? string? - Main Asset Number
- FixedAsset? string? - Asset Subnumber
- MaterialBaseUnit? string? -
- QuantityInBaseUnit? string? -
- EntryUnit? string? - Unit of entry
- QuantityInEntryUnit? string? - Quantity in unit of entry
- CompanyCodeCurrency? string? -
- GdsMvtExtAmtInCoCodeCrcy? string? - Externally Entered Posting Amount in Local Currency
- SlsPrcAmtInclVATInCoCodeCrcy? string? - Value at Sales Prices Including Value-Added Tax
- FiscalYear? string? -
- FiscalYearPeriod? string? - Period Year
- FiscalYearVariant? string? -
- IssgOrRcvgMaterial? string? -
- IssgOrRcvgBatch? string? -
- IssuingOrReceivingPlant? string? - Receiving/Issuing Plant
- IssuingOrReceivingStorageLoc? string? - Receiving/issuing storage location
- IssuingOrReceivingStockType? string? -
- IssgOrRcvgSpclStockInd? string? -
- IssuingOrReceivingValType? string? - Valuation Type of Transfer Batch
- IsCompletelyDelivered? boolean? - "Delivery Completed" Indicator
- MaterialDocumentItemText? string? - Item Text
- GoodsRecipientName? string? -
- UnloadingPointName? string? -
- ShelfLifeExpirationDate? string? - Shelf Life Expiration or Best-Before Date
- ManufactureDate? string? -
- SerialNumbersAreCreatedAutomly? boolean? - Create serial number automatically
- Reservation? string? - Number of reservation/dependent requirements
- ReservationItem? string? - Item Number of Reservation / Dependent Requirements
- ReservationItemRecordType? string? -
- ReservationIsFinallyIssued? boolean? - Final Issue for Reservation
- SpecialStockIdfgSalesOrder? string? - Sales order number of valuated sales order stock
- SpecialStockIdfgSalesOrderItem? string? - Sales Order Item of Valuated Sales Order Stock
- SpecialStockIdfgWBSElement? string? - Work Breakdown Structure Element (WBS Element)
- IsAutomaticallyCreated? string? - Item Automatically Created Indicator
- MaterialDocumentLine? string? - Unique Identification of Document Line
- MaterialDocumentParentLine? string? - Identifier of immediately superior line
- HierarchyNodeLevel? string? - Hierarchy level of line in document
- GoodsMovementIsCancelled? boolean? - Item has been Cancelled
- ReversedMaterialDocumentYear? string? - Reversed Material Document Year
- ReversedMaterialDocument? string? - Reversed Material Document
- ReversedMaterialDocumentItem? string? - Reversed Material Document Item
- ReferenceDocumentFiscalYear? string? - Fiscal Year of a Reference Document
- InvtryMgmtRefDocumentItem? string? - Item of a Reference Document
- InvtryMgmtReferenceDocument? string? - Document No. of a Reference Document
- MaterialDocumentPostingType? string? - Reversal, return delivery, or transfer posting
- InventoryUsabilityCode? string? -
- EWMWarehouse? string? - Warehouse Number/Warehouse Complex
- EWMStorageBin? string? -
- DebitCreditCode? string? - Debit/Credit Indicator
- to_MaterialDocumentHeader? CreateA_MaterialDocumentHeader -
- to_SerialNumbers? CreateA_MaterialDocumentItem_to_SerialNumbers -
sap.s4hana.api_material_document_srv: CreateA_MaterialDocumentItem_to_SerialNumbers
Fields
- results? CreateA_SerialNumberMaterialDocument[] -
sap.s4hana.api_material_document_srv: CreateA_SerialNumberMaterialDocument
Fields
- Material string - Material Number
- SerialNumber string -
- MaterialDocument string - Number of Material Document
- MaterialDocumentItem string -
- MaterialDocumentYear string -
- ManufacturerSerialNumber? string? - Manufacturer's Serial Number
sap.s4hana.api_material_document_srv: CreateCancelItemQueries
Represents the Queries record for the operation: createCancelItem
Fields
- MaterialDocumentYear string - Material Doc. Year
(Value needs to be enclosed in single quotes)
- MaterialDocumentItem string - Material Doc.Item
(Value needs to be enclosed in single quotes)
- MaterialDocument string - Material Document
(Value needs to be enclosed in single quotes)
- PostingDate? string? - Posting Date
(Value needs to be enclosed in single quotes and prefixed withdatetime, e.g.datetime'2017-12-31T00:00')
sap.s4hana.api_material_document_srv: CreateCancelQueries
Represents the Queries record for the operation: createCancel
Fields
- MaterialDocumentYear string - Material Doc. Year
(Value needs to be enclosed in single quotes)
- MaterialDocument string - Material Document
(Value needs to be enclosed in single quotes)
- PostingDate? string? - Posting Date
(Value needs to be enclosed in single quotes and prefixed withdatetime, e.g.datetime'2017-12-31T00:00')
sap.s4hana.api_material_document_srv: GetA_MaterialDocumentHeaderQueries
Represents the Queries record for the operation: getA_MaterialDocumentHeader
Fields
- \$expand? A_MaterialDocumentHeaderExpandOptions - Expand related entities, see Expand
- \$select? A_MaterialDocumentHeaderSelectOptions - Select properties to be returned, see Select
sap.s4hana.api_material_document_srv: GetA_MaterialDocumentItemQueries
Represents the Queries record for the operation: getA_MaterialDocumentItem
Fields
- \$expand? A_MaterialDocumentItemExpandOptions - Expand related entities, see Expand
- \$select? A_MaterialDocumentItemSelectOptions - Select properties to be returned, see Select
sap.s4hana.api_material_document_srv: GetA_SerialNumberMaterialDocumentQueries
Represents the Queries record for the operation: getA_SerialNumberMaterialDocument
Fields
- \$select? A_SerialNumberMaterialDocumentSelectOptions - Select properties to be returned, see Select
sap.s4hana.api_material_document_srv: GetMaterialDocumentHeaderOfA_MaterialDocumentItemQueries
Represents the Queries record for the operation: getMaterialDocumentHeaderOfA_MaterialDocumentItem
Fields
- \$expand? MaterialDocumentHeaderOfA_MaterialDocumentItemExpandOptions - Expand related entities, see Expand
- \$select? MaterialDocumentHeaderOfA_MaterialDocumentItemSelectOptions - Select properties to be returned, see Select
sap.s4hana.api_material_document_srv: ListA_MaterialDocumentHeadersQueries
Represents the Queries record for the operation: listA_MaterialDocumentHeaders
Fields
- \$skip? int - Skip the first n items, see Paging - Skip
- \$top? int - Show only the first n items, see Paging - Top
- \$orderby? A_MaterialDocumentHeaderOrderByOptions - Order items by property values, see Sorting
- \$expand? A_MaterialDocumentHeaderExpandOptions - Expand related entities, see Expand
- \$inlinecount? "allpages"|"none" - Include count of items, see Inlinecount
- \$select? A_MaterialDocumentHeaderSelectOptions - Select properties to be returned, see Select
sap.s4hana.api_material_document_srv: ListA_MaterialDocumentItemsQueries
Represents the Queries record for the operation: listA_MaterialDocumentItems
Fields
- \$skip? int - Skip the first n items, see Paging - Skip
- \$top? int - Show only the first n items, see Paging - Top
- \$orderby? A_MaterialDocumentItemOrderByOptions - Order items by property values, see Sorting
- \$expand? A_MaterialDocumentItemExpandOptions - Expand related entities, see Expand
- \$inlinecount? "allpages"|"none" - Include count of items, see Inlinecount
- \$select? A_MaterialDocumentItemSelectOptions - Select properties to be returned, see Select
sap.s4hana.api_material_document_srv: ListA_SerialNumberMaterialDocumentsQueries
Represents the Queries record for the operation: listA_SerialNumberMaterialDocuments
Fields
- \$skip? int - Skip the first n items, see Paging - Skip
- \$top? int - Show only the first n items, see Paging - Top
- \$orderby? A_SerialNumberMaterialDocumentOrderByOptions - Order items by property values, see Sorting
- \$inlinecount? "allpages"|"none" - Include count of items, see Inlinecount
- \$select? A_SerialNumberMaterialDocumentSelectOptions - Select properties to be returned, see Select
sap.s4hana.api_material_document_srv: ListMaterialDocumentItemsOfA_MaterialDocumentHeaderQueries
Represents the Queries record for the operation: listMaterialDocumentItemsOfA_MaterialDocumentHeader
Fields
- \$skip? int - Skip the first n items, see Paging - Skip
- \$top? int - Show only the first n items, see Paging - Top
- \$orderby? MaterialDocumentItemOfA_MaterialDocumentHeaderOrderByOptions - Order items by property values, see Sorting
- \$expand? MaterialDocumentItemOfA_MaterialDocumentHeaderExpandOptions - Expand related entities, see Expand
- \$inlinecount? "allpages"|"none" - Include count of items, see Inlinecount
- \$select? MaterialDocumentItemOfA_MaterialDocumentHeaderSelectOptions - Select properties to be returned, see Select
sap.s4hana.api_material_document_srv: ListSerialNumberssOfA_MaterialDocumentItemQueries
Represents the Queries record for the operation: listSerialNumberssOfA_MaterialDocumentItem
Fields
- \$skip? int - Skip the first n items, see Paging - Skip
- \$top? int - Show only the first n items, see Paging - Top
- \$orderby? SerialNumbersOfA_MaterialDocumentItemOrderByOptions - Order items by property values, see Sorting
- \$inlinecount? "allpages"|"none" - Include count of items, see Inlinecount
- \$select? SerialNumbersOfA_MaterialDocumentItemSelectOptions - Select properties to be returned, see Select
sap.s4hana.api_material_document_srv: OAuth2RefreshTokenGrantConfig
OAuth2 Refresh Token Grant Configs
Fields
- Fields Included from *OAuth2RefreshTokenGrantConfig
- refreshUrl string(default "https://{host}:{port}") - Refresh URL
Array types
sap.s4hana.api_material_document_srv: SerialNumbersOfA_MaterialDocumentItemSelectOptions
SerialNumbersOfA_MaterialDocumentItemSelectOptions
sap.s4hana.api_material_document_srv: A_MaterialDocumentItemOrderByOptions
A_MaterialDocumentItemOrderByOptions
sap.s4hana.api_material_document_srv: A_MaterialDocumentHeaderSelectOptions
A_MaterialDocumentHeaderSelectOptions
sap.s4hana.api_material_document_srv: A_SerialNumberMaterialDocumentSelectOptions
A_SerialNumberMaterialDocumentSelectOptions
sap.s4hana.api_material_document_srv: A_MaterialDocumentHeaderOrderByOptions
A_MaterialDocumentHeaderOrderByOptions
sap.s4hana.api_material_document_srv: MaterialDocumentItemOfA_MaterialDocumentHeaderSelectOptions
MaterialDocumentItemOfA_MaterialDocumentHeaderSelectOptions
sap.s4hana.api_material_document_srv: MaterialDocumentItemOfA_MaterialDocumentHeaderOrderByOptions
MaterialDocumentItemOfA_MaterialDocumentHeaderOrderByOptions
sap.s4hana.api_material_document_srv: MaterialDocumentHeaderOfA_MaterialDocumentItemExpandOptions
MaterialDocumentHeaderOfA_MaterialDocumentItemExpandOptions
sap.s4hana.api_material_document_srv: MaterialDocumentHeaderOfA_MaterialDocumentItemSelectOptions
MaterialDocumentHeaderOfA_MaterialDocumentItemSelectOptions
sap.s4hana.api_material_document_srv: A_MaterialDocumentHeaderExpandOptions
A_MaterialDocumentHeaderExpandOptions
sap.s4hana.api_material_document_srv: SerialNumbersOfA_MaterialDocumentItemOrderByOptions
SerialNumbersOfA_MaterialDocumentItemOrderByOptions
sap.s4hana.api_material_document_srv: A_MaterialDocumentItemExpandOptions
A_MaterialDocumentItemExpandOptions
sap.s4hana.api_material_document_srv: A_SerialNumberMaterialDocumentOrderByOptions
A_SerialNumberMaterialDocumentOrderByOptions
sap.s4hana.api_material_document_srv: A_MaterialDocumentItemSelectOptions
A_MaterialDocumentItemSelectOptions
sap.s4hana.api_material_document_srv: MaterialDocumentItemOfA_MaterialDocumentHeaderExpandOptions
MaterialDocumentItemOfA_MaterialDocumentHeaderExpandOptions
String types
sap.s4hana.api_material_document_srv: count
count
The number of entities in the collection. Available when using the $inlinecount query option.
Import
import ballerinax/sap.s4hana.api_material_document_srv;Other versions
1.0.0
Metadata
Released date: 2 days ago
Version: 1.0.0
License: Apache-2.0
Compatibility
Platform: any
Ballerina version: 2201.13.0
GraalVM compatible: Yes
Pull count
Total: 2
Current verison: 2
Weekly downloads
Keywords
Name/SAP S/4HANA Material Document
Type/Connector
Vendor/SAP
Area/ERP & Business Operations
Business Management/ERP
Cost/Paid
S/4HANA
Inventory
Materials Management
MM
Material Document
Goods Movement
Contributors