jatin_sanghi
15th November 2005, 09:18
Dear All,
I 'am trying to upload PO in SSA erp6.1. I have been using session tdpur4100m000( multi- occ. display session) where i press the insert button to move to tdpur4100m900 ( single occ).
I'am using the stpapi.synchronize.dialog option and getting a return value of 1, but at the insert command it gives the error ' editable syn. dialog not started'..
I have gone through the baanboard regarding same error...but that didn't help.
Also there is a point in AFS doc. that for syn. dialog, insert command should be issued to the multi-occ. session while, put command should be issued to the single-occ session. But this also doen't help .
Plz, suggest what can be done in this case.Plz find the attached part of the script.
ret = stpapi.synchronize.dialog("tdpur4100m000", "add", error.msg)
if ret then
stpapi.put.field("tdpur4100m900", "tdpur400.otbp", "S"& tmp40.suno)
stpapi.put.field("tdpur4100m900", "tdpur400.cotp", "P01")
stpapi.put.field("tdpur4100m900", "tdpur400.orno", str$(10))
stpapi.put.field("tdpur4100m900", "tdpur400.cofc", "P01")
|stpapi.put.field("tdpur4100m900", "tdpur400.ddat.segment.1", string.set$("0", 8-len(trim$((str$(tmp40.ddat)))))& trim$(str$(tmp40.ddat)))
| stpapi.put.field("tdpur4100m900", "tdpur400.ddat.segment.2", "0")
| stpapi.put.field("tdpur4100m900", "tdpur400.ddtc.segment.1", string.set$("0", 8-len(trim$((str$(tmp40.ddtc)))))& trim$(str$(tmp40.ddtc)))
| stpapi.put.field("tdpur4100m900", "tdpur400.ddtc.segment.2", "0")
ret = stpapi.insert("tdpur4100m000", true, error.msg)
if not ret then
ret = stpapi.recover("tdpur4100m900", error.msg)
endif
endif
stpapi.get.field("tdpur4100m900", "tdpur400.orno", m.orno)
stpapi.end.session("tdpur4100m900", error.msg)
stpapi.end.session("tdpur4100m000", error.msg)
I 'am trying to upload PO in SSA erp6.1. I have been using session tdpur4100m000( multi- occ. display session) where i press the insert button to move to tdpur4100m900 ( single occ).
I'am using the stpapi.synchronize.dialog option and getting a return value of 1, but at the insert command it gives the error ' editable syn. dialog not started'..
I have gone through the baanboard regarding same error...but that didn't help.
Also there is a point in AFS doc. that for syn. dialog, insert command should be issued to the multi-occ. session while, put command should be issued to the single-occ session. But this also doen't help .
Plz, suggest what can be done in this case.Plz find the attached part of the script.
ret = stpapi.synchronize.dialog("tdpur4100m000", "add", error.msg)
if ret then
stpapi.put.field("tdpur4100m900", "tdpur400.otbp", "S"& tmp40.suno)
stpapi.put.field("tdpur4100m900", "tdpur400.cotp", "P01")
stpapi.put.field("tdpur4100m900", "tdpur400.orno", str$(10))
stpapi.put.field("tdpur4100m900", "tdpur400.cofc", "P01")
|stpapi.put.field("tdpur4100m900", "tdpur400.ddat.segment.1", string.set$("0", 8-len(trim$((str$(tmp40.ddat)))))& trim$(str$(tmp40.ddat)))
| stpapi.put.field("tdpur4100m900", "tdpur400.ddat.segment.2", "0")
| stpapi.put.field("tdpur4100m900", "tdpur400.ddtc.segment.1", string.set$("0", 8-len(trim$((str$(tmp40.ddtc)))))& trim$(str$(tmp40.ddtc)))
| stpapi.put.field("tdpur4100m900", "tdpur400.ddtc.segment.2", "0")
ret = stpapi.insert("tdpur4100m000", true, error.msg)
if not ret then
ret = stpapi.recover("tdpur4100m900", error.msg)
endif
endif
stpapi.get.field("tdpur4100m900", "tdpur400.orno", m.orno)
stpapi.end.session("tdpur4100m900", error.msg)
stpapi.end.session("tdpur4100m000", error.msg)