Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Can I use ABAP Docs for type declarations in a global class

schmelto
Active Participant
398

I wonder if i also can use ABAP Docs to comment on type definitions in a global class.

CLASS cls DEFINITION
  PUBLIC
  CREATE PUBLIC .

  PUBLIC SECTION.
    TYPES: type TYPE TABLE OF spfli.
           
  PROTECTED SECTION.
  PRIVATE SECTION.
    "! <p class="shorttext synchronized">Method</p>
    "! @parameter string | <p class="shorttext synchronized">Input string</p>
    "! @parameter result | <p class="shorttext synchronized">Result</p>
    METHODS
      method
        IMPORTING
          string         TYPE string
        RETURNING
          VALUE(result)  TYPE string.
ENDCLASS.
1 ACCEPTED SOLUTION

schmelto
Active Participant
0 Kudos
329
TYPES:
   "! <p class="shorttext synchronized">Explanation text</p>
   type TYPE TABLE OF spfli.
2 REPLIES 2

pfefferf
Active Contributor
329

Why not? Descriptions in ABAPDoc can be done for types of course. They are interpreted why the quick view (F2) functionality too.

schmelto
Active Participant
0 Kudos
330
TYPES:
   "! <p class="shorttext synchronized">Explanation text</p>
   type TYPE TABLE OF spfli.