Poul Bundgaard
Poul Bundgaard

Reputation: 1

ABAP: Generate class with SEO_CLASS_CREATE_COMPLETE with pretty printer

I'm using the Function Module SEO_CLASS_CREATE_COMPLETE to generate classes, but the problem is, that it doesn't do Pretty-print on the source code.

Q:

  1. Is there a way to make the FM do Pretty-print?

  2. Alternatively, is there a way to read the new generated class source, do pretty-print, and save it again?

  3. Alternatively, is there a better way (FM's, classes...) to generate classes, which includes automatic Pretty-print?

    CALL FUNCTION 'SEO_CLASS_CREATE_COMPLETE'
      EXPORTING
        devclass          = 'ZDKD_POSTING_AREA'   "Package
        version           = seoc_version_active
        authority_check   = seox_true
        overwrite         = seox_true
        method_sources    = gt_method_sources
        lifecycle_manager = lr_lifecycle_manager
      CHANGING
        class             = wa_vseoclass
        inheritance       = wa_vseoextend
        attributes        = gt_attributes
        methods           = gt_methods
        parameters        = gt_parameters
        exceps            = gt_exceptions.
    

Upvotes: 0

Views: 122

Answers (0)

Related Questions