Navin Tenani
16th January 2013, 08:01
Dear Gurus,

We are facing a strange problem in AFS. Instead of working in Background the Session Opens up in Front and we are stucked.
Its not with a particular session but is happening with All Sessions.

|****************************** form section **********************************

form.1:
init.form:
get.screen.defaults()

|****************************** choice section ********************************

choice.cont.process:
on.choice:
read.main.table()


|****************************** program section *********************************
before.program:
| hr =(( curr.time / 60)/60)
| tim = curr.time - hr * 60 * 60
| mn = tim / 60
| tim = lval(sprintf$("%@99@",hr) & sprintf$("%@99@",mn))


|****************************** function section ******************************

functions:

function read.main.table()
{

| stpapi.put.field("tfgld1101m000","tfgld101.btno",str$(1869))

stpapi.put.field("tdpur4101m000","tdpur040.orno","100022")

Amit_Jain
16th January 2013, 09:58
Hi Navin

I suggest you provide full code of the session so that we can get a clear understanding of the problem.

Navin Tenani
16th January 2013, 11:11
Hi Amit,

The problem seems to be with some session setting, as AFS cannot open a Session in Front instead of a background processing.

Regards

Navin Tenani

mark_h
16th January 2013, 15:12
This is the correct forum for afs questions.

If you are using 4c4 then I am not aware of any session settings that would cause the session to pop up in the foreground. I would contact infor as soon as possible. I could see where you may have to upgrade the API libraries or maybe even a porting set.

Navin Tenani
17th January 2013, 08:16
Thanks Mark for your Guidance and Support

Regards


Navin Tenani