Create physical erd from logical erd
I have created the logical ER diagram using designer 6.0.
I would like to know the steps involved in creating the physical ERD (diagram).
I have already done the database transformation sucessfully. I opened the design editor where i can see the relational model with all entities listed. But
i do not see the physical ER model. I was expecting the
Physical ER model in the server model diagram. If i try to open the server model it gives me an option to create a new physical ER diagram. Am i looking in the wrong place ?
In the Design Editor:
Drag the Table names (under Relational Table Definitions) to the empty spot (dark grey) of the GUI on the right side. It will create a new diagram and put the table(s) and any related FK constraint lines on the new diagram.
HTH.
Thanks, George
Similar Messages
-
Physical Standby from Logical Standby
Is it possible this scenario?
Create a physical standby from logical standby and the physical receive archive from logical.
I mean,
Primary (10g production) -> Logical (11gr2 new server 1) -> (Physical 11gr2 new server 2)
The goal of this scenario is a migration with a short downtime.
O.S. aix 6.1
11.2.0.2Is it possible this scenario?YES
-
Getting physical path from logical path
Hi,
I am using the FM FILE_GET_NAME to get the physical path for a given logical path which I have specified within the FILE transaction.
The code works fine when I run the program in foreground but it doesn't work when I run it in background.
Can anyone advise on why this is and how I can get this to work correctly in background aswell as foregroud.
The ultimate goal is to be able to poll a directory on the SAP server (which could be windows or unix) and to process the files in there.
Thanks,
RubyThank-you.
I would prefer to to use a default path if possible. The reason I defined a logical path was so that this could be defined outside the program.
Are you saying I cannot use this FM in background at all?
Is there another FM which will do the same thing but will work in background?
What I am trying to do is create a program which will run in the background polling a particular directory and then process the files in this directory if it finds any.
Do you know how I could achieve this using logical paths rather than using hardcoded paths? -
Available webservice/tool that returns the physical qry from logical qry?
Is there any obiee webservice or program that returns the physical query by receiving the logical query as a parameter ?
What we are looking for is to have a "process" that use the logic that bi server has to resolve the reports using the metadata (rpd) to derive the physical query.
It should be like the logic that is behind the "issue direct sql" function. But instead of pasting the logical query into the text box we will be passing it as a parameter in a custom process.
Many thanks,
Georgina800 by 800 pixel file @ 300 DPI:
Guide @ random position:
800 by 800 pixel file @ 300 DPI:
Guide @ 40,341 mm
One selection drawn from the left, one from the right.
The border of the selection should be on the same left-right-position, but differs about one pixel (these are all zoomed in). -
Regarding assignment of physical path to logical file name
Hi All,
We have created one logical file name and assigned physical path to it in FILE tcode.
IN PATH table also these details got updated with correct logical file name & physical path.
But in my program when i have used FILE_GET_NAME F.M to retrieve physical path from logical file.
Here this F.M is not returning anything.
What is the issue over here.
We are working in ECC 6.0
Can anybody resolve this issue!
Thanks,
Deep.do one thing i give my report so according to do this
*& Report ZMIO_MANU_VENDOR_EXTR
report zmio_manu_vendor_extr.
DATA BASE TABLES
tables: lfa1 ,eina, lfm1 .
STRUCTURES
*---structure for the vendor details.
data: begin of ws_lfa1 ,
lifnr type lfa1-lifnr,
name1 type lfa1-name1,
end of ws_lfa1 .
*---structure for the pur org details.
data: begin of ws_lfm1 ,
lifnr type lfm1-lifnr,
kalsk type lfm1-kalsk,
minbw type lfm1-minbw,
end of ws_lfm1 .
*---structure for the pur inf rec.
data: begin of ws_eina,
lifnr type eina-lifnr,
relif type eina-relif,
end of ws_eina .
*--structure for the output file
data: begin of ws_final,
lifnr(10) type c,
name1(35) type c,
kalsk(1) type c,
minbw(13) type c,
eoln(1) type c,
end of ws_final .
INTERNAL TABLES
*---internal table for vendor details
data:i_lfa1 like ws_lfa1 occurs 0.
*---internal table for pur org details
data:i_lfm1 like ws_lfm1 occurs 0.
*---internal table for pur inf details
data:i_eina like ws_eina occurs 0.
*---internal table for final file output
data:i_final like ws_final occurs 0.
*DATA : P_FLAG(1) TYPE C.
CONSTANTS
*-- Default file name
constants: c_filename_default(40) type c
value 'VOLSAP/MAXVRLIB/manu_retail_vendor',
c_kalsk(2) type c value '05'.
SELECTION SCREEN
selection-screen begin of block b1 with frame.
selection-screen: begin of block b2 with frame title text-001 .
select-options:s$lifnr for lfa1-lifnr .
parameters:p$relif as checkbox.
selection-screen end of block b2.
selection-screen: begin of block b3 with frame title text-002 .
parameters: p$file(128) obligatory default c_filename_default.
selection-screen end of block b3.
selection-screen end of block b1 .
START OF SELECTION
start-of-selection.
if not s$lifnr is initial.
perform get_vendor_data .
endif.
perform build_file .
perform display_file .
END OF SELECTION
end-of-selection .
*& Form GET_VENDOR_DATA
form get_vendor_data .
select lifnr
name1
from lfa1
into table i_lfa1
where lifnr in s$lifnr .
if not i_lfa1[] is initial.
sort i_lfa1 by lifnr .
select lifnr
kalsk
minbw
from lfm1
into table i_lfm1
for all entries in i_lfa1
where lifnr = i_lfa1-lifnr .
select lifnr
relif
from eina
into table i_eina
for all entries in i_lfa1
where lifnr = i_lfa1-lifnr
and relif = 'X'.
endif.
endform. " GET_VENDOR_DATA
*& Form BUILD_FILE
form build_file .
loop at i_lfa1 into ws_lfa1 .
ws_final-lifnr = ws_lfa1-lifnr .
ws_final-name1 = ws_lfa1-name1 .
read table i_lfm1 into ws_lfm1 with key lifnr = ws_lfa1-lifnr .
if ws_lfm1-kalsk = c_kalsk .
ws_final-kalsk = 'X'.
endif.
ws_final-minbw = ws_lfm1-minbw .
ws_final-eoln = 'X'.
if p$relif = 'X'.
CLEAR P_FLAG.
LOOP AT I_EINA INTO WS_EINA
WHERE LIFNR = WS_LFA1-LIFNR
AND RELIF = 'X'.
P_FLAG = 'X'.
EXIT.
ENDLOOP.
IF P_FLAG = 'X'.
APPEND WS_FINAL TO I_FINAL .
CLEAR WS_FINAL.
ENDIF
read table i_eina into ws_eina with key lifnr = ws_lfa1-lifnr
relif = 'X'.
if sy-subrc = 0.
append ws_final to i_final .
clear ws_final.
endif.
else.
append ws_final to i_final .
clear ws_final.
endif.
endloop .
endform. " BUILD_FILE
*& Form DISPLAY_FILE
form display_file .
data: l_lines type i.
describe table i_final lines l_lines.
if l_lines > 0.
perform open_file using p$file.
loop at i_final into ws_final.
transfer ws_final to p$file.
endloop.
close dataset p$file.
else.
write: / 'no data found'.
endif.
endform. " DISPLAY_FILE
*& Form open_file
Open an output file, customizing default name to include
vendor number and job completion timestamp.
form open_file using file_nm.
data: l_vendor like eina-lifnr,
l_timestamp(12) type c.
Get correct path/filename for the system we're running on
call function 'FILE_GET_NAME'
exporting
logical_filename = 'ZVOL'
parameter_1 = file_nm
importing
file_name = file_nm.
Open file for output
open dataset file_nm for output in text mode encoding default.
if sy-subrc ne 0.
message e368(00) with 'Error opening output file:' file_nm.
endif.
endform. "open_file
All definitions needed for the platform-independent assignment of file names are maintained client-independently with transaction FILE. Logical file names (but not logical file paths) can also be defined specifically for the current client with transaction SF01. Transaction SF07 generates a list of current definitions.
Edited by: krupa jani on Aug 20, 2008 6:55 AM -
HD video out from Logic - possible?
I have been trying to find if there is a way to get HD video out to an external monitor from Logic. Tried a Decklink "Intensity" card, wouldn't output HD. I called Aja and Decklink, neither company could tell me if it's possible with any of their products.
Another alternative would be to use a second video card and convert DVI to HDMI (I have two 30" monitors so am already using the two DVI outputs on the main video card), I want to output to a 47" TV monitor for client presentations. In the old days, it was always recommended not to use a second video card with music DAWs because of slowing down the PCI buss - is this still the case with the latest Mac Pro's?The other thing we've done in the studio when working on films is to use two separate machines. One machine is running ProTools HD and it's the on that plays the video. Use MTC to lock the machines together, you hit play in Logic and hey presto, the ProTools locks to it and plays your video. No reason why you couldn't do this with two machines running Logic. The advantage with using ProTools (HD) is that you can have all of your reels in the one session, one after the other. Then (if your Logic work is properly organized and all of your cues have start points at the correct TC, then you don't even need to change ProTools sessions even once. You can switch between Logic projects (for each music cue) and the ProTools session will happily jump to the right part of the video at all times. This way you eliminate the question of trying to get the one machine to handle everything. Yes it's more of the old-school sync'd up video deck concept, but once you set it up, it's much faster and it works great. You can even route all of your physical outputs from Logic directly into the ProTools inputs and do one-pass (or almost one-pass) striping of all your Logic work to prepare your ProTools sessions for the orchestral sessions. We've done this for a couple of films and it was a very effective way of working.
-
How to create an ERD from existing database ?
hi all
how i can capture from databse and create an ERD from the whole of database by designer ?
ssaeedsDoes a very lousy job at it, as it can create only 1 ERD, one screen big and doesn't save intermediate results.
Sybrand Bakker
Senior Oracle DBA -
Creating physical standby database from another physical standby database
hi,
We have one production database and one physical standby of the production. Now we have situation where we need to create one database from either production or from standby. As production is loaded we can not do it using active database option. Now we have the only option to copy the database from standby.
As of now we open the standby and copy it using rman duplicate database and again we put it back to standby mode.
Is it possible to create standby database from standby database only?
Oracle version : 11.1.0.7.0
I have seen procedure allowing to do the same in version 11.2.0.3. I have tried searching for the difference but didn't find when this feature was introduced.
Thanks,
Ketul PatelHello;
Active duplicate should work when connected to Standby as source Database. However there's a bug 11715084 which is not fixed until version 11.2.0.4.
If patch 11715084 is available for your version it may work, but all the 11.1.0 are gone so I have no way to test.
RMAN ACTIVE DUPLICATE WHEN CONNECTED TO STANDBY AS TARGET [ID 1343515.1]
Understanding ORA-01671 error during controlfile creation / backup [ID 461121.1]
Best Regards
mseberg
Edited by: mseberg on Feb 13, 2013 8:59 AM -
Creating a WSDL from a perfectly working Logical DS in ALDSP 3.2
i am just running to a small issue, i have a created a group of logical Data services. each having its own functionality. it is tested several times and is in fine working condition.
i have to create a WSDL from this. these were the steps i followed.
1. Went to new, clicked on web Service Map.
2. Named it ABC. I then dragged and dropped my logical DS.
3. when i say "test web service" , the following error throws up.
http://localhost:7051/BSOM/WebService/BSOM_R3.ws?WSDL
failed due to weblogic.testclient.WsdlParseFailedException: Not Found
4. When the link is copied and pasted in Internet Explorer, it shows :
Error 404--Not Found
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.4.5 404 Not FoundThe original problem occurs when there is an <annotation> preceding an <import> or <include>. Moving the <annotations> after the <import> and <include> solves the problem.
-
How to create chord charts from midi using logic pro x
How to create chord charts from midi using logic pro x
Depending on what you mean by Chord charts (Tabs?)
Use the Score.......
http://help.apple.com/logicpro/mac/10/#lgcpf755d649 -
Hello
Could anyone tell me how to create an ERD of a database using SQL Developer?
ThanksHello,
there is a viewlet for that at data modeling page http://www.oracle.com/technology/products/database/sql_developer/files/Modeling.html .
It's good to read "release notes" if you are going to connect to supported none Oracle database.
Best regards,
Philip -
Why won't FireFox 4 play mp3 files that have been created since the FF update? It will play mp3 files created prior to the FF update. All of the mp3 files have been created in the same manner, as bounces from Logic Pro 9. Thank you.
Hi David,
Thank you for your detailed question. It sounds like the real issue is pdf files. Are there any antivirus/firewalls that might be blocking this specific file type? or are there any preferences in your control panel that might be blocking this?
Do you have any stored preferences for PDF files in Firefox?
*[[Applications panel - Set how Firefox handles different types of files]] -
Please Help. Trying to create XML file from 2 tables.
Step1: Target XML format
Created an XML
<DEPART>
<DEPARTMENT_ID>10</DEPARTMENT_ID>
<DEPARTMENT_NAME>Administration</DEPARTMENT_NAME>
<MANAGER_ID>200</MANAGER_ID>
<LOCATION_ID>1700</LOCATION_ID>
<EMP><EMPLOYEE_ID>100</EMPLOYEE_ID>
<FIRST_NAME>Steven</FIRST_NAME>
<LAST_NAME>King</LAST_NAME>
<SALARY>24000</SALARY>
</EMP>
</DEPART>Step 2. Created a target data server from the above mentioned xml. Specified the logical and physical schema.
Step3.Logged into Designer and reverse engineered from the the schema created in step2.
step 4. Following Hierarchy is created
DEPART
--> EMP
Step 5. Reverse engineered 2 tables from oraclexe (HR ) Schema
Employees
Departments
Step 6. Created an interface and made DEPART from step 4 as target
and Departments from step 5 as source.
Step 7. Staging area is different to the target.
step 8. modified the IKM SQL Control Append to write to a file
create xmlfile #filename from schema DEPART
Step 9. Changed the DEPART PK Column in the TARGET to 0
Step 10. File is created.
Problem:
1. When i view the file it has all the departments but the employees are also displayed eventhough i haven't done the mapping.
2. All the employees are listed under every department.
Please help as i have tried everything. I know i am missing something somewhere.
Thanks a lot for reading it.
Alvinder
Edited by: alvinder on Jun 30, 2010 5:29 PMHi Alvindar,
Thanks u posted good issue,
Can u clarify this about how your issue got ressolved. I am also trying with same XML as you have pasted here. I have following doubts.
While setting up XML data server the ro option i have deleted as defalut value is false which allows both read/write & its look like this
jdbc:snps:xml?f=../demo/XML/EMPDEPT.xml&s=SCH_EMPDEPT.
I have mapped and written create XML commands in commit section of IKM which looks like this :CREATE XMLFILE #ExportXMLFileLoc FROM SCHEMA SCH_FLDEPT
created the interface and executed,it went through fine,4 rows data transformed into target xml data store,file is generated in the given path .
But in the generated file is same as which have EMPDEPT.xml with data change,but in the target xml data store depart i am able to view newly inserted records.
i want generate an output xml for each of the target of the XML data store, how we can do that please explain me.
this is my xml
<?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
<DEPART>
<DEPARTMENT_ID>10</DEPARTMENT_ID>
<DEPARTMENT_NAME>Admin</DEPARTMENT_NAME>
<MANAGER_ID>200</MANAGER_ID>
<LOCATION_ID>1700</LOCATION_ID>
</DEPART>
</REQUEST>
tried only with DEPART table.
Waiting for ur repply,
Thanks,
MNK -
LSMW accept file from logical path?
Dear All,
Can LSMW designs for conversions accept file from logical path?
The requirement is during actual conversion execution -the conversion team can store files anywhere they want, configure logical file names/paths and use our LSMWs without needing program modifications.
Kindly let me know.
Thanks in Advance
RanjanHai KCR
Using Tcode MM01 -- Maintain the source fields are
1) mara-amtnr char(18)
2) mara-mbrsh char(1)
3) mara-mtart char(4)
4) makt-maktx char(40)
5) mara-meins char(3)
the flate file format is like this as follows
MAT991,C,COUP,Srinivas material01,Kg
MAT992,C,COUP,Srinivas material02,Kg
AMT993,C,COUP,Srinivas material03,Kg
MAT994,C,COUP,Srinivas material04,Kg
MAT995,C,COUP,Srinivas material05,Kg
goto Tcode LSMW
give Project Name
Subproject Name
object Name
Press Enter -
Press Execute Button
It gives 13 radio-Button Options
do the following 13 steps as follows
1) select radio-Button 1 and execute
Maintain Object Attributes
select Standard Batch/Direct Input
give Object -- 0020
Method -- 0000
save & Come Back
2) select radio-Button 2 and execute
Maintain Source Structures
select the source structure and got to click on create button
give source structure name & Description
save & Come Back
3) select radio-Button 3 and execute
Maintain Source Fields
select the source structure and click on create button
give
first field
field name matnr
Field Label material Number
Field Length 18
Field Type C
Second field
field name mbrsh
Field Label Industrial Sector
Field Length 1
Field Type C
Third field
field name mtart
Field Label material type
Field Length 4
Field Type C
fourth field
field name maktx
Field Label material description
Field Length 40
Field Type C
fifth field
field name meins
Field Label base unit of measurement
Field Length 3
Field Type C
save & come back
4) select radio-Button 4 and execute
Maintain Structure Relations
go to blue lines
select first blue line and click on create relationship button
select Second blue line and click on create relationship button
select Third blue line and click on create relationship button
save & come back
5) select radio-Button 5 and execute
Maintain Field Mapping and Conversion Rules
Select the Tcode and click on Rule button there you will select constant
and press continue button
give Transaction Code : MM01 and press Enter
after that
1) select MATNR field click on Source filed(this is the field mapping) select MATNR and press Enter
2) select MBRSH field click on Source filed(this is the field mapping) select MBRSH and press Enter
3) select MTART field click on Source filed(this is the field mapping) select MTART and press Enter
4) select MAKTX field click on Source filed(this is the field mapping) select MAKTX and press Enter
5) select MEINS field click on Source filed(this is the field mapping) select MEINS and press Enter
finally
save & come back
6) select radio-Button 6 and execute
Maintain Fixed Values, Translations, User-Defined Routines
Create FIXED VALUE Name & Description as MM01
Create Translations Name & Description as MM01
Create User-Defined Routines Name & Description as MM01
after that delete all the above three just created in the 6th step
FIXED VALUE --MM01
Translations --MM01
User-Defined Routines --MM01
come back
7) select radio-Button 7 and execute
Specify Files
select On the PC (Frontend) -- and click on Create button(f5)
give the path of the file like "c:\material_data.txt"
description : -
separators as select comma radiao- button
and press enter save & come back
8) select radio-Button 8 and execute
Assign Files
Save & come back
9) select radio-Button 9 and execute
Read Files
Execute
come back
come back
10) select radio-Button 10 and execute
Display Imported Data
Execute and press enter
come back
Come back
11) select radio-Button 11 and execute
Convert Data
Execute
come back
Come back
12) select radio-Button 12 and execute
Display Converted Data
Execute & come back
13) select radio-Button 13 and execute
Start Direct Input Program
select the Program
select continue button
go with via physical file
give the lock mode as 'E'
and execute
Thanks & regards
Sreenivasulu P -
Is there a way to create Timecard Templates from backend?
Hello Folks
Is there a way to create Timecard Templates from backend? I tried to create one with the following steps, but did not work. Throws a HXC_HXT_DEP_VAL_ORAERR
The Oracle error is: &ERROR
1. Create TIMECARD_TEMPLATE scope BB using hxc_timestore_deposit.create_bb
2. Create Template_Name Attribute on the above BB
3. Create DAY BB
4. Create DETAIL BB for DAY BB
5. Create Attribute BB for Hours Worked element on the DETAIL BB above
6. Call hxc_timestore_deposit.execute_deposit_process(p_validate => FALSE
,p_app_blocks => l_tbl_timecard_info
,p_app_attributes => l_tbl_attributes_info
,p_messages => l_tbl_messages
,p_mode => 'SAVE'
,p_deposit_process => l_deposit_process
--p_retrieval_process => 'BEE Retrieval Process'
, p_template => hxc_timecard.c_yes
,p_timecard_id => l_new_timecard_id
,p_timecard_ovn => l_new_timecard_ovn
Any help would be greatly appreciated.
Thanks
SrinivasaTim
Application Release is 12.0.4, those notes do not help. Here is the complete script.
declare
l_tbl_timecard_info hxc_self_service_time_deposit.timecard_info;
l_tbl_attributes_info hxc_self_service_time_deposit.app_attributes_info;
l_tbl_messages hxc_self_service_time_deposit.message_table;
--l_token_table hxc_deposit_wrapper_utilities.t_simple_table;
l_blocks hxc_self_service_time_deposit.timecard_info;
l_attributes hxc_self_service_time_deposit.app_attributes_info;
l_tc_bb_id hxc_time_building_blocks.time_building_block_id%TYPE;
l_day_bb_id hxc_time_building_blocks.time_building_block_id%TYPE;
l_detail_bb_id hxc_time_building_blocks.time_building_block_id%TYPE;
l_existing_tc_id hxc_timecard_summary.timecard_id%TYPE:= NULL;
l_deposit_process hxc_deposit_processes.NAME%TYPE:= 'OTL Deposit Process';
l_count_building_block PLS_INTEGER;
i PLS_INTEGER;
l_message fnd_new_messages.message_text%TYPE;
l_approval_style_id NUMBER;
l_new_timecard_id NUMBER;
l_tc_days_counter NUMBER;
l_new_timecard_ovn NUMBER;
l_resp_id NUMBER := 50597; -- Responsibility US Employee Services
l_application_id NUMBER := 809; -- Application HXC
l_user_id NUMBER := 118189; -- FLORESR
begin
-- 1. Set Apps Context
fnd_global.apps_initialize (l_user_id, l_resp_id, l_application_id);
-- 2. Get Approval Style ID
l_approval_style_id := TO_NUMBER(hxc_preference_evaluation.resource_preferences(411669,'TS_PER_APPROVAL_STYLE',1,SYSDATE));
dbms_output.put_line('l_approval_style_id = '||l_approval_style_id);
-- 3. Create TIMECARD_TEMPLATE BB similar to the logic in hxc_timestore_deposit.create_timecard_bb passing the scope as TIMECARD_TEMPLATE instead of TIMECARD
-- We are starting with a new timecard so clear the global tables
-- hxc_self_service_time_deposit.initialize_globals;
-- Also clear the local PL/SQL table
-- hxc_timestore_deposit_util.clear_building_block_table(p_app_blocks => l_tbl_timecard_info);
l_count_building_block := l_tbl_timecard_info.LAST;
-- PROCEDURE clear_building_block_table (
-- p_app_blocks IN OUT NOCOPY hxc_block_table_type
-- 'generate' a TBB ID
IF (l_count_building_block IS NULL)
THEN
l_tc_bb_id := -2;
-- never start at -1 because that has a special meaning in the deposit
ELSE
l_tc_bb_id := - (l_count_building_block) - 2;
END IF;
dbms_output.put_line('Creating Timecard');
hxc_timestore_deposit.create_timecard_bb (p_start_time => fnd_date.canonical_to_date ('2011/09/26 00:00:00')
,p_stop_time => fnd_date.canonical_to_date ('2011/10/09 23:59:59')
,p_resource_id => 411669
,p_resource_type => hxc_timecard.c_person_resource
,p_approval_style_id => l_approval_style_id
,p_comment_text => 'Come on start working'
,p_app_blocks => l_tbl_timecard_info
,p_time_building_block_id => l_tc_bb_id
hxc_timestore_deposit.create_bb (p_time_building_block_id => l_tc_bb_id
,p_type => hxc_timecard.c_range_type
-- p_measure => DEFAULTS TO NULL
,p_unit_of_measure => NULL
,p_start_time => fnd_date.canonical_to_date ('2011/09/12 00:00:00')
,p_stop_time => fnd_date.canonical_to_date ('2011/09/25 23:59:59')
,p_parent_building_block_id => NULL
-- Timecard Template does not have a parent -- May need to check on this parameter
,p_parent_is_new => NULL
,p_scope => hxc_timecard.c_template_scope -- Template Scope
-- p_object_version_number => DEFAULTS TO 1
-- p_approval_status=> p_approval_status
,p_resource_id => 411669
,p_resource_type => 'PERSON'
,p_approval_style_id => l_approval_style_id
-- p_date_from => DEFAULTS TO SYSDATE
-- p_date_to => DEFAULTS TO hr_general.end_of_time
,p_comment_text => 'Template Trials'
-- p_parent_building_block_ovn => DEFAULTS TO NULL
-- new => DEFAULTS TO 'Y'
-- changed => DEFAULTS TO 'N'
,p_app_blocks => l_tbl_timecard_info
dbms_output.put_line('After creating Timecard l_tc_bb_id = '||l_tc_bb_id);
-- 4. Create PRIVATE TEMPLATES Attribute Category and Template Name passed from UI
dbms_output.put_line('Creating Template_Name Attribute');
hxc_timestore_deposit.create_attribute(p_building_block_id => l_tc_bb_id
,p_attribute_name => 'Template_Name'
,p_attribute_value => 'Trial Template from Code'
,p_deposit_process => l_deposit_process
,p_app_attributes => l_tbl_attributes_info
dbms_output.put_line('Creating Template_Type Attribute');
hxc_timestore_deposit.create_attribute(p_building_block_id => l_tc_bb_id
,p_attribute_name => 'Template_Type'
,p_attribute_value => 'PRIVATE'
,p_deposit_process => l_deposit_process
,p_app_attributes => l_tbl_attributes_info
-- Below will be in a loop later
-- 5. Create the DAY BB
dbms_output.put_line('Creating DAY BB');
hxc_timestore_deposit.create_day_bb(p_day => fnd_date.canonical_to_date('2011/09/26')
,p_parent_building_block_id => l_tc_bb_id -- returned by create_timecard_bb
,p_app_blocks => l_tbl_timecard_info
,p_time_building_block_id => l_day_bb_id
dbms_output.put_line('After Creating DAY BB l_day_bb_id = '||l_day_bb_id);
-- 6. Create DETAIL BB for first shift, lunch and second shift
dbms_output.put_line('Create DETAIL BB for first shift, lunch and second shift');
hxc_timestore_deposit.create_detail_bb(p_type => 'RANGE'
-- ,p_measure => NULL -- Pass Null as its a template
,p_start_time => to_date('2011/09/26 06:00:00','YYYY/MM/DD HH24:MI:SS')
,p_stop_time => to_date('2011/09/26 11:00:00','YYYY/MM/DD HH24:MI:SS')
,p_parent_building_block_id => l_day_bb_id
,p_app_blocks => l_tbl_timecard_info
,p_app_attributes => l_tbl_attributes_info
,p_time_building_block_id => l_detail_bb_id
dbms_output.put_line('After Creating DETAIL BB l_detail_bb_id = '||l_detail_bb_id);
dbms_output.put_line('Creating Attribute 64869');
hxc_timestore_deposit.create_attribute(p_building_block_id => l_detail_bb_id
,p_attribute_name => 'Dummy Element Context'
,p_attribute_value => 'ELEMENT - '||'64869' -- 01 Hours Worked
,p_app_attributes => l_tbl_attributes_info
dbms_output.put_line('Creating Detail BB');
hxc_timestore_deposit.create_detail_bb(p_type => 'RANGE'
-- ,p_measure => NULL -- Pass Null as its a template
,p_start_time => to_date('2011/09/26 11:00:00','YYYY/MM/DD HH24:MI:SS')
,p_stop_time => to_date('2011/09/26 11:30:00','YYYY/MM/DD HH24:MI:SS')
,p_parent_building_block_id => l_day_bb_id
,p_app_blocks => l_tbl_timecard_info
,p_app_attributes => l_tbl_attributes_info
,p_time_building_block_id => l_detail_bb_id
dbms_output.put_line('After Creating DETAIL BB l_detail_bb_id = '||l_detail_bb_id);
dbms_output.put_line('Creating Attribute 65172');
hxc_timestore_deposit.create_attribute(p_building_block_id => l_detail_bb_id
,p_attribute_name => 'Dummy Element Context'
,p_attribute_value => 'ELEMENT - '||'65172' -- 02 Unpaid Lunch
,p_app_attributes => l_tbl_attributes_info
dbms_output.put_line('Creating Detail BB');
hxc_timestore_deposit.create_detail_bb(p_type => 'RANGE'
-- ,p_measure => NULL -- Pass Null as its a template
,p_start_time => to_date('2011/09/26 11:30:00','YYYY/MM/DD HH24:MI:SS')
,p_stop_time => to_date('2011/09/26 14:30:00','YYYY/MM/DD HH24:MI:SS')
,p_parent_building_block_id => l_day_bb_id
,p_app_blocks => l_tbl_timecard_info
,p_app_attributes => l_tbl_attributes_info
,p_time_building_block_id => l_detail_bb_id
dbms_output.put_line('After Creating DETAIL BB l_detail_bb_id = '||l_detail_bb_id);
dbms_output.put_line('Creating Attribute 64869');
hxc_timestore_deposit.create_attribute(p_building_block_id => l_detail_bb_id
,p_attribute_name => 'Dummy Element Context'
,p_attribute_value => 'ELEMENT - '||'64869' -- 01 Hours Worked
,p_app_attributes => l_tbl_attributes_info
-- 7. Deposit the Template
dbms_output.put_line('Deposit the Template ');
hxc_timestore_deposit.execute_deposit_process(p_validate => FALSE
,p_app_blocks => l_tbl_timecard_info
,p_app_attributes => l_tbl_attributes_info
,p_messages => l_tbl_messages
,p_mode => 'SAVE'
,p_deposit_process => l_deposit_process
-- ,p_retrieval_process => 'BEE Retrieval Process'
, p_template => 'Y'
,p_timecard_id => l_new_timecard_id
,p_timecard_ovn => l_new_timecard_ovn
COMMIT;
dbms_output.put_line('l_new_timecard_id = '||l_new_timecard_id);
IF (l_tbl_messages.COUNT <> 0) THEN
i := l_tbl_messages.FIRST;
LOOP
EXIT WHEN (NOT l_tbl_messages.EXISTS (i));
l_message := fnd_message.get_string (appin => l_tbl_messages (i).application_short_name,
namein => l_tbl_messages (i).message_name);
DBMS_OUTPUT.put_line (l_tbl_messages (i).message_name);
DBMS_OUTPUT.put_line (l_message);
i := l_tbl_messages.NEXT (i);
END LOOP;
END IF;
end;
Maybe you are looking for
-
Fans blow hard upon starting up
Dual processor 1.8 mhz. Fans blow hard upon starting up. It was freezing upon start up as well. Then I replaced the 1/2 C battery. The fans still blow hard but it doesn't freeze up on start up. Do I need to replace the other battery by the hard drive
-
I gather from past questions that there is an issue with Windows 7 memory use, which relates to typically around 100 processes running. To try to overcome problems with an image processing application (Serif PhotoPlus X7) randomly quitting, which Se
-
how to burn a video produced in iMovie in iDVD: with gratitude for the advice received I used the "professional quality" setting in iDVD for a video which in iMovie is 1h 20min long. however this also failled. where did I go wrong, please? the messa
-
How to set up 'add sender to address book'
I somehow lost all my contacts!! How can I add the sender of an email to my address book on a one-click basis. I think I have searched all avenues with no success. Have I missed something? Thanks
-
Font and Color Changes on Hyperlinks
I am going mad on iWeb trying to format hyperlinks. No matter how I format the text, the moment you enable it as a hyperlink it defaults to whatever Apple set it at. The inspector shows all the right parameters but the link is unchanged. Does anyone