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

User login

Frontpage Sponsor


How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
200 - 500 GB
500 - 800 GB
800 - 1200 GB
1200 - 1500 GB
1500 - 2000 GB
> 2000 GB
Total votes: 58

Baanboard at LinkedIn

Reference Content

Thread Tools Display Modes
Old 27th March 2018, 11:03
Ajesh's Avatar
Ajesh Ajesh is offline
Join Date: Feb 2009
Posts: 600
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.


	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", "", str$(
	stpapi.put.field("tipcs2230m000", "copy.structure", str$(etol(
	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", = ltoe(lval( = enum.descr$("ticpst",, "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)
	if not isspace(error.msg) then
		error.msg = "Product Structure has been Copied."
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
Old 31st March 2018, 08:57
Ajesh's Avatar
Ajesh Ajesh is offline
Join Date: Feb 2009
Posts: 600
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

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 15:54
Copy item standard structure into project (tipcs2230m000) teddybear Manufacturing & Supply Chain 0 21st June 2006 05:11
how to link a customized item to standard item benny007 Manufacturing & Supply Chain 0 18th October 2004 07:50

All times are GMT +2. The time now is 12:35.

©2001-2018 - -