× 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...

FATAL ERROR IN (SENSITIVE ROUTINES CALLED IN LOCAL RTNS

  • fresho01
  • Topic Author
  • Offline
  • New Member
  • New Member
More
16 years 3 months ago #1014 by fresho01
hi all
I am trying to calculate charges when an FT is authorised during a transaction. i have designed an FT VERSION and attached a routine in field 64. AUTH.ROUTINE . The routine is supposed to raise another FT entries through OFS. The routine works well and does the necesary FT but i get the following error
FATAL ERROR IN (SENSITIVE ROUTINES CALLED IN LOCAL RTNS).

i have change the routine to use EB.ACCOUNTING instead of OFS the entries are raised but the main FT is not done . And i still get the same error
FATAL ERROR IN (SENSITIVE ROUTINES CALLED IN LOCAL RTNS)

please note that there isnt any error in the OFS.REQUEST.DETAIL and the error bumps out into jsh prompt.
please how can i go about resolving this....?

cheers
lekan (Nigeria)



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

More
16 years 3 months ago #1015 by ashokp
Replied by ashokp on topic Leku
Hi,
How is things going in Nigeria. Still in CBN?
Call the subroutine as main line using EB.SET.NEXT.TASK.

this might solve your problem.

:-)


Ashok
IFSC Dublin-1
Ireland
Satisfaction is end of career growth

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

  • fresho01
  • Topic Author
  • Offline
  • New Member
  • New Member
More
16 years 3 months ago #1016 by fresho01
Replied by fresho01 on topic re: FATAL ERROR
hey Ashok,
Thanks for your reply am grateful. Sorry to ask who is Ashok..? i am sure this is someone that knows me. Yeah i am still in CBN and partially in ASO Savings And Loans.

How is the function EB.SET.NEXT.TASK supposed to be used? should it be used in place of the OFS? or should be called after the OFS.
thanks again ill expect your reply

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

More
16 years 3 months ago #1017 by ashok
Replied by ashok on topic Fatal Error
Well, I was there for ASO .....



1st create a common header file

buid ofs message and assign in common variable n

CALL EB.SET.NEXT.TASK('')




write a main line routine PGM 'm' and get the OFS message via Common variable and Call OGM(....,...)



Only I can give this much information. I am travelling to UK ........, still problem let me know


Ashok Pandey
Mayor Street
Dublin
Ireland

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

More
16 years 3 months ago #1018 by ashokp
Replied by ashokp on topic fatal
if you are still getting problem folow the following steps




Common Variable

I_

______________

COM/FN.FUNDS.TRANSFER/Y.OFS.MESSAGE,

Y.OFS,

Y.FUNCTION,

Y.MESSAGE

______________


VERSION ROUTINE




SUBROUTINE V.



*====================================================================

* ====================================================================



$INSERT I_COMMON

$INSERT I_EQUATE

$INSERT I_



GEN.OFS.MESSAGE:

*=========

*

*updating ac.locked.events through ofs

*

Y.OFS.MESSAGE='FT,INP/I/PROCESS'

Y.OFS.MESSAGE:= ?



Y.NEXT.RTN = C.U:' ':'V.BOS.TT.OFS'

CALL EB.SET.NEXT.TASK(Y.NEXT.RTN)



*

* since usage of OFS.GLOBUS.MANAGER is restricted in INPUT & AUTH rtn

* EB.SET.NEXT.TASK is used.the outgoing parameters are

* Y.OFS,Y.OFS.MESSAGE,Y.MESSAGE, ETC?

*



RETURN

END







MAIN LINE ROUTINE



/P>
SUBROUTINE

*

*====================================================

$INSERT I_COMMON

$INSERT I_EQUATE

$INSERT I_





GOSUB INIT

GOSUB PROCESS

RETURN

*====

INIT:

*====



RETURN



*========

PROCESS:

*========



IF Y.FUNCTION EQ 'I' AND Y.OFS.MESSAGE NE '' THEN

IF APPLICABLE

END

CALL OFS.GLOBUS.MANAGER(Y.OFS,Y.OFS.MESSAGE)





RETURN

END




Ashok

IFSC Dublin-1

Ireland

Satisfaction is end of career growth

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

More
16 years 2 months ago #1019 by sharathnp
Replied by sharathnp on topic OFS problem
Buddy you can user your routine by making it main line & attaching it to the Next version field of the version,this solves the problem very easily.



Sharath

Think positive
The following user(s) said Thank You: leopoje

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

More
16 years 2 months ago #1020 by silvester
Since the introduction of R6, you cannot call OGM/OFS from the AUTH.ROUTINE, instead, you can call OFS.POST.MESSAGE for this purpose. The OFS.POST.MESSAGE will write the OFS message to F.OFS.MESSAGE.QUEUE which will be process by TSA.SERVICE->OFS.MESSAGE.SERVICE. These core routine must used as a replacement for OGM in online mode.

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

More
16 years 2 months ago #1021 by sharathnp
Replied by sharathnp on topic OFS problem


I agree with siverster but the problem in R5 is that we get the error 'SENSITIAVE RTNS CALLED WITHIN LOCAL API'S'



But in JSIB Taipei the client has huge development using OGM & even does not have the patch or getting the patch for getting the new services,So we can use rtn as main line & attaching it to Next version of versionwhich gets called at auth stage.



But as silveseter recomended it is better to go with new services rather than OGM


SharathNP

Think positive

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

More
15 years 8 months ago #1022 by jitunist
Replied by jitunist on topic Fatal Error
This problem arises when u r calling OFS.GLOBUS.MANAGER inside ur local routine.This generally happens in R5 and R6.Use OFS.POST.MESSAGE instead of OFS.GLOBUS.MANAGER. This will solve ur problem

U can also use EB.ACCOUNTING.But here u have to call Jounal.Update after ur processing of internal FT transaction

Thanks
Jitu

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

More
7 years 9 months ago - 7 years 9 months ago #19543 by leopoje
Replied by leopoje on topic OFS problem
Hie sharathnp,

I applied the solution you suggested (Buddy you can user your routine by making it main line & attaching it to the Next version field of the version,this solves the problem very easily.), as an Input routine and it worked, however when i tried to use it as an Auth routine its now not working and throwing an error TOO MANY CHARACTERS pointing to my routine. Does it worked as an Input routine only? if so how then can i do it for an Auth routine? Ref the screen below:

MADISON FINANCE FUNDS.TRANSFER,MF.PREPAY.AUTH AUTHORISREF FT16074K281R





TRANS TYPE = AC












15 JUN 2016 16:06:45 USER (14 MAR) OFSSAL [180,10]TXN COMPLETE
ACTION V.MF.PREPAYMENT.EXPENSE TOO MANY CHARACTERS
AWAITING ID

If it was so, it might be; and if it
were so, it would be; but as it isn’t, it ain’t. That’s logic... (computerrage)
Last edit: 7 years 9 months ago by leopoje. Reason: left out some details

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

More
6 years 2 months ago - 6 years 2 months ago #21591 by hussain.ismail
hi Ashok,
Thanks for your solution but I did not understand how to use call next routine by
Y.NEXT.RTN = C.U:' ':'V.BOS.TT.OFS'
CALL EB.SET.NEXT.TASK(Y.NEXT.RTN)
-what C.U means & V.BOS.TT.OFS
-and where should i but the name of my main line routine
-and i don't have next version only one i use it in OFS
I'm sorry I'm a beginner
Last edit: 6 years 2 months ago by hussain.ismail. Reason: rename topic

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

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Globus|G09-G13 TAFC|R05-R23 TAFJ|R19,R23-test
More
6 years 2 months ago - 6 years 2 months ago #21594 by VK
Hi
Please note firstly that this solution was posted exactly 10 years ago :))

Anyway... it still should work.

passing C.U to EB.SET.NEXT.TASK emulates the press of F1 key (or Ctrl-U\n) in the terminal.

V.BOS.TT.OFS in that example is the name of a mainline routine, though that line could be written as:
Y.NEXT.RTN = C.U:' V.BOS.TT.OFS'

Note that leading C.U and a space aren’t necessary under Browser.

Cheers
VK
Last edit: 6 years 2 months ago by VK.

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

Time to create page: 0.145 seconds