I am trying to post a dividend to a share in an on-demand specfile. How can I get the TRANPERFORM command to issue the same teller transaction sequence "SV" just like a teller would? Example code:
TRANPERFORM SV (0,SQ1,SQ2,CHKACCTCODE,CHKNUM,TRANERROR)
DO
SET TOACCT TO ACCOUNT:NUMBER
SET TOTYPE TO "0"
SET TOID TO SHAREID(S)
SET AMOUNT TO SHAREDIVAMT(S)
SET ADJUSTMENT TO 0
END
I am unable to get this to compile and I don't understand why.
Your error is "invalid action code in TRANPERFORM specification". It means the first letter "S" is invalid. "S" action code is not available for TRANPERFORM.
Below are from Episys eDoc 2014.01.
The required Tokens by Transaction:
The Share Dividend (SV)transaction lets you calculate and post a Closing Dividend, Periodic Dividend, Accrual Dividend or Extraordinary Dividend for a share. This transaction updates the share balance by the transaction amount and also updates fields in the Share record.
You can use the Share Dividend (SV) transaction alone or with other transactions. Another transaction is not required to balance a Share Dividend (SV)transaction, since Episys makes the offsetting General Ledger transaction automatically.
Updated Share Fields: the Share Dividend (SV)transaction updates the following Share record fields:
Below snippet is from RD.DVTRANSACTION.