Vous êtes sur la page 1sur 3

umair.

jamal replied the topic: How to display OVERRIDE message

The message is displayed in OVERRIDE field only but, i also want to prompt this message
on validation as well. My code is like as :

IF Y.TRANS.TYPE EQ 'PTI' THEN

TEXT = "CREDIT ID"


YCURR.NO = DCOUNT(R.NEW(MF.ORD.OVERRIDE),@VM)
IF YCURR.NO = 0 THEN YCURR.NO = ''
CALL STORE.OVERRIDE(YCURR.NO)

END

Display a message and store an override if a user forces it

Example of coding:

IF (SUM(R.NEW(SC.ESO.NOMINAL.RECD)) >
SUM(R.NEW(SC.ESO.NOMINAL.BALANCE))) THEN
OUT.TEXT = 'NOMINAL GREATER THAN THE ORDER'
TEXT = OUT.TEXT
CURR.NO = R.NEW(SC.ESO.CURR.NO)
CALL STORE.OVERRIDE(CURR.NO)
IF TEXT = 'NO' THEN
ETEXT = OUT.TEXT
CALL STORE.END.ERROR
END
END

Display a message and manage the user answer

Example of coding:

IF ID.COMPANY = 'US0010001' AND CREATE.DCD = 1 THEN

IN.TEXT := 'GENERATE A MIRRORED DEAL OPTION FOR SUBSIDIARY BANK


SIDE'
IN.TEXT := '<CR>'
IN.TEXT := 'ARE YOU SURE Y/N?'
IN.TEXT := '<CR>'
T.CONTROLWORD = ''
CALL TXTINP(IN.TEXT, 10, 22, 3.1, '':FM:'YES_NO')

IF COMI = 'YES' THEN


GOSUB PROCESS.MAPPING
GOSUB PROCESS.DX
END ELSE
TEXT = "NO MIRRORED DEAL OPTION GENERATED"
CALL REM
END

END

kripesh replied the topic: Re: Usage of STORE.OVERRIDE routine

* The below two lines of code are used to clear the override field with all previous override.
These 2 lines are very important when you call Overrides .

CURR.NO = 0
CALL STORE.OVERRIDE(CURR.NO)

* The below code is to set some condition for the OVerride to be raised. In my example i
have raised an override if the SECTOR field in CUSTOMER is not equal to 1001.

IF R.NEW(EB.CUS.SECTOR) NE '1001' THEN


AF = EB.CUS.SECTOR
TEXT = "Sector Invalid for this Customer"
CALL STORE.OVERRIDE(CURR.NO)
END

Hope this will help to raise an OVerride without any problem

rolandfeghaly replied the topic: Re: Usage of STORE.OVERRIDE routine

Guys , no need to count CURR.NO


just call store.override and this routine will count and add by itself
IF U WANT , I CAN PROVIDE U WITH THE STORE.OVERRIDE rtn
*******************************************************************

and to make a field input or no input u can use

IF COMI EQ LCCY THEN


T(TT.TE.AMOUNT.FCY.1)<3> = 'NOINPUT'
END ELSE
T(TT.TE.AMOUNT.FCY.1)<3> = ''
END

divesh replied the topic: Re: Usage of STORE.OVERRIDE routine


I did, T.LOCREF<49,1> = ''

it works fine for the first time in Browser.... then I dont know what happened it stopped
working, its working fine in classic.... any reason below is my code...

Thanks

$INSERT T24.BP I_COMMON


$INSERT T24.BP I_EQUATE
$INSERT T24.BP I_F.CUSTOMER
DEBUG
Y.CUS.MORT = COMI
Y.CUS.MORT = UPCASE(Y.CUS.MORT)
IF Y.CUS.MORT EQ "YES" THEN
T.LOCREF<49,7> = ''
*T.LOCREF<EB.CUS.LOCAL.REF,49> = ''
END

RETURN
END

Vous aimerez peut-être aussi