Thursday, February 13, 2014

OADialogPage message in controller extension in oaf

The below code perform based on some condition and invokes warning message and user click OK button to proceed further

   if (oapagecontext.getParameter("paApply")!=null)
   {
String msg = " ";
MessageToken tkns[] = null;
msg = oapagecontext.getMessage("XX","XX_ADJ_MSG",tkns);
OAException message = new OAException(msg);
OADialogPage dialogPage = new OADialogPage(OAException.WARNING, message, null, "",null);
dialogPage.setOkButtonItemName("SaveYesButton");
dialogPage.setOkButtonToPost(true);
dialogPage.setOkButtonLabel("Ok");
oapagecontext.writeDiagnostics(this,"setPostToCallingPage: ",6);
dialogPage.setPostToCallingPage(true);
       oapagecontext.redirectToDialogPage(dialogPage);
    }

---Always add the handle as separate if condition
if (oapagecontext.getParameter("SaveYesButton")!=null)
{
System.out.println("Continue");
oapagecontext.writeDiagnostics(this,"Continue: ",6);
oapagecontext.writeDiagnostics(this,"paApply: "+oapagecontext.getParameter("paApply"),6);
oapagecontext.putParameter("paApply", new String("paApply"));
oapagecontext.writeDiagnostics(this,"paApply1: "+oapagecontext.getParameter("paApply"),6);
super.processFormRequest(oapagecontext, oawebbean);
}

Tuesday, January 14, 2014

REP-0300: ORACLE error occurred in oracle reports

If the below error occurs

REP-0300: ORACLE error occurred.
REP-0069: Internal error
REP-57054: In-process job terminated:Terminated with error: 
REP-300: ORACLE error occurred.

Answer:Please check the report parameter data types.It should be correct to overcome the issue.

Saturday, January 4, 2014

CE_RECONCILED_TRANSACTIONS_V returns no rows in R12

MO_GLOBAL.Init('SQLAP');
MO_GLOBAL.Set_Policy_Context('S', &l_org_id);
FND_GLOBAL.Apps_INITIALIZE (l_user_id, l_resp_id, l_resp_appl_id);
cep_standard.init_security;

See also:

Friday, December 20, 2013

Friday, December 6, 2013

Metalink Notes for Send Remittance Advice

Separate Remittance Advice (SRA) Email Not Getting Sent (Doc ID 1518482.1)
Unable To Submit Concurrent Request 'Send Separate Remittance Advices' "Payment Instruction ID" has no LOV (Doc ID 1472071.1)
R12: How to Make "Send Separate Remittance Advices" Request Generate an Output (Doc ID 602772.1)
R12 Configure e-Mail Separate Remittance Advice (Doc ID 1528042.1)

Friday, November 8, 2013

Adding new fields in PO Output for Communication

It is not easy to customize PO_COMMUNICATION_PVT.POXMLGEN. If you customize it then you have to customize the workflow which references this procedure and also the Java concurrent program. So, try to avoid customization of PO Output for Communication program. 

To add new fields in PO Output for Communication Program, we have following options:

1. Look if the fields you are trying to add are already available in the XML data generated by the program.
2. If not all the fields are available, try to populate the missing fields in attribute columns so that you can reference those in your template.
3. This is not recommended, but you can try to modify the logic behind the views PO_HEADERS_XML, PO_LINES_XML, PO_DISTRIBUTIONS_XML which fetch the data for this program.

Also, for the ability to use RTF Template you can follow metalink note 378031.1 which gives you the details of a patch to be applied. You can also refer to the metalink note 387670.1 for more info.