How to add new row and update existing rows at a time form the upload file
hi
How to add new row and update existing rows at a time form the upload file
example:ztable(existing table)
bcent smh nsmh valid date
0001112465 7.4 26.06.2007
0001112466 7.5 26.06.2007
000111801 7.6 26.06.2007
1982 7.8 26.06.2007
Flat file structure
bcent nsmh valid date
0001112465 7.8 26.06.2007 ( update into above table in nsmh)
0001112466 7.9 26.06.2007 ( update into above table in nsmh)
000111801 7.6 26.06.2007 ( update into above table in nsmh
1985 11 26.06.2007 new row it should insert in table
thanks,
Sivagopal R
Hi,
First upload the file into an internal table. If you are using a file that is on application server. Use open dataset and close dataset.
Then :
Loop at it.
*insert or modify as per your requirement.
Endloop.
Regards,
Srilatha.
Similar Messages
-
since the last software update, I am unable to add new contacts or change existing contacts - neither if I use the green Phone app nor using the brown Contacts app. Any suggestions?
*Update*
I thought I had found the offending 'app' namely "Songpop."
I regularly use "Songpop" on my phone late at night via my wifi connection.
All enteries on my phonebill are at midnight (even though I have a data allowance it was excluded from allowance). I switched 3G off on Friday, played "Songpop" at midnight and at the exact time I got a "Server Error" message.
I posted a message on the "Songpop" support forum.At first they said this was a problem relating to my ISP.
I have spoken to my ISP and asked if there are connection drops at the time I have been billed (ie to establish if my wifi dropped and 3G kicked in without my knowledge) and have been advised that there aren't any connection drops at that time.
"Songpop" have now responded that "This is an issue to take up with Apple Support" see: http://support.songpop.fm/songpop/topics/playing_songpop_on_phone_via_wifi_but_i ncurring_download_data_charges_for_3g_useage?utm_content=topic_link&utm_medium=e mail&utm_source=reply_notification
Hopefully someone at Apple can respond .... -
ALV List Layout add new button and modify Append Row Button Text and Logi
Hi All,
I am working on Employee custom development Application in Webdynpro ABAP>
In my ALV list Layout I have to add new two Buttons Top or Bottom of the ALV List.
If I am adding I have to add logic for those Buttons. How to add and add logic for those buttons.
as well as I have to Change the Text for Existing Button ''Append Row'' to "ADD NEW ROWS"
and I have to add logic in this button while Append New Row I have to generate ID no for New Rows .
Kindly help/advice me to proceed further.
Thanks in advance.
DavHi Dav,
To Add buttons please refer this thred,
ALV with user-defined buttons on toolbar in wd abap
To change or rename text in ALV standard buttons, please refer this ...
How can i change the text of an standard button in ALV?
and also see this article on self defined functions...
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/101df93f-4b5c-2910-14aa-9eb0338c2110?quicklink=index&overridelayout=true
Thanks,
Kris.
Edited by: kissnas on Feb 22, 2011 5:59 AM -
How to add new text and an empty space before a file name with Automator
I can create a new service to add to multiple files some text before the file name but I need to add even an empty space; e.g. file name original becomes: new text(space)file name original. The aim is to add this text and space to multiple files.
I hope to be understood. Please can somebody help me?
ThanksThis is an old Apple-supplied AppleScript that will do the job.
IMPORTANT: note the conditions of use: it will choose the frontmost Finder window to operate on. Therefore, open the folder you want to change the names of and make it the front finder window BEFORE running the script.
Add to File Names
This script is designed to add a prefix or suffix to files in the front window of the desktop.
If no folder windows are open, the script will affect items on the desktop.
Copyright © 2001–2007 Apple Inc.
You may incorporate this Apple sample code into your program(s) without
restriction. This Apple sample code has been provided "AS IS" and the
responsibility for its operation is yours. You are not permitted to
redistribute this Apple sample code as "Apple sample code" after having
made changes. If you're going to redistribute the code, we require
that you make it clear that the code was descended from Apple sample
code, but that you've made changes.
--March 2014: Changes by Phil Stokes to make the script work on 10.9
--these changes are simply reversing the order of parameters in the lines that have "copy" in them
-- The following line is disabled due to a Menu Manager bug
--set the source_folder to (choose folder with prompt "Pick the folder containing the files to rename:")
try
tell application "Finder" to set the source_folder to (folder of the front window) as alias
on error -- no open folder windows
set the source_folder to path to desktop folder as alias
end try
set the prefix_or_suffix to ""
repeat
display dialog "Enter the prefix or suffix to use:" default answer the prefix_or_suffix buttons {"Cancel", "Prefix", "Suffix"}
copy the result as list to {button_pressed, prefix_or_suffix}
if the prefix_or_suffix is not "" then exit repeat
end repeat
set the item_list to list folder source_folder without invisibles
set source_folder to source_folder as string
repeat with i from 1 to number of items in the item_list
set this_item to item i of the item_list
set this_item to (source_folder & this_item) as alias
set this_info to info for this_item
set the current_name to the name of this_info
if folder of this_info is false and ¬
alias of this_info is false then
if the button_pressed is "Prefix" then
set the new_file_name to the (the prefix_or_suffix & the current_name) as string
else
set the new_file_name to the (the current_name & the prefix_or_suffix) as string
end if
my set_item_name(this_item, the new_file_name)
end if
end repeat
beep 2
on set_item_name(this_item, new_item_name)
tell application "Finder"
--activate
set the parent_container_path to (the container of this_item) as text
if not (exists item (the parent_container_path & new_item_name)) then
try
set the name of this_item to new_item_name
on error the error_message number the error_number
if the error_number is -59 then
set the error_message to "This name contains improper characters, such as a colon (:)."
else --the suggested name is too long
set the error_message to error_message -- "The name is more than 31 characters long."
end if
--beep
tell me to display dialog the error_message default answer new_item_name buttons {"Cancel", "Skip", "OK"} default button 3
copy the result as list to {button_pressed, new_item_name}
if the button_pressed is "Skip" then return 0
my set_item_name(this_item, new_item_name)
end try
else --the name already exists
--beep
tell me to display dialog "This name is already taken, please rename." default answer new_item_name buttons {"Cancel", "Skip", "OK"} default button 3
copy the result as list to {button_pressed, new_item_name}
if the button_pressed is "Skip" then return 0
my set_item_name(this_item, new_item_name)
end if
end tell
end set_item_name -
How to insert new record or update existing record using a complex view?
Currently I created this screen, there is no problems on display data, only on the update funtionality (it means insert / update / delete on the table for which the view is based on).
I have a table and a complex view in order to display the information from the table in a tabellar form (i.e up to 70 record in same "record" in the form, one for each item)
The view is like this
select a.f1, a.f2, get_value(a.pk1,1) a1, get_value(a.pk1,2) a2, get_value(a.pk1,3) a3............
from my_table a
where a.proj_id = user
and I want to permit the update of the field a1, a2, a3 in a multiposition canvas (tabellar).
I created an INSTEAD-OF trigger.
But it not work only in the form. I receive the error FRM-40654 when I try to change the existing value in the running form based on that view.
The view is woking and updatable using sql-plus.
If I query
select * from ALL_UPDATABLE_COLUMNS where table_name = 'SPV_BOQ_BOM_POS_ACTIVITIES';
in which 'SPV_BOQ_BOM_POS_ACTIVITIES' is the name of my view.
The question is: why if the view is updatable using SQL*Plus, is not updatable using Oracle Form 10gR2 ?
Someone could help me asap?
ThanksI removed on the datablock three items that are not showed, one of this is the Sysdate of update on the table for which the view is based.
I removed also the on-lock trigger and the update from the form is NOT working fine.
But for now I can still mantaing the ON-LOCK trigger.
Is not a priority to remove this trigger.
I still have the problem when the field is null, it mean that in the table SP_BOQ_BOM_POS_ACTIVITIES the record not exist.
I try now to explayn better.
SPV_BOQ_BOM_POS_ACTIVITIES is the name of the view.
SP_BOQ_BOM_POS_ACTIVITIES is the name of the table.
This are the desc
desc SPV_BOQ_BOM_POS_ACTIVITIES
Describing SPV_BOQ_BOM_POS_ACTIVITIES....
NAME Null? Type
BOQ_HEADER_ID NOT NULL NUMBER(12,0)
BB_ID NOT NULL NUMBER(12,0)
BOQ_ID NOT NULL NUMBER(12,0)
PROJ_ID NOT NULL VARCHAR2(10)
ACT_GROUP_CODE VARCHAR2(30)
TOTAL_QTY NUMBER
ACT_CODE_1 VARCHAR2(4000)
QTY_1 NUMBER
ACT_CODE_2 VARCHAR2(4000)
QTY_2 NUMBER
ACT_CODE_3 VARCHAR2(4000)
QTY_3 NUMBER
ACT_CODE_4 VARCHAR2(4000)
QTY_4 NUMBER
ACT_CODE_5 VARCHAR2(4000)
QTY_5 NUMBER
ACT_CODE_6 VARCHAR2(4000)
QTY_6 NUMBER
USR_ID NOT NULL VARCHAR2(10)
LMOD NOT NULL DATE
INT_REV NOT NULL NUMBER(6,0)
The field QTY_1, QTY_2.... QTY_6 are calculated with a customer stored function from the table SP_BOQ_BOM_POS_ACTIVITIES.
Also the field ACT_CODE_1, ACT_CODE_2, .... ACT_CODE_6 are calculated with a customer stored function from the table SP_BOQ_BOM_POS_ACTIVITIES.
desc SP_BOQ_BOM_POS_ACTIVITIES
Describing SP_BOQ_BOM_POS_ACTIVITIES....
NAME Null? Type
BBPA_ID NOT NULL NUMBER(12,0)
BOQ_HEADER_ID NOT NULL NUMBER(12,0)
BB_ID NOT NULL NUMBER(12,0)
BOQ_ID NOT NULL NUMBER(12,0)
PROJ_ID NOT NULL VARCHAR2(10)
ACT_GROUP_CODE NOT NULL VARCHAR2(30)
ACT_CODE NOT NULL VARCHAR2(30)
QTY NUMBER(12,0)
FLG_MANUAL_CHANGE VARCHAR2(1)
USR_ID NOT NULL VARCHAR2(10)
LMOD NOT NULL DATE
INT_REV NOT NULL NUMBER(6,0)
If I use SQL Navigator this insert working fine
insert into SPV_BOQ_BOM_POS_ACTIVITIES
(BOQ_HEADER_ID, BB_ID, BOQ_ID, PROJ_ID, ACT_GROUP_CODE, ACT_CODE_1, QTY_1)
values (5050, 5015, 30486, 'B39368', 'TEST', '0101010101010101', 1709)
1 row(s) inserted
Instead using the Screen, at runtime, I receive the message:
FRM-40400 Transation Complete: 1 records applied and saved
but nothing is saved in the table SP_BOQ_BOM_POS_ACTIVITIES, and the view SPV_BOQ_BOM_POS_ACTIVITIES contain the calculated QTY_1 for the 'key', with null value.
Moreover If in the field QTY_1 (NUMBER) I put a character, instead a Number, just to see if the Screen attempts or not an UPDATE or AN INSERT, the message is FRM-40509: Oracle Error. UNABLE TO UPDATE RECORD. Why happen an Update and not an INSERT using the Screen?
In effect, the trial using SQL navigator of the following statement
insert into SPV_BOQ_BOM_POS_ACTIVITIES
(BOQ_HEADER_ID, BB_ID, BOQ_ID, PROJ_ID, ACT_GROUP_CODE, ACT_CODE_1, QTY_1)
values (5050, 5015, 30486, 'B39368', 'TEST', '0101010101010101', 'r');
I got Invalid Number and it's ok as answer from the database.
Edited by: fmariani on 30-apr-2009 1.51 -
BAPI_REQUIREMENTS_CHANGE - How to add new qty without refreshing existing
Hello ,
I am using this bapi the problem i am facing BAPI_REQUIREMENTS_CHANGE.
Problem -
How to overwrite existing values.Hi Andre,
Here is the description of the tables:
table with the NEW content of: EBAN
data: begin of xeban occurs 20.
include structure ueban .
data: end of xeban .
table with the OLD content of: EBAN
data: begin of yeban occurs 20.
include structure ueban .
data: end of yeban .
table with the NEW content of: EBKN
data: begin of xebkn occurs 20.
include structure uebkn .
data: end of xebkn .
table with the OLD content of: EBKN
data: begin of yebkn occurs 20.
include structure uebkn .
data: end of yebkn .
Regards,
Nitin. -
How to add new network adapter to existing hyper-v server
hello guys
now we have win2k8 r2 with installed hyper-v role.
we had a network adapter with 4 ports and these 4 NICs was installed before adding hyper-v role so we select the these 4 NICs when installing the hyper-v role as usual.
after that, we add other new network adapter with 4 NICs.
the problem that we can't see the new 4 NICs in hyper-v manager to create external connection.
any suggestions ??Hi eng.magdy87,
Please ensure that the new NIC works properly .
I mean that you can try to set IP for that NIC to check if it works .
By the way , I added a new NIC for my hyper-v host (2008R2 ) and I can select it in virtual machine manager .
Best Regards
Elton Ji
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
How to add new line item using BAPI BAPI_CONTRACT_CHANGE for contract-ME32K
HI Experts,
how to add new line item using BAPI: BAPI_CONTRACT_CHANGE for existing contract.
Requirement:
Already the contract having two line items using ME31K.
Custom program has to add new line items in existing contract.
Thanks,
SendilI got the solution:
We can do like this:
1. Get all details using details, BAPI_CONTRACT_GETDETAIL.
2. After getting results, append new line item. Then use your BAPI.
Check this posting program.. where this bapi is used, use the same coding technique.
IDOC_INPUT_PURCONTRACT_CHANGE -
How to add new subscreen & fields to ME51N
Hi Experts,
How to add new subscreen and to add new fields at item level, maybe someone have done this before and maybe can guide me...
Thank You.someone have experience on this? so can you guide me... tq
-
ever since the last firefox update I don't have my old bookmarks, can't add new ones and can't add my HTML file of my bookmarks
A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
*http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox -
How to add new class to existing DC (Web Dynpro project)
Hi,
How can I add new class to an existing DC (Web Dynpro project)?
I tried adding it using File - New - Other - Java - Class, but after a build of the DC the new class (and its contents ) was completely removed.
Then I created a new DC (java project) and created a new class in that DC. This went fine, but I got into problems because of circular referencing between the new & the old DC, so no build was possible.
This can't be difficult, does somebody knows how to do it?
My temporary solution is to add the classdefinition to an exisiting .java file. Very ugly.
Thanks,
JeroenHi Jeroen,
where did you create the class? If the *.java file is placed in the src/packages folder it should not be deleted by a build. (I suspect you created it in the gen_wdp folder?)
Regards,
Marc -
How can I add new songs and videos...?
How can I add new songs and videos to my ipod without syncing as it wants to wipe out the ipod and replace all the existing media?
On the ipod itself? If so how?
I've tried checking on box by the sync music to deselect "Entire music library", but get the message about "Are sure.... All existing content on the iPod will be removed and replaced...". However, I don't want to do that as there is music on my ipod I don't want to loose, got it from a previous computer that crashed and could not be recovered. -
How do I add new photos to an existing photobook album?
I'm creating a photobook and nearly finished it but want to add some more photos that weren't in the original album I used. Can anyone advise how you add new photos to it that you can then select to go into the Photobook? I can't find any way to add new photos so they appear in the Photobook Browser - do I have to start again? I'm using iPhoto '09.
drag them from an event or album to the book project under keepsakes
You really should take the tutorial - under the help menu ==> iPhoto help ==> chapter 7 - making a book - read the help topic and watch the movie
LN -
How to add new currency in ORCO and ORBO
Hi, I have successfully install ORCO, ORBO and ORPOS. I followed Implementation Guide, Volume 1 – Implementation Solutions to add new currency in ORPOS.
But I still do not know how to add new currency in CO and BO.
I try to use import parameter feature in ORCO and ORBO to import xml, the result said "Success" but there is no changes.
Please help show how I could achieve this.I change the FL_CNY_BASE into 1 already. POS is OK now. But BO is not regconize that there is a new currency. I'm trying to go to
Admin -> Job Manager -> Available Import -> Import BackOffice Parameters
and try to import xml file that contain belowing content.
<?xml version="1.0" encoding="UTF-8" ?>
<CurrencyImport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CurrencyImport.xsd" Priority="0" FillType="FullIncremental" Version="1.0" Batch="1" CreationDate="2001-12-17T09:30:47.0Z" ExpirationDate="2027-12-17T09:30:47.0Z">
<!-- Example of adding a Currency. -->
<Currency ChangeType="ADD" ISOCode="MYR" IssuingCountryCode="MY" Name="MYR" IssuingCountryNationality="Malaysian" IsBaseCurrency="true" Scale="2" Priority="0" />
<ExchangeRate ChangeType="ADD" CurrencyCode="MYR" MinimumAmount="0.00" EffectiveDate="2008-05-26" ExpirationDate="2050-06-02" ToBuyAmount="2" ToSellAmount="2" ServiceFeeAmount="0.00" />
</CurrencyImport>
The result said it success but I still cannot see any change.
Is there is any other things I should make change at BO? Any property file that I should make change? BO and CO is web application so the structure of files are not the same as POS. I can't following the same thing when I had made with POS for BO and CO.
Thanks for you helping -
HT1296 how to add new photos without deleting the existing photos in ipad
Hi,
Can anyone tell me how to add new photos/PDF books from my PC to iPad without deleting the exsting data in iPad?Hello AJ2349
If it is prompting you that it will replace the data on your iPhone, then that is typically the result of syncing with a different computer. The only way you can bypass that is to replace the media on your device and then sync. Now it will only replace items that would be considered purchased items like music, movies, TV shows and Apps and would not delete any pictures from your iPhone. Alternatively you can setup a Shared Photo Stream and then add the Photos there without syncing your iPhone with your computer. Check out the articles below for more information.
iOS: Issues syncing content with multiple computers using iTunes
http://support.apple.com/kb/ts1474
Managing content manually on iPhone, iPad, and iPod
http://support.apple.com/kb/ht1535
iCloud: Shared Photo Streams FAQ
http://support.apple.com/kb/HT5903
Regards,
-Norm G.
Maybe you are looking for
-
Error occurred during execution of java concurrent program in R12.2 instance
Hi All, The R12.2 instance is a cloned instance. I am getting the below error while compiling the java concurrent program in R12.2 instance. Has anybody had this error before? Any help or advice will be really appreciated. Thanks in advance. Kind reg
-
How to set up logical components for ChaRM?
Hi, we do have the following system landscape. One DEV and two separate QA and PROD systems. DEV-> >QA1 -> PROD1 >QA2 -> PROD2 For these we want to transport parallel from DEV to QA1/QA2 and then parallel to PROD1/PROD2 via ChaRM. My questions are:
-
SRM table for backend PO & PR no. in Classic scenario
Hi All, We are in classic scenario. I need the table/view name which stores the PR and PO no. created in the backend system. I could find different view names for PO,PR nos. from BBP_PD but is there any single table/view which stores this data ? Any
-
How do I play an audio file in Xcode for Mac OS X?
I have been looking and looking, and I still can't find out how I can play a sound in Xcode. I have done it for the iPhone, but I'm trying to do it for Mac OS X. I am a beginner and so I am going to need some explaining as to what is going on. I just
-
What are your favorite augmented reality apps? I enjoy: Peaks - great for knowing what mountain you are looking at Yelp - awesome for finding a good place to eat acrossair - just fun to play with What are some other cool ones?