Update 100 Row Data In One Time against a Code
Dear Expert,
How can I update a Master Data Row Table record using a particular code. Like I write a query Update Table Set U_UDF = 'Value' Where Code = 2
U_UDF is the field of Master Data Row Table's field. There are 100 Row against code 2 & I want to update all row with same value but in one time only.
How can I do that ?
Plz help me.
Regards
Hi,
Try this:
SAPbobsCOM.GeneralService oGeneralService = null;
SAPbobsCOM.GeneralData oGeneralData = null;
SAPbobsCOM.GeneralDataParams oGeneralParams = null;
SAPbobsCOM.CompanyService sCmp = null;
SAPbobsCOM.GeneralData oChild = null;
SAPbobsCOM.GeneralDataCollection oChildren = null;
sCmp = SBO_Company.GetCompanyService();
oGeneralService = sCmp.GetGeneralService("UDO");
// Get UDO record
oGeneralParams = ((SAPbobsCOM.GeneralDataParams)(oGeneralService.GetDataInterface(SAPbobsCOM.GeneralServiceDataInterfaces.gsGeneralDataParams)));
oGeneralParams.SetProperty("Code", ContractCode);
oGeneralData = oGeneralService.GetByParams(oGeneralParams);
// Add lines on UDO Child Table
oChildren = oGeneralData.Child("CONTRACTDETAIL");
// Update an existing line
oChild = oChildren.Item(LineId - 1);
DateTime dt = DateTime.Now;
oChild.SetProperty("U_STATS", "Terminated");
oChild.SetProperty("U_Updated", dt);
oChild.SetProperty("U_Remarks", "Service Terminated");
//Update the UDO Record
oGeneralService.Update(oGeneralData);
I have given you the sample. Just change it accordingly.
Hope it helps.
Thanks & Regards
Ankit Chauhan
Similar Messages
-
How do I transfer data from one time capsule to new time capsule when TC backs up an iMac and MacBookPro
It is generally better to leave the old backups and start again.. unless there is something you particularly need.
But if you desperately want all the old backups you have to copy the sparse bundles.. this will take very long time as it must copy via the computer..
http://pondini.org/TM/18.html
Take particular note of the initial comments.. ie before you read how to do it.. don't do it. -
SAP is allowing miro more then one time against the single GRN
Hi All
Sap is allowing Miro more then one time against the GRN. We have done miro twice and it is still open for miro. In normal case after doing miro SAP shows zero value and qty in grn field in miro screen.
i want to ristrict his .
can any body tell me the process
Regards
PrakashHi,
Option-1:Use T.Code:OMRM & maintain the message M8 -081 as error,Quantities invoiced greater than goods receipt quantity as error [maintain GR-based IV in the PO item level ]
Option-2:Use T.code: OMRM & Maintain the message M8 -087 - Invoice quantity greater than PO quantity [item without GR] as error.
Regards,
Biju K
Edited by: Bijay Kumar Barik on Jan 29, 2009 1:59 PM -
How can i change the data from one Time Capsule to another?
How can i change the data from one Time Capsule to another?
Do you mean copy it? If so, see #18 in Time Machine - Frequently Asked Questions You'll need section 2 there.
If you mean something else, please clarify. -
Hi,
Does SAP provide a functionality for one time use promo code? Basically the customer should able to login to the web shop and use the promo code only once. If they use it for the second time, then the system should not allow it. Any suggestions are welcome.
I am not looking for the coupon code functionality.
Thanks
AshThanks for your suggestion. I am trying to avoid custom solutions.
I was looking for standard SAP Marketing functionality for one time use campaign codes (promo codes). Promo codes are same as campaign ID. Target groups can be assigned to a campaign and consumers in that target group can use the promo code. However once a consumer has used a campaign code, they should not be able to use it again in another order/shopping cart.
Edited by: Ashish Saxena on Jan 13, 2011 8:53 AM -
Hi guys,
I have created a copy of the AdventureWorks2012 DB called AdventureWorks2012_new on the same instance.
I have created the following trigger below but my friend who is a DBA told me that this is not correct and I should be using the inserted table when creating this trigger. I would like AdventureWorks2012_new DB to be updating/inserting/deleting data from
the same tables that have been updated/inserted/deleted in the AdventureWorks2012 DB. How exactly should I do this for all the tables in the whole database ? What I have written below is just for one of the tables, is there a quicker way to do it for all tables
in this DB so that it performs the actions mentioned above, automatically ? Help would be greatly appreciated so I can understand how this works, thanks
CREATE TRIGGER [HumanResources].[tr_HumanResources_AfterUpdate]
ON [AdventureWorks2012].[HumanResources].[Department]
AFTER UPDATE
AS
BEGIN
SET NOCOUNT ON;
UPDATE AdventureWorks2012_new.HumanResources.Department
SET Name = t2.Name,
GroupName = t2.GroupName,
ModifiedDate = t2.ModifiedDate
FROM AdventureWorks2012.HumanResources.Department AS t2
INNER JOIN AdventureWorks2012_new.HumanResources.Department AS t1
ON t2.DepartmentID = t1.DepartmentID
ENDFor insert it's easy:
CREATE TRIGGER [HumanResources].[tr_HumanResources_AfterInsert]
ON [AdventureWorks2012].[HumanResources].[Department]
AFTER INSERT
AS
BEGIN
SET NOCOUNT ON;
Insert INTO AdventureWorks2012_new.HumanResources.Department
(DepartmentID, Name, GroupName, ModifiedDate)
SELECT DepartmentID, Name, GroupName, ModifiedDate
FROM Inserted;
END
I didn't verify column names, so you may need to make sure to use correct column names for that table.
Setting replication is a bit advanced topic although BOL is clear and you may start here
http://technet.microsoft.com/en-us/library/ms151198.aspx
If it will be complicated for you, you can ask extra questions in the MSDN Replication forum.
For every expert, there is an equal and opposite expert. - Becker's Law
My blog
My TechNet articles -
One time customer postal code in sales order
hi
For the one-time customer, it is required to input the postal code in sales order. How to disable it? As I already disable it in customer master. pls advice. thanksDear Friend,
The mandatory feilds in the customer Masters can be set to non mandatory in the account group sequence.
Go to transaction OBD2 account group change.
Then select your account group of your customer.
Tehn select the address feilds you will find the customizing of the entries.
Whether it is mandatory supperreses or optional entries.
Now you can make it optional entry.
reward points if helpful,
regards,
Amlan Sarkar -
Depicting multiple rows' data in one row
Hi All,
Pls. check the below query:
select manager_id mg_id, employee_id emp_id, last_name name from employees
where manager_id = '100'
and DEPARTMENT_ID = '80'if i run the following query, then o/p comes row wise; like below:
mg_id emp_id name
100 145 Russell
100 146 Partners
100 147 Errazuriz
100 148 Cambrault
100 149 Zlotkeybut if i want the o/p like below; i.e; under manager # 100, all employees' emp_id and name should come in only ONE row NOT in multiple rows:
mg_id emp_id name emp_id name emp_id name emp_id name emp_id name
100 145 Russell 146 Partners 147 Errazuriz 148 Cambrault 149 Zlotkeypls. help me to sort out the above sought o/p.
kindly tell me if there is any posting guidelines (except "Plain Text Help" on the right side) in this forum. i tried a lot to post above two o/p in easily readable format, but couldn't do that.
Edited by: Shariful on Sep 20, 2009 4:28 AM
Edited by: Shariful on Sep 20, 2009 4:29 AMHi,
Shariful wrote:
Hi All,
Pls. check the below query:
select manager_id mg_id, employee_id emp_id, last_name name from employees
where manager_id = '100'
and DEPARTMENT_ID = '80'
if i run the following query, then o/p comes row wise; like below:
mg_id emp_id name
100 145 Russell
100 146 Partners
100 147 Errazuriz
100 148 Cambrault
100 149 Zlotkey
but if i want the o/p like below; i.e; under manager # 100, all employees' emp_id and name should come in only ONE row NOT in multiple rows:
mg_id emp_id name emp_id name emp_id name emp_id name emp_id name
100 145 Russell 146 Partners 147 Errazuriz 148 Cambrault 149 ZlotkeyIf you want all the emp_ids and names concatenated into one big VARCHAR2 column, that's called String Aggregation
[AskTom.oracle.com|http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:2196162600402] shows several different ways to do it.
You can format that one big column so that it looks like separate columns.
If you want each emp_id and name in its own column, that's called Pivoting .
Look up "pivot" for various techniques. If you do not know exactly how many rows were in the original query (and therefore how many columns you'll need in the output), then it will require Dynamic SQL , which can be complicated.
Unfortunately, when you do search for "pivot", mlost of the hits will be things like "Search for pivot and you'll get lots of examples".
Re: Help for a query to add columns is one that actually has some information. It was a question very much like yours.
kindly tell me if there is any posting guidelines (except "Plain Text Help" on the right side) in this forum. i tried a lot to post above two o/p and query in easily readable format, but couldn't do that.Type these 6 characters:
(small letters only, inside curly brackets) before and after formatted text, to preserve spacing. -
How to move a selected row data from one grid to another grid using button click handler in flex4
hi friends,
i am doing flex4 mxml web application,
i am struck in this concept please help some one.
i am using two seperated forms and each form having one data grid.
In first datagrid i am having 5 rows and one button(outside the data grid with lable MOVE). when i am click a row from the datagrid and click the MOVE button means that row should disable from the present datagrid and that row will go and visible in the second datagrid.
i dont want drag and drop method, i want this process only using button click handler.
how to do this?
any suggession or snippet code are welcome.
Thanks,
B.venkatesan.Hi,
You can get an idea from foolowing code and also from the link which i am providing.
Code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
width="613" height="502" viewSourceURL="../files/DataGridExampleCinco.mxml">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.binding.utils.BindingUtils;
[Bindable]
private var allGames:ArrayCollection;
[Bindable]
private var selectedGames:ArrayCollection;
private function initDGAllGames():void
allGames = new ArrayCollection();
allGames.addItem({name: "World of Warcraft",
creator: "Blizzard", publisher: "Blizzard"});
allGames.addItem({name: "Halo",
creator: "Bungie", publisher: "Microsoft"});
allGames.addItem({name: "Gears of War",
creator: "Epic", publisher: "Microsoft"});
allGames.addItem({name: "City of Heroes",
creator: "Cryptic Studios", publisher: "NCSoft"});
allGames.addItem({name: "Doom",
creator: "id Software", publisher: "id Software"});
protected function button1_clickHandler(event:MouseEvent):void
BindingUtils.bindProperty(dgSelectedGames,"dataProvider" ,dgAllGames ,"selectedItems");
]]>
</mx:Script>
<mx:Label x="11" y="67" text="All our data"/>
<mx:Label x="10" y="353" text="Selected Data"/>
<mx:Form x="144" y="10" height="277">
<mx:DataGrid id="dgAllGames" width="417" height="173"
creationComplete="{initDGAllGames()}" dataProvider="{allGames}" editable="false">
<mx:columns>
<mx:DataGridColumn headerText="Game Name" dataField="name" width="115"/>
<mx:DataGridColumn headerText="Creator" dataField="creator"/>
<mx:DataGridColumn headerText="Publisher" dataField="publisher"/>
</mx:columns>
</mx:DataGrid>
<mx:FormItem label="Label">
<mx:Button label="Move" click="button1_clickHandler(event)"/>
</mx:FormItem>
</mx:Form>
<mx:Form x="120" y="333">
<mx:DataGrid id="dgSelectedGames" width="417" height="110" >
<mx:columns>
<mx:DataGridColumn headerText="Game Name" dataField="name" width="115"/>
<mx:DataGridColumn headerText="Creator" dataField="creator"/>
<mx:DataGridColumn headerText="Publisher" dataField="publisher"/>
</mx:columns>
</mx:DataGrid>
</mx:Form>
</mx:Application>
Link:
http://social.msdn.microsoft.com/Forums/en-US/winformsdatacontrols/thread/ae9bee8d-e2ac-43 c5-9b6d-c799d4abb2a3/
Thanks and Regards,
Vibhuti Gosavi | [email protected] | www.infocepts.com -
Hi,
Im working with asp application having controls (1 dropdownlist(options--Schedlue,InProcess,On HOld),two textboxes(SSStatusComments,SSGeneralComments)) I want to show output something like below
CREATE TABLE [dbo].[EFIWorkStatus1](
[WID] [int] IDENTITY(1,1) NOT NULL,
[ST_ID] [int] NULL,
[SSStatus] [nchar](10) NULL,
[SSStatusComments] [nvarchar](max) NULL,
[SSGeneralComments] [text] NULL) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
private void SiteSurveystatusload()
using (SqlConnection cn = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["ArgentDB"].ConnectionString))
cn.Open();
string sql = "Select SSStatus,SSStatusComments from EFIWorkStatus1 where ST_ID=@ST_ID";
SqlCommand cmd = new SqlCommand(sql, cn);
cmd.Parameters.AddWithValue("@ST_ID", Request.QueryString["ID1"]);
using (SqlDataReader reader = cmd.ExecuteReader())
if (reader.HasRows)
while (reader.Read())
txt_SiteSurveyGeneralComments.Text = reader["SSStatus"].ToString() + " " + reader["SSStatusComments"].ToString();
else
txt_SiteSurveyGeneralComments.Text = "";
output in database for above code
WID ST_ID SSStatus SSStatusComments SSGeneralComments
1 4 Schedule test in schedule Select
2 4 In Process test in process Select //expected output Schedule test in schedule in SSGEneralComments
3 4 On Hold ite on hold On Hold ite on hold //expected output Schedule test in schedule In Process test in process in GeneralCommentsI want to display the contents in textbox(SSGeneralComments) .Please check below example.
Initally user selects dropdown option "Schedule" enter comments in "SSSTatusComments" click savebtn .It stores in DB,Nexttime user wants to change dropdownlist option "IN Process" and enters comments in "SSStatusCommentstextbox" at
that time previous data(Schedule,comments) I want to display in SSGeneralCommentstextbox click on savebtn it saves in database.nexttime user wants update option to Complete and enter comments
in SSStatusCommentstextbox I want to display previous data into SSGeneralCommentstextbox .
dropdownlist1 SSStatusCommentstextbox SSGeneralCommentstextbox
Schedule test in Schedule
IN Process test in Process Schedule test in schedule //want to display content in
this textbox
Complete test in complete Schedule test in schedule //want to display content in this textbox
IN Process test in Process -
Transferring data from one Time Capsule's drive to another?
Hi, was wondering if anyone had any input on this.
A coworker has one of the older model 500GB Time Capsule units and just purchased one of the new dual bandwidth 500GB units.
We are simply trying to move the data on the old drive to an area where it can be copied onto the new time capsule.
When plugging in the old unit, we're getting a blinking amber light and the Airport Utility is not recognizing the old unit.
I think there might be a conflict as we already have an active AirPort in the office so I'm going to wait until later to attempt it again.
My question is, can I somehow wire the time capsule via USB to our existing Airport where it could recognize the time capsule as a shared external hard drive? Any other connection options to make the time capsule's drive visible so we can at least get the data off of it?Steve,
Welcome to the Apple discussions!
Have you tried connecting both of them together via ethernet? They should both show up in the SideBar of a finder window. Naturally they will need to be named differently to distinguish them from each other. What are you trying to transfer? Time machine backups? Or other files?
With them attached to each other, have you tried using the "Archive" feature of Airport Utility? That will clone the contents of one to the other.
Otherwise, your best option, and fastest, might be to use an external HD between the two TCs.
Attache a HD to the first TCs USB port.
Then use Airport Utility to "Archive" the data to the HD.
Once that's complete, move the HD to the USB port of the other TC.
At this point I'm unclear because I've never done it before, but copy over the data from the HD to the TC. I don't suppose Disk Utilities "Restore" feature would work at this point as the TCs HD would show up in the source pane.
Maybe this will give you some ideas though,
Cheers! -
My iPod touch is trying to update too many apps at one time how do I stop it ?
my itouch had around 73 apps that needed to update, so I chose "update all". I guess its overload, the little spinning circle at the top of the screen
keeps spinning but nothing is happening. So how do I stop the updating process, so I can start over by updating one at a time?
I hope someone can help me with this!You really can't. Try downloading them on your computer and sync. Next try restoring from backup.
-
How do i transfer data from one Time Capsule to another?
We ran out of space on our old Time Capsule, so I purchased the 2TB model. Problem is that there are no direction (that I can locate) on how to switch over from one device to the other! Can anyone direct me to some online instructions?
The great Pondini.. wonder of TM
http://pondini.org/TM/18.html
saves the day.
But IMHO.. start a fresh TM backup on the new TC.. preserve the old TC for posterity.. about 6months.. after which time if you didn't need anything on it you won't. -
How to Re-Run 100 scheduled reports at one time on failure of running?
Hi All,
I scheduled 400 reports in the Crystal Reports Server.
Suppose, out of 400 if 100 over reports are failed to run due to various reasons then how to filter and Re-Run only those 100 reports at a time without triggering each and every report.
Please Advice.
Thanks,
SriramHi,
can someone advise us on this issue, please?
thanks,
Sriram -
How can I view/copy data from one Time Capsule backup to another computer
My MBP and MB both back up to Time Capsule. From the MBP I can see it's data on TC via my network but not the backed up data from the MacBook. How can I view and import MB data to my MBP from Time Capsule via AirPort? Thanks!
Is the backup software Time Machine??
You can open the TM backup as long as you haven't used profiles to backup. Or encypted it in latest Mountain Lion.
See Q17 here. http://pondini.org/TM/FAQ.html
You should read through all the stuff about using TM.. and restore in particular.. 14-18.
Maybe you are looking for
-
How do I copy text from a web page in Safari?
I've searched up and down and can't find the answer to this simple question. There is a UI element that I want to copy to the clipboard and then paste into Excel. The UI element is: static text of group 104 of UI element 1 of scroll area 1 of group 4
-
Call ABAP program from a process chain
Hi , Can anyone tell me how do we call an ABAP program in R3 from a process chain in BW. Its real urgent please help. Thanks Ankit
-
How can I burn a slide show to a DVD playable on a DVD palyer and a TV?
-
i opened a file, updated text, closed, didn't save and hit this (the file is this 7600 pixels wide) 2008 Mac Pro 8core any clue? Process: Adobe Photoshop CS5 [298] Path: /Applications/Adobe Photoshop CS5/Adobe Photoshop CS5.app/Con
-
Adding "do you want to save change you have made" message.
We developed and multy screen web applicaton using J dev 11.1.1.1 and ADF BC- ADF RC We want when a user go to other screen to ask him a question as "do you want to save change you have made" Otherwise if a an error occurs "source" screeen and user g