Update Table fields
Hi
I have a Table, a textbox and button
the content of textbox would update a new row of table when press button
each row created with button is update with textbox value
How is that
Thanks
Juan
I just noticed that this thread is the same as the
Update Date thread.
I've already posted to the Update Date thread so please refer to it instead.
Stefan
Adobe Systems
Similar Messages
-
CSV upload and update table fields
Hi,
Is there any way to update any field of the underlying table from HTMLDB while importing the CSV file?For e.g, if there are XYZ table have 200 ermployee where empno is primary key.
Once we upload the data from CSV its fine.Now after 2 weeks i need to update the sal and ename corresponding to the previous 100 employees only.So now when i trying to update the data a unique constraints violation occurs since the empno have already present so my concern is that -- how to get out of this problem specially when updation of huge no. of records needed and also no updation required for some records already present?Do the CSV update be helpful on that circumstances?
One thing we can do that we can track down the list of 100 employee whose information going to be updated.Put those info in excel and add rest 100 emplyee to that excel and again doing the CSV upload ?
This is a huge issue and not only the tedious task but also errorprone and that task will be increased with the amount of data increasing in the table.
Please anyone can suggest ?
Regards,
ROSY.The best way to solve your problem is next way.
1º) Save the file with the data to import like a BLOV ITEM.
Ok it can be done. CSV placed on BLOB data field.2º) Make a procedure to manage this BLOV item that can be fired by user pushing a buttom. (you can do it easy from HTMLDB).
how to manage ? What need to be fire to push the CSV to the target table with the actual field population ?3º) Into this procedure insert the records freely and dont worry for anything more. (maybe you can be worry about duplicate records is so, only, into this same procedure make any pl/sql lines to be sure record is not duplicate before insert)
? ? ? If the data already exist it should be needed to truncate before insert that is not my reqr rather the existing data should be updated based on PK if any chages occurs in the CSV fo that data.4º) after you are sure the insert work properly and if you need any other treatment to record, with a trigger in the table or calling any other procedure from the same trigger make the traeataments that you need.
that can be done highly .......before insert trigger.Remember. Dont put any commit.
sure.......5º) Go down from horse. Dont take coffe or Tea in exceed. And remember all we are the same, people that only want go to eat with childs in week-end.
i m in land no way to go down........nothing i take ya eat & eat much ....but this is not the right place for making comments about Weekend....Regards and good luck.
anyway embargo starts...........enjoy Cheers...........Wish u All Hp XMas... -
Problem in updating table fields while enhancing screen fields using BDT
Hi all,
I have added some fields in REBE object using BDT. and also appended those fields in standard table(VIBDPR). But Data entered on those fields are not getting updated in table fileld..Can anyone Know the reson....?
Regards,
VijayHi,
I had the same problem. Here is an example code to resolve it:
REPORT ytestfg.
DATA: i_bsid LIKE bsid OCCURS 0,
i_bsid2 LIKE bsid OCCURS 0.
TABLES: bsid.
DATA: doc LIKE vbak-vbeln,
pos(6) TYPE n.
DATA e_fpla LIKE fpla.
DATA e_fplt LIKE fpltvb OCCURS 0 .
DATA: zfpla LIKE fplavb OCCURS 0,
zfplt LIKE fpltvb OCCURS 0.
DATA zfplt2 LIKE fpltvb OCCURS 0 WITH HEADER LINE.
doc = 'G03060619'.
pos = '000010'.
CALL FUNCTION 'SD_SALES_DOCUMENT_READ'
EXPORTING
document_number = doc.
CALL FUNCTION 'SD_SALES_BILLINGPLAN_READ'
EXPORTING
i_vbeln = doc
i_posnr = pos
IMPORTING
e_fpla = e_fpla
TABLES
e_fplt = e_fplt
EXCEPTIONS
no_billingplan_allowed = 1
no_billingplan_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Read the billing plan
CALL FUNCTION 'BILLING_SCHEDULE_READ'
EXPORTING
fplnr = e_fpla-fplnr
I_VFKDAT =
I_BFKDAT =
TABLES
zfpla = zfpla
zfplt = zfplt
Upddate the ZFPLT2 table with the new values
MOVE zfplt[] TO zfplt2[].
READ TABLE zfplt2 INDEX 1.
zfplt2-afdat = '20080927'.
Very important to set field updkz = 'U' ***
zfplt2-updkz = 'U'. "--> UPDATE!!
MODIFY zfplt2 INDEX 1.
CALL FUNCTION 'BILLING_SCHEDULE_SAVE'
TABLES
fpla_new = zfpla
fpla_old = zfpla
fplt_new = zfplt2 " --> NEW
fplt_old = zfplt.
CALL FUNCTION 'SD_SALES_DOCUMENT_SAVE'.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
Regards,
Edited by: PHO_BA on Mar 9, 2009 5:28 PM -
Update PRODH field from table T179T
hi,
i want to update PRODH field from table T179T into table VBRP. for this we
need to take selection option also.
selection option will be :
· Sales Organization (field VBRK-VKORG)
· Billing Date Range (VBRK-FKDAT)
· Distribution Channel (Vbrk-vtweg
while i have done this for one field by using hard code but like:
TABLES: VBRP.
CLEAR VBRP.
UPDATE VBRP SET PRODH = 'PLC01' WHERE VBELN = '0008300051'.
SELECT SINGLE * FROM VBRP WHERE VBELN = '0008300051'.
WRITE: VBRP-VBELN,VBRP-PRODH.
but this is not the right way. please guide me how to solve this.TABLES: VBRP.
CLEAR VBRP.
UPDATE VBRP SET PRODH = 'PLC01' WHERE VBELN = '0008300051'.
<b>commit work.</b>
SELECT SINGLE * FROM VBRP WHERE VBELN = '0008300051'.
WRITE: VBRP-VBELN,VBRP-PRODH.
use commit work after update statement.
But this code would make vbrp-vbeln as plc01 only.
If you want to get the prodh value from t179t, then write a sleect on t179t and then update.
TABLES: VBRP.
CLEAR VBRP.
select single prodh
from t179t
where......
UPDATE VBRP SET PRODH = t179-prodh WHERE VBELN = '0008300051'.
commit work.
SELECT SINGLE * FROM VBRP WHERE VBELN = '0008300051'.
WRITE: VBRP-VBELN,VBRP-PRODH. -
How can I get the Tables in my report to update their field lists?
I am working with Crystal Reports 2008, and I have a ReportDocument loaded in a .NET project.
I want to update the field lists of the tables (stored procedures) used in the report. I am calling "VerifyDatabase()", but this does not update the field lists. Through the designer, I accomplish this by going to the Database -> Set Datasource Location..., then clicking on the stored procedure (i.e. table) in the report, clicking on the stored procedure under the database in the bottom pane, and then clicking "Update".
How can I accomplish this in code?
Thanks for any help.Hello,
You have to use RAS and the replace connection method. The Report Engine does not have the ability.
Search forums for "ReplaceConnection_Click" and you'll find sample code that should work for you.
Thank you
Don -
Need to update custom fields in MSEG table using "BAPI_GOODSMVT_CREATE"
Hi All,
There is a requirement to update custom fields in table MSEG which are part of append structure. There is a option to update the custom fields using the one of the tables parameters "EXTENSIONIN". Anyone please advice how can I update the custom field thru EXTENSIONIN.
Thanks in advance.
cheers,
Vijaysee the help
http://help.sap.com/saphelp_nw04/helpdata/en/c3/4099948b8911d396b70004ac96334b/frameset.htm
Regards
Kiran Sure -
I want to update date field in oracle table using database adaptor
Hi Guys,
I want to update date in oracle table field which is 'DATE' type , but i am getting following error.
Pure SQL Exception.
Pure SQL Execute of update crp3apps.IFACE_SO_DATE_CHANGES set PROCESSED_DATE=? where CTRL_ID=? failed. Caused by java.sql.SQLException: ORA-01830: date format picture ends before converting entire input string
The Pure SQL option is for border use cases only and provides simple yet minimal functionality. Possibly try the "Perform an operation on a table" option instead.
</summary>
</part>
- <part name="detail">
<detail>
ORA-01830: date format picture ends before converting entire input string
</detail>
i am formated the date using following code and assigned to one variable.
ora:formatDate(ora:getCurrentDateTime(),'dd-MMM-yyyy hh:mm:ss ')
this is update query
update crp3apps.IFACE_SO_DATE_CHANGES set PROCESSED_DATE=#date where CTRL_ID=#id
Please provide solution.
regards
janardhanThe thing is that XSLT often doesn't deliver the functionality required when it comes to times.
You suggest appening "Z" to the time but this means that the time is now in UTC time. What if the system from where the date is being converted is running in NZ using local time? Other systems that recieve the date (and correctly handle the time zone) will now have a time that is out by a number of hours.
You often can't ignore the time zone (drop the 'Z') as if you send the time to a system it has to either assume the time is local to it (which may not be the case... the other system coudl be in a different time zone) or assume the time is UTC (I think crossfire does this by default).
Typically can't just append a time zone (e.g. +11:00) either as many places have daylight savings so the value to appended is variable (you then need some way of determining what the value is... either Java Embedding or a Service).
As you mention it does depend on the use case but in many circumstances using Jaba Embedding, not as suggested above but with the appropriate Java.util.Calendar classes, is the best way to handle date and time in BPEL. Even still you need to ascertain the format of times external to the system and ensure you parse them correctly.
ANd even if you do all this you can still run into problems. I've seen a real world example where two systems which both handled time zones correctly and had previously been working together for quite a while, satrted reporting different times. It turns out that only one of them had had the most recent Java Time Zone patches applied and there had been a change in the dates for daylight savings here (Australia). Be warned! -
How to update key fields for table
Hi,
how to update key fields for a table.The update statement is not working for the same.
Regards,Hi,
See the below example.
TABLES SPFLI.
DATA WA TYPE SPFLI.
MOVE 'AA' TO WA-CARRID.
MOVE '0064' TO WA-CONNID.
MOVE 'WASHINGTON' TO WA-CITYFROM.
UPDATE SPFLI FROM WA.
MOVE 'LH' TO SPFLI-CARRID.
MOVE '0017' TO SPFLI-CONNID.
MOVE 'BERLIN' TO SPFLI-CITYFROM.
UPDATE SPFLI.
CARRID and CONNID are the primary key fields of table SPFLI. All fields of those lines where the primary key fields are "AA" and "0064", or "LH" and "0017", are replaced by the values in the corresponding fields of the work area WA or the table work area SPFLI.
Regards,
raj. -
Dear Experts,
From MARA table field STAWN (Comm./imp. code EU ) is not updating in MARC table field STAWN (Comm./imp. code EU ) by MM02 Transaction
Is there any SAP standard functionality to over come above issue or needed ABAP coding for the same ????
Regards
HanumantDear All,
Thanks for your reply
I tried to update the the field after adding plant and other detail actually that field will be gray mode (display) and cannot update
my question i want to update MARC_STAWN field (Forign trade import) for my existing all material , those material MARA_STAWN (basic data 3 ) is also blank but system is allowing me to update in MARA_STAWN (basic data 3) but system will not update to MARC_STAWN (Forign trade import) field.
What is the best method to Coppy all MARA Stawn fields to the MARC Stawn field.
Regards
Hanumant. -
Ideal way to update a field in a table
Hi All,
We need to update a field in a table which have some 8 million records.
The value of the field needs to be updated in all the above mentioned records.
Now, we have an input file with all the primary key fields and the field to be updated.
Can any one suggest the ideal way to update the field.
1. Updating the database for each record.
Loop at itab.
Update .
Endloop.
2. Updating the database with a set of 100 records.
We are planning to schedule the job in the background.
Thanks for your help.
Regards,
KrishnaHi,
be very carefull with the update, ´cause you can damage 8 million records !!
You better use instruction Update for this:
update mytable set field = value where conditions.
Try to use all key fields in the conditions and never use something like
update mytable set: field1 = value1
field2 = value2
field3 = value3 where conditions.
The loop in your case 1 is not absolutely necessary, ´cause you update a whole bunch of records at once with the conditions in Update.
Test the changes in the development system before you do it in production -
How to update ABSKZ field in the table EKPO
Hi
Is there any way to update the rejection indicator (ABSKZ) field of table EKPO?.
I am looking at BAPI_CHANGE_PO FM, But it does not have ABSKZ field in the item structure BAPIMEPOITEM.
Do I need to extend the BAPI structure with ABSKZ field ?
Regards
Raj.Hi
To extend BAPI_PO_CHANGE for EKPO-ABSKZ field , we have to add field in the structure BAPI_TE_MEPOITEM to pass it to EXTENSIONIN. As ABSKZ field already availble in the EKPO it is not allowed to add ABSKZ in the structure BAPI_TE_MEPOITEM. it is throwing below error message.
Field ABSKZ in table EKPO is specified twice. Please check
Since it is not Z field and also not availble in the structure BAPIMEPOITEM not sure how to update ABSKZ field in the EKPO table.
Please advice.
Regards
Raj -
Update a Table Field of QMEL Table Using Function Module
hello Guru
I want to update a field of QMEL table suing FM which was created by user. how to write code for that. i have some idea but it is not helpful for us.....
Moderator Message: Searching the forums/Google is a good start.
Edited by: kishan P on May 19, 2011 12:13 PMhi Ram,
You can use update query on table setting particular field value...There is no Function module for it.
Regards,
Pawan. -
Bapi or function module to update rstgr field in bseg table
what is the bapi or function module used to update the fields in bseg table particularly "rstgr" field?
Hi,
Use Bapi
BAPI_ACC_DOCUMENT_POST
Regards,
Prashant -
Update stceg field in mdkp table
Hello ,
Can anybody tell me the name of function module or BAPI which update data in MDKP table.
In md06 transaction i want to update the process indicator flage for 3000 materials based on plant so any function module or BAPI which updates this field?
Regards
srinivasHi Srinivas ..
If you want to Set the Processing Flag for all the Materials based on a Plant.
Goto Tcode MD06.
you can See 2 Tabs:<b> Individual Processing</b> and <b>Collective processing.</b>
Select the Collective processing flag Tab .
Here you can enter the Plant and Set the Flag.
So this flag will be Set for all the Materials under this Plant...
If u still need a program for this u can do the Recording and create a BDC.
Hope this gives u the Solution.
<b>Reward if Helpful</b> -
I need to update an Oracle 8i database. I need to update 2 fields in 1 table with about 2,000 rows of data.
Right now the date is stored in an Excell file in columns A and B.
I need Something like:
Update Table1
set field1 with value from A:1,
set field2 with value from B:1
repeated with A:2,B:2 and so onI believe you could use sql loader to get your excel file in but here is a way I cheat to do it.
I save the excel file as a comma deliminated file (I think it is .csv)
then I open it up and copy and paste it into the following. (the part that says paste flat file here)
this is assuming 8i supports model clause I'm unsure on that point.
create or replace view view_xl_file_to_table as
select * from
with t as (select
--- copy paste your flat file here
' Bob,Jones,12345,Employee
Fred,Thebes,32,Manager
John,Smith,12,Employee
Karl,Cane,432,Employee
George,Johnson,54,Manager
' flat_text_file from dual
select flat_text_file text_file_turned_into_row,
substr(flat_text_file, 1, instr(flat_text_file,',',1,1)-1) col1, -- get text up to the first comma
substr(flat_text_file, instr(flat_text_file,',',1,1)+1, instr(flat_text_file,',',1,2) - instr(flat_text_file,',',1,1)-1 ) col2, --2nd comma
substr(flat_text_file, instr(flat_text_file,',',1,2)+1, instr(flat_text_file,',',1,3) - instr(flat_text_file,',',1,2)-1 ) col3, --3rd
substr(flat_text_file, instr(flat_text_file,',',1,3)+1, instr(flat_text_file,',',1,4) - instr(flat_text_file,',',1,3)-1 ) col4,
substr(flat_text_file, instr(flat_text_file,',',1,4)+1, instr(flat_text_file,',',1,5) - instr(flat_text_file,',',1,4)-1 ) col5,
substr(flat_text_file, instr(flat_text_file,',',1,5)+1, instr(flat_text_file,',',1,6) - instr(flat_text_file,',',1,5)-1 ) col6,
substr(flat_text_file, instr(flat_text_file,',',1,6)+1, instr(flat_text_file,',',1,7) - instr(flat_text_file,',',1,6)-1 ) col7
from t
-- first turn the carriage return into seperate rows
model return updated rows
dimension by (0 d)
measures (flat_text_file, 0 position_of_return ) -- the position of return is where the next carriage return is
rules iterate(1000) until position_of_return[iteration_number+1] = 0
position_of_return[iteration_number + 1] = instr(flat_text_file[0],chr(10),1,iteration_number + 1), -- find the next carriage return
-- get the text between the previous carriage return and the next and make it a row
flat_text_file[iteration_number + 1] = replace(substr( flat_text_file[0],
position_of_return[iteration_number],
position_of_return[iteration_number + 1] - position_of_return[iteration_number]
),chr(10))||','
)now I have a view and I could anything I want with it and I just drop it when I'm done.
Edited by: pollywog on Apr 19, 2010 7:57 AM
Maybe you are looking for
-
How do I get a receipt for final cut x
How do I get a receipt for final cut x? I paid for it to use at work and I cant claim the cost back unless I have a receipt. Apple cant claim it is an app for personal use when they are pitching this software for professional editing
-
Hi All, All i need is to write a script in UCCX premium with below requirement. We do offer services to our customers through the IVR, the aim is to ask the Customer to register with our company, and then will be allowed to use the services from us.
-
Dear MDM Experts, I want to import a quite long text into a Category Attribute, but when I do the mapping in the Import Manager, the message says that the imported text is too long, and it will be cutted to 128 character. Is there any solution for th
-
XDM has problems with consolekit
I recently switched from SLIM to XDM, and now when I shutdown the computer in gnome (launched using ck-launch-session), the computer sometimes restarts instead, even though I pressed 'shutdown'. This didn't occur with GDM or SLIM. /etc/inittab line x
-
Time Stamp / DISTINCT conflict.
In my following SQL query, I want to display records order by Date and Time. But it is conflicting with DISTINCT clause at the begining. When I remove TimeIssue from Order By, the query runs fine. I also want to know how to optimize the performance o