Skip to Content
0

What is the Form type of Sales Blanket Agreement in SAP B1?.

Sep 28, 2017 at 03:41 PM

100

avatar image

Hi all,

I want to edit title of Sales Blanket Agreement form of SAP B1 by using sdk codes but as I think I will need pVal.FormTypeEx = ""

What is the Form type of Sales Blanket Agreement?

the following is my code of to change the name from Sales Blanket Agreement to Investment


Option Strict Off
Option Explicit On
Imports SAPbouiCOM.Framework
Namespace SalesNewForm
    <FormAttribute("1250000100", "Sales Blanket Agreement_1250000100.b1f")>
    Friend Class Sales_Blanket_Agreement_1250000100_b1f
        Inherits SystemFormBase
        Public Sub New()
            If pVal.FormTypeEx = ".........." Then
                If pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD And pVal.BeforeAction = False Then
                    Dim oForm As SAPbouiCOM.Form
                    oForm = oApp.Forms.Item(pVal.FormUID)
                    oForm.Title = "Investment"
                    oForm = Nothing
                End If
            End If
        End Sub
        Public Overrides Sub OnInitializeComponent()
        End Sub
        Public Overrides Sub OnInitializeFormEvents()
        End Sub
        Private Function pVal() As Object
            Throw New NotImplementedException
        End Function
        Private Function oApp() As Object
            Throw New NotImplementedException
        End Function
    End Class
End Namespace


Please anyone can help me

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
DIEGO LOTHER Sep 28, 2017 at 03:57 PM
0

Hi Rurangwa,

The formTypeEx is 1250000100.

You can see this info enabling the option System information under menu View -> System Information.

Hover the mouse under your form and you are able to see the form type on bottom of your sap business one.

Hope it helps.

Kind Regards,

Diego Lother


img.png (191.5 kB)
Show 4 Share
10 |10000 characters needed characters left characters exceeded

Hi Diego,

I tried to edit system form title but I failed, I tried to review in sample C:\Program Files (x86)\SAP\SAP Business One SDK\Samples\COM UI\VB.NET\11.SystemFormManipulation and other different samples but there is no example which shows how to edit system form title.

System form does not show back end (codes) i tried to edit it normally in caption but after packaging my addon it displays original title.

How can I change system form title?

Please anyone can help me

0

Hi Rurangwa,

On your ItemEvent, add the code below:

if(pVal.BeforeAction && pVal.EventType == SAPbouiCOM.BoEventTypes.et_FORM_LOAD && pVal.FormTypeEx == "1250000100")
{
       SAPbouiCOM.Form oForm = SBO_Application.Forms.Item(FormUID);
       oForm.Title = "Investment";
}<br>

Kind Regards,

Diego Lother

0

Hi Rurangwa,

I forgot to mention, you can change the menu entry and form title of Sales Blanket Agreement on Document Numbering - Setup form, without any code. Look this explanation:

http://www.battleshipcobra.com/2011/changing-menu-titles-sbo/

Hope it helps.

Kind Regards,

Diego Lother

0

Yes, That's good, but what I want to do is to display Investment Form to some users and Sales Blanket Agreement Form to other users, where I will assign addon to specific users.

I think that option is invalid in Document Numbering-Setup

But I think, I do know if it's possible in SAP B1.

Thank you

0