Overview
The following operations allow you to work with methods for Materials in SAP ByDesign system. Click an operation name to see details on how to use it.
...
Operation details
This section provides further details on the operations related to Materials in SAP ByDesign system.
You can browse the Docs available in your SAP ByDesign system or else find this documentation:
http://help.sap.com/saphelp_byd1405/en/PUBLISHING/PSM_ISI_R_II_QUERY_MAT_IN.html
Anchor |
---|
| queryMaterials |
---|
| queryMaterials |
---|
|
Retrieving material informationThe queryMaterials
operation is to query the materials in your system.
Code Block |
---|
language | xml |
---|
title | queryMaterials |
---|
|
<sapbydesign.queryMaterials>
<queryObject>{$ctx:queryObject}</queryObject>
<processingConditionsObject>{$ctx:processingConditionsObject}</processingConditionsObject>
<requestedElementsObject>{$ctx:requestedElementsObject}</requestedElementsObject>
</sapbydesign.queryMaterials> |
Properties
queryObject :
Query object that groups all possible MaterialSelectionByElements section parameters.processingConditionsObject:
The xml object which contains the conditions to manage the query result.requestedElementsObject :
The xml object which determines the material data elements to be retrieved.
Sample requestFollowing is a sample REST/JSON request that can be handled by the queryMaterials
operation.
Code Block |
---|
language | xml |
---|
title | Sample Request for queryMaterials Method |
---|
|
<queryMaterials>
<username>USERNAME</username>
<password>PASSWORD</password>
<sapHost>HOST</sapHost>
<blocking>false</blocking>
<queryObject>
<MaterialSelectionByElements>
<SelectionByInternalID>
<InclusionExclusionCode>I</InclusionExclusionCode>
<IntervalBoundaryTypeCode>1</IntervalBoundaryTypeCode>
<LowerBoundaryInternalID>RC-70-00037-01</LowerBoundaryInternalID>
<UpperBoundaryInternalID/>
</SelectionByInternalID>
</MaterialSelectionByElements>
</queryObject>
<processingConditionsObject>
<ProcessingConditions>
<QueryHitsUnlimitedIndicator>true</QueryHitsUnlimitedIndicator>
<LastReturnedObjectID></LastReturnedObjectID>
</ProcessingConditions>
</processingConditionsObject>
<requestedElementsObject>
<RequestedElements materialTransmissionRequestCode="2">
<Material descriptionTransmissionRequestCode="2" quantityConversionTransmissionRequestCode="2"
salesTransmissionRequestCode="1"/>
</RequestedElements>
</requestedElementsObject>
</queryMaterials> |
Anchor |
---|
| sampleconfiguration |
---|
| sampleconfiguration |
---|
|
Sample configurationFollowing is a sample proxy service that illustrates how to connect to SAP ByDesign with the init
operation and use the queryMaterials
operation. The sample request for this proxy can be found in the queryMaterials sample request. You can use this sample as a template for using other operations in this category.
...