Baanboard.com

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

User login

Frontpage Sponsor

Main

Google search


Poll
How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
14%
200 - 500 GB
32%
500 - 800 GB
4%
800 - 1200 GB
4%
1200 - 1500 GB
11%
1500 - 2000 GB
14%
> 2000 GB
21%
Total votes: 28

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 27th March 2018, 12:03
Ajesh's Avatar
Ajesh Ajesh is offline
Guru
 
Join Date: Feb 2009
Posts: 531
Ajesh is on a distinguished road
Baan: LN 10.4 - DB: Oracle - OS: HP-Unix
AFS for copying Standard Item to Customized Item(tipcs2230m000)

Dear All

I am trying to write an AFS session for the above mentioned session.

Code:

stpapi.clear("tipcs2230m000")
	stpapi.put.field("tipcs2230m000", "orig.item.segment.1", "")
	stpapi.put.field("tipcs2230m000", "orig.item.segment.2", file.stnd.item)
	stpapi.put.field("tipcs2230m000", "copy.item.segment.1", file.cprj)
	stpapi.put.field("tipcs2230m000", "copy.item.segment.2", file.cust.item)
	
 	
	stpapi.put.field("tipcs2230m000", "use.cfdt", str$(etol(form.ref.check)))
	stpapi.put.field("tipcs2230m000", "eff.date", str$(form.ref.date))
	stpapi.put.field("tipcs2230m000", "copy.structure", str$(etol(form.meth.prod.struct)))
	stpapi.put.field("tipcs2230m000", "copy.items", str$(etol(form.meth.for.items)))
	stpapi.put.field("tipcs2230m000", "copy.erela", str$(etol(form.e.item)))
	stpapi.put.field("tipcs2230m000", "copy.alt.mat", str$(etol(form.alter.mat)))
	stpapi.put.field("tipcs2230m000", "copy.use.up.mat", str$(etol(form.use.up.mat)))
	stpapi.put.field("tipcs2230m000", "new.cust.comp", str$(etol(form.gen.item.code)))
	stpapi.put.field("tipcs2230m000", "ask.user.conf", str$(etol(form.ask.bef.gen)))
	stpapi.put.field("tipcs2230m000", "approve.cfs", str$(etol(form.approve.conv.factor)))


	stpapi.form.command("tipcs2230m000", 5,"continue.process",error.msg)
	stpapi.get.field("tipcs2230m000", "copy.structure", string.prod.struct)
	form.meth.prod.struct = ltoe(lval(string.prod.struct))
	string.prod.struct = enum.descr$("ticpst", form.meth.prod.struct, "2")  	
	
	stpapi.get.field("tipcs2230m000", "copy.items", string.for.items)
	form.meth.for.items = ltoe(lval(string.for.items))
	string.for.items = enum.descr$("ticpit", form.meth.for.items, "2")  
        	error.msg = "Test Message"
	while not isspace(error.msg)
		error.code = stpapi.get.mess.code("tipcs2230m000", error.msg)
	endwhile
	if not isspace(error.msg) then
		brp.ready(brp_id1)	
	else
		error.msg = "Product Structure has been Copied."
		brp.ready(brp_id1)	
	endif
But what i have observed is that Standard Item is getting copied to Customized Item but BOM is not getting copied. I have tried fetching all the messages but to no avail.

Any Clues?
Reply With Quote
Sponsored Links
  #2  
Old 31st March 2018, 09:57
Ajesh's Avatar
Ajesh Ajesh is offline
Guru
 
Join Date: Feb 2009
Posts: 531
Ajesh is on a distinguished road
Baan: LN 10.4 - DB: Oracle - OS: HP-Unix
The Date was getting passed as a Normal Date rather than UTC. That was the problem.

Now theres another issue, Suppose if a BOM has multiple sequence in one position then only one sequence is getting copied.
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
Handling Unit functionality baazigar Distribution, Transportation & Warehousing 4 19th February 2012 16:54
Copy item standard structure into project (tipcs2230m000) teddybear Manufacturing & Supply Chain 0 21st June 2006 06:11
how to link a customized item to standard item benny007 Manufacturing & Supply Chain 0 18th October 2004 08:50


All times are GMT +2. The time now is 02:25.


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