cancel
Showing results for 
Search instead for 
Did you mean: 

How we Can Validate the Code list through SDK

0 Kudos

Hello Experts,

I want to validate the some code list like Distribution Channel , Division which are code list. So i am trying to Validate through SDK but i don't know how i can do. Is it possible to check validation through scripting if some one pass the wrong data through ERP and record should not be created and raise error message.

View Entire Topic
former_member226
Employee
Employee
0 Kudos

Hi,

May be you can have try with CodeList reuse library delivered as part of "AP.PlatinumEngineering" namespace. A sample code would be as follow where you can get all possible values for DivisionCode data type and then you can just validate if value received from ERP is matching with the one form CodeList.

import ABSL;
import AP.PlatinumEngineering;
import AP.Common.GDT;
var DataType = "DivisionCode";
var AllowedCodes = Codelist.Get(DataType,"http://sap.com/xi/AP/Common/GDT");

Thanks

Saurabh

Suchita92
Participant
0 Kudos

Hi saurabhkabra2009 ,

This is excellent. Thanks for sharing the knowledge about the PlatinumEngineering Reuse function.

I was wondering is there a way to see/find what all is available under AP.PlatinumEngineering ?

Thanks,

Regards

former_member226
Employee
Employee

Hi,

Unfortunately, there is no official documentation available for PlatinumEngineering namespace based libraries. Its all hit and trial for now. 🙂

0 Kudos

Hello Saurabh,

I have tested ,it is working we can validate code list through above approach.

Thanks,

Sanjay