Sales Quotation AFS continue opens a wrong subsession
I have two BaaN companies, and each company opens a different Quotation Lines subsession due to setup when opening from the menu:
Company A: When using tdsls1101m000 and add lines the subsession tdsls1102s000 - Maintain Quotation Lines is opened
Company B: When using tdsls1101m000 and add lines the subsession tdsls1107s000 - Maintain Quotation Lines (Wholesale) is opened
But I'm using AFS to generate Sales Quotation, and being in Company B when I used the continue option the subsession opened is tdsls1102s000 instead of tdsls1107s000.
stpapi.continue.process( "tdsls1101m000", error )
Even if before I set the sub process to tdsls1107s000:
stpapi.handle.subproc( "tdsls1101m000", "tdsls1107s000","add")
Could someone have an idea why the continue process in AFS opens a different subsession that when using the Run Program?
Thanks in advance for your help