View Single Post
  #1  
Old 11th September 2013, 12:20
patwanirav patwanirav is offline
Member
 
Join Date: May 2011
Posts: 38
patwanirav is on a distinguished road
Baan: Baan 4 - DB: Infor - OS: Xp
Smile How to press "OK" button through AFS in ERP LN FP7.

I am unable to press "OK" button of the attached session "tfacp1210m000" through AFS.

When i use the "stpapi.continue.process" or "stpapi.save", it gives me error "Command Disable".

When i use stpapi.end.session, the data is not populated into the parent session. My code is as bolow.
Code:
stpapi.form.command("tfgld1101m100", 5, "enter.transactions", error)
ret = stpapi.synchronize.dialog("tfacp1110s000", "add", error)		
stpapi.form.command("tfacp1110s000", 5, "copy.from.preregistration", error)
if isspace(error) then
    stpapi.put.field("tfacp1210m000","tfacp100.ninv",str$(lpbpm501.ninv))
    ret = stpapi.find("tfacp1210m000",error)
    if isspace(error) then
	ret_1 =stpapi.mark("tfacp1210m000", error)
	stpapi.enum.answer("tfacp1210m000", "tfacps1110.3", tcyesno.yes)
	stpapi.end.session("tfacp1210m000")
    endif
endif
Now if the above code is perfect then why it is not populating data to the parent session "tfacp1110s000" through AFS. Because after writing the above code when i write code

ret = stpapi.insert("tfacp1110s000", 1, error )

it gives me error "Cash Flow reason must be filled."

Please help...

Thanks in advance...
Attached Images
File Type: jpg AFS_OK_PROB1.JPG (57.5 KB, 68 views)
File Type: jpg AFS_OK_PROB2.JPG (29.0 KB, 60 views)

Last edited by mark_h : 14th September 2013 at 22:26. Reason: add code tags for readability.
Reply With Quote