OFS - Possible to reject a mesg thru IN.MSG.RTN?
- gm.saran
- Topic Author
- Offline
- Elite Member
- Posts: 203
- Thank you received: 29
is it possible to reject an incoming mesg through the routine attached in IN.MSG.RTN? we need to carry out some validations in the incoming message coming frm an ext system thru TCServer. if it fails, is it possible to reject and respond directly through the routine attached in IN.MSG.RTN?
Please Log in or Create an account to join the conversation.
- durai611
- Offline
- Elite Member
- Posts: 300
- Thank you received: 51
Please Log in or Create an account to join the conversation.
- gm.saran
- Topic Author
- Offline
- Elite Member
- Posts: 203
- Thank you received: 29
Please Log in or Create an account to join the conversation.
- praveenb.chennai
- Offline
- Senior Member
- Posts: 57
- Thank you received: 4
If you want to do validations like checking the format of ID or number of characters in the message, i think you can do it by adding a routine in IN.MSG.RTN but not sure how to display the results... may be you can write the output of the validations in a flat file of a directory.
Yes. The message has to hit T24 to get a response. You can also try adding the validations you want to do in the version routines.
Please Log in or Create an account to join the conversation.
- sourav1986
- Offline
- New Member
- Posts: 3
- Thank you received: 0
1) by modifying the in message
2) addition rtn in version level
but the point is what kind of transaction u gonna perform and what kind of updation u r expecting ?
Please Log in or Create an account to join the conversation.
- gm.saran
- Topic Author
- Offline
- Elite Member
- Posts: 203
- Thank you received: 29
incoming messages can be for ENQUIRY or for FT
Please Log in or Create an account to join the conversation.
- srajput
- Offline
- New Member
- Posts: 15
- Thank you received: 1
Is your problem solved or still looking for answer? Please do let me know which T24 release you are working on.
Everyone response above is right somehow but YES you can do it from IN.MSG.RTN but response will always go through OUT.MSG.RTN without hitting T24 as I just completed one interface in which I am checking message type and security to ensure that message is coming from trusted source (meaning only from external system for which I created interface) so if message type is wrong then I send Error message to external system as SECURITY VIOLATION ---- API ERROR this my generated error and my transaction do not hit T24. I generate this error in IN.MSG.RTN and send it through OUT.MSG.RTN.
Please Log in or Create an account to join the conversation.
- gm.saran
- Topic Author
- Offline
- Elite Member
- Posts: 203
- Thank you received: 29
Please Log in or Create an account to join the conversation.
- srajput
- Offline
- New Member
- Posts: 15
- Thank you received: 1
Is your issue solved?
What I was saying that;
1. Create i_common that will be use in IN and OUT routine of OFS
2. then do validation of the msg in IN routine and if there is an error then null your incoming msg variable and save error in common variable that you defined in your own created I_common file.
3. check and extract value or error from common variable in OUT routine and assign that value of variable to your incoming variable of OUT routine and also assign null to common variable.
I did this in one of the interface and it is perfectly running on production system of my client.
Please Log in or Create an account to join the conversation.
- gm.saran
- Topic Author
- Offline
- Elite Member
- Posts: 203
- Thank you received: 29
Please Log in or Create an account to join the conversation.
- shelistot@gmail.com
- Offline
- New Member
- Posts: 9
- Thank you received: 0
SUBROUTINE SN.FORCE.ZiG.CONVERSION.VER(OUT.MSG)
INSERT I_COMMON
INSERT I_EQUATE
IF DEBIT.CURRENCY = "ZiG" THEN
DEBIT.CURRENCY = 'ZWL'
RETURN
END
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus:G9-G13|TAFC:R05-R23|TAFJ:R19,R23,R24:test
- Posts: 1182
- Thank you received: 157
do I understand you correctly that you want the OFS message to be "canceled" if currency isn't "ZiG" ?
Cheers
VK
Please Log in or Create an account to join the conversation.
- shelistot@gmail.com
- Offline
- New Member
- Posts: 9
- Thank you received: 0
so ordinarily it should be ECHANGE(CURRENCY, "ZiG" , "ZWL")
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus:G9-G13|TAFC:R05-R23|TAFJ:R19,R23,R24:test
- Posts: 1182
- Thank you received: 157
see my reply in your other (same) request. Let's continue there.
Cheers
VK
Please Log in or Create an account to join the conversation.