How to enable Operating Unit in concurrent program report request
I am using R12 and need to make user enable to choose an operating unit while submitting a concurrent program report request.
Example: Receipt Accural - Period End report is allowing to choose operating unit but other report are not.
My question is:
1) How to enable operating unit in concurrent program request?
2) How to replace CLIENT_INFO statement in reports query? How 'selected operating unit' info will be passed to report?
Thanks and regards,
Hi,
I guess it will passed same way as other parameters in any concurrent program. The user will provide a value in the organization parameter, and the definition of the report will have a query similar to this:
SELECT *******
FROM *******
WHERE ******
AND org_id = &p_org_id
WHERE p_org_id would be the operating unit id provided by the user.
Hope it helps.
Similar Messages
-
How to show calender in a concurrent program report parameter form?
I have a report that passess 2 parameters
1)From Date
2)To Date
I registered the report as a concurrent program in Oracle EBS.
Now everythig works fine and report is showing
But i want in place of from date and to date, a calender.How can it be possible in Apps
Please give me information as quickly as possible
Thanks in advance
Manoj-MHi,
Not possible that I'm aware of.
Regards,
Gareth
Blog: http://garethroberts.blogspot.com/ -
How to Trace oracle Host Type concurrent program
How to Trace oracle Host Type concurrent program
I have enabled trace in concurrent definition screen but couldnt get the trace file
the Host script executes multiple plsql packages for interfaces and sent emailsHi,
How to Trace oracle Host Type concurrent programSee (FAQ: Common Tracing Techniques within the Oracle Applications 11i/R12 [ID 296559.1]) -- 4. How does one enable trace for a concurrent program?
I have enabled trace in concurrent definition screen but couldnt get the trace fileDo you mean the trace file is not generated?
the Host script executes multiple plsql packages for interfaces and sent emailsIs this a seeded or custom concurrent program?
Thanks,
Hussein -
How to Compile & Deploy the Java Concurrent Program File
Hi,
There is a requirement to create the Java Concurrent Program in Oracle eBusiness. I am able to create the Java Concurrent Program file. But unable to do the following things:
1.Since it is custom file, which location I will deploy the file?
2. How to compile the file?
3. In the execution file path and executable file name what should I specify for JCP?
Please guide me.
ThanksPlease see (How to register and execute Java Concurrent Program ?in Oracle Applications R11i ? [ID 186301.1]) for the complete steps (i.e. define concurrent program and add it to the request group, .etc.) -- This is also applicable to R12.
You may also see:
Classpath Setting of Third Party Jar Files in R12 Java Concurrent Program (JCP) [ID 1292694.1]
Integrating Custom Applications with Oracle Applications [ID 176852.1]
Java Concurrent Program FAQ [ID 827575.1]
https://forums.oracle.com/forums/search.jspa?threadID=&q=Java+AND+Concurrent+AND+Program&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
Thanks,
Hussein -
How to call Operating System commands / external programs from within APEX
Hi,
Can someone please suggest how to call Operating Systems commands / external programs from within APEX?
E.g. say I need to run a SQL script on a particular database. SQL script, database name, userid & password everything is available in a table in Oracle. I want to build a utility in APEX where by when I click a button APEX should run the following
c:\oracle\bin\sqlplusw.exe userud/password@database @script_name.sql
Any pointers will be greatly appreciated.
Thanks & Regards,Hi Guys,
I have reviewed the option of using scheduler and javascript and they do satisfy my requirements PARTIALLY. Any calls to operating system commands through these features will be made on the server where APEX is installed.
However, here what I am looking at is to call operating systems programs on client machine. For example in my APEX application I have constructed the following strings of commands that needs to be run to execute a change request.
sqlplusw.exe user/password@database @script1.sql
sqlplusw.exe user/password@database @script2.sql
sqlplusw.exe user/password@database @script3.sql
sqlplusw.exe user/password@database @script4.sql
What I want is to have a button/link on the APEX screen along with these lines so that when I click that link/button this entire line of command gets executed in the same way it would get executed if I copy and paste this command in the command window of windows.
Believe me, if I am able to achieve what I intend to do, it is going to save a lot of our DBAs time and effort.
Any help will be greatly appreciated.
Thanks & Regards, -
How to check the all scheduled concurrent programs.
Hi All,
APPS : 11.5.10.2
DB:9.2.0.8
how to check the all scheduled concurrent programs at a time, is their any script for this?
Thanks a million in advance.Hi,
Please refer to the following threads.
How to know The request is scheduled or not??
How to know The request is scheduled or not??
Need Report or Query to see all scheduled jobs
Need Report or Query to see all scheduled jobs
Regards,
Hussein -
so I've changed my hard drive for an ssd and now I've been told to enable trim ? now I've got the apple cover will they show me how to enable it with out some program of the internet ?
Use an app called chameleon ssd optimizer.
I enabled trim with it after almost a year of having installed a Samsung 840 pro SSD and my read/write speeds almost quadrupled.
I would definite;y advise using it even though Samsung SSD's come with there own garbage disposal.
Hope that helps. -
How to enable excel downloading in ALV grid report.
Hi all,
How to enable excal downing in ALV grid report?
Thanks in Advance.
Siva Sankar.hi
check the following code
Example of a Simple ALV Grid Report
REPORT ZTUFI091 .
*& Report ZDEMO_ALVGRID *
*& Example of a simple ALV Grid Report *
*& The basic requirement for this demo is to display a number of *
*& fields from the EKKO table. *
*REPORT zdemo_alvgrid .
TABLES: ekko.
type-pools: slis. "ALV Declarations
*Data Declaration
TYPES: BEGIN OF t_ekko,
ebeln TYPE ekpo-ebeln,
ebelp TYPE ekpo-ebelp,
statu TYPE ekpo-statu,
aedat TYPE ekpo-aedat,
matnr TYPE ekpo-matnr,
menge TYPE ekpo-menge,
meins TYPE ekpo-meins,
netpr TYPE ekpo-netpr,
peinh TYPE ekpo-peinh,
END OF t_ekko.
DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
wa_ekko TYPE t_ekko.
*ALV data declarations
data: fieldcatalog type slis_t_fieldcat_alv with header line,
gd_tab_group type slis_t_sp_group_alv,
gd_layout type slis_layout_alv,
gd_repid like sy-repid,
gt_events type slis_t_event,
gd_prntparams type slis_print_alv.
*Start-of-selection.
START-OF-SELECTION.
perform data_retrieval.
perform build_fieldcatalog.
perform build_layout.
perform build_events.
perform build_print_params.
perform display_alv_report.
*& Form BUILD_FIELDCATALOG
Build Fieldcatalog for ALV Report
form build_fieldcatalog.
There are a number of ways to create a fieldcat.
For the purpose of this example i will build the fieldcatalog manualy
by populating the internal table fields individually and then
appending the rows. This method can be the most time consuming but can
also allow you more control of the final product.
Beware though, you need to ensure that all fields required are
populated. When using some of functionality available via ALV, such as
total. You may need to provide more information than if you were
simply displaying the result
I.e. Field type may be required in-order for
the 'TOTAL' function to work.
fieldcatalog-fieldname = 'EBELN'.
fieldcatalog-seltext_m = 'Purchase Order'.
fieldcatalog-col_pos = 0.
fieldcatalog-outputlen = 10.
fieldcatalog-emphasize = 'X'.
fieldcatalog-key = 'X'.
fieldcatalog-do_sum = 'X'.
fieldcatalog-no_zero = 'X'.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'EBELP'.
fieldcatalog-seltext_m = 'PO Item'.
fieldcatalog-col_pos = 1.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'STATU'.
fieldcatalog-seltext_m = 'Status'.
fieldcatalog-col_pos = 2.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'AEDAT'.
fieldcatalog-seltext_m = 'Item change date'.
fieldcatalog-col_pos = 3.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'MATNR'.
fieldcatalog-seltext_m = 'Material Number'.
fieldcatalog-col_pos = 4.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'MENGE'.
fieldcatalog-seltext_m = 'PO quantity'.
fieldcatalog-col_pos = 5.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'MEINS'.
fieldcatalog-seltext_m = 'Order Unit'.
fieldcatalog-col_pos = 6.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'NETPR'.
fieldcatalog-seltext_m = 'Net Price'.
fieldcatalog-col_pos = 7.
fieldcatalog-outputlen = 15.
fieldcatalog-datatype = 'CURR'.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'PEINH'.
fieldcatalog-seltext_m = 'Price Unit'.
fieldcatalog-col_pos = 8.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
endform. " BUILD_FIELDCATALOG
*& Form BUILD_LAYOUT
Build layout for ALV grid report
form build_layout.
gd_layout-no_input = 'X'.
gd_layout-colwidth_optimize = 'X'.
gd_layout-totals_text = 'Totals'(201).
gd_layout-totals_only = 'X'.
gd_layout-f2code = 'DISP'. "Sets fcode for when double
"click(press f2)
gd_layout-zebra = 'X'.
gd_layout-group_change_edit = 'X'.
gd_layout-header_text = 'helllllo'.
endform. " BUILD_LAYOUT
*& Form DISPLAY_ALV_REPORT
Display report using ALV grid
form display_alv_report.
gd_repid = sy-repid.
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = gd_repid
i_callback_top_of_page = 'TOP-OF-PAGE' "see FORM
i_callback_user_command = 'USER_COMMAND'
i_grid_title = outtext
is_layout = gd_layout
it_fieldcat = fieldcatalog[]
it_special_groups = gd_tabgroup
it_events = gt_events
is_print = gd_prntparams
i_save = 'X'
is_variant = z_template
tables
t_outtab = it_ekko
exceptions
program_error = 1
others = 2.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
endform. " DISPLAY_ALV_REPORT
*& Form DATA_RETRIEVAL
Retrieve data form EKPO table and populate itab it_ekko
form data_retrieval.
select ebeln ebelp statu aedat matnr menge meins netpr peinh
up to 10 rows
from ekpo
into table it_ekko.
endform. " DATA_RETRIEVAL
Form TOP-OF-PAGE *
ALV Report Header *
Form top-of-page.
*ALV Header declarations
data: t_header type slis_t_listheader,
wa_header type slis_listheader,
t_line like wa_header-info,
ld_lines type i,
ld_linesc(10) type c.
Title
wa_header-typ = 'H'.
wa_header-info = 'EKKO Table Report'.
append wa_header to t_header.
clear wa_header.
Date
wa_header-typ = 'S'.
wa_header-key = 'Date: '.
CONCATENATE sy-datum+6(2) '.'
sy-datum+4(2) '.'
sy-datum(4) INTO wa_header-info. "todays date
append wa_header to t_header.
clear: wa_header.
Total No. of Records Selected
describe table it_ekko lines ld_lines.
ld_linesc = ld_lines.
concatenate 'Total No. of Records Selected: ' ld_linesc
into t_line separated by space.
wa_header-typ = 'A'.
wa_header-info = t_line.
append wa_header to t_header.
clear: wa_header, t_line.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
it_list_commentary = t_header.
i_logo = 'Z_LOGO'.
endform.
FORM USER_COMMAND *
--> R_UCOMM *
--> RS_SELFIELD *
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
Check function code
CASE r_ucomm.
WHEN '&IC1'.
Check field clicked on within ALVgrid report
IF rs_selfield-fieldname = 'EBELN'.
Read data table, using index of row user clicked on
READ TABLE it_ekko INTO wa_ekko INDEX rs_selfield-tabindex.
Set parameter ID for transaction screen field
SET PARAMETER ID 'BES' FIELD wa_ekko-ebeln.
Sxecute transaction ME23N, and skip initial data entry screen
CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
ENDIF.
ENDCASE.
ENDFORM.
*& Form BUILD_EVENTS
Build events table
form build_events.
data: ls_event type slis_alv_event.
call function 'REUSE_ALV_EVENTS_GET'
exporting
i_list_type = 0
importing
et_events = gt_events[].
read table gt_events with key name = slis_ev_end_of_page
into ls_event.
if sy-subrc = 0.
move 'END_OF_PAGE' to ls_event-form.
append ls_event to gt_events.
endif.
read table gt_events with key name = slis_ev_end_of_list
into ls_event.
if sy-subrc = 0.
move 'END_OF_LIST' to ls_event-form.
append ls_event to gt_events.
endif.
endform. " BUILD_EVENTS
*& Form BUILD_PRINT_PARAMS
Setup print parameters
form build_print_params.
gd_prntparams-reserve_lines = '3'. "Lines reserved for footer
gd_prntparams-no_coverpage = 'X'.
endform. " BUILD_PRINT_PARAMS
*& Form END_OF_PAGE
form END_OF_PAGE.
data: listwidth type i,
ld_pagepos(10) type c,
ld_page(10) type c.
write: sy-uline(50).
skip.
write:/40 'Page:', sy-pagno .
endform.
*& Form END_OF_LIST
form END_OF_LIST.
data: listwidth type i,
ld_pagepos(10) type c,
ld_page(10) type c.
skip.
write:/40 'Page:', sy-pagno .
endform.
hope it will help you
regards
sreelatha gullapalli -
How to enable vat register tab in define reporting entities.
Hello All,
How to enable vat register tab in define reporting entities.
Navigation --> Italian AP Localizations --> EMEA vAT SETUP--> Define Reporting Entities .
Under EMEA VAT Reporting entities setup screen there are 3 tabs (configuration, Allocation rules, VAT Register).
We have to enable VAT Register..
Could you please help us on this.
Immediate response is highly appreciated.
Thanks
VijayakumarHi,
1. Can you please check the method set_selection_mode in your context node implementation class?The code there should be along the foll lines:
IF iv_selection_mode IS INITIAL.
* multi select table if not specified otherwise
CALL METHOD super->set_selection_mode
EXPORTING
iv_selection_mode = selmode_multiedit.
ELSE.
CALL METHOD super->set_selection_mode
EXPORTING
iv_selection_mode = iv_selection_mode.
ENDIF.
2. You can set the selection mode as SELMODE_SINGLE or SELMODE_MULTI (depending on your requirement) via the DO_VIEW_INIT_ON_ACTIVATION method in the view controller impl class.
typed_context->result->set_selection_mode(
iv_selection_mode = cl_bsp_wd_context_node_tv=>SELMODE_SINGLE ).
Regards,
Nisha -
Delete Concurrent Program from Request Group
Hi,
By mistake i added Concurrent Program to Request Group , is there any way to remove it?
Thanks.Go to the request groups form -> Query for the request group
Put the cursor on the concurrent program that you want to delete and click on the delete (red color 'X' icon in the tool bar) icon and save the record
-Jay -
Hi All,
How to know whther a conurrent program (report or package) is "Single OU or Multiple OU".
OU: Operating Unit
Any advice appreciated.
ThanksAre you asking how to tell whether a concurrent program can be run for a single Operating Unit in a multi-Operating Unit environment?
If you are asking about standard Oracle concurrent programs, then I would say that they should all be capable of running for a single OU in a multi-OU environment WHERE the module relates to operating units. For example the HR/Payroll modules do not relate to operating units, but rather business groups and concurrent programs in these modules will be able to be run by business group.
If you are asking about custom concurrent programs, then I would suggest the easiest way to tell would be to run them and see, although having an Org ID parameter would be a good indication. -
How to set OEM alerts for concurrent programs
Hi,
We are using OEM 10g gridcontrol for monitoring.
i am new to OEM, now i have a task to set up alerts for concurrent programs(which are running more than 30mins).
can any one provide step by step process to setup alerts.
Thanks,Here is how to enable your alerts.
1. From the Mobile Email application, select the desired email account then press the center of the 5-way navigation pad to choose Select.
If prompted enter the username and password, then press the center of the 5-way navigation pad to choose Sign In.
2. Press the right soft key to choose Options.
3. Select Settings then press the center of the 5-way navigation pad to choose Select.
For AOL / AIM select Preferences.
4. Select the desired setting then press the right soft key to choose Save.
To disable the email alerts:
Select Disable or Never.
To enable email alerts:
Select Enable or Always.
To receive email during a desired time interval:
Select Only During then enter the desired time interval.
This setting may not be available on all handsets or accounts. Hope this helps -
How to Invoke Extensions in Java Concurrent Programs - Urgent
hi all,
can any one help me in understanding how to invoke Extensions (attached to Rules) in Java Concurrent Programs (part of autoconfig)
it is migration task from FC to Extensions
Please suggest
thanks,
Srikanthif you want to invoke the rule, that triggers the Extension, create a rule which invoke the rule, like "ALWAYS TRUE" REQ Extension. Then as soon as the Model in instaniated, the Extension will be executed.
-
How to know the status of concurrent program from back-end in oracle apps
Hi,
Can you please explain me step by step how to know the status of the concurrent program from back end in oracle apps.
Thanks,
RajWhen a record is being updated by a form, if you create a Pre-Update trigger on the block, the trigger will run for each record being updated.
Same thing happens with a Pre-Insert and Pre-Delete trigger. -
How to set operating unit for FND_REQUEST.SUBMIT_REQUEST
Hi,
This may sound like an elimentary question but I am facing trouble while submitting PRC Transaction Import (PAXTRXTR) from PL/SQL. The concurrent request is created but it errors out as the operating unit field on the request id blank eventhough I have used mo_global.set_policy_context in below code. Since PAXTRXTR has multi_org_category set to S it expects a org_id while submitting.
Can you figure out what is going wrong here.
Following is the code I use
DECLARE
l_request_id NUMBER;
v_msg varchar2(2000);
BEGIN
fnd_global.apps_initialize(43313,20433,275);
mo_global.init('PA');
mo_global.set_policy_context('S',1);
dbms_output.put_line(mo_global.get_current_org_id);
l_request_id := fnd_request.submit_request( 'PA'
,'PAXTRTRX'
,null,null,false
,'Unaccounted Web ADI'
,'test1'
if l_request_id = 0 then
FND_MESSAGE.RETRIEVE(MSGOUT => v_msg);
dbms_output.put_line(v_msg);
else
commit;
dbms_output.put_line(l_request_id);
END IF;
END;
Thanks,
BhaveshWhat is the output you are getting after running the above code from backend?
fnd_global.apps_initialize(43313,20433,275); is sufficient why do you want to set Policy context manually??
Maybe you are looking for
-
... for the past few months i have noticed that emails in my inbox Yahoo mail account older than a few weeks keep disappearing. i cannot find them in my Yahoo account or iPhone app BUT i can see them on my Mac Mail version of email. Emails that i hav
-
Documents from external system
Hi experts. I would like to aks You how can I solve following problem: 1. I have an aplication in ABAP 2. There is an external aplication for optical archive of documents 3. We are ucing JaCo to communicate with external aplication. And, main problem
-
Hi Experts, I am new to Document management system. 1) Is the document management system (DMS) needs some extra installations or DMS is shipped with sap r/3? 2) Can any one send me document on DMS!! I dont know how and where to start learnin
-
How to expose some objects or varibles to msscript control engine in cvi enviroment
I am writing a configarable application for industry automation in cvi enviroment .I used a msscript control 1.0 to run users' self-defined scripting codes .In vb developing eviroment ,user can use directly the objects exposed from vb-base applictio
-
Selective Color panel is unavailable (greyed out) in PS CS5
Hi! I've had this problem occur in previous versions as well. I work on an image and use Selective Color to make adjustments, then, out of nowhere, the panel no longer operates. I can no longer select the colors from the drop down menu for adjustment