Skip to Content
avatar image
Former Member

Increasing the length of a string field in a structure of a standard odata service

Hello,

Their is particular requirement that I have been working on past few days. Requirement is to increase the length of a structure field which is a part of a standard Fiori app. The structure of (Entity type field )odata service must have a max length specified which is currently 0 in standard.

Since the field that I am trying to increase the length is a part of a standard I tried to create a Z structure of the same and tried to increase the length of it. Then I tried to delete the entity type and then added it with the custom structure and regenerated the entire thing after adding all the navigation,referential keys and associations. The configuration is exactly the same as it was with the standard except that the custom Entity type field has a length specifed. When I run the service it says that

"Association name ""ABAP field already exists"

Can you please let me know if the approach I am following is right? Also please let me know how possibly I can achieve this requirement.

Note: For some reason since its a standard service redefined in segw I am unable to change the er entity type. It still has the standard structure referenced.

Thanks,

Deepak.M

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jul 18, 2017 at 01:33 PM

    Try enhancing the model in model provider class extension ( z...mpc_ext) by redefining method "define_<entity>"

    Looking at the generated code will give you an idea if something went wrong when you are using the graphical modeler in SEGW.

    And I am curious why does it say "Association", make sure you are referring the new field in your Association .

    Add comment
    10|10000 characters needed characters exceeded