Live table insertion help required
I face issue of constraint violation the time when i try to insert record which already exist in table actually the table is getting populated on real basis and the record which i try to upload is around 2.5 million.
I need a PL/SQL code which perform insertion into live table and don't insert those records which already exists in live table.
I am new in PL/SQL and need your expert guidence
Please help
regards,
In pl/sql you can trap oracle errors via an exception handler. For instance suppose you want to insert two rows, and the second row already exists (i.e. that row will get an oracle key-constraint error).
The way to deal with such an error in this case, would be to write a handler for the DUP_VAL_ON_INDEX error.
begin
begin
insert into some_table values(.. some values ..);
insert into some_table values(.. some other values ..);
exception when dup_val_on_index
then null;
end;
commit;
end;Above code will ignore the error for the second row, and will keep the first row inserted (and committed).
Similar Messages
-
Table Maintanance Help Required-urgent
Hi All,
I generating table maintanance generator for the table zuser_Secobjects. In this table GUID is a primary key and APPLN,APPLN_TYPE,PARTNER_TYPE are the non primary keys. I am using two screens method here. on both screens i am not showing GUID ( i am hiding this field in screen1 and screen 2) whenvere new record is created for every record guid is going to create. now my reuirement when i click on position(pushbutton) name in screen 1 it has to show APPLN,APPLN_TYPE,PARTNER_TYPE where as these 4 fields are non primary keys . i am getting uniqire record using guid. so i am keeping guid as primary key.i can't keep these 4 fields as primary keys in the table zuser_secobjects.
anybody can faced this kind of problem if so please let me know whow to approach in this case.
thanks,
maheedhar.tHai Maheedhar,
I have also faced the related problem.
<b>Please refer the below links.</b>
<b>It will helps you a lot.</b>
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/how%20to%20implement%20events%20in%20table%20maintenance.doc
Table Maintenance generator is required to do Manual entries in the Table. If the requirement is to update the table only programmatically and not manually then table maint. generator is not required.
Manual entries in table can be maintained ( New record can be inserted / existing can be modified ) using transaction SM 30, if the table maintenance for the table is generated.
<b>Don'forget to activate it.</b>
How to activate Table maint.
Goto SE11 and open the table.
Click UTILITIES -> Table Maint. Generator, Enter the details and click on Save. Then activate the table.
<b>Please refer the below links.</b>
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/how%20to%20implement%20events%20in%20table%20maintenance.doc
<b>Reward points if it helps you.</b>
Regds,
Rama chary.Pammi -
Problem with constraint in a table..help required..
Hi ,
i need to create a table which has an attribute year_joined and need to set a constraint that the year_joined should be less than or equal to the current year (year obtained from sysdate (YYYY)) ..
can any one help me with the create statement required...
eg: create table test(year_joined number, constraint c_year check(year_joined< = ?));
i could not use a sub query in the create statement.
help req..
thanks,
sriSatyaki,
I tried but fail. Could you please tell the way how it can be implementaed in CHECK constraint.
SQL> CREATE TABLE T ( YERR_JOINED NUMBER(4) , CHECK (YERR_JOINED <='2007'));
Table created.
SQL> drop table t;
Table dropped.
SQL> CREATE TABLE T ( YERR_JOINED NUMBER(4) , CHECK (YERR_JOINED <= TO_CHAR(SYSDATE,'YYYY')));
CREATE TABLE T ( YERR_JOINED NUMBER(4) , CHECK (YERR_JOINED <= TO_CHAR(SYSDATE,'YYYY')))
ERROR at line 1:
ORA-02436: date or system variable wrongly specified in CHECK constraint
SQL> -
Internal table logic - help required
Hi,
I am working on BSEG table to determine offsetting line count and amount total for a posting line item and need
a small logic .
I have a table of currency fields like below and the table is such ( like BSEG ) that each line item will balance
itself with other line item . For example
Item
10 100
20 100-
30 200
40 250
50 450-
60 200-
70 200
80 600
90 100
100 200
110 300
If you see 10 & 20 balance out similarly ( 30,40 will balance with line item 50 ) , ( 60 & 70 balance each other ) ,
( 90,100, 110 balance with 80 ).
My requirement - If I loop on item 50 with amount 450- I need to get the posnr of the two items which balance
this amount ( which is 30 and 40 ). If I loop on item 80 with amount 600 then I need to get item 90. 100 and 110.
Please provide me a logic which will provide me the index of ther required item lines.
Regards
PraneethHi, execute this code.. might be helpful to you
TYPES: BEGIN OF test,
a TYPE i,
b TYPE i,
END OF test.
DATA: itab TYPE TABLE OF test,
wa TYPE test,
wa1 TYPE test,
c TYPE i,
d TYPE i,
n1 TYPE i,
n2 TYPE i.
PARAMETERS : p TYPE i.
wa-a = 1.
wa-b = 20.
APPEND wa TO itab.
wa-a = 2.
wa-b = 30.
APPEND wa TO itab.
wa-a = 3.
wa-b = 10.
APPEND wa TO itab.
wa-a = 4.
wa-b = 10.
APPEND wa TO itab.
wa-a = 5.
wa-b = 20.
APPEND wa TO itab.
READ TABLE itab INTO wa WITH KEY a = p.
c = wa-b.
LOOP AT itab INTO wa WHERE a GT p.
n1 = wa-a.
IF c EQ wa-b.
EXIT.
ENDIF.
LOOP AT itab INTO wa1 WHERE a GT wa-a.
IF wa-a = wa1-a.
EXIT.
ENDIF.
n2 = wa1-a.
d = wa-b + wa1-b.
IF c EQ d.
EXIT.
ENDIF.
ENDLOOP.
IF wa-a = wa1-a.
EXIT.
ELSEIF c EQ d.
EXIT.
ELSE.
CLEAR: n1, n2.
ENDIF.
ENDLOOP.
WRITE: n1 , n2. -
Internal Table Operation Help Required
Hi
I have to insert 8 counters p1-p8 in a field BANFN of ITAB1.
Like this their are 3 more fileds.I have to show the no. for PR released frm JAN-DEC in ALV format.I had doen the calualation,but unable to insert these conters in ITAB1 to do final calculation & display the result.
Please help me.
I had used : insert p1 into itab1-banfn where sy-index 1.
Like this I had tried out many comands,but al in vain.PLZ help me in this regard.
Regards.
VipinThere are 8 fileds in my internal table,in which 1st one is for MONTH(JAN-DEC).
The ALV is only suppose to display 12 rows,containing each month per row.
Now for each month I have to display the PR converted to PO & the avg lead time for each month.So I had calu all the data ,but now I have to insert 12 counters in 4 fields.one for No of PR converted to PO in each month,than one for AVG LEAD TIME for each month.so there has to be 12 + 12 counters for each row.Similar operation I have to perform for the PR pending fo PO.So there has to be 24 more counters for again 2 diff fileds.Now I had calcuated the data,but the problem is this ,,,,,how to insert each ctr in each row.
EG: insert ctr1 into itab1-banfn where itab1-mmyy = 'January' or sy-index = 1.
insert ctr2 into itab1-banfn where itab1-mmyy = 'Febuary' or sy-index = 2.
move crt1 to itab1-banfn where sy-index = 1.
None of the operation is working.
Like this i have to insert 48 counters in all rows for these 4 diff fileds.
Pl help me in thsi regard ,if possible.
regards. -
Mutating table problem help required
Hi. I am rather hoping someone will be able to help me with this problem.
I have two tables, sa and mv. Create script below:
create table mv (
moduleId Char(2) CONSTRAINT ck_moduleId CHECK(moduleId in ('M1', 'M2', 'M3', 'M4', 'M5', 'M6', 'M7', 'M8')),
credits Number(2) CONSTRAINT ck_credits CHECK(credits in (10, 20, 40)),
constraint pk_mv primary key(moduleId)
create table sa (
stuId Char(2) CONSTRAINT ck_stuId CHECK(stuId in ('S1', 'S2', 'S3', 'S4', 'S5')),
moduleId Char(2),
constraint pk_sa primary key(stuId, moduleId),
constraint fk_moduleid foreign key(moduleId) references mv(moduleId)
And the scripts below is to insert data into both:
insert into mv VALUES('M1', 20)
insert into mv VALUES('M2', 20)
insert into mv VALUES('M3', 20)
insert into mv VALUES('M4', 20)
insert into mv VALUES('M5', 40)
insert into mv VALUES('M6', 10)
insert into mv VALUES('M7', 10)
insert into mv VALUES('M8', 20)
insert into sa VALUES('S1', 'M1')
insert into sa VALUES('S1', 'M2')
insert into sa VALUES('S1', 'M3')
insert into sa VALUES('S2', 'M2')
insert into sa VALUES('S2', 'M4')
insert into sa VALUES('S2', 'M5')
insert into sa VALUES('S3', 'M1')
insert into sa VALUES('S3', 'M6')
Now for the actual problems.
Firstly I need to try and overcome the mutating table problem by ensure that stuid = S1 in table sa can not take both moduleId M5 and M6.
Just one or the other. I have created a single trigger, but if fails because of the mutating table problem.
The second problem I need to overcome is that none of the stuids can have moduleIds where total credit value of more than 120 credits. Credit value is stored in the mv table.
Many thanks in advance for any assistance.Use a statement level trigger:
Firstly I need to try and overcome the mutating table problem by ensure that stuid = S1 in table sa can not take both moduleId M5 and M6.
SQL> create or replace trigger sa_trg
2 after insert or update on sa
3 declare
4 c number;
5 begin
6 select count(distinct moduleId) into c
7 from sa
8 where stuid = 'S1'
9 and moduleId in ('M5','M6');
10 if c > 1 then
11 raise_application_error(-20001,'S1 on both M5 and M6!!');
12 end if;
13 end;
14 /
Trigger created.
SQL> select * from sa;
ST MO
S1 M1
S1 M2
S1 M3
S2 M2
S2 M4
S2 M5
S3 M1
S3 M6
8 rows selected.
SQL> insert into sa values ('S1','M5');
1 row created.
SQL> insert into sa values ('S1','M6');
insert into sa values ('S1','M6')
ERROR at line 1:
ORA-20001: S1 on both M5 and M6!!
ORA-06512: at "SCOTT.SA_TRG", line 9
ORA-04088: error during execution of trigger 'SCOTT.SA_TRG'
The second problem I need to overcome is that none of the stuids can have moduleIds where total credit value of more than 120 credits. Credit value is stored in the mv table
SQL> create or replace trigger sa_trg
2 after insert or update on sa
3 declare
4 c number;
5 begin
6 select count(distinct moduleId) into c
7 from sa
8 where stuid = 'S1'
9 and moduleId in ('M5','M6');
10 if c > 1 then
11 raise_application_error(-20001,'S1 on both M5 and M6!!');
12 end if;
13
14 select count(*) into c from (
15 select stuid
16 from mv, sa
17 where sa.moduleid=mv.moduleid
18 group by stuid
19 having sum(credits)>120);
20
21 if c > 0 then
22 raise_application_error(-20002,'A student cannot have more than 120 credits!!');
23 end if;
24
25 end;
26 /
Trigger created.
SQL> select stuid, sum(credits)
2 from mv, sa
3 where sa.moduleid=mv.moduleid
4 group by stuid;
ST SUM(CREDITS)
S3 30
S2 80
S1 100
SQL> insert into sa
2 values ('S1','M4');
1 row created.
SQL> select stuid, sum(credits)
2 from mv, sa
3 where sa.moduleid=mv.moduleid
4 group by stuid;
ST SUM(CREDITS)
S3 30
S2 80
S1 120
SQL> insert into sa
2 values ('S1','M7');
insert into sa
ERROR at line 1:
ORA-20002: A student cannot have more than 120 credits!!
ORA-06512: at "SCOTT.SA_TRG", line 20
ORA-04088: error during execution of trigger 'SCOTT.SA_TRG'Max
http://oracleitalia.wordpress.com -
hi,
I've a htmlb tableview which gets the data from an internal table which is a data member of a model. I've two column fields in this view which are editable. What are the steps I need to follow in order to get the internal table updated with the values provided by the user in the editable fields of tableview.
could someone please provide me with the steps as to how to achieve this?
Thanks and Regards,
VamshiHi Vamshi,
Try this sample code,as it helps you considerably.
local types
types: itabtype type TABLE OF STD1.
types: begin of message_struct,
type type char10,
text type char100,
end of message_struct.
page attributes
addtab TYPE ITABTYPE
addtab_row TYPE STD1
add_flag TYPE FLAG
deltab TYPE ITABTYE
deltab_row TYPE STD1
ITAB TYPE ITABTYPE
iterator TYPE REF TO IF_HTMLB_TABLEVIEW_ITERATOR
message TYPE MESSAGE_STRUCT
STUDENT TYPE STRING
STATUS TYPE STRING
<b>layout</b>
<htmlb:content design="design2003" >
<htmlb:page title="test1" >
<htmlb:form>
<htmlb:tableView id = "tv1"
visibleRowCount = "20"
onRowSelection = "MyEventRowSelection"
selectionMode = "lineEdit"
table = "<%= ITAB %>"
iterator = "<%=iterator %>" />
<htmlb:button id = "save"
text = "Save Changes"
onClick = "myEvent" />
eventhandler OnCreate
this handler is called once the page is first created (stateful mode)
it performs a once-off data initialization or object creation
SELECT * FROM STD1
INTO CORRESPONDING FIELDS OF TABLE itab.
CREATE OBJECT iterator TYPE STD1ITERATOR.
eventhandler OnInputProcessing
event handler for checking and processing user input and
for defining navigation
DATA: ITAB_WA type Line of itabtype.
DATA: event TYPE REF TO cl_htmlb_event.
event = cl_htmlb_manager=>get_event( runtime->server->request ).
FIELD-SYMBOLS: <row> type STD1.
DATA: tv TYPE REF TO cl_htmlb_tableview.
tv ?= cl_htmlb_manager=>get_data(
request = runtime->server->request
name = 'tableView'
id = 'tv1' ).
IF tv IS NOT INITIAL.
DATA: tv_data TYPE REF TO cl_htmlb_event_tableview.
tv_data = tv->data.
IF tv_data->prevselectedrowindex IS NOT INITIAL.
FIELD-SYMBOLS: <row> type LINE OF ITABTYPE .
READ TABLE ITAB INDEX tv_data->prevselectedrowindex
ASSIGNING <row>.
DATA value TYPE string.
if <row> is assigned.
value = tv_data->get_cell_id( row_index =
tv_data->prevselectedrowindex
column_index = '1' ).
DATA: inputfield TYPE REF TO cl_htmlb_inputfield.
inputfield ?= cl_htmlb_manager=>get_data(
request = request
name = 'inputfield'
id = value ).
<row>-STUDENT = inputfield->value.
value = tv_data->get_cell_id( row_index =
tv_data->prevselectedrowindex
column_index = '2' ).
inputfield ?= cl_htmlb_manager=>get_data(
request = request
name = 'inputfield'
id = value ).
<row>-STATUS = inputfield->value.
ENDIF.
ENDIF.
WHEN 'add'.
tv ?= cl_htmlb_manager=>get_data(
request = runtime->server->request
name = 'tableView'
id = 'tv1' ).
IF tv IS NOT INITIAL.
tv_data = tv->data.
IF tv_data->prevselectedrowindex IS NOT INITIAL.
READ TABLE itab INDEX tv_data->prevselectedrowindex
ASSIGNING <row>.
endif.
endif.
WHEN 'add'.
add_flag = 'Y'.
WHEN 'add_save'.
ITAB_WA-STATUS = request->get_form_field( 'STUDENT' ).
ITAB_WA-STATUS = request->get_form_field( 'STATUS' ).
endcase. -
Table Maintanance Help Required
Hi All,
I am using two screens in my table maintanace. I am doing all my validations in screen2.After entering the data when i click on save button Ztable will update. this is working fine for single entry. When i am entering multiple entries for example both entries are duplicate then it is giving error message like duplicate entry after this displaying this message when i click on EXIT button unique record is showing in screen 1.
my two entries are
1. runrate maheed a01
2. runrate maheed a01
uniure record means single record i.e. runrate maheed a01 is showing on first screen. actually i dont want to display this entry in screen 1. is this possible if not please tell me any other alternate is exist.
Thanks,
Maheedahr.THi ,
Please check the primary key combination of the z table. it do not allow you to insert 2 records with same primary key fields value.
regards,
Tanmay -
Hi,
Right now I am working in table control.
I have an internal table that is getting displayed onto the table control,the internal table has the primary key MATNR in it.
When the user enters an identical MATNR in the second row the validation should throw a message that'Entry already exists' and the entry should get deleted.
The internal table is filled up from the database table using the WBS Element.Then before saving the new entry ,the database entry for the WBS element is deleted.
After updating the Internal table the internal table is inserted into the database table.
Can anyone let me know how to validate the new entry against the entries already existing in the internal table.
Hope i am able to make the problem clear to you.In the PAI Event write the code inside the CHAIN & ENDCHAIN.
PROCESS AFTER INPUT.
*pai flow logic for tablecontrol 'MPRN'
LOOP AT i_mprn.
CHAIN.
FIELD: i_mprn-select,
i_mprn-mprn,
i_mprn-post_code,
i_mprn-dm_ndm
MODULE validate_mprn.
ENDCHAIN.
MODULE tabctrl_modify.
ENDLOOP.
MODULE validate_mprn INPUT.
IF sy-ucomm EQ 'MPSB'.
PERFORM validate_mprn.
ENDIF.
ENDMODULE. " validate_mprn INPUT -
WebCam Live! Pro - Help required
Can't even manage to get this piece of kit installed! When I go through the installation process on the cd, as soon as it says plug in WebCam the Windows "Found New Hardware" box comes up. In the manual it says that when this happens remove the WebCam and press cancel. Pressing cancel then stops everything.
Am I missing something really obvious hear? It makes it sound really simple in the manual but it simply doesn't work that way.
Any help or guidance would be very much appreciated...
Thanks,
joulesjoules
i've just re read your problem......
dont plug your webcam in unitl the prompt. then you will get the " found new hardware wizard".....
to install the hardware you the click on " install the software automatically(recommended) and then click next....
if a hardware installation box comes up click continue anyway
after that i followed the instructions. an icon was set up on my desk top and i went straight into capture !
once you get it working , tell me how the mic works on IM for you and what settings you used.
im using windows xp(sp2)
good luck -
Help required in creation of Dictionary table dynamically
Hello All,
I have created DDIC table created dynamically.
But what i require is! the dictionary table which i have created should be under the package name as given by the customer.
I have seen in FM DDIF_TABL_PUT the parameter dd02v-APPLCLASS is the write parameter to create the table under the required package. This field is of length char 4 only.
Normally the package name will be greater than char4 and also it happend in my case that the package name is more than char4.
Now i am unable to create the table dynamically under the specified pacakage of the customer
How can i solve this problem?
Can any one help me in this issue?
Regards,
GuptaHi Lakshman,
Thank you for your reply,
I have used the FM which you have mentioned but i didn't work. I mean when i see the attributes of the table, package is still empty.
Can you help me to solve the problem.
CALL FUNCTION 'TR_TADIR_INTERFACE'
EXPORTING
* WI_DELETE_TADIR_ENTRY = ' '
* WI_REMOVE_REPAIR_FLAG = ' '
* WI_SET_REPAIR_FLAG = ' '
* WI_TEST_MODUS = 'X'
wi_tadir_pgmid = 'R3TR'
wi_tadir_object = 'TABL'
wi_tadir_obj_name = lv_objname
* WI_TADIR_KORRNUM = ' '
* WI_TADIR_SRCSYSTEM = ' '
* WI_TADIR_AUTHOR = ' '
wi_tadir_devclass = 'ZV/HF/PLANNING'
* WI_TADIR_MASTERLANG = ' '
* WI_TADIR_CPROJECT = ' '
* WI_TADIR_VERSID = ' '
* WI_REMOVE_GENFLAG = ' '
* WI_SET_GENFLAG = ' '
* WI_READ_ONLY = ' '
* IV_SET_EDTFLAG = ' '
* IMPORTING
* NEW_GTADIR_ENTRY =
* NEW_TADIR_ENTRY =
EXCEPTIONS
tadir_entry_not_existing = 1
tadir_entry_ill_type = 2
no_systemname = 3
no_systemtype = 4
original_system_conflict = 5
object_reserved_for_devclass = 6
object_exists_global = 7
object_exists_local = 8
object_is_distributed = 9
obj_specification_not_unique = 10
no_authorization_to_delete = 11
devclass_not_existing = 12
simultanious_set_remove_repair = 13
order_missing = 14
no_modification_of_head_syst = 15
pgmid_object_not_allowed = 16
masterlanguage_not_specified = 17
devclass_not_specified = 18
specify_owner_unique = 19
loc_priv_objs_no_repair = 20
gtadir_not_reached = 21
object_locked_for_order = 22
change_of_class_not_allowed = 23
no_change_from_sap_to_tmp = 24
OTHERS = 25
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Regards,
Lisa
Edited by: Lisa Roy on Apr 9, 2008 11:37 AM -
Help required on table maintenance generator
Hi all,
Would any one tell me what is the difference between one step and two step while creating a table maintenace generator for a table.
one more question is i would like to know which search the following code follows while it is executed.
select single vbeln
from vbak into l_vbeln
where vbeln in s_vbeln.
and
select vbeln
from vbak
into l_vbeln
up to 1 rows
where vbeln in s_vbeln.
please do reply soon for the questions.Hi
table maintanance Generator is used to manually
input values using transaction sm30
follow below steps
1) go to se11 check table maintanance check box under
attributes tab
2) utilities-table maintanance Generator->
create function group and assign it under
function group input box.
also assign authorization group default &NC& .
3)
select standard recording routine radio in table
table mainitainence generator to move table
contents to quality and production by assigning
it to request.
4) select maintaience type as single step.
5) maintainence screen as system generated numbers
this dialog box appears when you click on create
button
6) save and activate table
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed2d446011d189700000e8322d00/content.htm
http://help.sap.com/saphelp_46c/helpdata/en/a7/5133ac407a11d1893b0000e8323c4f/frameset.htm
/message/2831202#2831202 [original link is broken]
One step, two step in Table Maintenance Generator
Single step: Only overview screen is created i.e. the Table Maintenance Program will have only one screen where you can add, delete or edit records.
Two step: Two screens namely the overview screen and Single screen are created. The user can see the key fields in the first screen and can further go on to edit further details.
Difference Between Select Single and Select UpTo One Rows
According to SAP Performance course the SELECT UP TO 1 ROWS is faster than SELECT SINGLE because you are not using all the primary key fields.
select single is a construct designed to read database records with primary key. In the absence of the primary key, it might end up doing a sequential search, whereas the select up to 1 rows may assume that there is no primary key supplied and will try to find most suitable index.
The best way to find out is through sql trace or runtime analysis.
Use "select up to 1 rows" only if you are sure that all the records returned will have the same value for the field(s) you are interested in. If not, you will be reading only the first record which matches the criteria, but may be the second or the third record has the value you are looking for.
The System test result showed that the variant Single * takes less time than Up to 1 rows as there is an additional level for COUNT STOP KEY for SELECT ENDSELECT UP TO 1 ROWS.
The 'SELECT SINGLE' statement selects the first row in the database that it finds that fulfils the 'WHERE' clause If this results in multiple records then only the first one will be returned and therefore may not be unique.
Mainly: to read data from
The 'SELECT .... UP TO 1 ROWS' statement is subtly different. The database selects all of the relevant records that are defined by the WHERE clause, applies any aggregate, ordering or grouping functions to them and then returns the first record of the result set.
Mainly: to check if entries exist.
Reward points for useful Answers
Regards
Anji -
HP Live Photo FAQ, Help, and Support
HP LIVE PHOTO
HP Live Photo app - available on iOS and Android devices
Make your photos come to life with HP Live Photo! HP Live Photo is a free, fun, and easy app for iOS and Android that lets you share your experiences with friends and family by creating photos that launch short personal videos on a smartphone or tablet.
Share your Live Photos with friends and family by printing, ordering prints from Snapfish (US only), and via Facebook or email.
For more information on HP Live Photo you can:
1. Watch this short video
2. visit the HP Live Photo app page.
To install the app:
iOS: App Store link Look in the Apple App Store for HP Live Photo. Available in English only at this time. Supports iOS 6.0 and above.
The app is designed for the iPhone, and can be run on the iPad2 and above and iPad Mini in 2X mode, and on the iPod Touch 5th generation. If you want to install the app on your iPad2 or above, do not filter for apps that are designed for the iPad in the app store.
Android: Google Play Store link. Available in English only at this time. Supported at this time only on the following devices:
HTC One
HTC OneX
Nexus 4
Samsung Galaxy S2
Samsung Galaxy S3
Samsung Galazy S3 Mini
Samsung Galaxy S4
Samsung Galazy S4 Mini
Samsung Galaxy Nexus
Samsung Galaxy NoteII
Sony Experia Z
You'll find the following Help and Support information below:
FAQ - Frequently Asked Questions
Help Printing Live Photos
Troubleshooting Help for Creating, Sharing, and Viewing Live Photos
How to get more Support
FAQ
Can I see an example of what the app does?
Yes. Watch this short video, and the HP Live Photo also app includes a video and an example Live Photo you can print and view from the Live Photo app. Go to Settings and scroll down to the Tools section and select “Print a Sample” to print the sample Live Photo and then view it with the app.
If I have a question about my Snapfish Live Photo order, who should I talk to? (US only)
When you place a Snapfish order from the Live Photo app, you will receive an order confirmation from Snapfish to your email address. Review that email to confirm your order and contact Snapfish if your order appears to be late or does not arrive, or you have questions about the quantities you receive after your order arrives. Check your spam folder if you don't see the Snapfish order confirmation email in your inbox. If you need assistance from Snapfish and cannot find your confirmation email, here is the US Snapfish Help and Support page.
What iOS devices support Live Photo?
The iPhone, iPad2 and later, and iPad Mini, and iPod Touch 5th generation on iOS 6.0 and above. The app runs in 2X mode on iPad devices. Currently, HP Live Photo is supported in the US in English only.
Do I need an iOS or Android device to both create and view Live Photos?
Yes. Currently Live Photos may only be created and viewed on iOS or Android devices at this time.
Can I use any video in Live Photo?
You may use any video recorded on your mobile device using the video function, up to 45 seconds in length. If the video is longer than 45s, the HP Live Photo app will allow you to select a 45 second or less segment from the video.
Where are the Live Photo videos saved when I create a Live Photo?
The videos for your Live Photos are saved over the internet to the cloud. The original video on your device is not affected or modified in any way. HP Live Photo is not a video backup solution, so be sure to save images and videos using your own storage solutions. The live photo videos are not saved to your Facebook account.
When I share a Live Photo via email or Facebook is the video included in the email or post?
No. Only the Live Photo is included in the email or Facebook post. The video is only accessed from the cloud when the HP Live Photo app is used to scan a Live Photo.
If I print a Live Photo to give to family/friends, how will the recipient know how to view it?
The HP Live Photo app allows you to choose between printing just the Live Photo itself, or printing the Live Photo and a set of simple instructions for your recipient on 4x6 or 5x7 photo paper. The instructions explain how to install the HP Live Photo app and view the Live Photo.
Can I share my Live Photos with anyone?
Yes. You can share with any friends/family using a live photo nametag. Even easier, if you log into Facebook from the Live Photo app your Facebook friends are automatically enabled to view any live photos you share with them without having to enter your Live Photo nametag.
What is a Live Photo Nametag?
A Live Photo nametag allows you to share live photos with friends and family who are not a Facebook friend. The Live Photo app will prompt you to create your own custom nametag. This nametag allows Live Photo users who are not your Facebook friends to view your live photos.
Your nametag is printed on the bottom right corner of all your live photos. When you share your live photo with someone who is not a Facebook friend, they can simply enter your nametag in the nametag field on the View screen of the Live Photo app, and then view any of your live photos you share with them. This is a one-time operation - once your friend or family member enters your live photo nametag they will be able to view any of your live photos. Anyone who is a Facebook friends can view your live photos w/out having to enter your nametag.
How do I print a Live Photo from an iOS device?
You can print Live Photos from the Live Photo app on your iOS device in the same way you print other photos on iOS, using the built-in iOS Airprint feature. Airprint supports a range of printers from HP and other companies. If you need help with Airprint, follow the steps in “How do I send a print job using Apple AirPrint?” section in these instructions.
How do I print a Live Photo from an Android device?
Printing from Android devices is supported via the HP ePrint app, and is currently only enabled for HP printers. (See the next section for printing to non-HP printers or printers not supported by the HP ePrint app.) The ePrint app must be installed separately from the Live Photo app, and supports all web-connected HP printers released in the past several years and many legacy HP printers. If the HP ePrint app is not installed on your Android device you will be prompted to install it when you select the Print option in the Live Photo app. For more information see the HP ePrint app in the Google Play store.
Note on HP ePrint app Activation: After the HP ePrint app completes installing you will be prompted by the HP ePrint app to Activate it. You do not have to complete the “Activation” step in the HP ePrint app to print to your local wi-fi connected HP printers. HP ePrint app Activation is only required if you wish to print to HP web-connected printers on your HP Connected or HP ePrintCenter account, over an internet connection.
Once the HP ePrint app is installed, when you select Print from the Live Photo app the HP ePrint app will be automatically launched w/the live photo displayed and ready to print. All you have to do is select an HP printer on your wi-fi network, ensure you have photo paper inserted, and hit print.
Can I print from my Android device to non-HP printers and HP printers that the ePrint app does not support?
Yes. There are some third-party printing apps available for Android devices in the Google Play store (one example is Printershare). If your HP printer is not supported by the HP ePrint app, or if your HP printer compatible is not compatible with the HP ePrint app, you may be able to use a third-party print app to print your HP live photos.
Send the photo to yourself via the Share via email option from Live Photo. Then open the email on your phone and tap on the photo when it displays after downloading. Select the Android Menu option and choose Share. Your print app should appear on the Share list. Select the print app and complete your print as you normally do using that app.
Can I print Live Photos from my computer?
Yes. Simply share your photo via email from the Live Photo app to your own email address and then open the email and print the live photo as you normally do from your computer. You can print live photos from your computer to any printer you have attached to it that supports photo printing.
Can I print Live Photos on plain paper?
Always print Live Photos on photo paper to provide the necessary color, saturation, and depth for the best Live Photo experience. You may have success printing on plain paper, but results will be much less predictable.
Do I need a Facebook account to use HP Live Photo?
Viewing: No. A Facebook account is not required to view live photos using the Live Photo app.
Creating: No. A Facebook account is not required to create Live Photos. You can create and share them using your Live Photo Nametag. However: If you create live photos without logging into Facebook, we cannot make your live photos available to you in the Live Photo app on other devices. Any live photos you create on a device using just a Live Photo nametag will be added to your Live Photo gallery and available on other devices if you sign into the app using Facebook.
Do I need an internet connection to use this app?
Yes, HP Live photo requires an internet connection for launch/use.
I played the introduction video in the app but why is there no sound – what’s wrong?
Make sure that you have sound enabled on your iOS device...if you are set to virbrate mode you will not hear audio with the video.
How can I provide feedback on Live Photo features that I’d like added or changed?
In the HP Live Photo app, select Settings and scroll down to the Send Feedback option. We would love to hear from you! Note that this option is for feedback and is not monitored for support questions. For support questions see the
Printing Live Photos, Troubleshooting, and Support sections below.
I am having an issue with the HP Live Photo app – where can I get help?
See the Printing Live Photos and Troubleshooting sections below. If you can’t find what you need and would like to contact HP Live Photo support, see the Support section below.
PRINTING LIVE PHOTOS
Always print Live Photos on photo paper to provide the necessary color, saturation, and depth for the best Live Photo experience.
You can print from your iOS device on 4x6 or 5x7 photo paper using Airprint if you have an Airprint compatible printer.
You can print from your Android device on 4x6 or 5x7 photo paper via the HP ePrint app if you have an HP wireless/Ethernet connected printer.
Printing Live Photos shared via email on an iPhone/iPad using Airprint:
Long-press on the image in the email and select “Save Image” from the pop-up list of options and select the Save option.
Go to your Camera Roll and open the image.
Ensure you have 4x6 or 5x7 photo paper in your printer’s photo paper tray, or main tray if you do not have a separate photo paper tray, select the Action icon and choose the Print option.
If you need help with Airprint, follow the steps in “How do I send a print job using Apple AirPrint?” section in these instructions
More information on Airprint:
- HP Airprint support forum discussion thread: Click here.
- All Airprint enabled printers: http://support.apple.com/kb/HT4356
Printing Live Photos shared via email on an Android device (requires HP printer):
Tap on the image in the email to open the image.
While viewing the image, select Menu>Share
Select the HP ePrint app as the share target, or another print app that you prefer to use if you have one installed. If you select another print app, complete the print as you normally do.
If you select the HP ePrint app it will open displaying the image – select Print in the HP ePrint app to print the image. Ensure you have 4x6 or 5x7 photo paper in your printer’s photo paper tray, or main tray if you do not have a separate photo paper tray, and select either 4x6 or 5x7 print size in the HP ePrint app settings.
More information on the HP ePrint mobile app.
HP ePrint mobile app FAQs: http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&dlc=en&docname=c01923321
Printing Live Photos shared via email on PC and Mac:
You can also use the Email option to send a Live Photo to yourself, open the email on your computer and save and print the photo as you normally print photos on your computer.
On a PC, right-click on the photo in the email and select the Save option.
On a Mac, see this information.
If you need additional help printing photos from your PC, Click here.
Printing Live Photos shared via Facebook:
It’s usually easiest to save the photo from Facebook and then print it on your computer or device.
Computer: Select the photo and select “Options>Download” to save the photo to your computer.
Mobile: Long-press on the photo and select “Save Photo” to save the photo to your device.
After saving the Live Photo print it as you normally print on your computer or device.
Printing Photos Directly from Facebook on Your Computer:
You may also want to try the HP Facebook Photo and Album printing option to print live photos from Facebook shares.
However, it may be simpler to save and print the photo from your computer or device using a process that you are more familiar with.
https://apps.facebook.com/hpprint/
TROUBLESHOOTING
Create:
Can I change the images that the app pulled from the video for the Live Photo?
It is not possible to directly select a specific frame of the video to print as the Live Photo. You can try the refresh button in the upper-right corner of the “Choose Image” screen to re-scan your video.
What can I do if the HP Live Photo app is unable to find an image in my video for the Live Photo?
The most likely reason for not finding an appropriate image to print for the Live Photo is that the content of the video does not provide enough contrast. For example, a video of a white dog walking on the sidewalk, or black dog walking on asphalt. The best way to try to resolve this issue is to shoot the video with more lighting to increase the contrast. You can also try to include a few “still shots” in the video where camera and subject movement is minimized.
What if I don’t want to share the entire video?
After you select your video, you can use standard iOS video trim functions within the HP Live Photo app to choose your desired begin and end points.
What if my video is longer than 45 seconds?
The HP Live Photo app will display the video trim controls automatically with a 45 second segment selected so you can choose what portion of the video to include.
Can I use a video from another source?
HP Live Photo currently only supports videos created on your iOS device.
It’s taking a very long time to save my Live Photo project. What can I do to speed it up?
Saving the project requires uploading both the video clip and the photo, and completing several tasks in the cloud to link the Live Photo to the video. Depending on the length of your video and the speed of your internet upload connection (which can vary significantly over time), this can take several minutes.
If you are on Wi-Fi and the save is taking more than five minutes or not completing, try changing to 3G or 4G, which usually have faster upload speeds than home or public Wi-Fi connections. (Data charges may apply.) You can also try using a shorter video clip. (If you are interested, you can use services like www.speedtest.net to test your Wi-Fi and 3G/4G upload speeds.)
How do I view or share Live Photos I’ve already created?
Select the Live Photos option (icon looks like a small stack of photos) in the Live Photo app to view the Live Photos you have created. Select one of them to view the photo and choose a print or share option.
How do I delete a Live Photo from my list of saved Live Photos?
iOS: Go to the Live Photo tab and slide your finger left-to-right on the Live Photo you want to delete. A “Delete” button will appear – select it to delete the photo.
Android: Select the Live Photo icon (at the top of the Live Photo app, looks like a stack of photos) to view your live photos. Long press on a live photo a context menu will appear with Delete and Share options. Select the Delete option.
Share
I’m having problems printing a Live Photo that was shared to me.
See the Printing Live Photos section above for general information and assistance with printing HP Live Photos.
Can I use the app to view a Live Photo on my computer screen?
Yes. If you share the Live Photo via email or Facebook, recipients can use the HP Live Photo app to view the Live Photo on screen and see the video. Results can be affected by the monitor display resolution and type, as well as ambient lighting.
My friend doesn’t have an iOS or Android device. Can I share my Live Photo with her?
At this time an iOS or Android device is required to view the videos associated with your Live Photos.
I just need the viewing instruction sheet – how can I print that?
Go into app Settings and scroll down and select the “Print Instructions” option. If you prefer not to print the instructions on 4x6 or 5x7 media, remove photo media from the photo tray before you send the print.
View:
I have a Live Photo that does not play when I view it through the HP Live Photo app. What’s wrong?
Below are some reasons why this could occur:
The photo is not an HP Live Photo. Look for the small blue icon of a bird in the lower-right corner of the photo to confirm it is a Live Photo.
The person who created the Live Photo must be either one of your Facebook friends, or you must connect to them by entering their nametag (printed on the bottom-right of the live photo) in the View screen in the Live Photo app.
The Live Photo needs to be printed on photo paper for best results.
Ensure sufficient light is available for viewing, and minimize any glare or shadows on the photo.
The creator of the Live Photo may have deleted the Live Photo project from their app. Contact them to confirm it is still available.
An internet connection that is too slow/unstable.
Can I view Live Photos with other augmented reality apps?
No. HP Live Photo requires the HP Live Photo app to view the images and display the video.
SUPPORT
If you are unable to find an answer to your question in the FAQ, Printing Live Photos, and Troubleshooting sections above, you can get support via email for the HP Live Photo application at the following email address:
[email protected]
To ensure a quick resolution of your support question, please provide:
A clear subject line - e.g., “Live Photo – printing problem”
A complete description of your problem – what you are trying to do and what is going wrong.
What iOS mobile device you are using
Your printer make/model
Note that we do not have the necessary information to provide support for photo printing on non-HP printers.
I am an HP employee.Connybelle wrote:
My HP Photosmart 5514 is set up on wireless. It will not let me print a picture from my computer. No matter what I do, it tells me to insert a memory card. I want to print what is in my pictures on the computer. Any ideas?
If you're trying to print from your computer to your printer via wireless, you have a basic printing question...You can get help for those types of questions in this forum:
http://h30434.www3.hp.com/t5/Printing-Issues-Troubleshooting/bd-p/PostPrint
I am an HP employee. -
I have a master table and i need to import the rows into the parent and child table.
Master table name is Flatfile_Inventory
Parent Table name is INVENTORY
Child Tables name are INVENTORY_AMOUNT,INVENTORY_DETAILS,INVENTORY_VEHICLE,
Error details will be goes to LOG_INVENTORY_ERROR
I have 4 duplicate rows in the Flatfile_Inventory which i have already inserted in the Parent and child table.
Again when i run the query using stored procedure,
its tells that all the 4 rows are duplicate and will move to the Log_Inventory_Error.
I need is if i have the duplicate rows in the flatfile_Inventory when i start inserting into the parent and child table the already inserted row have the unique ID i
must identify it and delete that row in the both parent and chlid table.And latest row must get inserted into the Parent and child table from Flatfile_Inventory.
Please help me to write the query i have attached the Full stored procedure Script..
Arunraj KumarHi Santhosh,
This is my Script.
-- =============================================
-- Stored Procedure for FLATFILE_INVENTORY
-- =============================================
-- Drop stored procedure if it already exists
DROP PROCEDURE SP_Flatfile_Inventory
GO
CREATE PROCEDURE SP_Flatfile_Inventory
AS
--USE IconicMarketing
GO
DECLARE
@FileType varchar(50) ,
@ACDealerID varchar(50) ,
@ClientDealerID varchar(50) ,
@DMSType varchar(50) ,
@StockNumber varchar(50) ,
@InventoryDate datetime ,
@StockType varchar(100) ,
@DMSStatus varchar(50) ,
@InvoicePrice numeric(18, 2) ,
@CostPack varchar(50) ,
@SalesCost numeric(18, 2) ,
@HoldbackAmount numeric(18, 2) ,
@ListPrice numeric(18, 2) ,
@MSRP varchar(max) ,
@LotLocation varchar(50) ,
@TagLine varchar(max) ,
@Certification varchar(max) ,
@CertificationNumber varchar(max) ,
@VehicleVIN varchar(50) ,
@VehicleYear bigint ,
@VehicleMake varchar(50) ,
@VehicleModel varchar(50) ,
@VehicleModelCode varchar(50) ,
@VehicleTrim varchar(50) ,
@VehicleSubTrimLevel varchar(max) ,
@Classification varchar(max) ,
@TypeCode varchar(100) ,
@VehicleMileage bigint ,
@EngineCylinderCount bigint ,
@TransmissionType varchar(50) ,
@VehicleExteriorColor varchar(50) ,
@VehicleInteriorColor varchar(50) ,
@CreatedDate datetime ,
@LastModifiedDate datetime ,
@ModifiedFlag varchar(max) ,
@InteriorColorCode varchar(50) ,
@ExteriorColorCode varchar(50) ,
@PackageCode varchar(50) ,
@CodedCost varchar(50) ,
@Air varchar(100) ,
@OrderType varchar(max) ,
@AgeDays bigint ,
@OutstandingRO varchar(50) ,
@DlrAccessoryRetail varchar(50) ,
@DlrAccessoryCost varchar(max) ,
@DlrAccessoryDesc varchar(max) ,
@ModelDesc varchar(50) ,
@Memo1 varchar(1000) ,
@Memo2 varchar(max) ,
@Weight varchar(max) ,
@FloorPlan numeric(18, 2) ,
@Purchaser varchar(max) ,
@PurchasedFrom varchar(max) ,
@InternetPrice varchar(50) ,
@InventoryAcctDollar numeric(18, 2) ,
@VehicleType varchar(50) ,
@DealerAccessoryCode varchar(50) ,
@AllInventoryAcctDollar numeric(18, 2) ,
@BestPrice varchar(50) ,
@InStock bigint ,
@AccountingMake varchar(50) ,
@GasDiesel varchar(max) ,
@BookValue varchar(10) ,
@FactoryAccessoryDescription varchar(max) ,
@TotalReturn varchar(10) ,
@TotalCost varchar(10) ,
@SS varchar(max) ,
@VehicleBody varchar(max) ,
@StandardEquipment varchar(max) ,
@Account varchar(max) ,
@CalculatedPrice varchar(10) ,
@OriginalCost varchar(10) ,
@AccessoryCore varchar(10) ,
@OtherDollar varchar(10) ,
@PrimaryBookValue varchar(10) ,
@AmountDue varchar(10) ,
@LicenseFee varchar(10) ,
@ICompany varchar(max) ,
@InvenAcct varchar(max) ,
@Field23 varchar(max) ,
@Field24 varchar(max) ,
@SalesCode varchar(max) ,
@BaseRetail varchar(10) ,
@BaseInvAmt varchar(10) ,
@CommPrice varchar(10) ,
@Price1 varchar(10) ,
@Price2 varchar(10) ,
@StickerPrice varchar(10) ,
@TotInvAmt varchar(10) ,
@OptRetail varchar(max) ,
@OptInvAmt varchar(10) ,
@OptCost varchar(10) ,
@Options varchar(max) ,
@Category varchar(max) ,
@Description varchar(max) ,
@Engine varchar(max) ,
@ModelType varchar(max) ,
@FTCode varchar(max) ,
@Wholesale varchar(max) ,
@Retail varchar(max) ,
@Draft varchar(max) ,
@Inventoryid int;
DECLARE Inventory_Cursor CURSOR FOR
SELECT * from [dbo].[FLATFILE_INVENTORY];
OPEN Inventory_Cursor
FETCH NEXT FROM Inventory_Cursor
INTO @FileType ,
@ACDealerID ,
@ClientDealerID ,
@DMSType ,
@StockNumber ,
@InventoryDate ,
@StockType ,
@DMSStatus ,
@InvoicePrice ,
@CostPack ,
@SalesCost ,
@HoldbackAmount ,
@ListPrice ,
@MSRP ,
@LotLocation ,
@TagLine ,
@Certification ,
@CertificationNumber ,
@VehicleVIN ,
@VehicleYear ,
@VehicleMake ,
@VehicleModel ,
@VehicleModelCode ,
@VehicleTrim ,
@VehicleSubTrimLevel ,
@Classification ,
@TypeCode ,
@VehicleMileage ,
@EngineCylinderCount ,
@TransmissionType ,
@VehicleExteriorColor ,
@VehicleInteriorColor ,
@CreatedDate ,
@LastModifiedDate ,
@ModifiedFlag ,
@InteriorColorCode ,
@ExteriorColorCode ,
@PackageCode ,
@CodedCost ,
@Air ,
@OrderType ,
@AgeDays ,
@OutstandingRO ,
@DlrAccessoryRetail ,
@DlrAccessoryCost ,
@DlrAccessoryDesc ,
@ModelDesc ,
@Memo1 ,
@Memo2 ,
@Weight ,
@FloorPlan ,
@Purchaser ,
@PurchasedFrom ,
@InternetPrice ,
@InventoryAcctDollar ,
@VehicleType ,
@DealerAccessoryCode ,
@AllInventoryAcctDollar ,
@BestPrice ,
@InStock ,
@AccountingMake ,
@GasDiesel ,
@BookValue ,
@FactoryAccessoryDescription ,
@TotalReturn ,
@TotalCost ,
@SS ,
@VehicleBody ,
@StandardEquipment ,
@Account ,
@CalculatedPrice ,
@OriginalCost ,
@AccessoryCore ,
@OtherDollar ,
@PrimaryBookValue ,
@AmountDue ,
@LicenseFee ,
@ICompany ,
@InvenAcct ,
@Field23 ,
@Field24 ,
@SalesCode ,
@BaseRetail ,
@BaseInvAmt ,
@CommPrice ,
@Price1 ,
@Price2 ,
@StickerPrice ,
@TotInvAmt ,
@OptRetail ,
@OptInvAmt ,
@OptCost ,
@Options ,
@Category ,
@Description ,
@Engine ,
@ModelType ,
@FTCode ,
@Wholesale ,
@Retail ,
@Draft ;
WHILE @@FETCH_STATUS = 0
BEGIN
PRINT @VehicleVIN ;
-- ****************** insert into Inventory Table ***********
INSERT INTO INVENTORY
IconicDealerID,
StockNumber,
DMSType,
InventoryDate
VALUES (@ClientDealerID,@StockNumber,@DMSType,@InventoryDate);
set @Inventoryid = scope_identity();
PRINT @Inventoryid;
--Insert into Inventory_Details Table
INSERT INTO [INVENTORY_DETAILS]
InventoryID,
StockType,
DMSStatus,
LotLocation,
TagLine,
Certification,
CertificationNumber,
CreatedDate,
LastModifiedDate,
ModifiedFlag,
PackageCode,
OrderType,
AgeDays,
OutstandingRO,
Memo1,
Memo2,
Purchaser,
PurchasedFrom,
DealerAccessoryCode,
InStock,
AccountingMake,
SS,
Account,
AccessoryCore,
ICompany,
InvenAcct,
Field23,
Field24,
SalesCode,
Draft,
FTCode
VALUES (
@InventoryID,
@StockType,
@DMSStatus,
@LotLocation,
@TagLine,
@Certification,
@CertificationNumber,
@CreatedDate,
@LastModifiedDate,
@ModifiedFlag,
@PackageCode,
@OrderType,
@AgeDays,
@OutstandingRO,
@Memo1,
@Memo2,
@Purchaser,
@PurchasedFrom,
@DealerAccessoryCode,
@InStock,
@AccountingMake,
@SS,
@Account,
@AccessoryCore,
@ICompany,
@InvenAcct,
@Field23,
@Field24,
@SalesCode,
@Draft,
@FTCode
--Insert into Inventory_Amount Table
INSERT INTO [dbo].[INVENTORY_AMOUNT]
InventoryID,
AllInventoryAcctDollar,
OtherDollar,
PrimaryBookValue,
AmountDue,
LicenseFee,
CalculatedPrice,
OriginalCost,
BookValue,
TotalReturn,
TotalCost,
DlrAccessoryRetail,
DlrAccessoryCost,
DlrAccessoryDesc,
InternetPrice,
InventoryAcctDollar,
BestPrice,
Weight,
FloorPlan,
CodedCost,
InvoicePrice,
CostPack,
SalesCost,
HoldbackAmount,
ListPrice,
MSRP,
BaseRetail,
BaseInvAmt,
CommPrice,
Price1,
Price2,
StickerPrice,
TotInvAmt,
OptRetail,
OptInvAmt,
OptCost,
Wholesale,
Retail
VALUES (
@InventoryID,
@AllInventoryAcctDollar,
@OtherDollar,
@PrimaryBookValue,
@AmountDue,
@LicenseFee,
@CalculatedPrice,
@OriginalCost,
@BookValue,
@TotalReturn,
@TotalCost,
@DlrAccessoryRetail,
@DlrAccessoryCost,
@DlrAccessoryDesc,
@InternetPrice,
@InventoryAcctDollar,
@BestPrice,
@Weight,
@FloorPlan,
@CodedCost,
@InvoicePrice,
@CostPack,
@SalesCost,
@HoldbackAmount,
@ListPrice,
@MSRP,
@BaseRetail,
@BaseInvAmt,
@CommPrice,
@Price1,
@Price2,
@StickerPrice,
@TotInvAmt,
@OptRetail,
@OptInvAmt,
@OptCost,
@Wholesale,
@Retail
--Insert into Inventory_Vehicle Table
INSERT INTO [dbo].[INVENTORY_VEHICLE]
InventoryID,
InteriorColorCode,
ExteriorColorCode,
Air,
ModelDesc,
VehicleType,
VehicleVIN,
VehicleYear,
VehicleMake,
VehicleModel,
VehicleModelCode,
VehicleTrim,
VehicleSubTrimLevel,
Classification,
TypeCode,
VehicleMileage
VALUES (
@InventoryID,
@InteriorColorCode,
@ExteriorColorCode,
@Air,
@ModelDesc,
@VehicleType,
@VehicleVIN,
@VehicleYear,
@VehicleMake,
@VehicleModel,
@VehicleModelCode,
@VehicleTrim,
@VehicleSubTrimLevel,
@Classification,
@TypeCode,
@VehicleMileage
-- Move cursor to Next record
FETCH NEXT FROM Inventory_Cursor
INTO @FileType ,
@ACDealerID ,
@ClientDealerID ,
@DMSType ,
@StockNumber ,
@InventoryDate ,
@StockType ,
@DMSStatus ,
@InvoicePrice ,
@CostPack ,
@SalesCost ,
@HoldbackAmount ,
@ListPrice ,
@MSRP ,
@LotLocation ,
@TagLine ,
@Certification ,
@CertificationNumber ,
@VehicleVIN ,
@VehicleYear ,
@VehicleMake ,
@VehicleModel ,
@VehicleModelCode ,
@VehicleTrim ,
@VehicleSubTrimLevel ,
@Classification ,
@TypeCode ,
@VehicleMileage ,
@EngineCylinderCount ,
@TransmissionType ,
@VehicleExteriorColor ,
@VehicleInteriorColor ,
@CreatedDate ,
@LastModifiedDate ,
@ModifiedFlag ,
@InteriorColorCode ,
@ExteriorColorCode ,
@PackageCode ,
@CodedCost ,
@Air ,
@OrderType ,
@AgeDays ,
@OutstandingRO ,
@DlrAccessoryRetail ,
@DlrAccessoryCost ,
@DlrAccessoryDesc ,
@ModelDesc ,
@Memo1 ,
@Memo2 ,
@Weight ,
@FloorPlan ,
@Purchaser ,
@PurchasedFrom ,
@InternetPrice ,
@InventoryAcctDollar ,
@VehicleType ,
@DealerAccessoryCode ,
@AllInventoryAcctDollar ,
@BestPrice ,
@InStock ,
@AccountingMake ,
@GasDiesel ,
@BookValue ,
@FactoryAccessoryDescription ,
@TotalReturn ,
@TotalCost ,
@SS ,
@VehicleBody ,
@StandardEquipment ,
@Account ,
@CalculatedPrice ,
@OriginalCost ,
@AccessoryCore ,
@OtherDollar ,
@PrimaryBookValue ,
@AmountDue ,
@LicenseFee ,
@ICompany ,
@InvenAcct ,
@Field23 ,
@Field24 ,
@SalesCode ,
@BaseRetail ,
@BaseInvAmt ,
@CommPrice ,
@Price1 ,
@Price2 ,
@StickerPrice ,
@TotInvAmt ,
@OptRetail ,
@OptInvAmt ,
@OptCost ,
@Options ,
@Category ,
@Description ,
@Engine ,
@ModelType ,
@FTCode ,
@Wholesale ,
@Retail ,
@Draft ;
END
CLOSE Inventory_Cursor;
DEALLOCATE Inventory_Cursor;
GO
SET ANSI_PADDING OFF
GO
Arunraj Kumar -
Create tables insert something inside and then connect my application to db
thank you to be patient with me. ok since the beginning I think I have learned a lot with the people responses. so my database is mounted now. I used the cmd.exe command line. i have create an instance, a service, and the database. Now, I need to do two things:create tables inside of my database and insert something inside but I only have the sql script (I will add it at the end of the thread).it is just a part of my huge script.. but this cript can not be open with the command line. So I want to know if you could help me change some stuff inside in the aim to run this script with the command line.that's the first point
secondly, I have an application named lifetrack. i want to connect this application with my database. so how can I change my settings file to be able to do that?(I will add the settings file I have at the end.It is the one I use for sql server). thanks a lot.I'm a french student so I try my best to answer you in a good english. and believe me if I have the exact way to create table,insert something inside like indicate in the part of my script and connect an application to the database you will never see my thread again. thank you
1) sql script to create tables
CREATE TABLE [admin_table] (
[Can_highlight] [float] NULL ,
[User_name] [nvarchar] (30) COLLATE Latin1_General_CI_AS NULL ,
[User_passwd] [nvarchar] (10) COLLATE Latin1_General_CI_AS NULL ,
[User_group] [nvarchar] (30) COLLATE Latin1_General_CI_AS NULL ,
[Can_consolidate] [smallint] NULL ,
[Can_edit_autorpt] [smallint] NULL ,
[Can_edit_disturbance] [smallint] NULL
) ON [PRIMARY]
GO
INSERT INTO [admin_table] ([Can_highlight],[User_name],[User_passwd],[User_group],[Can_consolidate],[Can_edit_autorpt],[Can_edit_disturbance])
VALUES (1.0,'A Andrews','A','both',0,0,1)
GO
2) sql server settings file
' NOTES:
' ======
' The parameters in this file are used to specify the following configuration features for the system
' 1. the plant profile
' 2. the default database as well as the available searchable databases
' 3. the paths for accessing particular files used or generated by the system
' The Panels Configuration Mode has either of two values: "Embedded" or "External". It is a setting that determines
' whether the system loads configuration data for the sections of subjects buttons, which are already embedded
' within it, or whether it loads them from the external file:
' "Lifetrack Subjects Panel Configuration.dat"
' The System Database is an index value (zero-based) that determines which of the listed available databases
' is the main active one. In the DATABASES section, the parameters in each comma separated string
' designate the following (in this order):
' DB Index, DB Name, DB Type, DB Filepath, Server Name, Username, Password
PLANT SUBJECTS PANEL:
Panels Configuration Mode: Embedded
DATABASES:
System Database: 0
Available Databases: 1
0,abc_plant,SQL-Server,SQLSERVER_DATABASE,(local),sa,password
FOLDERS:
Saved_Log_Folder: .\
Saved_NOB_Folder: .\
Saved_Log&NOB_Together_Folder: .\
MICROSOFT OFFICE PATHNAME:
Pathname: C:\Program Files\Microsoft Office\Office11\Yet another thread and yet another cut & paste job.
Maybe you are looking for
-
How to unlock iphone 4 when Orange UK provide useless customer service
Please, please can anyone help me ?? At a loss as to what to do next so hoping one of you lovely lot can help- here goes : On 16th Dec I phoned Orange UK to request an unlock code for an iphone 4. After a lengthy & very irritating call I was told it
-
Pop up information on creation of inspection lot.
Dear Friends, We are using R/3 version 4.7, our users have one requirement which is to pop up information message whenever an inspection lot is created. The same has to be triggered as mail to the identified users. I checked in this forum and wasn't
-
I purchased Quick time Pro in July, used it successfully to view and edit .mov files. Now all of a sudden it won't open, the error message reads: Your copy of Quick time 7.02a63 & quick time player 7.0.2a63has expired. Go to apple.com......to downloa
-
Archiving the Expired content in URM
Hi Everyone, We need to archive an expired document, URM provides this facility out of box ... While we specify the disposition rule as archiving, i am clueless where the expired gets archived. I tried looking in the archives for Contentserver but co
-
I just purchased a new Ipod classic 6th gen. 80g and the required new AV composite cable from Apple and after making the proper connections and settings on my Ipod and TV I am still unable to view videos on my TV. (no signal at all coming through to