dharmendrayadav
21st February 2014, 11:46
hi,
Am trying to initiate inventory(ticst0101m100) through AFS script, it always show me Command disable. any solution ????
dharmendrayadav
28th February 2014, 09:14
hi
script working successfully, anybudy want, then let me know
i will send.
mark_h
5th March 2014, 17:53
Can you post the script? That might help someone in the future if they run into issues.
sam291091
6th March 2014, 05:23
stpapi.put.field("ticst0101m100", "ticst001.pdno",i.pdno)
stpapi.put.field("ticst0101m100", "ticst001.pono",str$(i.pono))
stpapi.find("ticst0101m100", err.msg)
ret = stpapi.mark("ticst0101m100", err.msg)
ret = stpapi.synchronize.dialog("ticst0101m100","modify",err.msg)
if ret then
stpapi.handle.subproc("ticst0101m100","timfc0101m000","search")
stpapi.form.command( "ticst0101m100", 2, "timfc0101m000", ret.err)
stpapi.form.command("timfc0101m000",5,"initiate.order", ret.err)
stpapi.end.session("timfc0101m000",err.msg)
stpapi.end.session("ticst0101m100",err.msg)
if isspace(ret.err) then
return(true)
endif
endif
stpapi.end.session("ticst0101m100",err.msg)
return(false)