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: 
Read only

Generating Interface with types via coding

Sschlegel
SAP Champion
SAP Champion
0 Likes
2,012

Hi @all,

I'm getting almost crazy while I try to use the FM "SEO_INTERFACE_CREATE_COMPLETE"

I call the Function Module like this:

    CALL FUNCTION 'SEO_INTERFACE_CREATE_COMPLETE'
      EXPORTING
        version                      = seoc_version_active "activate
        genflag                      = abap_false
        authority_check              = abap_true
        overwrite                    = iv_overwrite
        suppress_refactoring_support = abap_false
        typesrc                      = mt_typescr
      IMPORTING
        korrnr                       = lv_korrnr
      CHANGING
        interface                    = ls_interface
        types                        = mt_types
      EXCEPTIONS
        existing                     = 1
        is_class                     = 2
        db_error                     = 3
        component_error              = 4
        no_access                    = 5
        other                        = 6
        OTHERS                       = 7.

The Interface is created and activated and also I find the types created in the formular view, but the types are always empty - more or less just metadata without content.

That are the parameters and give to the call:

Just one line in mt_types:

and the entries for the typesrc:

But the result looks like this:

What is the mistake I make?

I'm praying for help!

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
1,853

Did you look at a sample like report SEO_GENERATE_CLASS_EXAMPLE (in SEOK package too) or in the code of a tool like SAPLINK.

What is the functional need to create a class?

3 REPLIES 3
Read only

retired_member
Product and Topic Expert
Product and Topic Expert
1,853

You are using internal functionality of the ABAP infrastructure that is not intended for standalone public usage.

Read only

RaymondGiuseppi
Active Contributor
1,854

Did you look at a sample like report SEO_GENERATE_CLASS_EXAMPLE (in SEOK package too) or in the code of a tool like SAPLINK.

What is the functional need to create a class?

Read only

0 Likes
1,853

Hi Raymond,

I took a look into the Coding of ABAPGit and found what I need - thx for the hint!

Regards

Sören