All skills
secondsky avatar

/sap-abap

@620a19a
by Eddiesecondsky/sap-skills456 stars
120

Comprehensive ABAP development skill for SAP systems. Use when writing ABAP code, working with internal tables, structures, ABAP SQL, object-oriented programming, RAP (RESTful Application Programming Model), CDS views, EML statements, ABAP Cloud development, string processing, dynamic programming, RTTI/RTTC, field symbols, data references, exception handling, or ABAP unit testing. Covers both classic ABAP and modern ABAP for Cloud Development patterns.

Use this Skill: https://skilld.dev/gh/secondsky/sap-skills/sap-abap

This session only. Nothing lands on disk.

referencesbits-bytes.md

≈408 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Bits and Bytes - Complete Reference

Source: https://github.com/SAP-samples/abap-cheat-sheets/blob/main/09_Bits_and_Bytes.md


Hexadecimal Data Type

" Byte string (hexadecimal)
DATA hex TYPE x LENGTH 4 VALUE 'CDFFC8FF'.

Bitwise Operations

BIT-NOT Operator

DATA hex TYPE x LENGTH 4 VALUE 'CDFFC8FF'.
hex = BIT-NOT hex.

Other Bitwise Operators

" BIT-AND
result = hex1 BIT-AND hex2.

" BIT-OR
result = hex1 BIT-OR hex2.

" BIT-XOR
result = hex1 BIT-XOR hex2.

Casting with Field Symbols

Interpret data in memory under different types:

DATA hex TYPE x LENGTH 4 VALUE '32003700'.

FIELD-SYMBOLS: <num>  TYPE i,
               <text> TYPE c.

ASSIGN hex TO <num>  CASTING.
ASSIGN hex TO <text> CASTING.

cl_demo_output=>new(
  )->write_data( hex
  )->write_data( <num>
  )->write_data( <text> )->display( ).

Type Conversion

" Character to numeric triggers hex transformation
DATA: text TYPE c LENGTH 2 VALUE '27',
      num  TYPE i.
num = text.

Byte String Operations

" Concatenate byte strings
DATA: xstr1 TYPE xstring VALUE '0A0B',
      xstr2 TYPE xstring VALUE '0C0D',
      result TYPE xstring.
result = xstr1 && xstr2.

" Length of byte string
DATA(len) = xstrlen( xstr1 ).

Best Practices

  1. Use CASTING for low-level type reinterpretation
  2. Handle endianness when working with binary data
  3. Use xstring for variable-length byte sequences
  4. Check lengths when manipulating byte data

Source: SKILL.md on GitHub

No alerts16d5 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    A comprehensive reference for SAP ABAP development, providing documentation and code examples for both classic ABAP and modern ABAP Cloud patterns. No security issues were detected.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: LOW · No issues

  • Runlayer6mo

    3/32 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 620a19a. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 2 months ago
Other metadata
metadata
{
  "maintainer": "Eduard Jiglau",
  "maintainer_email": "hello@sap-ai-skills.com",
  "website": "https://sap-ai-skills.com",
  "version": "2.4.1",
  "last_verified": "2026-04-02",
  "abap_release": "7.40 SP08+ / 7.50+ / ABAP Cloud",
  "sources": [
    "https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm",
    "https://github.com/SAP-samples/abap-cheat-sheets"
  ]
}

README badge

README badge for secondsky/sap-skills/sap-abap