‎2013 Nov 26 7:46 PM
Hello
In our system we have a Z table to store a Z module pool prog., wherein some field's data will is not fixed in lenght, for example, long texts entered by user on Z dialog prog.'s screen, like that we have 5 long text fields on this Z dialog prog., hence initial developer created a 5 fields with STRING data element in this Z table
Pls. let me know
1) is it OK to have 5 fields with STRING type data in the Z table?
2) At this point (users are using already in production since 3 months) can i remediate/repair it any thing?
3) If i leave it as is, going further, do we gonna have any risks/dangers?
Thank you
‎2013 Nov 26 8:38 PM
I can't see any risk, but i think the better way to do this was creating long text through SO10 transaction. And populating this long text in your z program....
Remember with the string field has a lenght of 255 characteres.... Thats the only problem i can see...
To change this, will be necessary create a routine to migrate the data from string field to long text, or do this manually.
If you need more help about use long text let me know...
Regards
‎2013 Nov 26 8:38 PM
I can't see any risk, but i think the better way to do this was creating long text through SO10 transaction. And populating this long text in your z program....
Remember with the string field has a lenght of 255 characteres.... Thats the only problem i can see...
To change this, will be necessary create a routine to migrate the data from string field to long text, or do this manually.
If you need more help about use long text let me know...
Regards
‎2013 Nov 26 9:57 PM
Thank you.
Its not prog. is defaulting on the screen, user enters text any # of length, then the Z prog. is storing it in Z table, hence SO10 ruled out
I guess, the STRINGVAL is not of 255 lenght, its like infinitive
As SO10 ruled out hence not migrating
‎2013 Nov 27 2:40 AM
Yes, There is no problem in using string type variable.
And yes string is not limited to 255 character. When user want to see data in string by debugging a code it will show you 255 char but it can store more then that.
‎2013 Nov 27 10:01 PM
Let me keep open my question until maintenence window is done / Dec 02nd then i will close
THANK YOU