jayugandhi
24th June 2014, 15:07
Hi,
I am trying to do a bank transaction in session tfgld1101m000>tfcmg2500m000>tfacp2103s000 through afs.
I am getting an error "It is not allowed to change tax ledger account field" on session tfacp2103s000 which is my last process.
I can change ledger account directly from session without any error message.
please help me to solve this why this message is coming!
below is my code-
ret = stpapi.mark("tfcmg2500m000", err.msg)
stpapi.handle.subproc("tfcmg2500m000", "tfacp2103s000", "modify")
stpapi.form.command("tfcmg2500m000", 5, "handle.withholding.tax", err.msg)
ret = stpapi.mark("tfacp2103s000", err.msg)
ret = stpapi.synchronize.dialog("tfacp2103s000", "modify", err.msg)
if ret = 1 then
select ltmig022.*
from ltmig022
where ltmig022._index1 = {"MAP", "PEW"}
as set with 1 rows
selectdo
endselect
stpapi.put.field("tfacp2103s000", "tfacp203.year", str$(2014))
stpapi.put.field("tfacp2103s000", "tfacp203.leac", ltmig022.leac1)
stpapi.put.field("tfacp2103s000", "tfacp203.dim1", ltmig022.loca)
stpapi.put.field("tfacp2103s000", "tfacp203.dim2", ltmig022.coeu)
ret = stpapi.update("tfacp2103s000", true, err.msg)
endif
I am trying to do a bank transaction in session tfgld1101m000>tfcmg2500m000>tfacp2103s000 through afs.
I am getting an error "It is not allowed to change tax ledger account field" on session tfacp2103s000 which is my last process.
I can change ledger account directly from session without any error message.
please help me to solve this why this message is coming!
below is my code-
ret = stpapi.mark("tfcmg2500m000", err.msg)
stpapi.handle.subproc("tfcmg2500m000", "tfacp2103s000", "modify")
stpapi.form.command("tfcmg2500m000", 5, "handle.withholding.tax", err.msg)
ret = stpapi.mark("tfacp2103s000", err.msg)
ret = stpapi.synchronize.dialog("tfacp2103s000", "modify", err.msg)
if ret = 1 then
select ltmig022.*
from ltmig022
where ltmig022._index1 = {"MAP", "PEW"}
as set with 1 rows
selectdo
endselect
stpapi.put.field("tfacp2103s000", "tfacp203.year", str$(2014))
stpapi.put.field("tfacp2103s000", "tfacp203.leac", ltmig022.leac1)
stpapi.put.field("tfacp2103s000", "tfacp203.dim1", ltmig022.loca)
stpapi.put.field("tfacp2103s000", "tfacp203.dim2", ltmig022.coeu)
ret = stpapi.update("tfacp2103s000", true, err.msg)
endif