Wednesday 27 February 2019

How to enable key flex field (GL Code Combination) in Oracle Custom Form level


Enable Key Flex Field (GL Code Combination) in Oracle Custom Form level

Requirement: Required to enable Accounting Key Flex Field in From Acct and To Acct fields in below custom form.
Custom Form:



Step 1: Find Accounting Key Flex Field Structure Number which you want to enable in custom form level
Accounting Flex Field Structure Code: MWANI_QATAR_COA

Find Flex Field Structure Number using below sql query

select ID_FLEX_NUM from FND_ID_FLEX_STRUCTURES where id_flex_code='GL#'
and Application_id=101
and ID_FLEX_STRUCTURE_CODE='MWANI_QATAR_COA'; -- for GL




Step 2: Add Following Code in WHEN-NEW-FORM-INSTANCE Form level trigger.
-----From Account-----

FND_KEY_FLEX.DEFINE(
block => 'BUDGET_HDR_BLOCK',
Field => 'FROM_ACCT',
Description =>  'FROM_ACCT_DESC',
ID => 'FROM_ACCT_ID',
Appl_short_name => 'SQLGL',
Code => 'GL#',
Num => '50428',
--VRULE => 'GL_GLOBAL\nDETAIL_POSTING_ALLOWED \nE\nAPPL=''SQLGL'';
VRULE=>'\\nSUMMARY_FLAG\\nI\\nAPPL=SQLGL;NAME=GL_NO_PARENT_SEGMENT_ALLOWED\\nN', where_clause => 'summary_flag != ''Y''', QUERY_SECURITY =>'Y'
);

-----To Account-------

FND_KEY_FLEX.DEFINE(
block => 'BUDGET_HDR_BLOCK',
Field => 'TO_ACCT',
Description =>  'TO_ACCT_DESC',
ID => 'TO_ACCT_ID',
Appl_short_name => 'SQLGL',
Code => 'GL#',
Num => '50428',
--VRULE => 'GL_GLOBAL\nDETAIL_POSTING_ALLOWED \nE\nAPPL=''SQLGL'';
VRULE=>'\\nSUMMARY_FLAG\\nI\\nAPPL=SQLGL;NAME=GL_NO_PARENT_SEGMENT_ALLOWED\\nN', where_clause => 'summary_flag != ''Y''', QUERY_SECURITY =>'Y'
);


Step 3: Add WHEN-NEW-ITEM-INSTANCE trigger at field level (field : FROM_ACCT & TO_ACCT)
FND_FLEX.EVENT('WHEN-NEW-ITEM-INSTANCE');

Step 4: Add KEY-EDIT trigger at field level (field : FROM_ACCT & TO_ACCT)
                                FND_FLEX.EVENT('KEY-EDIT');

Step 5: Add WHEN-VALIDATE-ITEM trigger at field level (field : FROM_ACCT & TO_ACCT)


FROM_ACCT Trigger:
FND_FLEX.EVENT('WHEN-VALIDATE-ITEM');

IF :BUDGET_HDR_BLOCK.FROM_ACCT_ID = -1 THEN
FND_MESSAGE.SET_STRING('You Have Selected An Undefined Code Combination !');
FND_MESSAGE.SHOW;
RAISE FORM_TRIGGER_FAILURE;
END IF;
TO_ACCT Trigger:
                FND_FLEX.EVENT('WHEN-VALIDATE-ITEM');

IF :BUDGET_HDR_BLOCK.TO_ACCT_ID = -1 THEN
FND_MESSAGE.SET_STRING('You Have Selected An Undefined Code Combination !');
FND_MESSAGE.SHOW;
RAISE FORM_TRIGGER_FAILURE;
END IF;




Step 6: Set Filed property palette (FROM_ACCT & TO_ACCT)
FROM_ACCT


TO_ACCT


Step 7: Compile the Form and upload it on server.

Step 8: Key Flex field enabled on both field.

FROM_ACCT

TO_ACCT




Tuesday 26 February 2019

Invalid Supplier Site - AP Invoice Creation Interface Error

At the time of AP invoice create using Interface following error we get in the interface log file.

Error: 
Invalid Supplier Site.





Issue Solution: 

> Check Payable Open Interface Screen, Remove the Supplier Name and Supplier Site Code from the interface screen and run the 'Payable open Interface Import' Program again, It will work now. 

> Interface level AP Invoice Creation process required Supplier ID, Supplier Number, Supplier Site ID only.

> Also Please check the supplier site Org_id & Header Operating Unit are the same or not. If not then we need to create a site for the respective operating unit.

(Note: This type of issue comes due to supplier Name or Supplier Site Code field having spacing Master data issue)






How to enable Web ADI Template required Excel and Internet Settings

Excel Settings
           
                                                                        Step1
Step2

Step3

Step4

Step5

Step6

Step7


Step8: If Web ADI Template Still not work Keep all option unchecked in Protected View window.

Step9

Step10



Internet Explorer settings
                                                           
                                                                             Step1

Step2

Step3

Step4

Step5

Step6


Monday 4 February 2019

Oracle Form Error - FRM-12108: Failed To Load Following Object

At time opening Oracle form getting a below error.

Error 1:


Error 2:



Due to this error System not allow compiling your form


Solution:
1)      You have to download all .pll file from your server following path: $AU_TOP/resource
2)      Put all file into your Development system following path: D:\DevSuiteHome_1\forms

After that, you open the form It will give the following Error prompt. But It will not restrict to compile the .fmb file




But It will not affect your development part. It will resolve the Issue. Now you can able to compile your custom form.