Automate Studio provides the ability to leverage BAPIs or remote-enabled Function Modules (rFM) in Direct. Those who know me know I'm a fan of using Direct, especially for complex transactions where it's not simple to automate, it's also great for efficiency and resiliency as they keep working – even between ECC and S/4Hana.
To find a BAPI or rFM, you can search on the internet, search in SE37 or search in Direct.
For Direct
· Open Studio
· Select Direct
· Create from a BAPI
· Log in to your SAP system
· Click Create Script

· You'll be presented with the Workspace, and on the right, you will see the search area

· It defaults to BAPI, but you can change it to RFM for a remote-enabled Function Module.
· Enter part of the name and click search – use wildcards, as needed:

· Click on one to see more information

· To open one of the BAPIs/rFMs, you will double click it, and the Workspace will fill with the fields and tables of the BAPI or rFM.
· You'll see documentation in the lower Workspace window.

· If you don't see one you are expecting to see in the search results, we suggest you go to transaction code SE37 and search for it there.
· Enter part of the name, and it will search for you – or use the lookup button

· Open the BAPI/rFM by clicking Display

Click on the Attribute tab to see if it is remote enabled under Processing Type

In order to use a BAPI or rFM in Direct, it must be remote enabled, i.e. you can call it from outside of SAP and thus from Studio Direct.
Resources for Studio Direct include:
· A number of Tips posted on the community about Direct as well as posts with q&a and sometimes examples – you can search in this Automate community
· Examples in the SAP Module Templates community: https://community.precisely.com/sap-module-templates/home use the filter #Direct or browse the Search templates by t-code
· Studio Direct documentation: https://help.precisely.com/r/n/Automate-Studio/Connect/Latest/en-US/Automate-Studio-with-Studio-Administrator-User-Guide/Direct
· Documentation on the Automate Function Module, which contains several custom Function Modules: https://help.precisely.com/r/n/Automate-Function-Module/pub/Latest/en-US/Automate-Function-Module/Additional-References
· There is a training module in Precisely University in the Automate Studio module: https://preciselyu.precisely.com/page/automate-studio for Direct use this link: https://preciselyu.precisely.com/path/studio-developers-and-runners/evolve-studio-direct
· There are some educational webinars posted in Precisely University: https://preciselyu.precisely.com/page/automate-studio-webinars
· Please check out Automate Studio – Do More with Studio & SAP with BAPIs. There's also some BAPI coverage in How to Master Class Characteristics in Studio
Happy scripting!
Sigrid
------------------------------
Sigrid Kok
*Precisely Software Inc.
------------------------------