Delete and reinsert a INAU FT programatically

  • Nash21979
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 7 months ago #21027 by Nash21979
Hi Guys,
Is there a way to delete and insert a FT programatically so that we can make the INAU FT go back to IHLD.
Thanks in advance.

Please Log in or Create an account to join the conversation.

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Globus:G9-G13|TAFC:R05-R23|TAFJ:R19,R23,R24:test
More
7 years 7 months ago #21028 by VK
OFS

Cheers
VK

Please Log in or Create an account to join the conversation.

  • Nash21979
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 7 months ago #21029 by Nash21979
Replied by Nash21979 on topic Delete and reinsert a INAU FT programatically
How?

Please Log in or Create an account to join the conversation.

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Globus:G9-G13|TAFC:R05-R23|TAFJ:R19,R23,R24:test
More
7 years 7 months ago #21031 by VK
1. Read "old" FT, populate a string variable with OFS message which will recreate it;
2. Create another variable with OFS message using D function to delete "old" FT.
3. Use CALL OFS.POST.MESSAGE to post the message created in point 2.
4. Wait for OFS.MESSAGE.SERVICE to proceed it.
5. Check if FT was really deleted.
6. Use CALL OFS.POST.MESSAGE to post the message created in point 1.
7. Same as above - wait and check.
8. Enjoy :)

That's the way 100% compatible with Temenos recommendations :))

Cheers
VK

Please Log in or Create an account to join the conversation.

  • Nash21979
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 7 months ago #21034 by Nash21979
Replied by Nash21979 on topic Delete and reinsert a INAU FT programatically
Thanks VK,
can you suggest a way to :1. Read "old" FT, populate a string variable with OFS message which will recreate it;
i think I'm confortable with the rest :)
Thanks a lot

Please Log in or Create an account to join the conversation.

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Globus:G9-G13|TAFC:R05-R23|TAFJ:R19,R23,R24:test
More
7 years 7 months ago #21035 by VK
Hi
you can do it "manually":
- form OFS message header - e.g. FUNDS.TRANSFER,MY.VER/I/PROCESS ....
- get all FT fields using GET.STANDARD.SELECTION.DETS, then loop through the record adding constructions to OFS message like:
,TRANSACTION.TYPE::=AC
,DEBIT.ACCT.NO::=12345678
etc

There's also a core thingie that you have to use at your own risk (usually I don't recommend that):
CALL OFS.BUILD.RECORD(APP.NAME,OFSFUNCT,PROCESS,OFSVERSION,GTSMODE,NO.OF.AUTH,TRANSACTION.ID,RECORD,OFSRECORD)

Cheers
VK

Please Log in or Create an account to join the conversation.

  • Nash21979
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 7 months ago #21037 by Nash21979
Replied by Nash21979 on topic Delete and reinsert a INAU FT programatically
The first one is a long shot for me :)
I dont get to make the second one work, I get a blank OFS message, I guess i'm messing sthg in the parameters.
Rgrds,

Please Log in or Create an account to join the conversation.

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Globus:G9-G13|TAFC:R05-R23|TAFJ:R19,R23,R24:test
More
7 years 7 months ago #21038 by VK
As I said, I always try to avoid calling core functionality... I might be obsolete, might change without notice at any moment, might cause harm - and all at your own responsibility.

It looks like you have to choose the option 1... The knowledge you'll get going this way will be very valuable for you in the future...

Cheers
VK

Please Log in or Create an account to join the conversation.

  • Nash21979
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 7 months ago #21039 by Nash21979
Replied by Nash21979 on topic Delete and reinsert a INAU FT programatically
Thanks Mate :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.098 seconds