Quantcast
Channel: pacesettergraam
Viewing all 313 articles
Browse latest View live

Running a Concurrent from PLSQL in oracle apps

$
0
0

DECLARE
v_request_id NUMBER;
ln_temp number;
BEGIN

apps.fnd_global.apps_initialize ( user_id => 0, resp_id => 50007, resp_appl_id => 201 );
——–CALLING STANDARD RECEIVING TRANSACTION PROCESSOR ———————————
select apps.rcv_interface_groups_s.nextval into ln_temp from dual;

v_request_id := apps.fnd_request.submit_request ( application => ‘PO’,
PROGRAM => ‘RVCTP’,
argument1 => ‘BATCH’,
argument2 => ln_temp
— argument3 => 204
);
commit;
dbms_output.put_line(‘Request Id’||v_request_id);
END;



Getting Value from KFF in OAF

$
0
0

The below code is used to get the KFF values in runtime(When a user gives input).

OAKeyFlexBean kffbean= (OAKeyFlexBean)webBean.findIndexedChildRecursive(“HrSitKeyFlex”);     //Get the KFF bean

KeyFlexfield kff=(KeyFlexfield)kffbean.getAttributeValue(OAWebBeanConstants.FLEXFIELD_REFERENCE);       //Getting the Reference Value
if(kff!=null){
if(kff.getSegment(1).getValue()!=null){
Segment1 = kff.getSegment(1).getValue().toString();    //This returns Value object so we can just see a object
Segment5 = kff.getSegment(1).getName();                 // This returns the Segment name attached

Segment4 = kff.getSegment(1).getInputValue();       // This returns the Segment value when user gives as input
pageContext.writeDiagnostics(this,”On Getting Value the Entered Value “+Segment4,1);
pageContext.writeDiagnostics(this,”On Getting Value the Computed  Value “+outParamValue,1);

int enter_val = Integer.parseInt(Segment4);
pageContext.writeDiagnostics(this,”On Getting Value the Entered Value “+enter_val,1);
if(outParamValue < enter_val)
{
throw new OAException(“Please Enter a lower value than your Credit Limit”+outParamValue, OAException.ERROR);
}
}
}

Source : The above code was obtained by my collague Vignesh.


Opening eclipse with different JVM version

$
0
0

Sometimes we have a requirement that the eclipse has to be started by a different java version. So in order to do that we have to do that we have to edit the configuration file in eclipse.

Step 1 :

Open eclipse config file eclipse.ini in your Eclipse folder.

 

  • Add -vm yourPath\Java\jre6\bin\javaw.exe like in the screenshot below
  • Eclipse-ini-file-edit

Thank You

 

 


ILLUSIONS OF FREEDOM

$
0
0

Originally posted on BITTER REALITIES:

By: Jim Kirwan

Falsehood is taught in schools

The Matrix is one of the greatest metaphors ever. ‘Machines invented to make life easier end up enslaving humanity‘. This is the most dystopian theory in science-fiction. Why is this fear so universal, so compelling? Is it because we really believe our toaster and our notebook will end up as our mechanical overlords? Of course not. This is not a future that we fear but a past that we are already living.

Supposedly governments were meant to make human life easier and safer. But governments always end up enslaving humanity. That which we create to “serve us” ends up “ruling us.” The US government by and for the people now imprisons millions. It takes half the income by force, over-regulates, punishes, tortures, slaughters foreigners, invades countries; overthrows governments, imposes seven hundred imperialistic bases overseas and crushes future generations with massive debts. That which we create to…

View original 1,276 more words


POVERTY IS NOT AN ACCIDENT

$
0
0

Originally posted on BITTER REALITIES:

By: J.M.

Poverty means a state of constant stress, a feeling of being powerless, helpless, a kind of hopelessness causing life expectancy to drop for many who struggle throughout their lives, to access basic needs which although were provided free by nature, were made inaccessible by those who defined and enforced the way the world works, while this way has been accepted and passed on through generations, by parents to children.

A holocaust that happens every year, not by the hands of a dictator, rather by the hands of starvation that kills more than 6 million children every year. Six million children die each year yet no one even notices? Is that apathy or is it desensitization? 

We have collectively agreed upon and accepted an economic paradigm, constructed upon predatory values,  having a clear basic flaw which restricts the system to support only a small sector of the world’s population, keeping the majority deprived and…

View original 1,874 more words


API for Value Set in Oracle apps(Independent and Dependent)

$
0
0

API for Value Set in Oracle apps

 

Below is the API to upload the values in the value set as shown in below screenshot

Prerequiste

A Value set must be already exist in the system as commented in API. The Below is Independent

 Independent Values

declare
l_enabled_flag varchar2 (2);
l_summary_flag varchar2 (2);
l_who_type fnd_flex_loader_apis.who_type;
l_user_id number := fnd_global.user_id;
l_login_id number := fnd_global.login_id;
l_value_set_name fnd_flex_value_sets.flex_value_set_name%type;
l_value_set_value fnd_flex_values.flex_value%type;
l_value_set_desc varchar2 (500);
begin
l_value_set_name := ‘XX_ITEM_CATEGORY_VALUE_T’; –This Value set should already exist in the system as Independent
l_enabled_flag := ‘Y’;
l_summary_flag := ‘N’;
l_who_type.created_by := 6532;
l_who_type.creation_date := sysdate;
l_who_type.last_updated_by := 6532;
l_who_type.last_update_date := sysdate;
l_who_type.last_update_login := 6532; –l_value_set_name
l_value_set_value :=60123; –l_value_set_value
l_value_set_desc := ‘Under Testing check’;
fnd_flex_loader_apis. –API to upload the value set
up_value_set_value (
p_upload_phase => ‘BEGIN’,
p_upload_mode => null,
p_custom_mode => ‘FORCE’,
p_flex_value_set_name => l_value_set_name,
p_parent_flex_value_low => null,
p_flex_value => l_value_set_value,
p_owner => null,
p_last_update_date => to_char (sysdate, ‘YYYY/MM/DD HH24:MI:SS’),
p_enabled_flag => l_enabled_flag,
p_summary_flag => l_summary_flag,
p_start_date_active => to_char (sysdate, ‘YYYY/MM/DD HH24:MI:SS’),
p_end_date_active => null,
p_parent_flex_value_high => null,
p_rollup_flex_value_set_name => null,
p_rollup_hierarchy_code => null,
p_hierarchy_level => null,
p_compiled_value_attributes => null,
p_value_category => ‘VALUE_SET_NAME’,
p_attribute1 => null,
p_attribute2 => null,
p_attribute3 => null,
p_attribute4 => null,
p_attribute5 => null,
p_attribute6 => null,
p_attribute7 => null,
p_attribute8 => null,
p_attribute9 => null,
p_attribute10 => null,
p_attribute11 => null,
p_attribute12 => null,
p_attribute13 => null,
p_attribute14 => null,
p_attribute15 => null,
p_attribute16 => null,
p_attribute17 => null,
p_attribute18 => null,
p_attribute19 => null,
p_attribute20 => null,
p_attribute21 => null,
p_attribute22 => null,
p_attribute23 => null,
p_attribute24 => null,
p_attribute25 => null,
p_attribute26 => null,
p_attribute27 => null,
p_attribute28 => null,
p_attribute29 => null,
p_attribute30 => null,
p_attribute31 => null,
p_attribute32 => null,
p_attribute33 => null,
p_attribute34 => null,
p_attribute35 => null,
p_attribute36 => null,
p_attribute37 => null,
p_attribute38 => null,
p_attribute39 => null,
p_attribute40 => null,
p_attribute41 => null,
p_attribute42 => null,
p_attribute43 => null,
p_attribute44 => null,
p_attribute45 => null,
p_attribute46 => null,
p_attribute47 => null,
p_attribute48 => null,
p_attribute49 => null,
p_attribute50 => null,
p_flex_value_meaning => l_value_set_value,
p_description => l_value_set_desc);
commit;
exception
when others
then
dbms_output.put_line (‘Error is ‘ || substr (sqlerrm, 1, 1000));
end;

 

The below screenshot once the API is Executed.

API - After Exe Independent

 

For Dependent values

 

 

 

declare

l_enabled_flag     varchar2 (2);

l_summary_flag     varchar2 (2);

l_who_type         fnd_flex_loader_apis.who_type;

l_user_id           number := fnd_global.user_id;

l_login_id         number := fnd_global.login_id;

l_value_set_name   fnd_flex_value_sets.flex_value_set_name%type;

l_value_set_value   fnd_flex_values.flex_value%type;

l_value_set_desc   varchar2 (500);

begin

l_value_set_name := ‘XXDPC_ITEM_CATEGORY_VALUE_T1’;

l_enabled_flag := ‘Y’;

l_summary_flag := ‘N’;

l_who_type.created_by := 6532;

l_who_type.creation_date := sysdate;

l_who_type.last_updated_by := 6532;

l_who_type.last_update_date := sysdate;

l_who_type.last_update_login := 6532;       –l_value_set_name

l_value_set_value :=1263;                       –l_value_set_value

l_value_set_desc := ‘Under Testing check’;

fnd_flex_loader_apis.                   –API to upload the value set

up_value_set_value (

p_upload_phase                 => ‘BEGIN’,

p_upload_mode                 => null,

p_custom_mode                 => ‘FORCE’,

p_flex_value_set_name         => l_value_set_name,

p_parent_flex_value_low       => 60255,                                                             –Independent Value

p_flex_value                   => l_value_set_value,

p_owner                       => null,

p_last_update_date             => to_char (sysdate, ‘YYYY/MM/DD HH24:MI:SS’),

p_enabled_flag                 => l_enabled_flag,

p_summary_flag                 => l_summary_flag,

p_start_date_active           => to_char (sysdate, ‘YYYY/MM/DD HH24:MI:SS’),

p_end_date_active             => null,

p_parent_flex_value_high       => null,

p_rollup_flex_value_set_name   => ‘XXDPC_ITEM_CATEGORY_VALUE_T’,                 –Independent Value set

p_rollup_hierarchy_code       => null,

p_hierarchy_level             => null,

p_compiled_value_attributes   => null,

p_value_category               => null,

p_attribute1                   => null,

p_attribute2                   => null,

p_attribute3                   => null,

p_attribute4                   => null,

p_attribute5                   => null,

p_attribute6                   => null,

p_attribute7                   => null,

p_attribute8                   => null,

p_attribute9                   => null,

p_attribute10                 => null,

p_attribute11                 => null,

p_attribute12                 => null,

p_attribute13                  => null,

p_attribute14                 => null,

p_attribute15                 => null,

p_attribute16                 => null,

p_attribute17                 => null,

p_attribute18                 => null,

p_attribute19                 => null,

p_attribute20                 => null,

p_attribute21                 => null,

p_attribute22                 => null,

p_attribute23                 => null,

p_attribute24                  => null,

p_attribute25                 => null,

p_attribute26                 => null,

p_attribute27                 => null,

p_attribute28                 => null,

p_attribute29                 => null,

p_attribute30                 => null,

p_attribute31                 => null,

p_attribute32                 => null,

p_attribute33                 => null,

p_attribute34                 => null,

p_attribute35                  => null,

p_attribute36                 => null,

p_attribute37                 => null,

p_attribute38                 => null,

p_attribute39                 => null,

p_attribute40                 => null,

p_attribute41                 => null,

p_attribute42                 => null,

p_attribute43                 => null,

p_attribute44                 => null,

p_attribute45                 => null,

p_attribute46                  => null,

p_attribute47                 => null,

p_attribute48                 => null,

p_attribute49                 => null,

p_attribute50                 => null,

p_flex_value_meaning           => l_value_set_value,

p_description                 => l_value_set_desc);

commit;

exception

when others

then

dbms_output.put_line (‘Error is ‘ || substr (sqlerrm, 1, 1000));

end;

API - After Exe Dependent

 


AME with 2 conditions with amount

$
0
0

In this case we will just have 2 conditions and approvers groups with a condition of Amount.

If Amount >= 1 million then send to SH(Share holder approver) approver group

If Amount < 1 million then send notification 3 level approver group.

Creating Attribute

So for this we define a attribute and then we get the amount from our Query

select price_in_usd from xxdpc_penality_details_v where item_key = :transactionId

1

In the below picture the price_in_usd is the determining amount for our condition.

Creating Conditions

2

On condition creation we have to select the Attribute amount and then we will have the condition whether it is equal or less or greater and then we can have our amount.

Take the Approval type with the below option

approval-group chain of authority Chain of authority includes an approval group

Approver Groups

Define 2 seperate approver group and I have defined here a dynamic approver group

3

We can have a stacked users in one query in the below Query

select ‘person_id:’||agent_id from xxdpc_penality_pro where item_key = :transactionId

union

select ‘person_id:’||(agent_id+1) from xxdpc_penality_pro where item_key = :transactionId

union

select ‘person_id:’||(agent_id+2) from xxdpc_penality_pro where item_key = :transactionId

Rules

Define 2 rules for amount less than and amount greater than equal to

So in one rule

4

So we have attached Action type which consists of 3 level approver group and condition which is linked with attribute.

5

Create a another rule with the amount greater condition.

So to Test this we have to Test Workbench → Run real transaction test

6

So we have linked the transaction Id and from that we have taken the data from the table so I give a test data.

Now we will go with running test case so select Run Test Case

7

So we will now be able to see the approvers.


Script for AME parallelization configuration error

$
0
0

 

Script to resolve the below error in AME

ORA-20001: Oracle Approvals Management has found parallelization configuration details. The context in which ame_api has been invoked does not support parallelization.

update AME_CONFIG_VARS
set variable_value = ‘no’
where variable_name in (‘allowAllApproverTypes’,’allowAllItemClassRules’,’allowFyiNotifications’)
and sysdate < nvl(end_date,sysdate + 1)
and nvl(application_id,0) = 0;



3 ways to get .wft file from server

$
0
0

To get the definition you have 3 options:

1. Connect to the instance via The Oracle Workflowbuilder Client
From the menu bar, choose File/Open
Downloading from the database:
· Click on Database
· Enter the following:
User GWYUID, eg apps
Password FNDNAM, eg.apps
Connect ORACLE_SID or TWO_TASK
Effective You can leave this null.

Then save the file on your desktop via File/Save As and upload it via Metalink

2. Log on to the system Administrator responsibility
Navigate to Concurrent Requests and submit the Workflow Definitions Loader with the following parameters:
Mode: Download
File: <directory path on the server><filename.wft>
e.g. /user/tmp/fa_accounts.wft
Item Type: FA Account Generator

ftp the wft file to your desktop

3. On the server in Unix go to $FND_TOP/bin, ie cd $FND_TOP/BIN
The download command to enter then at the OS prompt is as follows:

WFLOAD apps/<apps pwd> 0 Y DOWNLOAD <filename>.wft ITEMTYPE
e.g.:
WFLOAD -u apps/apps 0 Y DOWNLOAD /usr/tmp/fa_accounts.wft FAFLEXWF

Move the wft file to you desktop

 

Source :


Changing the Prefix key of Tmux(Terminal Multiplexer)

$
0
0

Edit the file tmux.conf If it is a new Installation you will not have this file so create a new file in home directory by firing the below command

vi ~/.tmux.conf

Now enter the three lines for changing the default Ctrl-b to ` symbol as prefix key

unbind C-b

set-option -g prefix ‘`’

bind-key ‘`’ send-prefix

For this change to happen for all users write the config file to /etc folder so resulting your tmux file will be in /etc/tmux.conf

 


Responding a response from backend

$
0
0

To programatically respond to a Notification use the below script replacing with the appropriate notification Id and status

begin

wf_notification.setattrtext ( nid => i.notification_id
, aname => ‘RESULT’
, avalue => ‘RETRY’ );
wf_notification.respond( nid => i.notification_id
, respond_comment =>’Approved from our end’
, responder =>fnd_profile.value (‘USERNAME’));

end


Creating attribute at runtime

$
0
0

Below is script to Create attribute at run time in Oracle apps Workflow.

if ( funmode = ‘RESPOND’ OR funmode = ‘TIMEOUT’) then
create_item_attrib_if_notexist(itemtype=>p_item_type,
itemkey=>p_item_key,
aname=>’HR_CONTEXT_NID_ATTR’,
text_value=>null,
number_value=>wf_engine.context_nid,
date_value=>null);
end if;


Creating Role and attaching role in Oracle Workflow

$
0
0

If there is requirement that you have to send a notification to some users in a group you can use this AdHocRole concept so you can stitch a group of users and attach to one role.

In the below code wf_directory.CreateAdHocRole creates a new role and we loop the users and send it to wf_directory.AddUsersToAdHocRole so that users will b attached to the particular role

lc_adhoc_role3 := ‘DPC_MAITENANCE_SUPERVISOR’||itemkey;
wf_directory.CreateAdHocRole(       role_name                 => lc_adhoc_role3,
role_display_name         => lc_adhoc_role3);

for i in c1(‘DPC Maintenance Engineer’) loop
wf_directory.AddUsersToAdHocRole(   role_name                 => lc_adhoc_role3,
role_users                => i.USER_NAME
);
end loop;
wf_engine.setitemattrtext (itemtype   => itemtype,itemkey    => itemkey,aname      => ‘DPC_MAITENANCE_SUPERVISOR’,avalue     => lc_adhoc_role3);

Make sure the attribute type is ROLE instead of text and call the above line to assign the role programmatically


Installing fedora tool groups in fedora 23

$
0
0

In fedora they have grouped packages according the needs like for an example if a person is interested in he has to download a distribution or he has to get a fedora lab of his choice for example Audio Editing or he can go for some other distro which has Audio Editing  tools and now he is also interested in security tools so he has to search all the tools and then he will install with audio editing tools. So to simplify this fedora provides group. So there are many groups users can get specialized tools in the groups.

Now type the below command to search the list of groups in fedora

$ dnf groups list

Now Install the needed group to your system by firing the below command

# dnf groups install “Security Lab”

Note: this command will not support the versions below fedora 21

Enjoy..

 


Oracle apps PG or region XML file path

$
0
0

Usually we will find the java files in $JAVA_TOP but the xml files will not be in the $JAVA_TOP. The xml files will be in respective application top, for example im woking in SubLedger Accounting Application and the shortname is XLA and top is XLA_TOP so go to the top by

cd $XLA_TOP/mds/linesinquiry/webui/JeLinesInquiriesPG.xml



Comparison in Excel using vlookup function

$
0
0

We can compare the values in Excel sheet using vlookup function

By the Below Formula

=VLOOKUP(E1,E1:F1,1,FALSE)

Here we the first parameter is the value to b compared

Second is the Range from which cell to which cell

Third parameter is that the column index number

Fourth when false(Searches for the exact match) when true just tries to find the range near

 

 

 


Turning off column autosuggestion in TOAD

$
0
0

Some people feel that when writing a query in TOAD, it tries to give autosuggestion but it takes a long time so it will be helpful sometimes to get the suggestion off.

To turn off go to View –> Toad Options –> Code Assist and then disable the checkbox in the particular link as shown.

Toad Disable column suggestion


TOAD shortcut or Auto complete for select * from

$
0
0

Most of the people find it useful to have shortcuts or auto complete  so it makes coding faster, particularly for typing select * from _(table_name)_. So to make your own autocomplete navigate in TOAD to

GOto View–> TOAD Options –> Behaviour –> AutoReplace Button

Now in the opened window add s and give select * from

Also you can view some of template by the below navigation

GOto View–> TOAD Options –> Behaviour –> Code Templates Button

 

TOAD Autocomplete


Adding links of HTML pages in Oracle Apps login page

$
0
0

I got a requirement to edit or create the privacy link, FAQ and other links in the Oracle Applications Login page

Below is the Procedure to do it.

Once you have the content change or convert the Documents from any Format(document) to HTML format
Now move the html file to server in the below path
cd $OA_HTML
Now test the file whether it is opening or not by the below url

http://xxabcde.fghij.com:8010/OA_HTML/Login_Page_Links/About%20us.html

Here in the below link the
xxabcde.fghij.com      => Refers to host name
8010                               => Refers to Port of the Server
OA_HTML                     => Path where the HTML file picks up(cd $OA_HTML)
Login_Page_Links/About%20us.html => folder and file path inside server

Now once the page is opening go to Functional Administrator Responsibility  and then give the below pathscreenshot
/oracle/apps/fnd/framework/webui/OAFooter

Now Edit the privacy link footer and Include the above link and click apply.
Now the link would be changed.


Key Flexfields and related tables in Oracle EBS

$
0
0

Here are the different key flexfields in Oracle EBS and related tables information to store KFF Data Information,

Accounting Flexfield                                                                    GL_CODE_COMBINATIONS
Asset Category Flexfield                                                             FA_CATEGORIES_B
Asset Key Flexfield                                                                        FA_ASSET_KEYWORDS
Location Flexfield                                                                          FA_LOCATIONS
Oracle Inventory Item Flexfield                                             MTL_SYSTEM_ITEMS_B
Territory Flexfield                                                                        RA_TERRITORIES
Sales Tax Location Flexfield                                                     AR_LOCATION_COMBINATIONS
Item Categories                                                                               MTL_CATEGORIES_B
Account Aliases                                                                              MTL_GENERIC_DISPOSITIONS
Item Catalogs                                                                                   MTL_ITEM_CATALOG_GROUPS
Sales Orders                                                                                      MTL_SALES_ORDERS
Stock Locators                                                                                MTL_ITEM_LOCATIONS
Grade Flexfield                                                                               PER_GRADE_DEFINITIONS
Job Flexfield                                                                                    PER_JOB_DEFINITIONS
Personal Analysis Flexfield                                                       PER_ANALYSIS_CRITERIA
Position Flexfield                                                                           PER_POSITION_DEFINITIONS
Soft Coded Key Flexfield                                                            HR_SOFT_CODING_KEYFLEX
Bank Details Key FlexField                                                        PAY_EXTERNAL_ACCOUNTS
Cost Allocation Flexfield                                                             PAY_COST_ALLOCATION_KEYFLEX
People Group Flexfield                                                                PAY_PEOPLE_GROUPS

Here are few important frequently asked questions on KFFs and DFFs useful for Oracle EBS Beginners and Developers,

Does Every Key Flexfield Always Have a Dedicated Table?

Yes. Every key flexfield has a table dedicated to store the unique combination for a group of fields. For the GL accounting key flexfield, there is a table named GL_CODE_COMBINATIONS. Another example is grades in Oracle Human Resources. An HR grade can be defined as a combination of, say, Clerk + Senior or Clerk + Junior. These combinations will be stored in the PER_GRADES table.

Do All the Tables That Are Used for Storing Key Flexfields have Columns Named SEGMENT1, SEGMENT2…SEGMENTX?

Yes. It is a standard practice used by Oracle to give generic names like SEGMENT1, SEGMENT2…SEGMENTX to these columns. These segment columns are generic columns so that each E-Business Suite customer can reference them by whatever name he or she likes and by giving the desired prompt name to the key flexfield segment.

Does Oracle Deliver Key Flexfields out of the Box?

Oracle delivers many KFFs out of the box, but you will have to configure their segments as per business needs. You can also create new KFFs in Oracle EBS.

What Are the Steps for Configuring a Key Flexfield?

Navigate to the Application Developer responsibility:

Flexfield >> Key >> Register

In this screen, you can get the title of the flexfield against a table name. Next, navigate to the KeyFlexfield segments screen (Flexfield | Key |Segments) and query using the flexfield title. In the KFF Segments screen, the desired segments can be configured in a manner similar to that for descriptive flexfields.

What Are Cross Validation Rules (CVRs)?

Cross validation rules (CVRs) are used to prevent the creation of invalid segment combinations. For example, a Location key flexfield can have two structures, say one for each country, the U.K. and the U.S. For the U.S. flexfield structure, you can define a cross validation rule that excludes COUNTY=NY and CITY=ABERDEEN. At the time of defining cross validation rules, you also specify the accompanying error message that the end user will receive if he or she uses the wrong combination of values in segments. Whenever any component of the Oracle EBS attempts to create a new segment combination, the flexfield engine checks all the cross validation rules against that KFF structure to ensure that the combination is valid. If the combination fails to pass a rule, the error message associated with that rule is displayed to the end user. CVRs are applied to all users in Oracle EBS, but they are not applied to existing combinations.

Source


Viewing all 313 articles
Browse latest View live