Hide System Forms
Hi,
I want to know if is possible to hide system forms in business one. I use Application.ActivateMenuItem("2310") for to load form Landed Costs. But what I need is it hide while some actions occurs in background this form.
It is possible?
Thanks.
Hi
Try
Dim strFormUID As String = SBO_Application.Forms.ActiveForm.UniqueID.ToString
oForm = SBO_Application.Forms.Item(strFormUID)
oForm.Visible = False
and then later
oForm.Visible = True
Message was edited by:
Neftali Figueroa
Similar Messages
-
Hi all
I have a problem related to system form. I want to make a noeditable field to the system form ,
suppose a have sales order form , in this form there r lot of fields. i want to make a noeditable field to name field by code, so what is the process, if possable so plz send me codeHi,
if you want to hide field look at
How to hide a field in sap business one - there is no more possibilities how to hide filed on system form
if you want to make the field noneditable, catch the event for pressing key, than the field you have focused and when its the field you want to set as noneditable, set bubbleevent to false.
hope it helps
Petr -
Hi,
I expanded the width of the Sales Quotation system form and move fields to the right to allow space for new fields in the centre.
I used the oForm.Width to adjust this.
If I load the form, expand to full screen, everyhting is in the right place and looks good. However, if i adjust the form dimensions slightly and then expand to full screen the form items, system and user defined, overlap or get lost under the central tab area etc etc. To recover I have to resize the form so both X and Y scroll bars appear, close the form, and then load the form so that it appears with its system minimum dimensions.
Has anyone else experienced this? I also notice that another parameter for forms is oForm.Clientwidth, what is the difference as I can't make this work either???
I can release my addon if someone wishes to try this and see what I am experiencing or I can upload photos.
I think it just that the addon need to take care of dynamic form sizing - cater for resizing events?
Any Ideas???Right, Iam in the middle of my new version but this is the snippet of code that causes the problem, if not clear from this then I'll email code out later.
Private Sub oApp_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles oApp.ItemEvent
If pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD And pVal.FormType = 149 And pVal.Before_Action = True Then
Try
Dim oItem As SAPbouiCOM.Item
Dim oForm As SAPbouiCOM.Form
Dim oCombo As SAPbouiCOM.ComboBox
Dim oEdit As SAPbouiCOM.EditText
Dim oLabel As SAPbouiCOM.StaticText
Dim oXplaneItem As SAPbouiCOM.Item
Dim oYplaneItem As SAPbouiCOM.Item
Dim iUnitMove As Integer
Dim iCentralLocation As Integer
Dim iBottomCentralLoc As Integer
oForm = oApp.Forms.Item(FormUID)
'Constants
iCentralLocation = 75
iBottomCentralLoc = 40
iUnitMove = 350
'Add fields to Table for new Editbox fields
oForm.DataSources.DBDataSources.Add("OQUT")
'Rename "Owner" static text to "FSE"
oItem = oForm.Items.Item("230")
oLabel = oItem.Specific
oLabel.Caption = "FSE"
'Move Top RIght Fields to create space in middle for new date fields
oForm.Width = oForm.Width + iUnitMove
oForm.Items.Item("9").Left = oForm.Items.Item("9").Left + iUnitMove
oForm.Items.Item("88").Left = oForm.Items.Item("88").Left + iUnitMove
oForm.Items.Item("8").Left = oForm.Items.Item("8").Left + iUnitMove
oForm.Items.Item("60").Left = oForm.Items.Item("60").Left + iUnitMove
oForm.Items.Item("81").Left = oForm.Items.Item("81").Left + iUnitMove
oForm.Items.Item("11").Left = oForm.Items.Item("11").Left + iUnitMove
oForm.Items.Item("10").Left = oForm.Items.Item("10").Left + iUnitMove
oForm.Items.Item("86").Left = oForm.Items.Item("86").Left + iUnitMove
oForm.Items.Item("46").Left = oForm.Items.Item("46").Left + iUnitMove
'Move bottom right fields to create space in middle for new fields
oForm.Items.Item("23").Left = oForm.Items.Item("23").Left + iUnitMove
oForm.Items.Item("22").Left = oForm.Items.Item("22").Left + iUnitMove
oForm.Items.Item("25").Left = oForm.Items.Item("25").Left + iUnitMove
oForm.Items.Item("24").Left = oForm.Items.Item("24").Left + iUnitMove
oForm.Items.Item("283").Left = oForm.Items.Item("283").Left + iUnitMove
oForm.Items.Item("42").Left = oForm.Items.Item("42").Left + iUnitMove
oForm.Items.Item("90").Left = oForm.Items.Item("90").Left + iUnitMove
oForm.Items.Item("91").Left = oForm.Items.Item("91").Left + iUnitMove
oForm.Items.Item("89").Left = oForm.Items.Item("89").Left + iUnitMove
oForm.Items.Item("99").Left = oForm.Items.Item("99").Left + iUnitMove
oForm.Items.Item("27").Left = oForm.Items.Item("27").Left + iUnitMove
oForm.Items.Item("30").Left = oForm.Items.Item("30").Left + iUnitMove
oForm.Items.Item("29").Left = oForm.Items.Item("29").Left + iUnitMove
'Move "Copy From" & "Copy To" buttons
oForm.Items.Item("10000330").Left = oForm.Items.Item("10000330").Left + iUnitMove
oForm.Items.Item("10000329").Left = oForm.Items.Item("10000329").Left + iUnitMove
'Expand Grid in Contents Tab to fit form again
oForm.Items.Item("115").Width = oForm.Items.Item("115").Width + iUnitMove
oForm.Items.Item("116").Width = oForm.Items.Item("116").Width + iUnitMove
oForm.Items.Item("38").Width = oForm.Items.Item("38").Width + iUnitMove
oForm.Items.Item("118").Left = oForm.Items.Item("118").Left + iUnitMove
oForm.Items.Item("65").Left = oForm.Items.Item("65").Left + iUnitMove
oForm.Items.Item("75").Left = oForm.Items.Item("75").Left + iUnitMove
'Move Items in Logisitcs Tab
oForm.Items.Item("233").Left = oForm.Items.Item("233").Left + iUnitMove
oForm.Items.Item("223").Left = oForm.Items.Item("223").Left + iUnitMove
oForm.Items.Item("238").Left = oForm.Items.Item("238").Left + iUnitMove
oForm.Items.Item("224").Left = oForm.Items.Item("224").Left + iUnitMove
oForm.Items.Item("234").Left = oForm.Items.Item("234").Left + iUnitMove
oForm.Items.Item("234").LinkTo = "224"
'Move Items in accounting tab
oForm.Items.Item("156").Left = oForm.Items.Item("156").Left + iUnitMove
oForm.Items.Item("157").Left = oForm.Items.Item("157").Left + iUnitMove
oForm.Items.Item("119").Left = oForm.Items.Item("119").Left + iUnitMove
oForm.Items.Item("120").Left = oForm.Items.Item("120").Left + iUnitMove
oForm.Items.Item("124").Left = oForm.Items.Item("124").Left + iUnitMove
oForm.Items.Item("123").Left = oForm.Items.Item("123").Left + iUnitMove
oForm.Items.Item("135").Left = oForm.Items.Item("135").Left + iUnitMove
oForm.Items.Item("134").Left = oForm.Items.Item("134").Left + iUnitMove
'Hide system predicted closing date as picks 1 month later if not completed
oForm.Items.Item("12").Visible = False
oForm.Items.Item("13").Visible = False
Catch ex As Exception
MsgBox(ex.Message)
End Try
End If
End Sub
If you try this in debug mode, you will still see the system forms items affected in the way I have described.
Edited by: David Alexander on Oct 14, 2008 1:32 PM -
Tell me the Way to Hide System Information Messages form the SAP R/3 ECC 6
It seems a bit suprising as you can edit the combination you describe normally in SO10 without a message (although I've only testing in ECC5).
Try setting a breakpoint in form te_name_reserves inside LSTXXFTE as this seems to be where the system determines whether to issue the message or not... I could edit this combination from SO10:
TEOBJECT = TEXT
TENAME = ZMY_TEXT
TEID = ST
TESPRAS = E
Is SYSTEM_STATUS returning "C" for you?.. in debug I see id_status = "S" and name_status = "C", and systems_status(1) = "C".
Jonathan -
Problem with AddRow() in custom matrix on System Form
Hello all,
I'm trying to add 1 row to a custom matrix on a system form (Sales Quotation).
However I always get a RPC_E_SERVERFAULT exception when calling pMatrix.AddRow() and SBO crashes...
My code is simple:
[B1Listener(BoEventTypes.et_CLICK, false)]
public virtual void OnAfterClick(ItemEvent pVal)
Form pForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
// Add matrix line
Matrix pMatrix = (Matrix) pForm.Items.Item("MATRIX").Specific;
pMatrix.AddRow();
// Set matrix line data
The matrix shows ok in the system form, inside a new folder.
What is the problem with my code?
Is there any way to add rows to a custom matrix in a system form?
This code runs ok if executed in a custom form...
Thanks!
Manuel Diashi.
R u facing any problem ...
actually add row and del row both are same.
in normal customization form and system form matrx...
Any problem are u facing... -
How to Refresh System Form in Run Time
Dear All,
Please give me idea for Refresh System Document in Run Time using DI,basically I am using system columns for update for some scenarios.
So please give solution that how should refresh system form.
Thanks a lot.
Ashish Singh.Hi,
Please post above discussion in SDK forum.
Thanks & Regards,
Nagarajan -
How to create add-on of a system form in sap b1 9.0?
Hi all,
I have a problem related to the creation of a system form add-on of sap b1 9.0.
I can develop some projects in visual basic, but about sap b1 add-on, I know how to package files of to install (.ard and .exe files) and I also know how to register .ard file in sap b1 9.0, So I tried to register all projects found in SDK sample folder that was correct.
I tried to do an example of project found in SDK Help Center.
But the problem I have to day related to the creation of system form add-on.
The steps I tried to do are:
1. I opened SAP B1 Studio for Microsoft Visual Studio
2. Right click my project and add the system form (Employee Master Data)
3 Connection string I used in Command line arguments 0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056
4. I added one field (CFL of BPCode) to Employee Master Data. I did n't add any reference because when I add UI API Vission 9.0 to system form or user form of sap b1 it gives errors in Menu.vb. I do know why.
5. I converted in 32 bit and build my project
6. I re_opened new visual studio 2010 for creating new project with SAP B1 AddOnInstaller.NET Wizard
7. From here I did every thing according to the video of Bryan Gomez
Creating and Registering SAP Add-on - YouTube
8. I registered my .ard file
9. But when I start my add-on it gives error (Add-on connection timed out)
The questions I want to ask,
1. If you are creating the add-on of system form Is there any other thing needed to do more than the above I explained?.
2. Is it necessary to go in SDK code when you are using the system form like that?.
3. If it is necessary to add reference of UI API in project, how to handle error occurs when we add that the reference to the project which is using a system form?.
Please anyone who has an idea he/she can help me.Hi pallavi p,
That's good but as I said above when I add the reference of UI API Version 9.0 in the project which has the system form or user form of sap b1 it exactly gives errors in menu.vb of the project.
So let me give you the way you can try.
1. Open new project/ visual basic/ sap business one/ sap business one add-on project. and save it any where
2. Right click on your project
3. Add new item
4. Sap Business One
5. System form (Employee master data) or user form
6. Add
And then if your form is opened
7. Go to add the reference of UI API Version 9.0
8. Check errors found in menu.vb (or in OutPut)
So if it's possible try to solve that problem.
Please anyone can help me. -
!0.5.8 How do I copy the 'system' form one internal Hard drive to an other (BY CD Packed up) I have tried but it will no show 'live' system folder - do and how can I bless it ? Thank you
Carbon Copy Cloner will allow you to de-select directory trees, so you could use it to copy over everything EXCEPT the /Users directory tree.
Mac OS X is NOT just the System Folder. If you do not copy over the rest of Mac OS X, it will not boot. So better to exclude Users and take everything else, then it is to try and pick and choose.
The other approach is to install a New Mac OS X, and then copy over the stuff you want from the home folder(s) and reinstall any apps you want. -
How to register add-on of edited system form in sap b1 9.0?.
Hi all,
I have a problem in SAP b1 9.0.
Actually I added one field of BPCode to Employee master data, so I want to register an add-on of that system form in SAP b1 9.0.
When I create file of .ard as we watch it in video of
Bryan Gomez
Creating and Registering SAP Add-on - YouTube it will be created correctly, But the problem is when I register that the file of .ard it gives error (Cannot create a file when that file already exists). Again when I create a file of .ard of any other User form it gives the same error (Cannot create a file when that file already exists).
But when I create and register the add-on of Hello World in Sample folder of SDK it will be registered correctly.
How can I solve that problem.
Anyone can help me please.Hi pallavi p,
That's good but as I said above when I add the reference of UI API Version 9.0 in the project which has the system form or user form of sap b1 it exactly gives errors in menu.vb of the project.
So let me give you the way you can try.
1. Open new project/ visual basic/ sap business one/ sap business one add-on project. and save it any where
2. Right click on your project
3. Add new item
4. Sap Business One
5. System form (Employee master data) or user form
6. Add
And then if your form is opened
7. Go to add the reference of UI API Version 9.0
8. Check errors found in menu.vb (or in OutPut)
So if it's possible try to solve that problem.
Please anyone can help me. -
How to add new fields to the system form (Ex.expenses to a/r invoice form)
hi
can any one tell me how to add new fields to the system form (Ex.expenses to a/r invoice form)
i want to add expenses field to system a/r invoice form and connect data base also.
i used the code of samples\11.system form manipulation(vb.net) but i'm not able to get it....so can any one help with code or concepts.
reply soon plz..
thankQIf I understood you correctly, you are just trying to add new fields to the invoice form and then use them in your form. you should first go and add the field to your tables, which you would do by going to Tool --> User Defined Fields --> Manage User Fields. There are different documents or categories given. For ex. for invoices, Sales Orders you would add your field under the Marketing Documents. If you want the field to be just one per invoice, add it to the Title, otherwise if you want a field per invoice or Sales Order line, add it to the Rows section. Once you have done that then you can just create a edit box or drop down to represent the field and set the datasource for that to your field. If you want example code to do that, let me know.
-
I need help to hide system data in service desk message
We want to our service desk message has so view:
Description AS2_SMS 09.06.2010 10:40:09
test sen
test sen
But it include very many technical info and view so:
Description AS2_SMS 09.06.2010 10:40:09
test sen
test sen
System Data ... 09.06.2010 10:40:10
SY-DBSYS................ ORACLE ...
SY-HOST................. ...
SY-OPSYS................ SunOS ..
SY-SYSID................ ...
SY-MANDT................ 200
SY-UNAME................ ...
SY-DATUM................ 20100609
SY-UZEIT................ 123949
SY-ZONLO................ CET
SY-CALLD................
SY-CPROG................ SAPLSMTR_NAVIGATION
SY-DYNNR................ 0100
SY-REPID................ SAPLSMTR_NAVIGATION
SY-TCODE................
SY-MSG.................. 000
SLIC_SYSID.............. ...
SAP version............. 701
operating system........ SunOS
machine type............ i86pc
node name............... ...
SAP system id........... ...
database system......... ...
database name........... ...
database host........... ...
database owner.......... SAPSR3
rsyn....................
IP address.............. ...
kernel release.......... 701
database library........ OCI_102 (10.2.0.2.0)
kernel compiled......... ...
kernel patch level...... ...
supported SAP vers...... 700, 701
supported database...... ORACLE 9.2.0.., ORACLE 10.1.0.., ORACLE 10.
valid OP system......... SunOS ...
OP system release....... 5.10
ABAP load version....... 1565
CUA load version........ 32
kernel kind............. opt
relinfo................. valid
hot package level....... 5
Компонент ПО/верс./подд. EA-APPL 600 0016
Компонент ПО/верс./подд. EA-DFPS 600 0016
Компонент ПО/верс./подд. EA-FINSERV 604 0004
Компонент ПО/верс./подд. EA-GLTRADE 600 0016
Компонент ПО/верс./подд. EA-HR 600 0045
How to hide System Data part? We use auth CRM_TXT_ID and set TEXTID = SU01 (without SUSD) but system data are included in message.
Edited by: Andrey Garshin on Jun 9, 2010 11:19 PM
Edited by: Andrey Garshin on Jun 9, 2010 11:54 PMwhat is term - "scheme"? I don't meet that.
COMV_TEXT_PD is clear for all select.
but:
COMV_TEXT_AS - CRM_ORDERH :
01 Business Partner Text
02 Final Note
03 Header Memo for Predecessor
ASH_PCKI Packing Instructions - Header
IPM00001 IPM BP Text Supplier
ISA_AG01 ISA: Customer Request
OPSM0001 StandardText Sales Methodology
SUSH0001 Header Text and Response Text
not SUSD.
may be another COMV_TEXT*-? Where is it customize?
I find Text Determination Procedure (se73) - CRM_ORDERH-SUSD. But it for print header only, imho.. -
Updating a user text field in sap system form in Find Mode
Dear All,
I created a Edit text field in Sap System form [FormType :149] -Sales Quotation. I want to update a value to the text while clicking OK button in Find Mode. the code is given below.
If pVal.ItemUID = "1" And pVal.FormMode = SAPbouiCOM.BoFormMode.fm_FIND_MODE And (Not pVal.Before_Action) And pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK Then
oForm = SBO_App.Forms.Item(FormUID)
oForm.Freeze(True)
oItem = oForm.Items.Item("txtUID")
oEdit = oItem.Specific
oRS = ConSBOdb.Execute("Select * from BG_CAMPAIGNSHDR where CMIDENT ='" & Trim(oEdit.Value) & "'")
oItem = oForm.Items.Item("txtCampgn") ' // User created field
oItem.Enabled = False
oEdit = oItem.Specific
If oRS.EOF = False Then
oEdit.Value = oRS.Fields("CMNAME").Value
Else
oEdit.Value = ""
End If
end if
while clicking the OK button, Based on the value fetched on the screen, I have to open a recordset and get the value. But, the screen loads the value to the system textboxes. I could not get those value to run the Sql in the event. it returns empty. Could any one help please how to solve this ?
Thanks in advance.
Manikandan.Hi,
Try This..
If pVal.FormType = 149 And pVal.ItemUID = "1" Then
If pVal.FormMode = SAPbouiCOM.BoFormMode.fm_FIND_MODE Then
If pVal.Before_Action = False Then
If pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED Then
Try
oForm = SBO_App.Forms.Item(FormUID)
oForm.Freeze(True)
oItem = oForm.Items.Item("txtUID")
oEdit = oItem.Specific
oRS = ConSBOdb.Execute("Select * from BG_CAMPAIGNSHDR where CMIDENT ='" & Trim(oEdit.Value) & "'")
oItem = oForm.Items.Item("txtCampgn") ' // User created field
oItem.Enabled = False
oEdit = oItem.Specific
If oRS.EOF = False Then
oEdit.Value = oRS.Fields("CMNAME").Value
Else
oEdit.Value = ""
End If
Catch ex As Exception
SBO_application.MessageBox(ex.Message)
End Try
End If
End If
End If
End If
Best Regards,
Mahendra -
Form Settings getting cleared for system form
Hi All,
I have added the code for setting editable=false for the following items in Updatemode and Ok mode.Then in add mode,i made the columns to editable = true .First time it is working fine.
the next time, I got the error message as "item is not a user defined item" on ItemCodeCol.editable = true.Then i check the form settings, the Active field for the itemcode cleared.When i set to Active as checked and run my code,it is working fine.How to solve the issue and how to avoid the setting of the fields.
This is my code :
If oSalesQuotationForm.Mode = SAPbouiCOM.BoFormMode.fm_ADD_MODE Then
oSQItemCodeCol.Editable = True
oSQItemNameCol.Editable = True
oSQQtyCol.Editable = True
oSQWhsCodeCol.Editable = True
ElseIf oSalesQuotationForm.Mode = SAPbouiCOM.BoFormMode.fm_UPDATE_MODE Or oSalesQuotationForm.Mode = SAPbouiCOM.BoFormMode.fm_OK_MODE Then
oSQItemCodeCol.Editable = False
oSQItemNameCol.Editable = False
oSQQtyCol.Editable = False
oSQWhsCodeCol.Editable = False
End If
Thanx in advance
Regards
Mohana
Edited by: Mohana Annadurai on Feb 20, 2009 5:28 AMHi,
This is not UDF in system form.That is , the itemcode,itemname,qty,warehouse field in the content tab of the sales quotation form.when i change the field to editable and noneditable,
1)it is allowing to set the editable property to false and true for the first time.
2) After adding the record,i navigate the record to check ,at that time,as per my code,in update mode,it is not allowing to edit.
3)When i click add menu,and i chose customer, at that time it is not allowing to add a itemcode,becoz the itemcode field is disabled.
4)when i check in form settings, in Table format, Active gets unchecked for the above fields.
5)I want to avoid this changing of active in form settings.How to to this...
Regards
Mohana -
Is it possible to get System form Matrix Data in DI API?
HI,
i would like to use DI API to get the System Form Matrix ( like Sale Order ) . Is it possible?
i know that using UI API is most easier way. However, UI API cause extermemly slow perfomance.
no matter i use Form.Freeze or not. Please Advise
Thanks
Gordon
Edited by: Gordon Ho on May 7, 2009 7:03 AMHi,
U can access the Sales Order rows using the DI only if its added to the system. U can use the DOCUMENT object and Document.Lines and access the row data. Please check the SDK help file for more information.
From SDK Help
Document_Lines is a child object of Documents object and represents the line entries of a document in the Marketing Documents and Receipts module and the Inventory and Production module.
Vasu Natari. -
Opening a System-Form with selected Data
Hi,
i´m looking for a way to open a System-Form, e.g. Orders with
selected Data.
In the moment i do the following:
application.ActivateMenuItem("2050"); // orders
SAPbouiCOM.Form belegForm = application.Forms.ActiveForm;
belegForm.Mode = SAPbouiCOM.BoFormMode.fm_FIND_MODE;
SAPbouiCOM.EditText edDocNum = (SAPbouiCOM.EditText)belegForm.Items.Item("8").Specific;
edDocNum.Value = "4711";
belegForm.Items.Item("1").Click(SAPbouiCOM.BoCellClickType.ct_Regular);
This works, but the screen is blinking, because first the form ist opened and shown with
empty values and then filled.
Is there a way to activate the form and do the search-Operation and afterwards show it ?
I think ist must be possible, because when clicking on the link-Button near CardCode, the Contacts-Form
is opened in this way.
regards MatthiasHi Ibai,
i have tested both: freeze and form.visible = false in
the form_load-Event. It doesn´t work here.
Also neither the call
application.ActivateMenuItem("1281"); // find
nor the call
oForm.Mode = SAPbouiCOM.BoFormMode.fm_FIND_MODE;
work in the form_load-Event.
After the form-Load-Event the et_FORM_ACTIVATE-Event is called.
Here the functions work, but here the screen is already visible.
regards Matthias
Maybe you are looking for
-
On my old PC, I have Toy Story 3 installed on my iTunes. But now I have purchased a new PC and scrapped the old one. I downloaded iTunes and re-downloaded all my previous purchases. But I could not see Toy Story 3 or any of my other movies there. Hel
-
Advance table column header problem
Hi experts i am facing a problem in advacne table , i have created the column dynamicaly for the advance table but the column header is displaying in another column and my date field is displaying in another column .. i am pasting my code OAAdvancedT
-
How to configure Sesion Factory in Hibernate to implement getCurrentSession
Hi, I am new in Hibernate and I am using an application where I need to improve the performance while uploading the users through a utility. While analyzing the system, I found that, to insert a single user there were around 8 hits are made to DB to
-
So two days into my S6 experience and this is annoying me! If you click on it you get this These are various numbers - just out of interest the Customer Srv number is for PAYG - I am on refresh. Despite my best efforts I can't delete this O2 icon,
-
If you create an App for Itunes can it then be downloaded to Nano
How could you create an App for Nano