Skip to Content

String to CodeRegion

Dears,

I created a custom field (Short Text) via KUT that I want to reuse into an ABSL script. The request is to move the first two characters of the string field into another one declared like RegionCode, but the assignment of the type 'String' to the type 'RegionCode' is not possible.

How can I solve the problem?

Best Regards,

Daniele

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Dec 23, 2017 at 02:54 PM

    Hi,

    Can you please try to pass the sub string as "content":

    import ABSL; import AP.Common.GDT;
    var str = "SAP";
    var region : RegionCode;
    region.content = str.Substring(0,2);
    

    Thanks

    Saurabh

    Add comment
    10|10000 characters needed characters exceeded