Amit_Baan
27th September 2013, 16:46
Hi,
I'm trying to update/insert data in a common table in different companies in different package combinations through program.
But switch.to.company() returns -3 error (Package combination does not correspond with new company number. )
Is there any function available to switch Package combination too?
Pls suggest.
Thanks.
Amit
JaapJD
27th September 2013, 16:50
The bshell loads the information of the package combination in memory. There is no option to switch.
If you keep the data models of both package combinations the same, you can switch. This implies:
- exactly the same packages
- no table or domain changes
- no different CDF setup
- no different MLE setup
- no different timestamp setup
bdittmar
27th September 2013, 17:30
Hi,
I'm trying to update/insert data in a common table in different companies in different package combinations through program.
But switch.to.company() returns -3 error (Package combination does not correspond with new company number. )
Is there any function available to switch Package combination too?
Pls suggest.
Thanks.
Amit
Hello,
http://www.baanboard.com/programmers_manual_baanerp_help_functions_company_operations_switch_to_company
Regards
Amit_Baan
27th September 2013, 17:57
The bshell loads the information of the package combination in memory. There is no option to switch.
If you keep the data models of both package combinations the same, you can switch. This implies:
- exactly the same packages
- no table or domain changes
- no different CDF setup
- no different MLE setup
- no different timestamp setup
Hi JaapJD...
Thanks a lot for your prompt response.
Let's say, Even if all suggested setups are as expected, switch.to.company() will be successful? as no other function is available to verify.
I've checked suggested setups.
- exactly the same packages
> Yes, All package combinations have same packages.
-no table or domain changes
>This i'm not sure, say, incase later some difference comes in tables or domains as a result of specific requirement is respective pvrc.
Then Program fails? therefore, its risky to program this.
- no different CDF setup
> CDF is not enabled.
- no different MLE setup
> not Enabled
- no different timestamp setup
>ttadv4136m000 is also not maintained.
Can you please advise is there any robust way to handle this situation?
Any help is really appreciated.
Thanks.
Regards.
Amit
Amit_Baan
27th September 2013, 18:23
Hello,
http://www.baanboard.com/programmers_manual_baanerp_help_functions_company_operations_switch_to_company
Regards
Hi Guru,
Thanks for response.
I've checked the help file, as I mentioned error no. -3 with description.
Did I miss some information which lead to unsuccessful attempt?
Kindly help with your expert advise.
Regards,
Amit
JaapJD
30th September 2013, 09:27
-no table or domain changes
>This i'm not sure, say, incase later some difference comes in tables or domains as a result of specific requirement is respective pvrc.
Then Program fails? therefore, its risky to program this.
You need to decide on beforehand never to have different table definitions and/or domains within the package combinations. At the moment you create a domain in a VRC, and that domain is not available in both package combinations, you are not able to swith anymore.