Skip to Content
0

String to CodeRegion

Dec 22, 2017 at 01:06 PM

61

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Saurabh Kabra
Dec 23, 2017 at 02:54 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded