Skip to content

Commit 7b55e60

Browse files
authored
improvement(sap_s4hana): use MERGE for OData v2 updates and enlarge icon (#4332)
1 parent 7f12a13 commit 7b55e60

9 files changed

Lines changed: 9 additions & 9 deletions

File tree

apps/docs/components/icons.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4099,7 +4099,7 @@ export function SalesforceIcon(props: SVGProps<SVGSVGElement>) {
40994099
export function SapS4HanaIcon(props: SVGProps<SVGSVGElement>) {
41004100
const id = useId()
41014101
return (
4102-
<svg {...props} xmlns='http://www.w3.org/2000/svg' viewBox='0 0 412.38 204'>
4102+
<svg {...props} xmlns='http://www.w3.org/2000/svg' viewBox='15 10 382.38 184'>
41034103
<defs>
41044104
<linearGradient
41054105
id={id}

apps/sim/components/icons.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4099,7 +4099,7 @@ export function SalesforceIcon(props: SVGProps<SVGSVGElement>) {
40994099
export function SapS4HanaIcon(props: SVGProps<SVGSVGElement>) {
41004100
const id = useId()
41014101
return (
4102-
<svg {...props} xmlns='http://www.w3.org/2000/svg' viewBox='0 0 412.38 204'>
4102+
<svg {...props} xmlns='http://www.w3.org/2000/svg' viewBox='15 10 382.38 184'>
41034103
<defs>
41044104
<linearGradient
41054105
id={id}

apps/sim/tools/sap_s4hana/update_business_partner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export const updateBusinessPartnerTool: ToolConfig<UpdateBusinessPartnerParams,
110110
...baseProxyBody(params),
111111
service: 'API_BUSINESS_PARTNER',
112112
path: `/A_BusinessPartner(${quoteOdataKey(params.businessPartner)})`,
113-
method: 'PATCH',
113+
method: 'MERGE',
114114
query: { $format: 'json' },
115115
body: payload,
116116
ifMatch: params.ifMatch || '*',

apps/sim/tools/sap_s4hana/update_customer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export const updateCustomerTool: ToolConfig<UpdateCustomerParams, SapProxyRespon
109109
...baseProxyBody(params),
110110
service: 'API_BUSINESS_PARTNER',
111111
path: `/A_Customer(${quoteOdataKey(params.customer)})`,
112-
method: 'PATCH',
112+
method: 'MERGE',
113113
query: { $format: 'json' },
114114
body: payload,
115115
ifMatch: params.ifMatch || '*',

apps/sim/tools/sap_s4hana/update_product.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export const updateProductTool: ToolConfig<UpdateProductParams, SapProxyResponse
109109
...baseProxyBody(params),
110110
service: 'API_PRODUCT_SRV',
111111
path: `/A_Product(${quoteOdataKey(params.product)})`,
112-
method: 'PATCH',
112+
method: 'MERGE',
113113
query: { $format: 'json' },
114114
body: payload,
115115
ifMatch: params.ifMatch || '*',

apps/sim/tools/sap_s4hana/update_purchase_order.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export const updatePurchaseOrderTool: ToolConfig<UpdatePurchaseOrderParams, SapP
109109
...baseProxyBody(params),
110110
service: 'API_PURCHASEORDER_PROCESS_SRV',
111111
path: `/A_PurchaseOrder(${quoteOdataKey(params.purchaseOrder)})`,
112-
method: 'PATCH',
112+
method: 'MERGE',
113113
query: { $format: 'json' },
114114
body: payload,
115115
ifMatch: params.ifMatch || '*',

apps/sim/tools/sap_s4hana/update_purchase_requisition.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export const updatePurchaseRequisitionTool: ToolConfig<
112112
...baseProxyBody(params),
113113
service: 'API_PURCHASEREQ_PROCESS_SRV',
114114
path: `/A_PurchaseRequisitionHeader(${quoteOdataKey(params.purchaseRequisition)})`,
115-
method: 'PATCH',
115+
method: 'MERGE',
116116
query: { $format: 'json' },
117117
body: payload,
118118
ifMatch: params.ifMatch || '*',

apps/sim/tools/sap_s4hana/update_sales_order.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export const updateSalesOrderTool: ToolConfig<UpdateSalesOrderParams, SapProxyRe
109109
...baseProxyBody(params),
110110
service: 'API_SALES_ORDER_SRV',
111111
path: `/A_SalesOrder(${quoteOdataKey(params.salesOrder)})`,
112-
method: 'PATCH',
112+
method: 'MERGE',
113113
query: { $format: 'json' },
114114
body: payload,
115115
ifMatch: params.ifMatch || '*',

apps/sim/tools/sap_s4hana/update_supplier.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export const updateSupplierTool: ToolConfig<UpdateSupplierParams, SapProxyRespon
109109
...baseProxyBody(params),
110110
service: 'API_BUSINESS_PARTNER',
111111
path: `/A_Supplier(${quoteOdataKey(params.supplier)})`,
112-
method: 'PATCH',
112+
method: 'MERGE',
113113
query: { $format: 'json' },
114114
body: payload,
115115
ifMatch: params.ifMatch || '*',

0 commit comments

Comments
 (0)