on ‎2023 May 24 10:54 PM
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

Request clarification before answering.
Hello raoul.shiro
I needed to see your input variable definition too and how you set these values?
Regards
Raghu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 ?


You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Raoul Shiro, Great to know. when you say it is resolved, does it work with Actions Group with same connection settings?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you very much ankitsomani, changing the paramter to false , solved it !
really appreaciate the help from both of you !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey raoul.shiro
Please share here how have you set the parameters for Execute BAPI activity
Raghu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.