Automate

 View Only
  • 1.  BAPI based script to pull cost center plan data

    Posted 06-11-2024 12:59

    Hi all,

    I have a requirement to create a script for pulling plan data for multiple cost center hierarchies, cost element groups, fiscal years and plan versions on an ongoing basis on a particular format. I searched for suitable BAPI's and looks like BAPI_COSTACTPLN_READPRIMCOST would be helpful for this purpose. Since users need to run the report for cost center groups (not individual cost centres), BAPI_COSTCENTERGROUP_GETDETAIL can be used to pull the list of cost centers and hopefully both BAPI may be combined in the same script. I have not used multiple BAPI's in a single Direct script before and wondering if there's a How To document available somewhere.

    I am open to try any other options if someone had done such work differently. Looking forward to any pointers in the right direction.

    Thanks,

    Moazzam



    ------------------------------
    Moazzam Mubarak
    SAP Analyst
    De Beers Consolidated Mines
    AB
    ------------------------------


  • 2.  RE: BAPI based script to pull cost center plan data

    Employee
    Posted 06-17-2024 09:14
    Edited by Jayasri Varyani 06-17-2024 09:13

    These are the training resources available for DIRECT 

    Training Webinar: https://preciselyu.precisely.com/studio-do-more-with-studio-sap-with-bapis

    Studio elearning course:https://preciselyu.precisely.com/path/studio-developers-and-runners/evolve-studio-direct/1481944/scorm/3owtzv7k3gkr3

    Online Documentation: https://help.precisely.com/r/Automate-Studio/20.3/en-US/Automate-Studio-with-Connect-User-Guide/Direct/Working-with-Direct

    The publishing works exactly the same for DIRECT as any other script, you can publish multiple scripts to the same template. 

    If you are using the output of the first script as the input to the second, you will need to map accordingly. I would also consider an IF condition in the second script to check for empty result from first script, to avoid an unintended consequence.



    ------------------------------
    Jayasri Varyani
    SE
    Precisely Software Inc.
    ------------------------------