Skip to Content

How to make change the Extension definition field data type

Hi All

I want to change the String data type length of some custom field in SAP Sourcing application under Master agreement.

But I am not able to change the length of that field in extension definition even in Edit mode(standard behavior may be)

As the particular field is integrated through PI to ECC I can not simply inactive and make the new one.

So could some one help me or provide me any workaround to make it possible without making new filed and again integrate the same to ECC?

Could we can achieve this using script in script definition?

Thanks for your kind feedback.


Peeyush Ranjan

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Dec 09, 2015 at 07:19 PM

    Extensions when created actually generate physical database modifications. These can't be changed after the fact. If you needed fewer characters you could probably use scripting to truncate the values. However, if you need more characters than there are now your only course of action would be to create a new field of proper type/size and reintegrate that. You could script a way to move data from the old field to the new one in cases where it existed if need be.



    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Toma,

      As I just want to decresase the defined size of the field so I think it is ok to put some validation perticular on that filed.

      like doc.getExtensionField("Z_STRING").length()> 10

      then trow exception on that filed to make it up to 10 size

      Please kindly suggest if any .


      Peeyush Ranjan

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.