spartacus
25th February 2003, 09:28
Hi all,
is it right, that I can find every object / source which is installed by a SP or a solution, in the solution history ? Without any exception?
Spartacus
Paul P
25th February 2003, 09:38
Dear Spartacus,
If they're installed through PMC, they should be in the solution history. The ones installed before PMC won't be there, if you just recently installed PMC. They also won't be there if Baan Support people, for example, send you the latest object file for you to move into the correct directory and overwrite the old object.
What happened? Did one of the solution you installed through PMC fail to show up in the solution history?
Rgds,
Paul
spartacus
25th February 2003, 10:10
Dear Paul,
as far as I know PMC is installed from the beginning.
I would like to write a small program, which compares the dates from objects in the solution history, with the dates of equal filenames in custom vrc.
Because I am not sure, if esp. objects / components wich are installed via service pack are listed in detail, I asked this question.
Thanks
Spartacus
victor_cleto
25th February 2003, 17:44
Yes, also the Service Packs solutions will be printed (they are on PMC, just with a specific flag turned on that makes them "within" a Service Pack...)
You can setup jobs to print the solution history per Update VRC and then use on your script something like this (for BaanIV, PMC v2, ksh and *not tested*):
# $report is the PMC report
# #custom is your customer VRC to have checked, eg., B40C_c4_own
grep "| Installed" $report|sort -u|while read LINE
do
type=`echo $LINE|cut -f4 -d"|"` # object type
pack=`echo $LINE|cut -f5 -d"|"` # package, eg., ti
code=`echo $LINE|cut -f6 -d"|"` # object name
mod=`echo $object_code|cut -f1-3` # module, eg, mrp
case $object_type in
"Script/Library Source")
obj_loc=$BSE/application/${pack}${custom}/p${pack}${mod}/p${code}
if [ `ls $obj_loc|grep not found|wc -l` -eq 0 ] ; then
# object found
echo "message of new object"
;;
(continue build for the remaining objects)
Note: for the tables and domains, the best way to check is to see thru qptool6.x if the same domain/table exists on your custom VRC to avoid overheads of unix scripting (and this also change in less extent, so you can afford a extra time more from using qptool6.x select statements :)
spartacus
27th February 2003, 10:00
Hi Victor,
can I find the menthioned falg in ttpmc260 (table: Solution history) ? Sorry at the moment I doesn't find it
:confused:
Anyway, I thought I could write a prog which takes table ttpmc260 and compares that with the files in the cust VRC's. Prerequisite is, that realy every component is (also from SP's) can be found in this table.
Spartacus