abattoir
30th September 2023, 02:32
Hello Guys, I am testing a public interface by passing hardcoded values to see if the public interface function is able to create a batch in finance with the values provided in the function of the LN interface.

Please see the below function snippet. I am not able to set values to enum arrays [iPayementDocumentStatus(1) & iTypeOfTransaction(1)]. When I hover on the array variables, no value is set in them, nor in the function call. What am I missing? I simply want to pass following hard code values to the enum variable arrays.

iTypeOfTransaction(1) = tfcmg.tran.reconc.suppl
iPayementDocumentStatus(1) = tfcmg.stpd.complete

function extern void function.ext.custom.function.1.command.execute()
{
|* Use this hook to perform the real command actions.
domain tfgld.ttyp bank.ttyp
domain tfgld.docn bank.docn
string exception.mess (999), ttyp.arr(3,9) FIXED,dummy.arr(9,9) FIXED
long exception.id, ret, dummy4.arr(9),dummy3.arr(9),ninv.arr(9)
domain tfcmg.tran iTypeOfTransaction(9),typeoftrans
domain tfcmg.stpd iPayementDocumentStatus(9),paymentdocumentstatus
double dummy2.arr(9)



#pragma used dll otfextcmgapi



ttyp.arr(1,1) = "115"
ninv.arr(1) = 10000004
dummy.arr(1,1) = ""
dummy2.arr(1) = 0.0
dummy3.arr(1) = 0
dummy4.arr(1) = 0
iTypeOfTransaction(1) = tfcmg.tran.reconc.suppl
iTypeOfTransaction(1) = ltoe(9)
iPayementDocumentStatus(1) = tfcmg.stpd.complete
iPayementDocumentStatus(1) = ltoe(3)
paymentdocumentstatus = ltoe(3)
typeoftrans = ltoe(9)
iTypeOfTransaction(1) = typeoftrans
iPayementDocumentStatus(1) = paymentdocumentstatus




ret = BankTransaction.CreateBankReconciliation(2300, "JPM", date.num(), "admin1","testbatch",
|date.num(),1,ltoe(9),dummy.arr,dummy2.arr ,
date.num(),1,iTypeOfTransaction,dummy.arr,dummy2.arr ,
|ttyp.arr, ninv.arr,dummy3.arr ,dummy4.arr, ltoe(3),
ttyp.arr, ninv.arr,dummy3.arr ,dummy4.arr, iPayementDocumentStatus,
bank.ttyp, bank.docn,exception.mess,exception.id)
}