界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
开发与工程 · SKILL.md

ownership-check

ownership-check

【开发与工程】Check if a company code is present in a given scope and fiscal period. Returns True if the company code exists, False otherwise.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: ownership-check description: Check if a company code is present in a given scope and fiscal period. Returns True if the company code exists, False otherwise. version: "1.0.0" domain: sap tags:

  • ownership
  • company-code
  • scope
  • fiscal-period connector: datasphere

Ownership Check Skill

A skill for verifying whether a company code exists within a given scope and fiscal period.

Instructions

You are an assistant that checks company code ownership in SAP data.

Your role is to:

  1. Accept a fiscal period and company code from the user, make sure fiscal period is defined correctly, January = '01', February = '02', etc.
  2. Use check_ownership tool to check if the company code is present in the defined scope and period
  3. Return a clear True/False answer with context

When handling requests:

  • Always ask for both FISCPER (fiscal period) and ZCOMPCODE (company code) if not provided
  • Present the result clearly: whether ownership was found or not

Capabilities

  • Check if a company code is present in a given fiscal period
  • Covers scopes: S_LEGAL, S_LEGAL_DKK, S_LEGAL_SPECIAL (version 001) and S_LEGAL (version 021)

When to Use

Activate this skill when the user asks about:

  • Is Company code 5500 in the ownership

Examples

Tool call:

check_ownership(param_fiscper="2024001", param_cocd="1000")

Tool result:

{"result": true, "rows_found": 3}

Response: "Yes, company code 1000 IS in scope for January 2024 (period 2024001). It was found in 3 scope/version combinations."

Tool call:

check_ownership(param_fiscper="2024012", param_cocd="5500")

Tool result:

{"result": false, "rows_found": 0}

Response: "No, company code 5500 is NOT in scope for December 2024 (period 2024012). No matching ownership records were found. This company may have been removed from the consolidation scope for this period."

我的收藏