cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Process Automation BAPI : No BAPI Module reachable

Muadib
Active Participant
0 Likes
3,224

Hello,

I have been trying for several days to follow the following developer tutorial https://developers.sap.com/tutorials/spa-bapi-actiongroup.html

I cannot manage to retrieve the BAPI modules from my SAP S/4HANA2022 system.

Connection is correctly established in the BAPI Action group, via basic authentification, I create the bapi action, but I never get the popup asking for BAPI module name


Accepted Solutions (1)

Accepted Solutions (1)

Raghu
Product and Topic Expert
Product and Topic Expert
0 Likes

Hello raoul.shiro

I needed to see your input variable definition too and how you set these values?

Regards

Raghu

Answers (11)

Answers (11)

Muadib
Active Participant

Hello raghuraman.ramakrishnan

I might have been a bit to quick to claim victory.

Using the Action Group, the RFM RFC_READ_TABLE is not fetched from the S/4HANA2021 source system, it looks like only BAPIs are retrieved, RFM are not displayed in the Create BAPI Action screen :

the RFM RFC_READ_TABLE exists in the backend, any idea ?

smarchesini
SAP Champion
SAP Champion
0 Likes

Did you find the solution ?

Former Member

Hello,


You are getting invalid parameter exception as these parameter are not marked as optional in S4Hana system.

You can still make this working without passing the required parameter by changing ValidationRequired parameter to false in Execute BAPI activity.

Regards,
Ankit

Raghu
Product and Topic Expert
Product and Topic Expert

Hello raoul.shiro

This topic requires bit more data to understand what is the issue.

Sorry I am not from Product Support, to me this qualifies you reach out to Product Support for help.

May be the below steps will help all of us understand error a bit more in detail

1. Instead of Actions Group Route, you can try standard BAPI call using activities in BAPI SDK. I am hoping to get an error message when execute BAPI is called.

Here Step 2 is about an input variable. I used a data type as input.

For ex, In step 4, sub step 6 tutorial talks about using Query_Table and Row Count as input to READ_RFC_TABLE, ideally you could have created them as data objects if you had to call via non Action Group.

My Input data type was crated like this

and this is how you set value in the automation project

and use this data in execute BAPI call

Hopefully this provides you with bit more detail what is the error.

Raghu
Product and Topic Expert
Product and Topic Expert
0 Likes

Hello raoul.shiro ,

Thank you for your response.

I have seen that sometimes it take a bit of time for few BAPI to appear. Maybe you can try and check. Anyways you have a way out for your BAPI already.

Have a great day

Raghu
Product and Topic Expert
Product and Topic Expert
0 Likes

Hello @Raoul Shiro, Great to know. when you say it is resolved, does it work with Actions Group with same connection settings?

Muadib
Active Participant
0 Likes

Thank you very much ankitsomani, changing the paramter to false , solved it !

really appreaciate the help from both of you !

Muadib
Active Participant
0 Likes

Hello raghuraman.ramakrishnan,

Here are the paramteters

Raghu
Product and Topic Expert
Product and Topic Expert
0 Likes

Hey raoul.shiro

Please share here how have you set the parameters for Execute BAPI activity

Raghu

Muadib
Active Participant
0 Likes

Hello raghuraman.ramakrishnan,

Thank you very much for the prompt help, it helped me to at least understand what is going wrong.

I followed your troubleshooting procedure :

I am getting the error, BAPI INVALID parameter exception, Following parameters DATA, FIELDS, OPTIONS are required

I tried executed the RFM RFC_READ_TABLE in SE37 from S/4HANA (2020 and then 2022), without the need to fill the optional fields :

works in se37

Thank you

Muadib
Active Participant
0 Likes

Hello raghuraman.ramakrishnan

I did all the changes in the note, deactivated the parameter, and the RFC autorisations (to already assigned SAP_ALL)

Still did not work

Raghu
Product and Topic Expert
Product and Topic Expert
0 Likes

Hello raoul.shiro ,

Please review this KBA SAP Note 460082 - Minimum authorization profiles for external RFC programs. This KBA looks to be relevant for your Automation's case too as it is 3rd party.

Recently on a similar customer issue, SAP Support shared this note, which seems to be relevant.

Also hopefully BAPI or function module you are calling is remote enabled. as Automations can only call remote enabled BAPI.

Raghu

Jelena_Perfiljeva
Active Contributor
0 Likes
Correction: the note link is correct but the hyperlink text has a typo. Correct note number is 460089. Thanks!