The following example demonstrates the ability to execute ABAP c ode from with SAPScript.
PERFORM 1000_GET_VAT_RATE IN PROGRAM ZPROGRAM
USING &KNUMV&
.....
ENDPERFORM