Automate

 View Only
  • 1.  Tip of the Week – Create Validation Script for BAPI Using Direct

    Employee
    Posted 08-11-2025 10:12
    Edited by Maria Ebner 08-12-2025 09:36

    Hi Automate Community!

    This week I have a quick tip when creating BAPI scripts using the Direct module in Automate Studio. If you need to post data to SAP, then check "Commit required" in the panel on the right in the Workspace tab:

    Direct scripts don't have a validate option, so if you want to validate the data before posting, you can create a copy of the script and uncheck "Commit required". This can be your validation script. Please test this because it's possible that data will get posted to SAP without checking "Commit required" and if that's the case then a validate script isn't possible using this method. 

    If you're using a BAPI to get data from SAP, then you don't need to check "Commit required" since changes are not getting posted to SAP.

    Here is documentation to create a Direct script for a BAPI.

    Thanks!



    ------------------------------
    Maria Ebner
    *Precisely Software Inc.
    ------------------------------



  • 2.  RE: Tip of the Week – Create Validation Script for BAPI Using Direct

    Posted 08-12-2025 01:36

    hi Maria, I am a bit confused by this post.

    I am currently building an Evolve solution in which I use about 6 direct scripts (xml).

    They do not have the "Commit Required" check on. However, the data is posted in SAP.

    What I do notice however, is that for example with BAPI RFC_CVI_EI_INBOUND_MAIN, the general (BP 000000) data I create, at first is not available via tcode BP. I do see the data in table BUT000000 (not in KNA1).

    The BAPI also returned a BP number.

    Only when I do a next script (which is not a BAPI) to complete this data and then open that BP number in tcode BP, it fully shows.

    I always (thought to) understood that, if Commit Required is unchecked, you would need another BAPI to actually commit it. This would also mean that, as long as it is not committed, the data is somewhere in SAP claiming a (in this case) BP number. I don't know for how long though.

    I can understand that this is a way to "validate" but is it a correct way? Could you elaborate on this topic?



    ------------------------------
    Ed Meiners
    Lead Consultant MDIM
    Wessanen Nederland Holding BV
    Amsterdam
    ------------------------------



  • 3.  RE: Tip of the Week – Create Validation Script for BAPI Using Direct

    Employee
    Posted 08-12-2025 09:39

    Hi Ed,

    Thanks for pointing that out. I updated my tip to say a test is needed to ensure the data isn't posted without checking it. I'm sure not all BAPIs and RFMs are created equal. If you feel the functionality you're facing isn't normal, please email support@precisely.com and our support team can get Engineering involved if needed.

    Thanks,



    ------------------------------
    Maria Ebner
    *Precisely Software Inc.
    ------------------------------