- Forum
- T24 Technical Discussions
- T24 Development & Customization
- write data on local multi valued template
×
Discuss on Template programming, jBASE programming, Enquiries, No-File enquiry, Enquiry routines, Version, Version routines, Menus, Abbriviations, Creating local reference fields, Fast path enquiries, Creating charts and graphs, Generating Reports, Deal slips, Straight through processing, Multi Company and Multi Book setup, Tabbed screens, Composite Screens, T24 API, etc...
write data on local multi valued template
- mrul3s
- Topic Author
- Offline
- User is blocked
Less
More
- Posts: 103
- Thank you received: 0
7 years 3 months ago #20828
by mrul3s
write data on local multi valued template was created by mrul3s
Dear All,
i have a input routine my requirement is to write data in Multi Valued Local Template. i written code below but its not working. kindly help me where i am doing mistake. Thanks
IF Y.CR.BAL > 0 THEN
TXN.COUNT = TXN.COUNT + 1
CALL F.READ(FN.PK.H.MF.LOCAL.TXN,LOCAL.TXN.ID,R.LOCAL.TXN,F.PK.H.MF.LOCAL.TXN,LOCAL.TXN.ERROR)
R.LOCAL.TXN<MF.TXN.LOCAL.CR.VALUE.DT,TXN.COUNT> = Y.CR.TRD.DATE
R.LOCAL.TXN<MF.TXN.LOCAL.CR.TXN.REF,TXN.COUNT> = Y.CR.TRD.ID
R.LOCAL.TXN<MF.TXN.LOCAL.CR.UNITS,TXN.COUNT> = Y.CR.TRD.UNITS
R.LOCAL.TXN<MF.TXN.LOCAL.CR.PRICE,TXN.COUNT> = Y.CR.TRD.PRICE
R.LOCAL.TXN<MF.TXN.LOCAL.BALANCE.UNITS,TXN.COUNT> = Y.CR.BAL
CALL F.WRITE(FN.PK.H.MF.LOCAL.TXN,LOCAL.TXN.ID,R.LOCAL.TXN)
END
i have a input routine my requirement is to write data in Multi Valued Local Template. i written code below but its not working. kindly help me where i am doing mistake. Thanks
IF Y.CR.BAL > 0 THEN
TXN.COUNT = TXN.COUNT + 1
CALL F.READ(FN.PK.H.MF.LOCAL.TXN,LOCAL.TXN.ID,R.LOCAL.TXN,F.PK.H.MF.LOCAL.TXN,LOCAL.TXN.ERROR)
R.LOCAL.TXN<MF.TXN.LOCAL.CR.VALUE.DT,TXN.COUNT> = Y.CR.TRD.DATE
R.LOCAL.TXN<MF.TXN.LOCAL.CR.TXN.REF,TXN.COUNT> = Y.CR.TRD.ID
R.LOCAL.TXN<MF.TXN.LOCAL.CR.UNITS,TXN.COUNT> = Y.CR.TRD.UNITS
R.LOCAL.TXN<MF.TXN.LOCAL.CR.PRICE,TXN.COUNT> = Y.CR.TRD.PRICE
R.LOCAL.TXN<MF.TXN.LOCAL.BALANCE.UNITS,TXN.COUNT> = Y.CR.BAL
CALL F.WRITE(FN.PK.H.MF.LOCAL.TXN,LOCAL.TXN.ID,R.LOCAL.TXN)
END
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus:G09-G13|TAFC:R05-R23|TAFJ:R19,R23:test
Less
More
- Posts: 1116
- Thank you received: 150
7 years 3 months ago #20829
by VK
Cheers
VK
Replied by VK on topic write data on local multi valued template
Hi
What exactly is not working? Record isn't saved to your local app?
From which application you're trying to do this?
Then, it looks like you're doing the read and write in a loop... Why not do it in one step?
What are the contents of variables Y.CR.BAL, TXN.COUNT and LOCAL.TXN.ID?
P.S. Your code will be more readable with spaces after commas :))
What exactly is not working? Record isn't saved to your local app?
From which application you're trying to do this?
Then, it looks like you're doing the read and write in a loop... Why not do it in one step?
What are the contents of variables Y.CR.BAL, TXN.COUNT and LOCAL.TXN.ID?
P.S. Your code will be more readable with spaces after commas :))
Cheers
VK
Please Log in or Create an account to join the conversation.
- mrul3s
- Topic Author
- Offline
- User is blocked
Less
More
- Posts: 103
- Thank you received: 0
7 years 3 months ago #20830
by mrul3s
Replied by mrul3s on topic write data on local multi valued template
Thanks for your reply VK.
Record not save on my templete.
from Core MF.TXN.LINK application to my local PK.H.MF.LOCAL.TXN.
ok i am removing Read line.
Y.CR.BAL = 48.6
TXN.COUNT = 0
TXN.COUNT = TXN.COUNT + 1
LOCAL.TXN.ID = 138374.800105
Record not save on my templete.
from Core MF.TXN.LINK application to my local PK.H.MF.LOCAL.TXN.
ok i am removing Read line.
Y.CR.BAL = 48.6
TXN.COUNT = 0
TXN.COUNT = TXN.COUNT + 1
LOCAL.TXN.ID = 138374.800105
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus:G09-G13|TAFC:R05-R23|TAFJ:R19,R23:test
Less
More
- Posts: 1116
- Thank you received: 150
7 years 3 months ago #20831
by VK
Cheers
VK
Replied by VK on topic write data on local multi valued template
Hi
Why you remove READ? It means that you rewrite the record each time without updating it; thus the data is not multi-valued - you populate only the value #1 in each field...
However the write should occur anyway; make sure if your routine is triggered at all...
Why you remove READ? It means that you rewrite the record each time without updating it; thus the data is not multi-valued - you populate only the value #1 in each field...
However the write should occur anyway; make sure if your routine is triggered at all...
Cheers
VK
Please Log in or Create an account to join the conversation.
- mrul3s
- Topic Author
- Offline
- User is blocked
Less
More
- Posts: 103
- Thank you received: 0
7 years 3 months ago #20832
by mrul3s
Replied by mrul3s on topic write data on local multi valued template
Dear VK,
My issue has been resolved when i written CALL JOURNAL.UPDATE(LOCAL.TXN.ID) but it shows Error msg which provided below. Can you tell me how i can resolve this issue
** FATAL ERROR IN (SENSITIVE ROUTINES CALLED IN LOCAL RTNS) **
My issue has been resolved when i written CALL JOURNAL.UPDATE(LOCAL.TXN.ID) but it shows Error msg which provided below. Can you tell me how i can resolve this issue
** FATAL ERROR IN (SENSITIVE ROUTINES CALLED IN LOCAL RTNS) **
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus:G09-G13|TAFC:R05-R23|TAFJ:R19,R23:test
Less
More
- Posts: 1116
- Thank you received: 150
7 years 3 months ago #20835
by VK
Cheers
VK
Replied by VK on topic write data on local multi valued template
Hi
You should never use JOURNAL.UPDATE in VERSION routines... Here was a recent thread about this.
MF.TXN.LINK is "L" application (and it doesn't allow I function), how do you expect an input routine to write anything?
You should never use JOURNAL.UPDATE in VERSION routines... Here was a recent thread about this.
MF.TXN.LINK is "L" application (and it doesn't allow I function), how do you expect an input routine to write anything?
Cheers
VK
Please Log in or Create an account to join the conversation.
- mrul3s
- Topic Author
- Offline
- User is blocked
Less
More
- Posts: 103
- Thank you received: 0
7 years 3 months ago #20836
by mrul3s
Replied by mrul3s on topic write data on local multi valued template
Hi VK,
i am not writing in MF.TXN.LINK application. i created local txn link templete PK.H.MF.LOCAL.TXN and i am writing in this templete
i am not writing in MF.TXN.LINK application. i created local txn link templete PK.H.MF.LOCAL.TXN and i am writing in this templete
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus:G09-G13|TAFC:R05-R23|TAFJ:R19,R23:test
Less
More
- Posts: 1116
- Thank you received: 150
7 years 3 months ago #20838
by VK
Cheers
VK
Replied by VK on topic write data on local multi valued template
But you mentioned "input routine"... To which application VERSION is this routine attached?
Cheers
VK
Please Log in or Create an account to join the conversation.
- mrul3s
- Topic Author
- Offline
- User is blocked
Less
More
- Posts: 103
- Thank you received: 0
7 years 3 months ago #20839
by mrul3s
Replied by mrul3s on topic write data on local multi valued template
MF.TRADE application version
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus:G09-G13|TAFC:R05-R23|TAFJ:R19,R23:test
Less
More
- Posts: 1116
- Thank you received: 150
7 years 3 months ago - 7 years 3 months ago #20840
by VK
Cheers
VK
Replied by VK on topic write data on local multi valued template
MF.TRADE is "H" so all should be OK (however I didn't work with it yet).
If your writes made in INPUT routine aren't saved, then you have to communicate it to Temenos (since it looks like an error in this application because it differs from the normal T24 application processing).
As a last resort, you can try to use WRITE instead of F.WRITE but keep in mind that even if the MF.TRADE transaction is cancelled for any reason, your WRITE would stay (hence you might face a discrepancy in your data).
If your writes made in INPUT routine aren't saved, then you have to communicate it to Temenos (since it looks like an error in this application because it differs from the normal T24 application processing).
As a last resort, you can try to use WRITE instead of F.WRITE but keep in mind that even if the MF.TRADE transaction is cancelled for any reason, your WRITE would stay (hence you might face a discrepancy in your data).
Cheers
VK
Last edit: 7 years 3 months ago by VK.
Please Log in or Create an account to join the conversation.
- mrul3s
- Topic Author
- Offline
- User is blocked
Less
More
- Posts: 103
- Thank you received: 0
7 years 3 months ago #20841
by mrul3s
Replied by mrul3s on topic write data on local multi valued template
Ok dear Thanks.
Please Log in or Create an account to join the conversation.
- Forum
- T24 Technical Discussions
- T24 Development & Customization
- write data on local multi valued template
Time to create page: 0.131 seconds