Skip to main content

source: Download and upload source

Read and write ABAP source. Uploads run the lock → write → unlock → activate lifecycle.

Related guides: edit-source.

5 commands.

abapctl source get

READ IDEMP

Download ABAP source code

OptionRequiredDescription
object (positional)yesobject (object/name argument)
--connectionnoconnection profile name
--includenoclass include type
--adt-typenoADT object type (e.g. PROG/P, FUGR/FF). Use when a name is shared by multiple object types
abapctl source get ZCL_FOO

abapctl source put

DESTR

Upload ABAP source code (lock → write → unlock → activate)

prompts for confirmation; read-only with --dry-run

OptionRequiredDescription
object (positional)yesobject (object/name argument)
--fileyespath to source file
--connectionnoconnection profile name
--includenoclass include type
--adt-typenoADT object type (e.g. PROG/P, FUGR/FF). Use when a name is shared by multiple object types
--transportnotransport request number
--yesnoskip confirmation prompt
--no-activatenoskip activation after write
--dry-runnoshow what would be uploaded without writing
abapctl source put ZCL_FOO --dry-run

abapctl source push

DESTR

Upload multiple ABAP source files (sequential lock → write → unlock, batch activate)

prompts for confirmation; read-only with --dry-run

OptionRequiredDescription
objects (positional)yesobjects (object/name argument)
--connectionnoconnection profile name
--dirnodirectory containing <OBJNAME>.abap files
--transportnotransport request number
--yesnoskip confirmation prompt
--no-activatenoskip activation after write
--dry-runnoshow what would be pushed without writing
abapctl source push ZCL_FOO ZCL_BAR --dry-run

abapctl source format

READ IDEMP

Pretty-print ABAP source from stdin

OptionRequiredDescription
--connectionnoconnection profile name
abapctl source format

abapctl source format-settings

IDEMP

Get or set pretty printer settings

read-only without --style or --indentation

OptionRequiredDescription
--connectionnoconnection profile name
--stylenoset style (toLower, toUpper, keywordUpper, keywordLower, keywordAuto, none)
--indentationnoset indentation (true/false)
abapctl source format-settings