diff --git a/composer.lock b/composer.lock index d7de46f..dcc874f 100644 --- a/composer.lock +++ b/composer.lock @@ -8,16 +8,16 @@ "packages": [ { "name": "php-sap/common", - "version": "v6.0.0", + "version": "v6.1.0", "source": { "type": "git", "url": "https://github.com/php-sap/common.git", - "reference": "85ea659659f9569246c778e082935ad813b1866f" + "reference": "5598d0f9831f07b33a2e92392300aa176540e3cf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-sap/common/zipball/85ea659659f9569246c778e082935ad813b1866f", - "reference": "85ea659659f9569246c778e082935ad813b1866f", + "url": "https://api.github.com/repos/php-sap/common/zipball/5598d0f9831f07b33a2e92392300aa176540e3cf", + "reference": "5598d0f9831f07b33a2e92392300aa176540e3cf", "shasum": "" }, "require": { @@ -56,9 +56,9 @@ ], "support": { "issues": "https://github.com/php-sap/common/issues", - "source": "https://github.com/php-sap/common/tree/v6.0.0" + "source": "https://github.com/php-sap/common/tree/v6.1.0" }, - "time": "2024-08-05T11:02:59+00:00" + "time": "2024-08-05T12:09:10+00:00" }, { "name": "php-sap/datetime", @@ -117,16 +117,16 @@ }, { "name": "php-sap/interfaces", - "version": "v5.0.0", + "version": "v5.1.1", "source": { "type": "git", "url": "https://github.com/php-sap/interfaces.git", - "reference": "d4ae1038eb26251f5e32eb6429cdf4f40d2ab422" + "reference": "5805508158fc086af2d5e977b0be6c115c04746f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-sap/interfaces/zipball/d4ae1038eb26251f5e32eb6429cdf4f40d2ab422", - "reference": "d4ae1038eb26251f5e32eb6429cdf4f40d2ab422", + "url": "https://api.github.com/repos/php-sap/interfaces/zipball/5805508158fc086af2d5e977b0be6c115c04746f", + "reference": "5805508158fc086af2d5e977b0be6c115c04746f", "shasum": "" }, "require": { @@ -165,9 +165,9 @@ ], "support": { "issues": "https://github.com/php-sap/interfaces/issues", - "source": "https://github.com/php-sap/interfaces/tree/v5.0.0" + "source": "https://github.com/php-sap/interfaces/tree/v5.1.1" }, - "time": "2024-07-30T12:11:01+00:00" + "time": "2024-08-05T12:15:50+00:00" } ], "packages-dev": [ diff --git a/src/SapRfc.php b/src/SapRfc.php index fe63bb9..e817da5 100644 --- a/src/SapRfc.php +++ b/src/SapRfc.php @@ -208,7 +208,10 @@ public function invoke(): array */ $params = array_merge( $this->getInputParams( - $this->getApi()->getInputElements(), + array_merge( + $this->getApi()->getInputElements(), + $this->getApi()->getChangingElements() + ), $this->getParams() ), $this->getTableParams( @@ -235,6 +238,7 @@ public function invoke(): array */ return $this->castOutput(array_merge( $this->getApi()->getOutputElements(), + $this->getApi()->getChangingElements(), $this->getApi()->getTables() ), $result); } diff --git a/src/Traits/ApiTrait.php b/src/Traits/ApiTrait.php index 57f3a16..0ac3fa0 100644 --- a/src/Traits/ApiTrait.php +++ b/src/Traits/ApiTrait.php @@ -107,9 +107,10 @@ private function mapType(string $type): string private function mapDirection(string $direction): string { $mapping = [ - 'RFC_EXPORT' => IApiElement::DIRECTION_OUTPUT, - 'RFC_IMPORT' => IApiElement::DIRECTION_INPUT, - 'RFC_TABLES' => ITable::DIRECTION_TABLE + 'RFC_EXPORT' => IApiElement::DIRECTION_OUTPUT, + 'RFC_IMPORT' => IApiElement::DIRECTION_INPUT, + 'RFC_CHANGING' => IApiElement::DIRECTION_CHANGING, + 'RFC_TABLES' => ITable::DIRECTION_TABLE ]; if (!array_key_exists($direction, $mapping)) { throw new SapLogicException(sprintf('Unknown SAP Netweaver RFC direction \'%s\'!', $direction));