Skip to Content

Error while Generating Runtime objects

Hi Experts,

I have created a project in SEGW transaction which consists of a Entity Type and Its corresponding EntitySet. The Entity Type consists of various fields of type string, datetime, decimal, time. But at the time of generating runtime objects it gives an error Syntax in Public Section. And then in the messages it says Internal error occurred MPC "Class Name" generated with syntax errors.

Then going through the class in se24 checking the code of Types Section in the class it shows an error The statement 'TYPES' must be followed by other additions. 

As in the public section the code of TYPES is as follow:

types:   .

types:

tt_text type standard table of ts_text.

No fields of the entity type is being getting generated in the type section thats the issue that ts_text does'nt exists.

Please suggest some solution.

Regards,

Rachna

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Jan 19, 2015 at 10:30 AM

    Hi Rachna ,

                  Probabily you have created the entity type and entity set with the same name before and generated object ? If you are recreating again then the generated objects may exits sometimes . Try commenting the code and generate .

    Regards ,

    Dinesh

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 28, 2015 at 02:17 PM

    Hi Rachna,

    Please try to delete the entity type and entity sets related to it and recreate them again. MPC class will generate automatically based on the Entity Types you have given.

    Thanks,

    Naga

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 26, 2015 at 03:28 PM

    Hi Rachna


    Is the issue resolved? I'm facing the same issue even after deleting the entitytype and related Entitysets. Please respond.

    Thanks

    Praveen.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 23, 2015 at 10:13 AM

    Hi Rachna,

    I was facing the exact same problem:

    I had trouble using timestamp attributes, so I deleted my whole data model.

    After redefining it (using the exact same names for everything), generating runtime objects failed.

    I solved this problem by adding another entity type. The runtime objects were successfully generated and I deleted the added entity types.

    Maybe that could work for you.

    Best,

    Dominik

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 10, 2016 at 11:34 PM

    Hi Rachna

           I am facing the same issue in our BW development system .

    Did you get any resolution to this error ? Was any note released for your error ?

    Your help will be much appreciated.

    Thanks

    Vinay

    Add comment
    10|10000 characters needed characters exceeded