Baanboard.com

Go Back   Baanboard.com > Forum > Baan SIGs > AFS/DDC/OLE: Function servers

User login

Frontpage Sponsor

Main

Poll
When will you move your ERP to the cloud?
We are on the cloud already!
20%
Next year
8%
from 2-3 years
8%
from 4-5 years
16%
Never!
48%
Total votes: 50

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 27th August 2008, 17:22
PV Ramone's Avatar
PV Ramone PV Ramone is offline
Senior Member
 
Join Date: Aug 2001
Location: Heist-op-den-Berg (BE)
Posts: 118
PV Ramone is on a distinguished road
Baan: Baan IV c4 - DB: Oracle 9.2 - OS: HP-UX 11.11
How to call AFS in sp24?

We are in the process of upgrading from service pack 16 to service pack 24.
When running our existing function server we get an error "no view found on f1110m000"

We have tried regenerating our function server with the ttstpcreatedll program and afterwards we get an error when recompiling our script that calls the function server.

Can you please indicate if their has been implemented a change in syntax in the way we should call our functionserver?
thanks for your advice.
I have attached the script that calls the function server.
Attached Files
File Type: doc AFS error.doc (35.0 KB, 78 views)
Reply With Quote
  #2  
Old 27th August 2008, 18:54
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 6,819
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
First - get your function server library compiled. Fix those problems and you should be able to get your AFS program to compile. Does regenerating the library and compiling work? If so post the library and session code - to me it looks like the library was not generated correctly.

This is one reason why I stopped using ttstpcreatdll - it is not perfect and does not always generate everything cleanly. I know use the stpapi commands directly in the program.
__________________
Mark

GO Cards!
My latest mantra - make sure you have latest stpapi patches and the latest session object. If on LN then please explore the option of using DAL2 functionality.

Shared Solutions for Baan systems provided free by Baan Board.
Play the Google game and help Baanboard get better rankings. Do your part. Click here to find how.
Reply With Quote
  #3  
Old 28th August 2008, 08:43
PV Ramone's Avatar
PV Ramone PV Ramone is offline
Senior Member
 
Join Date: Aug 2001
Location: Heist-op-den-Berg (BE)
Posts: 118
PV Ramone is on a distinguished road
Baan: Baan IV c4 - DB: Oracle 9.2 - OS: HP-UX 11.11
compiling library is ok : see code below

|------------------------------------------------------------------------------
| File created by ttstpcreatdll, Date: 25/08/08
| Created for session: tcqms1110m000
|------------------------------------------------------------------------------
#pragma used dll ottstpapihand
function extern void f1110m000.put.Inspection_Order( const domain tcqms.iorn value )
{
DLLUSAGE
Function to set Inspection Order ( tcqms110.iorn ) in session tcqms1110m000
arg: - value to put in Inspection Order
ENDDLLUSAGE
stpapi.put.field( "tcqms1110m000", "tcqms110.iorn", str$(value) )
}
function extern domain tcqms.iorn f1110m000.get.Inspection_Order( )
{
DLLUSAGE
Function to get Inspection Order ( tcqms110.iorn ) from session tcqms1110m000
return: - value of Inspection Order
ENDDLLUSAGE
string value(10)
stpapi.get.field( "tcqms1110m000", "tcqms110.iorn", value )
return( lval(value) )
}
function extern void f1110m000.put.Sample( const domain tcqms.saml value )
{
DLLUSAGE
Function to set Sample ( tcqms110.saml ) in session tcqms1110m000
arg: - value to put in Sample
ENDDLLUSAGE
stpapi.put.field( "tcqms1110m000", "tcqms110.saml", str$(value) )
}
function extern domain tcqms.saml f1110m000.get.Sample( )
{
DLLUSAGE
Function to get Sample ( tcqms110.saml ) from session tcqms1110m000
return: - value of Sample
ENDDLLUSAGE
string value(10)
stpapi.get.field( "tcqms1110m000", "tcqms110.saml", value )
return( lval(value) )
}
function extern domain tcacoc f1110m000.get.actual.occ( )
{
DLLUSAGE
Function to get actual.occ ( actual.occ ) from session tcqms1110m000
return: - value of actual.occ
ENDDLLUSAGE
string value(3)
stpapi.get.field( "tcqms1110m000", "actual.occ", value )
return( lval(value) )
}
function extern domain tcqms.orgn f1110m000.get.Inspection_Orders_Origin( )
{
DLLUSAGE
Function to get Inspection Orders_Origin ( tcqms100.orgn ) from session tcqms1110m000
return: - value of Inspection Orders_Origin
ENDDLLUSAGE
string value(3)
stpapi.get.field( "tcqms1110m000", "tcqms100.orgn", value )
return( ltoe(lval(value)) )
}
function extern domain tcqms.rsta f1110m000.get.hold.rsta( )
{
DLLUSAGE
Function to get hold.rsta ( hold.rsta ) from session tcqms1110m000
return: - value of hold.rsta
ENDDLLUSAGE
string value(3)
stpapi.get.field( "tcqms1110m000", "hold.rsta", value )
return( ltoe(lval(value)) )
}
function extern domain tcqms.orno f1110m000.get.Inspection_Orders_Origin_Order( )
{
DLLUSAGE
Function to get Inspection Orders_Origin Order ( tcqms100.orno ) from session tcqms1110m000
return: - value of Inspection Orders_Origin Order
ENDDLLUSAGE
string value(10)
stpapi.get.field( "tcqms1110m000", "tcqms100.orno", value )
return( lval(value) )
}
function extern domain tccprj f1110m000.get.Inspection_Orders_Project( )
{
DLLUSAGE
Function to get Inspection Orders_Project ( tcqms100.cprj ) from session tcqms1110m000
return: - value of Inspection Orders_Project
ENDDLLUSAGE
string value(6)
stpapi.get.field( "tcqms1110m000", "tcqms100.cprj", value )
return( value )
}
function extern domain tcpono f1110m000.get.oppo( )
{
DLLUSAGE
Function to get oppo ( oppo ) from session tcqms1110m000
return: - value of oppo
ENDDLLUSAGE
string value(5)
stpapi.get.field( "tcqms1110m000", "oppo", value )
return( lval(value) )
}
function extern domain tcitem f1110m000.get.Inspection_Orders_Item( )
{
DLLUSAGE
Function to get Inspection Orders_Item ( tcqms100.item ) from session tcqms1110m000
return: - value of Inspection Orders_Item
ENDDLLUSAGE
string value(25)
stpapi.get.field( "tcqms1110m000", "tcqms100.item", value )
return( value )
}
function extern domain tcmcs.str1 f1110m000.get.slash( )
{
DLLUSAGE
Function to get slash ( slash ) from session tcqms1110m000
return: - value of slash
ENDDLLUSAGE
string value(1)
stpapi.get.field( "tcqms1110m000", "slash", value )
return( value )
}
function extern domain tccuni f1110m000.get.Inspection_Orders_Container( )
{
DLLUSAGE
Function to get Inspection Orders_Container ( tcqms100.cntr ) from session tcqms1110m000
return: - value of Inspection Orders_Container
ENDDLLUSAGE
string value(3)
stpapi.get.field( "tcqms1110m000", "tcqms100.cntr", value )
return( value )
}
function extern domain tcqms.qbic f1110m000.get.Maximum_Size( )
{
DLLUSAGE
Function to get Maximum Size ( sample.quan ) from session tcqms1110m000
return: - value of Maximum Size
ENDDLLUSAGE
string value(30)
stpapi.get.field( "tcqms1110m000", "sample.quan", value )
return( val(value) )
}
function extern domain tccuni f1110m000.get.Inspection_Orders_Sample_Unit( )
{
DLLUSAGE
Function to get Inspection Orders_Sample Unit ( tcqms100.cuss ) from session tcqms1110m000
return: - value of Inspection Orders_Sample Unit
ENDDLLUSAGE
string value(3)
stpapi.get.field( "tcqms1110m000", "tcqms100.cuss", value )
return( value )
}
function extern void f1110m000.put.Test_Quantity( const domain tcqms.qbic value )
{
DLLUSAGE
Function to set Test Quantity ( tcqms110.tqua ) in session tcqms1110m000
arg: - value to put in Test Quantity
ENDDLLUSAGE
stpapi.put.field( "tcqms1110m000", "tcqms110.tqua", str$(value) )
}
function extern domain tcqms.qbic f1110m000.get.Test_Quantity( )
{
DLLUSAGE
Function to get Test Quantity ( tcqms110.tqua ) from session tcqms1110m000
return: - value of Test Quantity
ENDDLLUSAGE
string value(30)
stpapi.get.field( "tcqms1110m000", "tcqms110.tqua", value )
return( val(value) )
}
function extern void f1110m000.put.Sample_Quantity( const domain tcqms.qbic value )
{
DLLUSAGE
Function to set Sample Quantity ( tcqms110.squa ) in session tcqms1110m000
arg: - value to put in Sample Quantity
ENDDLLUSAGE
stpapi.put.field( "tcqms1110m000", "tcqms110.squa", str$(value) )
}
function extern domain tcqms.qbic f1110m000.get.Sample_Quantity( )
{
DLLUSAGE
Function to get Sample Quantity ( tcqms110.squa ) from session tcqms1110m000
return: - value of Sample Quantity
ENDDLLUSAGE
string value(30)
stpapi.get.field( "tcqms1110m000", "tcqms110.squa", value )
return( val(value) )
}
function extern void f1110m000.put.Sample_Date( const domain tcdate value )
{
DLLUSAGE
Function to set Sample Date ( tcqms110.smdt ) in session tcqms1110m000
arg: - value to put in Sample Date
ENDDLLUSAGE
stpapi.put.field( "tcqms1110m000", "tcqms110.smdt", str$(value) )
}
function extern domain tcdate f1110m000.get.Sample_Date( )
{
DLLUSAGE
Function to get Sample Date ( tcqms110.smdt ) from session tcqms1110m000
return: - value of Sample Date
ENDDLLUSAGE
string value(10)
stpapi.get.field( "tcqms1110m000", "tcqms110.smdt", value )
return( lval(value) )
}
function extern void f1110m000.put.sample.time( const domain tcqms.smtm value )
{
DLLUSAGE
Function to set sample.time ( sample.time ) in session tcqms1110m000
arg: - value to put in sample.time
ENDDLLUSAGE
stpapi.put.field( "tcqms1110m000", "sample.time", str$(value) )
}
function extern domain tcqms.smtm f1110m000.get.sample.time( )
{
DLLUSAGE
Function to get sample.time ( sample.time ) from session tcqms1110m000
return: - value of sample.time
ENDDLLUSAGE
string value(10)
stpapi.get.field( "tcqms1110m000", "sample.time", value )
return( lval(value) )
}
function extern domain tcyesno f1110m000.get.Test_Data_Present( )
{
DLLUSAGE
Function to get Test Data Present ( test.data.present ) from session tcqms1110m000
return: - value of Test Data Present
ENDDLLUSAGE
string value(3)
stpapi.get.field( "tcqms1110m000", "test.data.present", value )
return( ltoe(lval(value)) )
}
function extern domain tcqms.qbic f1110m000.get.Total_Quantity( )
{
DLLUSAGE
Function to get Total Quantity ( total.quan ) from session tcqms1110m000
return: - value of Total Quantity
ENDDLLUSAGE
string value(30)
stpapi.get.field( "tcqms1110m000", "total.quan", value )
return( val(value) )
}
function extern void f1110m000.end([string error(500)])
{
DLLUSAGE
Function to end connection to session tcqms1110m000
ENDDLLUSAGE
if get.argc() = 0 then
stpapi.end.session( "tcqms1110m000" )
else
error = get.string.arg(1)
stpapi.end.session( "tcqms1110m000" , error )
put.string.arg(1, error)
endif
}
function extern long f1110m000.insert( long do.update, ref string error )
{
DLLUSAGE
Function to insert a record in session tcqms1110m000
Fields must be put before calling this function
ENDDLLUSAGE
return( stpapi.insert( "tcqms1110m000", do.update, error ) )
}
function extern long f1110m000.update( long do.update, ref string error )
{
DLLUSAGE
Function to update a record in session tcqms1110m000
Record must be made current and fields to be changed before calling
this function
ENDDLLUSAGE
return( stpapi.update( "tcqms1110m000", do.update, error ) )
}
function extern long f1110m000.delete( long do.update, ref string error )
{
DLLUSAGE
Function to delete a record in session tcqms1110m000
Record must be made current before calling this function
ENDDLLUSAGE
return( stpapi.delete( "tcqms1110m000", do.update, error ) )
}
function extern long f1110m000.mark([string error (500)])
{
DLLUSAGE
Function to mark the current record in session tcqms1110m000
ENDDLLUSAGE
long ret
if get.argc() = 0 then
return( stpapi.mark( "tcqms1110m000" ) )
else
error = get.string.arg(1)
ret = stpapi.mark( "tcqms1110m000" , error )
put.string.arg(1, error)
return( ret )
endif
}
function extern long f1110m000.recover( ref string error )
{
DLLUSAGE
Function to undo an update/insert/delete in session tcqms1110m000
ENDDLLUSAGE
return( stpapi.recover( "tcqms1110m000", error ) )
}
function extern long f1110m000.save( ref string error )
{
DLLUSAGE
Function to save an update/insert/delete in session tcqms1110m000
ENDDLLUSAGE
return( stpapi.save( "tcqms1110m000", error ) )
}
function extern long f1110m000.find( [string error(500)] )
{
DLLUSAGE
Function to find a record in session tcqms1110m000
Search fields must be put before calling this function
ENDDLLUSAGE
long ret
if get.argc() = 0 then
return( stpapi.find( "tcqms1110m000" ) )
else
error = get.string.arg(1)
ret = stpapi.find( "tcqms1110m000" , error )
put.string.arg(1, error)
return( ret )
endif
}
function extern void f1110m000.clear( )
{
DLLUSAGE
Function to clear the current record in session tcqms1110m000
ENDDLLUSAGE
stpapi.clear( "tcqms1110m000" )
}
function extern void f1110m000.set.report( const string reportname, const string device, ref string error )
{
DLLUSAGE
Function to set report name and device for a subsequent print action
in session tcqms1110m000
ENDDLLUSAGE
stpapi.set.report( "tcqms1110m000", reportname, device, error )
}
function extern long f1110m000.first([string error(500)] )
{
DLLUSAGE
Function to find the first record in session tcqms1110m000
ENDDLLUSAGE
long ret
if get.argc() = 0 then
return( stpapi.browse.set( "tcqms1110m000", "first.set" ) )
else
error = get.string.arg(1)
ret = stpapi.browse.set( "tcqms1110m000", "first.set" , error )
put.string.arg(1, error)
return( ret )
endif
}
function extern long f1110m000.next([string error(500)] )
{
DLLUSAGE
Function to find the next record in session tcqms1110m000
ENDDLLUSAGE
long ret
if get.argc() = 0 then
return( stpapi.browse.set( "tcqms1110m000", "next.set" ) )
else
error = get.string.arg(1)
ret = stpapi.browse.set( "tcqms1110m000", "next.set" , error )
put.string.arg(1, error)
return( ret )
endif
}
function extern long f1110m000.previous([string error(500)] )
{
DLLUSAGE
Function to find the previous record in session tcqms1110m000
ENDDLLUSAGE
long ret
if get.argc() = 0 then
return( stpapi.browse.set( "tcqms1110m000", "prev.set" ) )
else
error = get.string.arg(1)
ret = stpapi.browse.set( "tcqms1110m000", "prev.set" , error )
put.string.arg(1, error)
return( ret )
endif
}
function extern long f1110m000.last([string error(500)] )
{
DLLUSAGE
Function to find the last record in session tcqms1110m000
ENDDLLUSAGE
long ret
if get.argc() = 0 then
return( stpapi.browse.set( "tcqms1110m000", "last.set" ) )
else
error = get.string.arg(1)
ret = stpapi.browse.set( "tcqms1110m000", "last.set" , error )
put.string.arg(1, error)
return( ret )
endif
}
function extern long f1110m000.set.view( [string error(500)] )
{
DLLUSAGE
Function to define another view in session tcqms1110m000
ENDDLLUSAGE
long ret
if get.argc() = 0 then
return( stpapi.change.view( "tcqms1110m000" ) )
else
error = get.string.arg(1)
ret = stpapi.change.view( "tcqms1110m000", error )
put.string.arg(1, error)
return( ret )
endif
}
function extern long f1110m000.first.view([string error(500)] )
{
DLLUSAGE
Function to read the first view in session tcqms1110m000
ENDDLLUSAGE
long ret
if get.argc() = 0 then
return( stpapi.browse.view( "tcqms1110m000" , "first.view" ) )
else
error = get.string.arg(1)
ret = stpapi.browse.view( "tcqms1110m000", "first.view", error )
put.string.arg(1, error)
return( ret )
endif
}
function extern long f1110m000.next.view([string error(500)] )
{
DLLUSAGE
Function to read the next view in session tcqms1110m000
ENDDLLUSAGE
long ret
if get.argc() = 0 then
return( stpapi.browse.view( "tcqms1110m000" , "next.view" ) )
else
error = get.string.arg(1)
ret = stpapi.browse.view( "tcqms1110m000", "next.view", error )
put.string.arg(1, error)
return( ret )
endif
}
function extern long f1110m000.previous.view([string error(500)] )
{
DLLUSAGE
Function to read the previous view in session tcqms1110m000
ENDDLLUSAGE
long ret
if get.argc() = 0 then
return( stpapi.browse.view( "tcqms1110m000" , "prev.view" ) )
else
error = get.string.arg(1)
ret = stpapi.browse.view( "tcqms1110m000", "prev.view", error )
put.string.arg(1, error)
return( ret )
endif
}
function extern long f1110m000.last.view([string error(500)] )
{
DLLUSAGE
Function to read the last view in session tcqms1110m000
ENDDLLUSAGE
long ret
if get.argc() = 0 then
return( stpapi.browse.view( "tcqms1110m000" , "last.view" ) )
else
error = get.string.arg(1)
ret = stpapi.browse.view( "tcqms1110m000", "last.view", error )
put.string.arg(1, error)
return( ret )
endif
}
function extern void f1110m000.Enter_Test_Data( ref string error )
{
DLLUSAGE
Function to start Enter_Test_Data in session tcqms1110m000
ENDDLLUSAGE
stpapi.zoom.option( "tcqms1110m000", 1, "tcqms1115s000", error )
}
function extern string f1110m000.get.last.message.code([string error(500)])
{
DLLUSAGE
Function to get the code of the message which occurred on
the last insert/update/delete/save/recover action in session tcqms1110m000
ENDDLLUSAGE
string ret(20)
if get.argc() = 0 then
return( stpapi.get.mess.code( "tcqms1110m000" ) )
else
error = get.string.arg(1)
ret = stpapi.get.mess.code( "tcqms1110m000", error )
put.string.arg(1, error)
return( ret )
endif
}
function extern string f1110m000.get.last.error( )
{
DLLUSAGE
Function to get the error message which occurred on
the last action in the Function Server
ENDDLLUSAGE
return( stpapi.get.error( ) )
}
function extern void f1110m000.handle.sub.process( const string sub.process, const string action )
{
DLLUSAGE
Function to define an action when a sub process is started.
Possible actions are: add/send/ignore/kill
add - add child session to internal structure,
session dll of child can be used
send - send all api calls to child instead of parent
ignore - child process is ignored, parent will wait
until child exits (for background processes)
kill - child process is killed immediately
ENDDLLUSAGE
stpapi.handle.subproc( "tcqms1110m000", sub.process, action )
}
function extern void f1110m000.define.enum.answer( const string question, bset answer )
{
DLLUSAGE
Function to define an answer on a question, when the default answer should not be taken.
ENDDLLUSAGE
stpapi.enum.answer( "tcqms1110m000", question, answer )
}
Reply With Quote
  #4  
Old 28th August 2008, 15:53
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 6,819
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
In your program try using stpapi.put.field( "tcqms1110m000", "sample.time", str$(value) ) instead of the library. See if that compiles. You might want to change the other library calls also - but try one and make sure it compiles.
__________________
Mark

GO Cards!
My latest mantra - make sure you have latest stpapi patches and the latest session object. If on LN then please explore the option of using DAL2 functionality.

Shared Solutions for Baan systems provided free by Baan Board.
Play the Google game and help Baanboard get better rankings. Do your part. Click here to find how.
Reply With Quote
Sponsored Links
  #5  
Old 2nd September 2008, 11:06
wiggum's Avatar
wiggum wiggum is offline
Senior Member
 
Join Date: Jun 2003
Posts: 130
wiggum is on a distinguished road
Using the library generated by ttstpcreatdll you have to use variables for the parameter no constants except for strings.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Maintain Replenishment Orders pedromrs AFS/DDC/OLE: Function servers 11 13th January 2007 08:32
Call a Shell using AFS wilsonphilips AFS/DDC/OLE: Function servers 1 7th September 2006 00:13
Cant Generate Receipt number when AFS call alibaba AFS/DDC/OLE: Function servers 4 4th September 2006 10:36
ERP: problems function call and AFS spartacus AFS/DDC/OLE: Function servers 8 15th November 2002 02:45


All times are GMT +2. The time now is 03:45.


©2001-2017 - Baanboard.com - Baanforums.com