GithubHelp home page GithubHelp logo

sap-archive / localization-toolkit-s4hana-cloud-tax-id-validation Goto Github PK

View Code? Open in Web Editor NEW
3.0 5.0 4.0 36 KB

Implementation details for validating tax ID formats on SAP S/4HANA Cloud. This extensibility is a part of Localization Toolkit for SAP S/4HANA Cloud.

License: Apache License 2.0

ABAP 100.00%
sample sample-code s4hana-cloud localization-toolkit

localization-toolkit-s4hana-cloud-tax-id-validation's Introduction

Important Notice

This public repository is read-only and no longer maintained. For the latest sample code repositories, visit the SAP Samples organization.

REUSE status

Localization Toolkit for SAP S/4HANA Cloud: Validating a Tax ID Format

This repository contains the sample code for the Validate a Tax ID format tutorial.

This code is only one part of the tutorial, so please follow the tutorial before attempting to use this code.

Description

Information provided captures the implementation details required to validate Tax ID format, and how to do such an extension on the SAP S/4HANA Cloud. This extensibility is a part of Localization Toolkit for SAP S/4HANA Cloud.

Prerequisites

You have administrative access to SAP S/4HANA Cloud and have implementation experience on the system. Coding experience is also necessary, since this extensibility solution requires implementation of a coding logic.

Authorizations

Business Role Business Role ID
Configuration Expert โ€“ Business Network Integration SAP _ BR _ CONF _ EXPERT _ BUS _ NET _ INT
Master Data Specialist โ€“ Business Partner Data MASTER _ SPECIALIST

Implementation

For example, you want to validate the format of the Tax Identification Number (TIN) for a country and display an error message in case of an invalid format. You can do so by implementing a cloud BAdI to validate the Tax ID format. You will also have to create a repository to store custom error messages.

Implement the validation logic by creating a new enhancement implementation, using the Custom Logic option in the Custom Fields and Logic App. Write the implementation logic for Tax ID format validation in the Draft Logic area and publish the new enhancement implementation.

  • Note: Enter a solution specific to the purpose of this implementation in the code logic. This is necessary because the BAdI does not have an option to set a filter. You need to implement/adapt (duplicate) the provided sample code for each country, for which, the check is applicable. Additionally, you need to replace the XX country code placeholders in the coding with country code used in your implementation.

Since the BADI implementation is referring to the tables where the custom messages are stored, the system will display error messages when you implement the BADI, and before you have created the required message class(es). You can create a custom message while implementing the validation logic, or use an existing custom message. If you create a new custom message, you must publish the validation logic only after storing this message in the repository.

Known Issues

There are currently no known issues.

How to obtain support

If you have issues with this sample, please visit the SAP community page or contact your SAP contact to obtain support. In case you observe any defect in the product usage itself, kindly use the SAP Product support channel and raise an incident adequately for the defects observed. You can also post questions directly to our community.

License

Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.

localization-toolkit-s4hana-cloud-tax-id-validation's People

Contributors

alldantas avatar binorosephilip avatar btbernard avatar michalsliwasap avatar vlad338769 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

localization-toolkit-s4hana-cloud-tax-id-validation's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.