cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Region - Country Validation in SAP C4C

0 Kudos
822

Hi Experts,

Need your help !!

We have one requirement to put validation for Region and Country Code Combination in Custom Business Object. Is there any standard library or function available which we can use in Custom Business Object to put validation for Region or Country so that correct region would be picked for correct country.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

former_member226
Employee
Employee
0 Kudos

Hello,

AFAIK, there is no way to validate the Region-Country combination out of the box in SDK. Therefore, Either you can make this validation via Context-Dependent Code List in UI designer OR you need to use the following ABSL and then put your own Business Logic to validate:

import AP.PlatinumEngineering;

var country = Codelist.Get("CountryCode","http://sap.com/xi/AP/Common/GDT");
var region = Codelist.Get("RegionCode","http://sap.com/xi/AP/Common/GDT");

Answers (0)