Baanboard.com

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

User login

Frontpage Sponsor

Main

Poll
How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
18%
200 - 500 GB
29%
500 - 800 GB
3%
800 - 1200 GB
8%
1200 - 1500 GB
8%
1500 - 2000 GB
12%
> 2000 GB
22%
Total votes: 76

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 13th August 2019, 03:19
cherokee's Avatar
cherokee cherokee is offline
Guru
 
Join Date: Jan 2003
Location: Montreal, Canada
Posts: 306
cherokee is on a distinguished road
Baan: Baan IVc3 A&D - DB: Oracle - OS: IBM AIX
tdpur4246m000 "Command disabled"

Hello all,

I am trying to release Purchase Orders thru session tdpur4246m000 (BaaN V) with FS but keeps returning "Command disable" when command "continue" is executed, no other errors while setting up the FS. I do not know what can be the problem. Any help is welcome.

Code:
function release.to.warehouse()
{
        domain  tcmcs.str50     error.message
        domain  tcmcs.long      l.month,l.day,l.year,l.hh,l.mm,l.ss
        domain  tiutcd          l.utc.f, l.utc.t

        num.to.date(date.num(), l.year, l.month, l.day)
        l.utc.t = date.to.utc(l.year,l.month,l.day,0,0,0)
        
        spool.device = "FTP_ASCIF"
        spool.fileout = "test.123"
        stpapi.put.field("tdpur4246m000","orno.f",orno.f)
        stpapi.put.field("tdpur4246m000","orno.t",orno.f)
        stpapi.put.field("tdpur4246m000","cotp.f","")
        stpapi.put.field("tdpur4246m000","cotp.t","ZZZ")
        stpapi.put.field("tdpur4246m000","cofc.f","")
        stpapi.put.field("tdpur4246m000","cofc.t","ZZZZZZ")
        stpapi.put.field("tdpur4246m000","otbp.f","")
        stpapi.put.field("tdpur4246m000","otbp.t","ZZZZZZZZZ")
        stpapi.put.field("tdpur4246m000","sfbp.f","")
        stpapi.put.field("tdpur4246m000","sfbp.t","ZZZZZZZZZ")
        stpapi.put.field("tdpur4246m000","log.report","1") |Yes
        stpapi.put.field("tdpur4246m000","log.succes","1") |Yes
        stpapi.put.field("tdpur4246m000","ref.date",str$(l.utc.t))
        stpapi.put.field("tdpur4246m000","proc.device","1")
        stpapi.put.field("tdpur4246m000","alt.dev","FTP_ASCIF")
        stpapi.put.field("tdpur4401m000","alt.spoolout","c:\temp\test.rel.whse.txt")
        stpapi.set.report("tdpur4246m000","rtdpur424611000",spool.device,error.message)
        stpapi.continue.process("tdpur4246m000",error.message)
        | stpapi.print.report("tdpur4246m000",error.message)
        stpapi.end.session("tdpur4246m000")
}
Thank you in advance
__________________
Carlos Gonzalez CPIM,CSCP

Last edited by cherokee : 13th August 2019 at 16:56.
Reply With Quote
  #2  
Old 13th August 2019, 11:23
cintact cintact is offline
Newbie
 
Join Date: Jun 2009
Posts: 2
cintact is on a distinguished road
Baan: Baan IV ERP/LN Baan ERP - DB: Oracle MS SQL Server - OS: UNIX Windows
Hello,

two things i find strange.
You write, you are using Baan V, We have only baaniv and ERPLN.
i think baan v uses stpapi.form.command and not stpapi.continue.process.
This command is for baan IV.
I do not know this session very good, but you are using tdpur4246m000,
in following line you use tdpur4401m000. Is this correct?

stpapi.put.field("tdpur4401m000","alt.spoolout","c:\temp\test.rel.whse.txt")

Marcus
Reply With Quote
  #3  
Old 13th August 2019, 14:29
cherokee's Avatar
cherokee cherokee is offline
Guru
 
Join Date: Jan 2003
Location: Montreal, Canada
Posts: 306
cherokee is on a distinguished road
Baan: Baan IVc3 A&D - DB: Oracle - OS: IBM AIX
Thank you for your feedback.

Thank you for your help... stpapi.form.command, did the job! (I also corrected the wrong session code(4401m000) )

Thank you for your help!
__________________
Carlos Gonzalez CPIM,CSCP
Reply With Quote
Sponsored Links
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
Can not execute session tdpur4246m000 aldendata Distribution, Transportation & Warehousing 3 7th March 2003 13:40


All times are GMT +2. The time now is 09:11.


©2001-2018 - Baanboard.com - Baanforums.com