nnarmada
Member
Hello JDEList,
We've a requirement to let the user know that the order they just placed with prepayment has been put on CA hold, since the credit card given by the customer has failed to get authorized. Business function B0000952 which does the authorization is being called at the end of order entry and as the processing happens in asynchronous mode, by the time the authorization process completes, user will be shown the order entry form W4210G of P4210. I tried to display a warning message with the below code but in vain. I could see the control going into the line of code but the warning is not shown on the screen. Is it possible to display the errors in this screen after order is complete? I'm sure I'm missing something. Any help is highly appreciated.Below are the modifications I made in B4200310.
idReturnValue = jdeCallObject(_J("PrepaymentProcessing"), NULL,
lpBhvrCom, lpVoid, (LPVOID)&dsD0000952,
(CALLMAP *)NULL, (int)0, (JCHAR *)NULL,
(JCHAR *)NULL, (int)0);
*lpcPutOrderOnHold = dsD0000952.cPutOrderOnHold; /* SAR 3055461 - ADD */
/* Displaying a warning on the screen saying
* the order has been put on CA Hold. */
if (dsD0000952.cPutOrderOnHold == _J('1'))
{
jdeSetGBRError(lpBhvrCom, lpVoid,(ID)0, _J("ICOM001"));
}
Narmada
JDE E1 9.1, TR 9.1.3.1
We've a requirement to let the user know that the order they just placed with prepayment has been put on CA hold, since the credit card given by the customer has failed to get authorized. Business function B0000952 which does the authorization is being called at the end of order entry and as the processing happens in asynchronous mode, by the time the authorization process completes, user will be shown the order entry form W4210G of P4210. I tried to display a warning message with the below code but in vain. I could see the control going into the line of code but the warning is not shown on the screen. Is it possible to display the errors in this screen after order is complete? I'm sure I'm missing something. Any help is highly appreciated.Below are the modifications I made in B4200310.
idReturnValue = jdeCallObject(_J("PrepaymentProcessing"), NULL,
lpBhvrCom, lpVoid, (LPVOID)&dsD0000952,
(CALLMAP *)NULL, (int)0, (JCHAR *)NULL,
(JCHAR *)NULL, (int)0);
*lpcPutOrderOnHold = dsD0000952.cPutOrderOnHold; /* SAR 3055461 - ADD */
/* Displaying a warning on the screen saying
* the order has been put on CA Hold. */
if (dsD0000952.cPutOrderOnHold == _J('1'))
{
jdeSetGBRError(lpBhvrCom, lpVoid,(ID)0, _J("ICOM001"));
}
Narmada
JDE E1 9.1, TR 9.1.3.1