activities
latest
false
UiPath logo, featuring letters U and I in white

Integration Service Activities

Last updated Sep 15, 2025

Building array inputs for table input types

In the Execute BAPI activity, table input types for BAPIs are represented as array inputs. This requires you to manually build the objects. We are actively working on a solution to simplify array mappings and improve the overall experience.

This section explains how to build equivalent array inputs for a native type table in SAP BAPI, with examples in Studio Desktop version 2023.10 and Studio Web.

We are going to explain this topic with the example of a BAPI_PO_CREATE object.

Studio Desktop (Language C#)


docs image

  1. In the Execute BAPI activity, select the BAPI_PO_CREATE object.
  2. After you select the object, the rest of the fields are automatically retrieved.
  3. For a table of PO_ITEMS, for example, you want to build an equivalent array of objects. Select the Plus + button menu next to the PO_ITEMS field to open the Expression Editor.
  4. In the Expression Editor window, type UiPath.IntegrationService.Activities.SWEntities. This loads a list of items. You can use IntelliSense to assist with traversing.
  5. From the list, choose the item that corresponds to your InArgument (in this case, bapis_sub_execute_TABLES_sub_PO_ITEMS_CREATE). This item is always unique for a table.

    docs image

  6. Next, type a period (.), then choose Bundle.bapis_sub_execute_TABLES_sub_PO_ITEMS_Create from the available list. Add two pairs of brackets at the end: []{}.
  7. At this point, the array is instantiated and you’re ready to construct the object within it.

    docs image

    Note: The CEBA75DCD15 ID is a unique identifier generated on our side, specific to your SAP BAPI connection for each object. The ID is unique to each object.
  8. Copy the line from the previous step and add parentheses () at the end. Now, you're ready to map the properties within the object.

    docs image

  9. Enter a period (.) to search all the properties within the object.

    docs image

  10. Map the properties as needed and select Save.

    docs image

Sample:

new UiPath.IntegrationService.Activities.SWEntities.CD6D3C0011F_bapis_sub_execute_TABLES_sub_PO_ITEMS_Create_CFXVARGYNSGMNQOY1M9XDRN8OK3VIHY.Bundle.bapis_sub_execute_TABLES_sub_PO_ITEMS_Create[] {
    new UiPath.IntegrationService.Activities.SWEntities.CD6D3C0011F_bapis_sub_execute_TABLES_sub_PO_ITEMS_Create_CFXVARGYNSGMNQOY1M9XDRN8OK3VIHY.Bundle.bapis_sub_execute_TABLES_sub_PO_ITEMS_Create()
    {
        PO_ITEM = 00001,
        PUR_MAT = "TG12",
        PLANT = "1710"
    },
    new UiPath.IntegrationService.Activities.SWEntities.CD6D3C0011F_bapis_sub_execute_TABLES_sub_PO_ITEMS_Create_CFXVARGYNSGMNQOY1M9XDRN8OK3VIHY.Bundle.bapis_sub_execute_TABLES_sub_PO_ITEMS_Create()
    {
        PO_ITEM = 00002,
        PUR_MAT = "TG12",
        PLANT = "1710"
    }
}new UiPath.IntegrationService.Activities.SWEntities.CD6D3C0011F_bapis_sub_execute_TABLES_sub_PO_ITEMS_Create_CFXVARGYNSGMNQOY1M9XDRN8OK3VIHY.Bundle.bapis_sub_execute_TABLES_sub_PO_ITEMS_Create[] {
    new UiPath.IntegrationService.Activities.SWEntities.CD6D3C0011F_bapis_sub_execute_TABLES_sub_PO_ITEMS_Create_CFXVARGYNSGMNQOY1M9XDRN8OK3VIHY.Bundle.bapis_sub_execute_TABLES_sub_PO_ITEMS_Create()
    {
        PO_ITEM = 00001,
        PUR_MAT = "TG12",
        PLANT = "1710"
    },
    new UiPath.IntegrationService.Activities.SWEntities.CD6D3C0011F_bapis_sub_execute_TABLES_sub_PO_ITEMS_Create_CFXVARGYNSGMNQOY1M9XDRN8OK3VIHY.Bundle.bapis_sub_execute_TABLES_sub_PO_ITEMS_Create()
    {
        PO_ITEM = 00002,
        PUR_MAT = "TG12",
        PLANT = "1710"
    }
}

Studio Web (Language VB)

Let’s take the same example and see how we can achieve the result in Studio Web.

  1. In the Execute BAPI activity, select the BAPI_PO_CREATE object.
  2. After you select the object, the rest of the fields are automatically retrieved.
  3. For a table of PO_ITEMS, for example, you want to build an equivalent array of objects. Select the See more docs image button menu to open the Expression editor.

    docs image

  4. Type New, followed by a space, and then bapis. This triggers IntelliSense to display a list of items. From the list, select the item matching your InArgument, in this case bapis_sub_execute_TABLES_sub_PO_ITEMS_CREATE. This item is always unique for a table.

    docs image


    docs image

  5. Next, add a pair of curly brackets {}. Inside the brackets, type a period .. You can then see the available properties within the object.

    docs image

  6. Map the properties as needed and select Save.

    docs image

Sample:

{ 
    New bapis_sub_execute_TABLES_sub_PO_ITEMS_Create With 
    { 
        .PO_ITEM = 00001,
        .PUR_MAT = "TG12",
        .PLANT = "1710"
    },
    New bapis_sub_execute_TABLES_sub_PO_ITEMS_Create With 
    { 
        .PO_ITEM = 00002,
        .PUR_MAT = "TG12",
        .PLANT = "1710"
    }
}{ 
    New bapis_sub_execute_TABLES_sub_PO_ITEMS_Create With 
    { 
        .PO_ITEM = 00001,
        .PUR_MAT = "TG12",
        .PLANT = "1710"
    },
    New bapis_sub_execute_TABLES_sub_PO_ITEMS_Create With 
    { 
        .PO_ITEM = 00002,
        .PUR_MAT = "TG12",
        .PLANT = "1710"
    }
}
  • Studio Desktop (Language C#)
  • Studio Web (Language VB)

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo
Trust and Security
© 2005-2025 UiPath. All rights reserved.