BAPI Functionality in UI Path

Hello @Vijay_2694,

sorry for my delayed reply, here my XAML file.

Best regards
Stefan

Main.xaml.zip (3.0 KB)

1 Like

Hello @Namit_Bhandari,

as you can see in my last image I get from address structure field LASTNAME with the following WriteLine command in UiPath.

Best regards
Stefan

Hello community,

I used with my actual tests UiPath Studio 2019.1.0 and UiPath.SAP.BAPI.Activities 1.1.0, and all works as expected and without any problems :slightly_smiling_face:

Best regards
Stefan

Thank You @StefanSchnell.
For clearing all my doubts. Now I can able to use the BAPI functionality.

2 Likes

Hello,
I’m just starting to study UI Path not long ago, (±1 week) and I need to use SAP BAPI functionality so I tried to install the package. But, I always failed and get this message no matter what version I install. I also already installed the 32bit (x86) .NET 4.0 Variant of the SAP Connector for Microsoft .NET 3.0 (NCo 3.0). But the result is just the same:


How can I install the BAPI activities? Thank you very much!

Hello @worry,
here an image guide to install SAP NCo and UiPath BAPI connector successfully.

Install Microsoft Visual C++ 2010 x86 Redistributable first.

001

002

Then install SAP NCo.

003

004

In the next selection screen choose Install assemblies to GAC.

005

006

007

Now you can install UiPath SAP BAPI activity.

Old Version

I tried it with a Windows 10 installation, the SAP NCo 3.0.21 and UiPath 2019.3.0. All works well and as expected.

New Version

014

015

017

I tried it with a Windows 11 installation, the SAP NCo 3.0.24 and UiPath 2022.4.0. All works well and as expected.

Best regards
Stefan

7 Likes

This worked well for me! Thank you very much. It’s solved now.

2 Likes

Do you know if it works on Studio version 2018.1.4?
I’ve installed everything that you asked, and I couldn’t find the SAP Connector icon. :frowning:

Hello @tiago,
sorry, I don’t know that. Maybe @loginerror can say that.
Best regards
Stefan

Hi @tiago

I confirmed with the team that Studio 2018.3 is the lowest possible version compatible with the SAP BAPI functionality.

1 Like

Hi @StefanSchnell

Do you have any sample code about creating PO or Contract with BAPI?

Hi @dgregorys

I don’t think I have one on hand, but you can check out our new version of the BAPI package for a much more streamlined experience that will hopefully be more intuitive :slight_smile:
The latest version is the 2.0.0 :slight_smile:

It’s much more visually appealing than the previous version.

Hello @dgregorys,
nope, PO and contracts are not my field of expertise.
Best regards
Stefan

Hello,

On 2019.4.2 version I’m not able to install UiPath.SAP.BAPI.Activities package, since I cannot find that package.
Anyone, experiencing the same?

@loginerror, Is this not available anymore in 2019.4 version?

Hi @cidalia.correia

Yes, it should be available via our Official feed:

It seems to be missing on your list. This is the url:
https://www.myget.org/F/workflow/

See here on how to manage your package feeds:

The note is extra important for Enterprise edition:
image

2 Likes

Yes, that was the issue.
Thanks a lot!

1 Like

Hi expert, I am not able to install the SAP BAPI Activity Package
Even I installed the prerequisite software SAP Connectors and Microsoft Visual C++ 2010 SP1 Redistributable Package (x64)
And I select the given option as mentioned in the documents. Can you please help on this.
@loginerror @StefanSchnell @Susana @venkat4u

image

@loginerror @Pablito

Hello Pawel and Maciej,

I tried your actual SAP BAPI Automation Activities 2.1.0 and it was great :star_struck:

The new interface is much more better as the additional button in the ribbon from the version before, and the generation of necessary variables is absolut easy. To use SAP BAPIs is now so simple.

Bring my best thanks to your developer team, fantastic work. :+1::+1::+1:

Best regards
Stefan

2 Likes

Dear Stefan,

I am trying to retrieve data from BAPI_CUSTOMER_CHANGEFROMDATA.

Could you please post an example how to do this? I looked hard but did not really found any examples with the newer version of the BAPI activities and I am quite new on these grounds.

Thank you in advance for any help!

Regards,
Bálint

1 Like

@Balint1367

Hello Balint,
welcome in the UiPath Community.

I don’t have an example for BAPI_CUSTOMER_CHANGEFROMDATA, but here an example with BAPI_BUPA_ADDRESSES_GET. At first it is necessary to set an application scope, in this scope place the Invoke SAP BAPI activity. Configure the scope and test your connection. In the password property set (new System.Net.NetworkCredential(“”, “YourPassword”)).SecurePassword. Configure now your BAPI Remote Function Module (RFM).

Parallel you can call in your SAP system the transaction code BAPI.

Choose your BAPI and double click on the function module.

Press F8 to execute the BAPI RFM.

Set in the input fields your parameters, in my case I use only the BUSINESSPARTNER number. Press F8 again.

Now you see the results of the BAPI call in the export parameters the STANDARDADDRESSNUMBER and GUID and in the tables section different entries.

Now set in your BAPI configuration your variables.

The call of the BAPI from UiPath delivers the same results.

You see the same STANDARDADDRESSNUMBER in the variable ADDRNUM. And in the data table ADDR you can find the same entries as in the table ADDRESSES from the SAP RFM call.

If you need an entry from the data table you can use this…

008

…or an ForEach loop.

Hope this tiny instruction helps you to understand better how the SAP BAPI activity from UiPath works.

Best regards
Stefan

3 Likes