IBM Support

How to restrict orders being placed for certain countries

Troubleshooting


Problem

How to restrict orders being placed for certain countries

Symptom

As per business requirement orders should not be shipped to certain countries (examples below).
Iraq
Iran
Cuba
North Korea
Sudan
Syria
Zimbabwe

All Countries details are stored in YFS_COMMON_CODE table with CodeType='COUNTRY'.

getCommonCodeList API is called every time when list of country needs to be populated.

Resolving The Problem

To avoid orders being placed for banned countries, we can massage the output of getCommonCodeList API to exclude banned countries. For this write a service which calls getCommonCodeList API and removes banned countries from output of getCommonCodeList API.

[{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

NFX4698

Document Information

Modified date:
16 June 2018

UID

swg21553428