- Forum
- T24 Technical Discussions
- T24 Development & Customization
- How to suppress certain SWIFT in certain Version
×
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...
How to suppress certain SWIFT in certain Version
- chloe_chou
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 82
- Thank you received: 0
6 years 3 months ago - 6 years 3 months ago #22087
by chloe_chou
How to suppress certain SWIFT in certain Version was created by chloe_chou
Hi, I have a LC version which would generate 707 and 1707 and I need to create a new version which basically the same as the original one but only generate 1707 (without 707). The new version is for OFS transaction purpose.
I tried passing "MESSAGE.TYPE:1:=707,MSG.CLASS.NO:1:1= OPERATIONS,SEND.MESSAGE:1:1=N,MESSAGE.TYPE:2:1=1707,MSG.CLASS.NO:2:=NOTIFICATION,SEND.MESSAGE:2:1=Y" to T24 but not working, 707 is still generated.
It seems that DE.DISP.CONTROL can achieve something like this, but I'm not sure how to make it by VERSION.
I tried below but 707 is still generated.
Can anyone help? Thank you.
I tried passing "MESSAGE.TYPE:1:=707,MSG.CLASS.NO:1:1= OPERATIONS,SEND.MESSAGE:1:1=N,MESSAGE.TYPE:2:1=1707,MSG.CLASS.NO:2:=NOTIFICATION,SEND.MESSAGE:2:1=Y" to T24 but not working, 707 is still generated.
It seems that DE.DISP.CONTROL can achieve something like this, but I'm not sure how to make it by VERSION.
I tried below but 707 is still generated.
STATUS.KEY........ 7
------------------------------------------------------------------------------
1. 1 FIELD.NAME..... MESSAGE.TYPE
2. 1 OPERAND........ EQUAL
3. 1 CONDITION...... 707
1. 2 FIELD.NAME..... @SUP.SWIFT
2. 2 OPERAND........ EQUAL
4. 1 FIELD.POS...... 1
4. 2 FIELD.POS...... X
5 STATUS............ DELETE
SUBROUTINE SUP.SWIFT(R.HEAD.REC,OPERAND.ARG,COND.ARG,RET.FLAG)
$INSERT T24.BP I_COMMON
$INSERT T24.BP I_EQUATE
Y.VER = PGM.VERSION
RET.FLAG = ''
IF Y.VER EQ ',IMAMDEXT' THEN
RET.FLAG = 1
END
RETURN
END
Can anyone help? Thank you.
Last edit: 6 years 3 months ago by chloe_chou.
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
Less
More
- Posts: 1209
- Thank you received: 158
6 years 3 months ago #22095
by VK
Cheers
VK
Replied by VK on topic How to suppress certain SWIFT in certain Version
Hi
Would it also be generated if you input a deal via "OFS" version manually?
Are you sure in "N" for "SEND.MESSAGE"? Not "NO"?
Also, for DE.DISP.CONTROL you have a key "7". Maybe your message fits other record with higher priority? I mean 1 ... 6 - if they exist?
Would it also be generated if you input a deal via "OFS" version manually?
Are you sure in "N" for "SEND.MESSAGE"? Not "NO"?
Also, for DE.DISP.CONTROL you have a key "7". Maybe your message fits other record with higher priority? I mean 1 ... 6 - if they exist?
Cheers
VK
Please Log in or Create an account to join the conversation.
- chloe_chou
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 82
- Thank you received: 0
6 years 3 months ago - 6 years 3 months ago #22098
by chloe_chou
Replied by chloe_chou on topic How to suppress certain SWIFT in certain Version
Hi VK, thank you for reply!
When I input the data manually via OFS version on T24 browser, 707 is generated as well.
The thing is, if I manually choose "SEND MESSAGE" to "NO" on Browser, 707 will not be generated, however if I do it by OFS, it seems that OFS cannot affect MESSAGE GROUP columns (MESSAGE.TYPE, MSG.CLASS.NO, SEND.MESSAGE, etc) because I deliberately send something wrong in MESSAGE columns (ex. MSG.CLASS.NO:2:1=NOTIFICATION2222) but the result is still correct (MSG.CLASS.NO:2:1=NOTIFICATION).
And you are right, "SEND MESSAGE" should be "NO", not "N". I tried "NO" but still seems has no effect at all. "SEND MESSAGE" has no value.
I also checked DE.DISP.CONTROL, there is only one record regarding 707 which is mine.
Is there any other place I can check? I'm wondering if I should set up the SUBROUTINE somewhere first?
Thank you very much.
When I input the data manually via OFS version on T24 browser, 707 is generated as well.
The thing is, if I manually choose "SEND MESSAGE" to "NO" on Browser, 707 will not be generated, however if I do it by OFS, it seems that OFS cannot affect MESSAGE GROUP columns (MESSAGE.TYPE, MSG.CLASS.NO, SEND.MESSAGE, etc) because I deliberately send something wrong in MESSAGE columns (ex. MSG.CLASS.NO:2:1=NOTIFICATION2222) but the result is still correct (MSG.CLASS.NO:2:1=NOTIFICATION).
And you are right, "SEND MESSAGE" should be "NO", not "N". I tried "NO" but still seems has no effect at all. "SEND MESSAGE" has no value.
I also checked DE.DISP.CONTROL, there is only one record regarding 707 which is mine.
Is there any other place I can check? I'm wondering if I should set up the SUBROUTINE somewhere first?
Thank you very much.
Last edit: 6 years 3 months ago by chloe_chou.
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
Less
More
- Posts: 1209
- Thank you received: 158
6 years 3 months ago - 6 years 3 months ago #22099
by VK
Cheers
VK
Replied by VK on topic How to suppress certain SWIFT in certain Version
HI
the only thing that comes to my mind is possible difference in OFS.SOURCE records used for Browser and for posting an OFS message... Check these records, especially FIELD.VAL field. When it's not set to "YES" field-level validations won't take place and that's probably the reason for your fake data not giving an error...
the only thing that comes to my mind is possible difference in OFS.SOURCE records used for Browser and for posting an OFS message... Check these records, especially FIELD.VAL field. When it's not set to "YES" field-level validations won't take place and that's probably the reason for your fake data not giving an error...
Cheers
VK
Last edit: 6 years 3 months ago by VK.
Please Log in or Create an account to join the conversation.
- chloe_chou
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 82
- Thank you received: 0
6 years 3 months ago #22103
by chloe_chou
Replied by chloe_chou on topic How to suppress certain SWIFT in certain Version
I checked the OFS.SOURCE, FIELD.VAL is YES and other filed's validation works except the MESSAGE GROUP ones. I'm guessing, maybe it's because the MESSAGE GROUP fields are probably inputted by system after the transaction is done (after the swifts are generated), so OFS has no effect on these fields.......Just a guess.
Thank you very much for your help, VK! I'll keep looking if there is any way to achieve it.
Thank you very much for your help, VK! I'll keep looking if there is any way to achieve it.
Please Log in or Create an account to join the conversation.
- Forum
- T24 Technical Discussions
- T24 Development & Customization
- How to suppress certain SWIFT in certain Version
Time to create page: 0.035 seconds