---
article_id: KB0402394
article_type: FAQ
component_ids:
  - BNS-ARI-CI-AN
  - BNS-ARI-CI-FND-PRT
  - BNS-ARI-CI-SCC-BUY
component_descriptions:
  - SAP Integration Suite, managed gateway > Managed Gateway for Business Network
  - SAP Integration Suite, managed gateway > Managed Gateway for Business Network SCC > Managed Gateway for Buyer Business Network SCC
  - SAP Integration Suite, managed gateway > Managed Gateway Foundation & Tools > Managed Gateway for Managed Gateway Portal
products:
  - SAP Ariba Procurement, cloud edition
  - SAP Ariba Sourcing, cloud edition
  - SAP Business Network for Procurement and SAP Business Network for Supply Chain
personas:
  - Admin
  - Buyer
language: en
created: 2023-09-18
updated: 2023-09-18
source: Knowledge Base
url: https://support.ariba.com/item/view/KB0402394
connect_url: https://support.ariba.com/item/view/KB0402394?min=1
sap_for_me_url: https://me.sap.com/notes/KB0402394
---

# How do I use the substring function in the Managed Gateway for Spend&Network mapping Tool?

## Symptom

How do I use the substring function in the Managed Gateway for Spend&Network mapping Tool?

## Resolution

The substring function is used when you need to map only a select part of a string. To perform it in the Managed Gateway for Spend&Network mapping tool, follow these steps:

1. Select the source field and map to a desired target field.
2. Right-click on the mapping line and choose **Functions** > **Add Functions** > **Add Substring Function**.
3. Choose the **Substring Start Position** (minimum 1) and the **Substring Length** (the size of the final character).
4. Save the mapping.

**Additional Information**

For more information, see the SAP article [How to use substring function in Managed Gateway for Spend&Network mapping tool](https://launchpad.support.sap.com/#/notes/2836072).

## Keywords

Substring, CIG Substring, CIG sub string, cut an word in CIG, how to make an word shorter in CIG, Substring CIG,Substring function
