How do I format a Post Goods Issue function call using SAP Cloud SDK for javascript? The following returns error: "Invalid Function Import Parameter 'OutboundDeliveryOrder'. I get the exact same error whether or not I pass the obj. This makes me think I'm not passing the function input parameters correctly but I cannot find any code examples on how it's meant to be done.
var dh = require("@sap/cloud-sdk-vdm-warehouse-outbound-delivery-order-service"); //"^1.9.2" var obj = {"OutboundDeliveryOrder": MovementId}; var destination = await cfDestinations.readTenant(constants.endpoint.S4Endpoint, req); S4Destination = { url: destination.url, authentication: destination.authType, username: destination.user, password: destination.password }; dh.postGoodsIssue(obj) .execute(S4Destination) .then((response) => { return res.status(200).send(response); }) .catch(function (err) { return res.status(400).send(err); });
edit: including the vdm documentation link: https://help.sap.com/doc/69202ef7e0a64767833782132648b855/1.0/en-US/modules/_sap_cloud_sdk_vdm_warehouse_outbound_delivery_order_service.html