Baanboard.com

Go Back   Baanboard.com > Forum > Baan Quick Support: Functional & Technical > Tools Development

User login

Frontpage Sponsor

Main

Google search


Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
36%
Installation Wizard into new VRC
36%
Manual into existing VRC
7%
Manual into new VRC
22%
Total votes: 45

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 28th May 2018, 14:33
Premahari Premahari is offline
Member
 
Join Date: Mar 2018
Posts: 35
Premahari is on a distinguished road
Baan: InforLN 10.5 - DB: SQL Server - OS: Windows
AFS for getting Quarantine ID
Baan: ERP LN 6.1 FP11 (Infor ERP 10.5)
C/S: None/Unknown

Hi In production orders ,Whenever quantity is rejected, it was moved to quarantine. In quarantine inventory it will create one quarantine ID.
How to get that quarantine ID through AFS. The session i used for move to quarantine is tisfc0209m000. It was moved to quarantine and ID generated in whwmd2171m000 session.How to get that ID Can anyone please help?
Reply With Quote
  #2  
Old 28th May 2018, 20:38
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 7,069
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
Not exactly sure what you are looking for. Is there a reason you need in thru AFS? Is it not possible to just read it from a table. I mean if you are running thru a process and generating the id and just want to read it from a form you would use the stpapi.get command.
__________________
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 29th May 2018, 06:11
Premahari Premahari is offline
Member
 
Join Date: Mar 2018
Posts: 35
Premahari is on a distinguished road
Baan: InforLN 10.5 - DB: SQL Server - OS: Windows
AFS for geeting Quarantine ID

iam trying to read using stpapi.get.field command only. But its returning wrong Quarantine ID. Here is my code I used for move to quarantine. BUt don know how to get quarantine ID. Its creating ID in session whwmd2171m000 session I checked. But through AFS when I tried returning wrong ID


stpapi.put.field( "tisfc0130m000", "tisfc010.pdno", orno)
stpapi.put.field( "tisfc0130m000", "tisfc010.opno", str$(opno) )
ret = stpapi.find( "tisfc0130m000" , err.msg)
if ret = 1 then
stpapi.form.command( "tisfc0130m000", 2, "tisfc0209m000", error )
stpapi.put.field( "tisfc0209m000", "f.dir.proc.wo", str$(tcyesno.yes) )
stpapi.form.command( "tisfc0209m000", 5, "reject.to.quarantine", error )
stpapi.end.session("tisfc0209m000")
else
dal.get.error.message (err.msg)
abort.transaction()
message(err.msg)
endif
stpapi.end.session("tisfc0130m000")
Reply With Quote
  #4  
Old 29th May 2018, 10:43
giggty's Avatar
giggty giggty is offline
Member
 
Join Date: May 2017
Posts: 51
giggty is on a distinguished road
Baan: Infor ERP 10.6 - DB: MSSQL Server 2008 R2 - OS: Windows Server 2012
Quarantine ID is not displayed on tisfc0209m000 form, so... Well, it could be stored in some extern variable (then you can get it with stpapi.get.field()), but without sources you won't know, so the easiest way is to query whwmd271 for ID.

Last edited by giggty : 29th May 2018 at 14:48.
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
AFS waiting timed out (frozen) jp.aalders AFS/DDC/OLE: Function servers 4 20th December 2011 20:48
Steps to create AFS indian_sumesh AFS/DDC/OLE: Function servers 1 6th November 2008 17:32
AFS on tihra1101m000 jp.aalders AFS/DDC/OLE: Function servers 5 21st July 2008 12:34
afs basics, please comment yogrind AFS/DDC/OLE: Function servers 1 21st April 2004 23:07
AFS (tfgld1101m000) don´t run fine since a user with a Dynamic menu (DEM) garias AFS/DDC/OLE: Function servers 4 20th January 2004 14:24


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


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