Quantcast
Channel: SCN : Discussion List - SAP BusinessObjects Analysis, edition for Microsoft Office
Viewing all articles
Browse latest Browse all 1521

start a second planning sequence only after succes of first sequence

$
0
0


Hi all,

 

we have created a VBA-button in an AfO mask which should run 2 planning sequences and then do a save plan data in the end.

As usual in planning, we want to run the second sequence only in case the first sequences has run succesful without any errors and the save should only be done if none of the two sequences produce any error.

 

we use the VBA command

lReturn = Excel.Application.Run("SAPExecutePlanningSequence", sPlanningSequence)

    If lReturn = 0 Then

        Call mSapErrorHandler(oErrors)

    End If

 

but the return code which we get back from the sequence is always = 1, no matter whether ther is an error or not.

Therefore the follwoing sequence and save are started, which is not correct.

 

does anyone have an ides on how to run the two seqneunces and get the correct information about the success or error of the first sequence?

 

thanks

Cornelia


Viewing all articles
Browse latest Browse all 1521

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>