Skip to main content
Glama
handleGetTransaction.ts849 B
import { McpError, ErrorCode, AxiosResponse } from '../lib/utils'; import { makeAdtRequest, return_error, return_response, getBaseUrl } from '../lib/utils'; export async function handleGetTransaction(args: any) { try { if (!args?.transaction_name) { throw new McpError(ErrorCode.InvalidParams, 'Transaction name is required'); } const encodedTransactionName = encodeURIComponent(args.transaction_name); const url = `${await getBaseUrl()}/sap/bc/adt/repository/informationsystem/objectproperties/values?uri=%2Fsap%2Fbc%2Fadt%2Fvit%2Fwb%2Fobject_type%2Ftrant%2Fobject_name%2F${encodedTransactionName}&facet=package&facet=appl`; const response = await makeAdtRequest(url, 'GET', 30000); return return_response(response); } catch (error) { return return_error(error); } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mario-andreschak/mcp-abap-adt'

If you have feedback or need assistance with the MCP directory API, please join our Discord server