DateField not getting copy in the matrix using Datasource & Datatable
Hello All,
I have tried to copy data From Purchase Order Tables to my own created User Defined Form matrix columns using DBDatasource & Datatables ,Instead of Document Date all other data are getting copied but that document date field is not
getting the data plus it is not showing any error message as such.
Following is the code which i have written :-
=====================================
oPurchase_Amend.DataSources.DataTables.Add("oMatrixDT" )
oPurchase_Amend.DataSources.DataTables.Item("oMatrixDT" ).Clear()
Dim sSQL As String = "SELECT T1.[ItemCode], T1.[Dscription], T1.[Quantity], T1.[Price],(Select InvntryUoM From OITM Where ItemCode=T1.ItemCode) as 'UoM',T1.LineNum,T0.DocNum as 'FrmDate' FROM OPOR T0 INNER JOIN POR1 T1 ON T0.DocEntry = T1.DocEntry WHERE T0.[DocNum] ='1' and T0.CardCode='C0001'
oPurchase_Amend.DataSources.DataTables.Item("oMatrixDT" ).ExecuteQuery(sSQL)
oMatrix = oPurchase_Amend.Items.Item("mtx_0").Specific
oMatrix.Clear()
Dim oDBDataSource As SAPbouiCOM.DBDataSource = oPurchase_Amend.DataSources.DBDataSources.Item("@OSL_POAMD")
Dim oDataTable As SAPbouiCOM.DataTable = oPurchase_Amend.DataSources.DataTables.Item("oMatrixDT" )
oDBDataSource.Clear()
For row As Integer = 0 To oDataTable.Rows.Count - 1
Dim offset As Integer = oDBDataSource.Size
oDBDataSource.InsertRecord(row)
oDBDataSource.SetValue("U_ItemCode", offset, oDataTable.GetValue("ItemCode", row).ToString())
oDBDataSource.SetValue("U_ItemName", offset, oDataTable.GetValue("Dscription", row).ToString())
oDBDataSource.SetValue("U_UoM", offset, oDataTable.GetValue("UoM", row).ToString())
oDBDataSource.SetValue("U_OldQty", offset, oDataTable.GetValue("Quantity", row).ToString())
oDBDataSource.SetValue("U_OldRate", offset, oDataTable.GetValue("Price", row).ToString())
> Line For Copying Document Date Data to the matrix datasource
oDBDataSource.SetValue("U_OldDate", offset, oDataTable.GetValue("FrmDate", row))
oDBDataSource.SetValue("U_LineId", offset, oDataTable.GetValue("LineNum", row))
Next
'--- Rebinding the datasource to the matrix columns -
oMatrix.Columns.Item("col_0").DataBind.SetBound(True, "@OSL_POAMD", "U_ItemCode")
oMatrix.Columns.Item("col_1").DataBind.SetBound(True, "@OSL_POAMD", "U_ItemName")
oMatrix.Columns.Item("col_3").DataBind.SetBound(True, "@OSL_POAMD", "U_OldQty")
oMatrix.Columns.Item("col_5").DataBind.SetBound(True, "@OSL_POAMD", "U_OldRate")
oMatrix.Columns.Item("col_7").DataBind.SetBound(True, "@OSL_POAMD", "U_OldDate")
oMatrix.Columns.Item("col_9").DataBind.SetBound(True, "@OSL_POAMD", "U_LineId")
oMatrix.LoadFromDataSource()
But i am not able to get the document date in the column of the matrix .
Please suggest what changes i have to meke in this code to get the desired output.
Thanks & Regards,
Amit
Edited by: AmitSharma_061985 on Dec 17, 2009 12:24 PM
Hi Michael,
FrmDate is the Document date of the purchase order which i am fetching through sql query and trying to copy that in the matrix
through datasource .
Edited by: AmitSharma_061985 on Dec 18, 2009 7:07 AM
Similar Messages
-
Incoterms are not getting copied at the item level
HI Gurus,
I have an sales order where If we change the Incoterms at the header level, its not getting copied at the line Items. Its giving an information mesage stating, Header Business Data does not apply to Item.
The Incoterms are intially getting copied from Customer master, but later I am not able to change it.
Please let me know what might be the reasons ? If possible Please let me know some User exits which needs to be checked.
Thanks,
SwathiCheck in VOV8 for your sale order type the following:-
a) If both Check Division and Item division are ticked, then system will pop up this message due to the fact that in the said sale order, the item division differs from header division
b) The field "ProdAttr.messages" should be blank
Next go to VOV7, select your item category and execute. There ensure that the box is ticked for "Business item". If this is unticked, then system will copy all header data to line item and you cannot change it.
thanks
G. Lakshmipathi -
VAT /CST% manually in the sales order,not getting copied to the Invoice
Dear Friends,
If I change the VAT /CST% manually in the sales order,its not getting copied to the Invoice
Thanks
IvyDear Friends,
Thanks for your valuable inputs....
I have maintained the condition record for the combination of delivery plant region and the customer region.......assigned dummy tax code against the Tax condition...therefore I think there wont be any problem in posting billing doc to accounting doc.
There are different combinations,where sometimes the user is liable for 2% CST ....sometimes 4%CST... but I am able to pick one tax value say 12.5% CST across and maintained the tax condition types - manual entry has priority, as allowed the user to change the value manullay as per the user requirement ....
Now if i change the Tax condition value in the sales order ,the same is not reflecting in the Invoice....this also is applying from contract to a sales order...
Please advice me accordingly...
Thanks
Ivy -
Workforce planning data not getting copied into the CATs
Dear all,
I am doing the activity confirmation in the project by transferring the data from CATs. However in order to maintain the data in CAT2 we have to copy the data from workforce planning.
currently it is not happening. The data is not getting copied in CAT2.
regards,
sudhirHi,
how about with worklist, these are the options required to transfer the data from PS to worklist.
refer to the period which you have planned in CAT2?
Rgds
Sudhir reddy -
Proposed delivery date should not get copied to the target document
Hi gurus,
I am creating a quotation and it is taking proposed delivery date as creation date and confirming a schedule line. When i create the sales order the same data is coped to the sale order. I have a different delivery date in sales order , but the system dose not allow me to change the date saying that a schedule line already confirmed for this line item.
I have unticked the copy schedule line the copay control of item category from quotation to order. still the same problem...pls helpHi,
If you carefully look at the problem, the root cause is not at the schedule line but at the document header where the delivery date is given.
So if you really dont want the delivery date to be copied, you should do that in a new copying routine and in that routine, you should copy all the details except the delivery date. This means that even if you create with reference, system will ask you for requested delivery date. Now you can give the delivery date of your choice and further scheduling will happen automatically. -
Terms of payment in CRM order is not getting copied to the Accout
Hi Experts
The terms of payment which has been selected inthe CRM order under the billing tab is appearing up to the invoice created in CRM . But the same terms of payment is not appearing inthe accounting documents generated in ECC.
Can any one suggest how the configuration done or how to do the setting for the same in ECC or at CRM
Regards
Rajesh
Edited by: Rajesh s on Feb 10, 2009 12:55 AMHi,
You need to check in ECC if the customer master has the payment terms maitained or not. This could be the reason for the payment terms not being populated into the ECC billing documents.
hope this helps
Shiloo -
Condition record's not getting copied in local client copy !!!
Hi ALL,
I have a one question/doubt regarding local client copy.
Our functional team creates condition type (for e.g.: thru FV11 for MM) in one client (golden), when I take client copy of that client with SAP_All profile, but condition type is not getting copied in the new client.
I found for Sap notes, in one note it was suggested that change documents are not copied with any profiles.
I found in FV11, there is one option, Send Condition, thru which we can send by Logical systems, but its giving error msg u201CNo relevant partner system DEVCLNT300 exists for output category COND_A
Message no. VJ000u201D
Can u pls suggest proper way to copy/transport condition record in new client created?
Regards,
C Singh.Please refer below link
http://help.sap.com/saphelp_dimp50/helpdata/EN/19/337d937f0311d2b467006094b9c9be/frameset.htm
Regards,
Pavan -
Fund center & commiitment items not getting copied to down payment requests
Hi
When we create a down payment request against a purchase order , the Committment item and fund center are not getting copied from the Purchase order.
kindly provide suitable solutions.
Regards
Suresh AHi,
Check note 52903...
Regards,
Eli -
Scheduling Agreement - Conditions not getting copied from Contracts
Hi All,
Requirement: Global outline agreements with scale prices will be created in SRM which will be into ECC as Contracts. Scheduling agreements will be created referecing the Contracts and the conditions with the scale prices needs to be copied into the scheduling agreement.
Issue: We could create Global outline agreements in SRM and are getting replicated into ECC as contracts successfully. Conditions and the scale prices are not getting copied into the Scheduling agreement from the Contracts.
Please guide.
With regards
KrishnaHi,
I couldnt reach out a solution for this problem.
SRM Version: SRM 5.0
Yes. We create Scheduling agreements referencing the contracts.
With regards
Krishna -
Updated to an iphone 4s from iphone 4. Did backup and sync but some apps have not been copied to the 4s although they do show up on the iphone4. How can I get my missing apps?
Download Past Purchases
http://support.apple.com/kb/HT2519
Log into iTunes using the account the Purchase was made with... Click on Buy... and a notice will come up saying you already have it... do you wish to download it again... Click Yes... -
I switched on my PC and there was an update for realplayer. Since then firefox will not open as a window. It is running according to Task Manager. I've downloaded a another copy of the programme using IE but whilst it loaded as a programme, does not open a window.
Hi again,
Helps if I give the correct link ! <br/>The press shift button appears to still work, but the option to start in safe mode from the programs listing of a standard install I do not think exists anymore.
Safe mode will start from a command line, (or a shortcut) and in some circumstances you may need to enter the full path name on a command or shortcut detailed instructions are at http://kb.mozillazine.org/Safe_mode
Remember (at least at this stage) do not make changes when you get the options list, just click on the continue button.
If you think that RealPlayer is causing the problem you could uninstall that for now.
Firefox recent versions are 3.6 4.0 (and 5.0 in beta). There is some debate as to whether creating new profiles or re-installing Firefox is the simplest method of troubleshooting and solving some of these problems, personally I use multiple profiles and multiple versions of Firefox, and tend to forget the required procedures are less than straightforward. For now at least try [[safe mode]] again.
* see also Instructions for [[installing a previous version of firefox]] -
I received error message that 6 of my songs that I purchased on a workout album could not be copied because the file could not be converted.
How do I get these 6 songs downloaded to my ipod shuffle?I can think of only one reason a song would be "converted" while it is being loaded on a shuffle.
Select the iPod in the iTunes sidebar, under DEVICES. Over to the right, depending on iPod model, go to the Summary or Settings tab. There should be a setting there that says Convert higher bit rate songs to 128 kbps AAC (the 128 kbps part may be adjustable). If that checkbox is checked, try unchecking it.
NOTE: This setting may allow more songs to fit on the shuffle, but for any converted song, the sound quality will become inferior. So I don't use it. -
I use more than one computer to access my four business email accounts. When one computer is on (and mail is open) emails do not get through to the other computers. This is fine, but how do I make one of the other computers the dominant one?
I assume these are POP accounts and all computers are set to remove from Server after downloading.
So on the non dominant ones... Mail Preferences>Accounts, highlight an account, Advanced tab, uncheck remove from Server, just have the main dominant one remove from server.
Or get/setup IMAP accounts. -
Notes at the Item level is not getting Copied
Hi All,
When a quotation is copied by clicking on the "Copy" button, the new quotation has all the Notes copied at the header level. But all the Notes maintained at the Item level dosent get copied.
The Copy control has been maintained between the Item Category (ZAGN to ZAGN) and a Copy Routine 9REVQT is maintained.
Help in this regard would be appreciated.
Thanks
SrinivasHi Thomas,
Thanks for the reply.
I tried that but looks like it doesnt work as we are not creating the follow up but copying a quote. Once copied the new quote doesnt have the notes maintained at the item level.
Could you please tell me what would be the "Reference Text Type" for the notes maintained at the item level (As shown in the attachment)?
Regards
Srinivas -
The pricing procedure in Sales order is not getting copied into invoice
The pricing procedure in Sales order is not getting copied into invoice.
I have created a document type (pricing procedure),based on the document type ,pricing procedure determination is done.
So while creating sales order the pricing procedure is determined but when invoice is created the pricing doesnt refelect in the invoice.How to over come this problemHi
Please check the in OVKK, weather you have maintained correctly or not.Also check in the Billing document type details what is the Document pricing procedure that has been maintained.
Regards
Srinath
Maybe you are looking for
-
EPS_GET_DIRECTORY_LISTING in background mode
Hi gurus, I have created a program to get all files in a directory on a server, I am using the FM EPS_GET_DIRECTORY_LISTING. It's working good in the foreground mode, but it's not the case of the background mode, I got no files. Thanks in advance for
-
HT4759 My icloud Backup text keeps showing and blocking my screen. I can't use my Ipad now
My icloud Backup text keeps showing and blocking my screen. I can't use my Ipad. I touch on either "Ignore" or "Setting" but it doesn't go away.
-
Hey guys, so I have a macbook that I have had since 2007 and I am running out of space, big time. I need to get an external hard drive because they dont make more internal space for my macbook. I need one that is small but has a lot of space and if p
-
Display DOT separated value column wise
I have one column name Department. Department have value as Department =Department.Section.SubSection as take example Department clunm value given below: IT Development and User Services IT Projects(No dot)IT Development and User Services.IT User Ser
-
Installed photoshop elements10 on my new iMac-why won't it "accept" my PC burned photo cds and dvds
I have been trying unsuccessfully to upload my hundreds of previously burned photos (some CD'S AND SOME DVD'S) on my PC using Nero. They are mostly jpegs, some tiffs. They do upload to iPhoto on my new Mac but I bought this program in hopes of usi