Add ChooseFromList to UDF on System Matrix
Hi Everyone
I would like to know if it is possible to add a choosefromlist to a UDF on a system matrix. I keep and getting an error "The item is not a user-defined item"
Has anypone be able to achieve this???
Thanks in advance
Thanks Frank.
I have done so already. I made a button on the form the size of a dot, not visible and so on. I then link it to a choose from list. Then i catch the needed event and then through code initiate a click on the button.
Could you please check my thread on FormDataEvent on SBO 2005 SP01 P04
Thanks for the response
Similar Messages
-
How can i add a new row in System Matrix passing itemcode and quantaty
Hi All,
I have to add new lines in the matrix system only through the itemcode and item quantity. I tried several ways without success. Maybe the following code help to explain what I'm trying to do.
Someone already inserted rows in the matrix system? Can someone show me how I can do. This example is in C# but if someone has in VB I will apreciate.
FormUID = SBO_Application.Forms.ActiveForm.UniqueID;
f = SBO_Application.Forms.Item(FormUID);
try
SAPbobsCOM.Recordset oRS;
oRS = ((SAPbobsCOM.Recordset)oCompany.GetBusinessObje
SAPbobsCOM.BoObjectTypes.BoRecordset));
oItem = f.Items.Item("38");
oMatrix = ((SAPbouiCOM.Matrix)(oItem.Specific));
oEditText = ((SAPbouiCOM.EditText)oMatrix.Columns.Item(3).Cells.Item(oMatrix.RowCount - 1).Specific);
string Codigo = oEditText.Value; //Select the item number to use in strQuery
strQuery = "SELECT U_ART_COM FROM [@SB1EVOL_COMPOSTOS] where
U_ART_PRI='" + Codigo.ToString();
oRS.DoQuery(strQuery);
if (oRS.RecordCount > 0)
oRS.MoveFirst();
numart = oRS.RecordCount;
f.Freeze(true);
for (j = 1; j <= numart; j++)
try
ItemCodeTXT = oRS.Fields.Item(0).Value.ToString();
oEditText = ((SAPbouiCOM.EditText)(oMatrix.Columns.Item(3).Cells.Item(oMatrix.RowCount).Specific));
oEditText.Value = ItemCodeTXT.ToString();
f.Update();
oRS.MoveNext();
catch (Exception oEx)
f.Freeze(false);
f.Update();
MessageBox.Show(oEx.Message + " j = " + System.Convert.ToString(j));
j = 0;
f.Freeze(false);
f.Update();
In this example i try to add rows in Invoice matrix.
Thanks in advance.
Edited by: Luís Filipe Duarte on Jun 26, 2009 4:14 PM
Edited by: Luís Filipe Duarte on Jun 26, 2009 4:17 PMViva Vitor,
Antes de mais obrigado pela resposta.
È esse mesmo o meu objectivo. Passo a explicar qual é o objectivo deste desenvolvimento. O que se pretende é que quando um utilizador escreva o código de um artigo numa linha da matrix de um documento de venda o add-on vai ler esse artigo e de seguida consultar uma tabela de utilizador que ja esta criada para validar se esse artigo tem outros artigos associados, e se tiver, entao o addon tem que os escrever nas linhas imediatamente a seguir. Eu queria mesmo, era escrever qual era o artigo e qual a respectiva quantidade. Eu consigo encontrar qual o artigo que o utlizador escreve e qual os artigos associados. O meu problema acontece quando tendo adicionar as novas linhas.
Com o codigo que se segue podes ver que estou a atribuir a uma EditText o codigo do artigo a escrever. O problema é se correr em modo debug consigo ver que a aplicação chega a essa linha
oEditText.Value = ItemCodeTXT.ToString();
e volta para trás, ou seja entra num loop e nao sai daqui.
if (oRS.RecordCount > 0)
oRS.MoveFirst();
numart = oRS.RecordCount;
f.Freeze(true);
for (j = 1; j <= numart; j++)
try
ItemCodeTXT = oRS.Fields.Item(0).Value.ToString();
oEditText = ((SAPbouiCOM.EditText)(oMatrix.Columns.Item(3).Cells.Item(oMatrix.RowCount).Specific));
oEditText.Value = ItemCodeTXT.ToString();
f.Update();
oRS.MoveNext();
catch (Exception oEx)
f.Freeze(false);
f.Update();
MessageBox.Show(oEx.Message + " j = " + System.Convert.ToString(j));
Eu para adicionar uma nova linha o que tenho de fazer? não vasta passar a informação do item code?
Este desenvolvimento é para implementar ecoreee no sap. Nao sei já tiveste alguma coisa dessas entre mãos.
Obrigado mais uma vez pela atenção. Espero também um dia poder ajudar.
Com os melhores cumprimentos.
Luis duarte -
AffectsFormMode property of User defined field in system matrix
Hallo
I added one UDF in System matrix of service call id at panel Solution.
I set formated search for that UDF field to populate Symptons data from system knowldge base form (table).
I set the fromatted search property for that UDF Column is Automatic.
So when i nevigate record on Service call form, this UDF column fetch the value and so form goes in Update Mode.
Please i want to AffectsFormMode property for that column, so i have to get the form mode is "OK"
How it is possible.
Pleaase help me
Narendra
Edited by: NarenKD on Dec 28, 2010 12:24 PMHi H2
It is true,
But When i open 'Service Knowledge Base' child form by clicking ID Link Button in Solution Tab of Service Call Form
and update that form (here symptoms field important for me),
it does not change the state of Parrent Service call form to update.
Also there is not any link between this two table SCL1 service call and OSLT Solution knowldege table In PLD.
so i create Symptoms UDF in matrix at solution tab of Service call form.
also i create formatted search to fill this column.
I set that formatted search as "auto refresh when field change"
so when i navigate through service call records. it featches and put value in that UDF column and make form state "Update"
I want to avoid it.
means when i navigate the service call, when the value of that UDF Is different then OSLT table then that Service Call goes to update state otherwise it have OK state.
I used query in formatted search to fetch the value for UDF
What will be the solution for this problem.
Also tell me Can i call formatted search through program means can i give formatted search command (shift F2. or press formatted seach button) in program.
Regards
Narendra
Edited by: NarenKD on Dec 29, 2010 9:41 AM
Edited by: NarenKD on Dec 29, 2010 9:50 AM -
Choose From List and Golden arrow link in System Matrix UDF column
I'm wondering if there is a way through the SDK to create a 'Choose From List' and Golden arrow linked button in a System Matrix UDF column?
For example the Item Code in a sales order matrix does both.Hi,
Try this code for adding CFL.
SAPbouiCOM.ChooseFromListCollection oCFLs = null;
SAPbouiCOM.Conditions oCons = null;
SAPbouiCOM.Condition oCon = null;
oCFLs = oForm.ChooseFromLists;
SAPbouiCOM.ChooseFromList oCFL = null;
SAPbouiCOM.ChooseFromListCreationParams oCFLCreationParams = null;
oCFLCreationParams = ( ( SAPbouiCOM.ChooseFromListCreationParams )( SBO_Application.CreateObject( SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams ) ) );
oCFLCreationParams.MultiSelection = false;
oCFLCreationParams.ObjectType = "object id ";
oCFLCreationParams.UniqueID = "CFL1";
oCFL = oCFLs.Add( oCFLCreationParams );
oColumn.ChooseFromListUID = "CFL1";
//where oColumn is the instance of that column.
Hope u will get help....
Thanks and Regards,
Lalit -
Add data in a user defined column in System matrix
Hello All,
I have created a User defined column in the Goods Issue Form
When I choose a particular order, I get values in the matrix defined by system
Based on this selection, I fire a query which returns a value and this value has to be
displayed in the user defined column.
I am trying to add a value to this column but I get the following error message
Form Item is not Editable
Here is the code written in form activate event
code = (EditText)matrix.Columns.Item(1).Cells.Item(i).Specific;
string strcode = code.Value.ToString();
string str;
str = "select itemCode from owor where Docnum='" + strcode + "'";
RecSet.DoQuery(str);
e = (EditText)matrix.Columns.Item(15).Cells.Item(i).Specific;
strcode = RecSet.Fields.Item(0).Value.ToString();
try
matrix.Columns.Item(15).Editable = true;
e.String = strcode;
matrix.Columns.Item(15).Editable = false;
catch (System.Runtime.InteropServices.COMException com_err)
Regards
Nirmala BOn system forms, you cannot update the DataSource (DBDataSource) of system matrixes, SAP blocks it.
The only solution is to set the column visible and editable, and write in it with the matrix cell set value method.
The downside is that the user will be able to see and edit the values (unless you catch all edit and click events to that cell). -
Is posible to do a choosefromlist in a user defined column of system matrix
Hi all,
I have a question that i can´t solve. Is posible to do a choosefromlist in a
user defined column of system matrix?How can i do it?and i can use a datatable?How?
Thank you all again!
Regard.The answer is No , that I know of. The matrix permits ony the it_EDIT, it_COMBO_BOX, PICTURE, and CHECKBOX types. Additionaly it has an LINK_BUTTON type
Choosefrom list works best with UDOs. Which means that you have to create your table and specify it in an UDO in order for the choosefromlist to have access to it.
Maybe there's a manual workaround, like say for instance that if the user clicks the Tab button you can then pop up another screen with a list of items.
Hope it helps! -
Set value to system matrix (38) cell
Hello,
Thanks for your reply.
I need to set value for some UDF on a system matrix (38). Crurrently ,I use following code:
public void SetValue(string columnUniqueId, int matrixRowIndex, string value);
(I'm using the coresuite framwork)
The coresponding way in SDK would be:
oMatrix.Columns.Item("columnUniqueId").Cells.Item("matrixRowIndex").Specific.value = "value"
This works but when I have more than 10 UDF to fill together, the performance is bad. It takes nearly 3-4 seconds to load one item(row).
Is there any fast way to set the value? Or is there any other suggestion how to do it?No, the problem is not by loading of UDFs by a existing document.
But when you create a new document and you add a new postion to the document by choosing an item. Then our AddOn copies the UDF values from the item master data into the corresponding UDFs in the postion. At this moment I have to write them manually.
The best would be when the UDFs in the Item Master Data would be autiomatically created also in the postion of documents. Because in this way they would be automatically loaded by SBO itself.
I think SBO has a mistake in its design by here. -
Is it Possible to link user defined column of system matrix ?
HI All,
Is it possible to link (with ExtendedObject) user defined column of system matrix?
For Example, In purchase order form, I have added one column called U_ItemCode (through Tools-User Defined Fields-Marketing Doc). I want to give drill down to Item master.
Here is the code:
OColumn = OMatrix.Columns.Item("U_ItemCode")
olink = OColumn.ExtendedObject
olink.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_Items
the last line gives me 'Object refrence not set to an instance of the object' error.
For user form, it works fine (since it has the column defined as LinkedColumn in screen painter). How can we do this in system matrix?
thanks in advance
regards,
BinitaHi Binita,
nice to see you
i mean the following:
1.) add the field in marketing document lines -> you need this to store the values in database
but this user field column will not have the arrow so we do ...
2.) you also add a linked column to the system matrix. you can copy the values from the udf column
to your manual added column and than you can use the arrow. (maybe you should disabled this column)
the result is you have two columns - the udf column and the linked manual column
i hope you know what i mean - very complicated
regards
David -
Is it possible to add a column to the Item matrix in the ItemLookup form (C
Hi,
Is it possible to add a column to the Item matrix in the ItemLookup form (CFL or Find Lookup).
I need to display a value in the newly added column if the itemgroup in that row matches a certain value , how can I achieve this.
ThanksHi,
You may check this: Can we add CFL to the system/form defined textbox?
Please close your previous open thread.
Thanks,
Gordon -
hi kings
how to create check box in system matrix.
Thanks & Best Regards
B.Lakshmi NarayananHi,
I am in need of creating a UFD of type Check Box in Sales Order Screen. I would like to know how to go about defining the UDF. Please reply..
Thanks in advance.
Regards
Rohan S. Kamble. -
Rebinding datasource to system matrix
Hi,
is it possible in SBO to rebind in system form system matrix with another datasource? For example order items are shown in system matrix and I would like to bind this system item to my recordset.
The only solution I found is to hide all columns in matrix and add new columns bounded to my datasource, but this is not the best way. Any idea?
thx
PetrAs I found now, the way to add new columns isn`t working, because error "this item is not user defined item". Is any possibility to set the matrix as user matrix?
What I need is to keep the design and references from matrix, but change datasource to my datasource (I need to change some part of sql query). -
Hi,
I like to fill system Matrix with data; please find the code below.
Thank you very much for your good work and support.
Thank you,
Rune
CODE
#region SalesOrderItemLine_GetDataFromDataSource
public void SalesOrderItemLine_GetDataFromDataSource( SAPbouiCOM.Form oForm, bool Matrix77_AddRefresh )
try
if ( Matrix77_AddRefresh )
oForm.DataSources.DataTables.Add("SYS_77");
oForm.DataSources.DataTables.Item("SYS_77").ExecuteQuery("SELECT [Code],[Name],[U_Weight],[U_PoNo],[U_CoopName],[U_Consignee],[U_PalGroup],[U_Container],[U_ItemCode],[U_CheckBoxSelect] FROM [dbo].[@MyTable] WHERE [U_MatrixAorB] = 'A' AND [U_WRKsalesOrderYN] = 'N'");
( ( SAPbouiCOM.Matrix ) ( oForm.Items.Item("77").Specific ) ).Columns.Item("1").DataBind.Bind("SYS_77", "U_ItemCode");
( ( SAPbouiCOM.Matrix ) ( oForm.Items.Item("77").Specific ) ).Clear();
( ( SAPbouiCOM.Matrix ) ( oForm.Items.Item("77").Specific ) ).LoadFromDataSource();
( ( SAPbouiCOM.Matrix ) ( oForm.Items.Item("77").Specific ) ).AutoResizeColumns();
catch ( Exception Error )
oApplication.MessageBox("Add-On Error-3232: = " + Error.Message, 1, "Ok", "", ""); // My Error Code
#endregionHi David!
This is a Product Development Collaboration suggestion!
I like to load data into system matixes...that could be really nice!
(No my problem is still out there...
Thank you,
Rune -
I have added a user defined field at the row level.I am performing some calculation on this udf in the goods receipt po form.I need to refresh this system matrix after performing calculations.Is it possible to refresh system matrix programatically ?
Hi Dilip,
Anoop is right, there is no function for refreshing the matrix so you'll have to get around it like this:
1. Update the document
2. Freeze the form
3. Put the form in Find mode
4. Fill in the document number (docnum)
5. Programmatically click the Find button (OK button)
6. Put the form back in the mode it was before
7. Unfreeze the form
Regards,
Marnix -
Is there any way to put the values inthe system matrix which is non editabl
is there any way to put the values inthe system matrix which is non editable...
this Q is not that much priority since i had achieved the requirement other way round by having user defined matrix ... but if i get the way for this it will help my add on performance much better...Hi Raj, I didnt get all the details but here some ideas how you can solve your issue:
Depending in the system form you are working you can always use a DBDataSource in order to manipulate the rows in a matrix. It's much better as using the objects of the matrix itself. In this case you can use:
oMatrix.FlushToDataSource()
oDBDsource.SetValue("U_Quan", pVal.Row, "101")
oMatrix.Clear()
oMatrix.LoadFromDataSource()
As you can see in SetValue i'm obtaining the Column, then the row number and then setting a NEW value for this cell.
Please consider if you can use DBDataSource instead of UserDataSource.
If the answer is yes then you can use the following:
oMatrix.FlushToDataSource()
'//Get the line you want
matrix.GetLineData(pval.row)
'//Call the Userdatasource assigned to that column
UserDataSource = UserDataSources.Item("ItmCode")
'//Set the new value
m_UserDS.ValueEx = "A02520"
oMatrix.LoadFromDataSource()
You can also use:
oMatrix.Columns.Item("ItemName").Cells.Item(l_rownum).Specific.String = "A02520"
In case you are not assigning the string in a combobox of course.
Good luck!
Felipe -
Error while installing J2EE Add- In to the ABAP system
Error while installing J2EE Add-In to the ABAP system
We are installing J2EE Add-In to the ECC5 System in the new hardware.
When are getting Error while installing J2EE Add-In to the ABAP system.
Transaction Begin*****************************
ERROR 2005-08-10 14:58:28
CJSlibModule::writeLogEntry()
CJS-20011 J2EE engine configuration error. DIAGNOSIS: Error when
configuring J2EE Engine. See output of
logfile /usr/sap/QSS/install/batchconfig.log: 'My Library Path
is: /usr/j2se/jre/lib/sparcv9/server:/usr/j2se/jre/lib/sparcv9:/usr/j2se/jre/../lib/sparcv9:/tmp/sapinst_exe.13084.1123702275:/usr/lib::/usr/openwin/lib:/usr/sap/QSS/SYS/exe/run:/oracle/QSS/920_64/lib:/oracle/QSS/920_64/lib32:/usr/lib
ElementInfoTask has finished successfully on dispatcher
ConsoleLogsTask has finished successfully on dispatcher
ChangeManagerPropsTask has finished successfully. Manager:
LockingManager on dispatcher
ChangeManagerPropsTask has finished successfully. Manager:
ClusterManager on dispatcher
ElementInfoTask has finished successfully on server
ConsoleLogsTask has finished successfully on server
ChangeManagerPropsTask has finished successfully. Manager:
LockingManager on server
ChangeManagerPropsTask has finished successfully. Manager:
ClusterManager on server
ChangeServicePropsTask has finished successfully. Service: dbpool on
server
ChangePasswordsTask finished successfully.
Error occured while connecting to database (UploadFile). Msg: No such
algorithm: DESede
Transaction end***********************************
We tried twice clean installation, after removing j2ee dir, SCS and
resp profiles and droping PSAPQSSDB tablespace and SAPQSSDB user.
I have also confirmed the passwords in ABAP system/000 for SAPJSF, DDIC, J2EE_ADMIN, J2EE_GUEST.
We are getting the same error in both tries.
Kindly advice us to resolve the problem.
Thanks and Regards,
SrinivasAnanda,
you saved my day! I've been banging my head against the wall with this same problem during a J2EE add-in installation for SRM 4.0 on Windows, in preparation of an LAC 2.0 installation. I had tried deleting the schema first, but that didn't work. After I removed the sys\global\security folder as well, it worked perfectly.
Thank you.
Maybe you are looking for
-
LiveCache - LC10 message - Index issue
hi, LiveCache - LC10, - Problem Analysis ->Performance -> Database Analyser -> bottleneck report The message read as follows: LiveCache- Bottle-neck messages: 2 tables contain > 1.000.000 records but only 20.000 rows will be sampled for statistics. T
-
Dear All can anyone explain in which business procees why & where we go for IM with an example & also what was benifits if we go for IM-PS over we use only PS. as per my knowledge IM was use Capital investments, such as the acquisition of fixed asset
-
Importing packages and classes
Hi, I wanted to know if anyone could tell me how to import a packages under the following circumstances: Say the class i'm importing TO is called SourceClass1, and is in a folder SourceFolder1, and SourceFolder1 is in the folder Root. Let's say I wan
-
Help me, about SMSDemo in WTK 2.0
When I run the SMSDemo, I can successfully send the SMS to the Utility but cannot receive the SMS (msg=conn.receive() got a NullPointerException). Anyone can help me? Or has the same problem? Please response.
-
Contacts Won't Sync with Yahoo
I can't get Contacts on my Pre to sync with my Yahoo account. The contacts I already have on Yahoo will download to the phone, but any new ones that I create on the phone will not upload to Yahoo, no matter how many time I try to sync them. In fact