Skip to Content
avatar image
Former Member

How to Call a Script Logic (LGF) file from VBA macro?

Good Day,

I would like to know if there is a way to call the script logic (.lgf) file from vba macro?

What I'm trying to achieve is for the user run the data manager package through Excel button by using VBA macro.

I managed to achieved that through this tutorial "How to Call BPC Data Manager Package from Visual Basic", which is very helpful.

However, I realized I will need to execute the script logic, which contains BADI as well.

Therefore, is there a code which I can include into the existing macro provided by the tutorial that will trigger the script logic file too?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Nov 22, 2017 at 07:37 AM

    But what is the issue? You create dm package with default_formulas chain to run script logic. Then you run this package using VBA.

    I recommend my blog https://blogs.sap.com/2017/06/16/simple-vba-function-to-pass-parameters-to-dm-packages/

    Add comment
    10|10000 characters needed characters exceeded