cancel
Showing results for 
Search instead for 
Did you mean: 

Editing System Form

Former Member
0 Kudos

Hello, I have a problem:

I want to editing system form ("Item Master Data"), I need then I create New "Item" in this form Stock Item and Sales Item (Check Box) was marked (default value) as N

I can do that in Addon (UI), but I think I can editing system form whithout addon (try to editing XML file for "Item Master Data"), if it posable plese tell me how? or where I can found System Form XML file

Thanks, sorry for my "English" )

I found some documents about "How editing system form", in this examle author uses some program Fig. 1.5, but I didn't found it in SAP Portal

Edited by: Vladimir Pochinko on Jan 22, 2009 10:52 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

U can update system form.First u need to access it and create object of system form as,


 Dim objForm As SAPbouiCOM.Form
 objForm = SBO_Application.Forms.GetFormByTypeAndCount("150", 1)

U can add a new control label as,


Dim  lblType As SAPbouiCOM.StaticText
 objForm.Items.Add("lblType", SAPbouiCOM.BoFormItemTypes.it_STATIC)
            lblType = objPermanentForm.Items.Item("lblType").Specific
            lblType.Caption = "Applicable to "
            objForm.Items.Item("lblType").Width = 65
            objForm.Items.Item("lblType").Height = 20
            objForm.Items.Item("lblType").Top = 2
            objForm.Items.Item("lblType").Left = 10
            objForm.Update  

Former Member
0 Kudos

Thanks, I know that, but I want do that (Editing System Form -> Change default value for the System Field "Stock Items" -> tNO) whithout addon, I thougt it posable make just editing XML file for "Item Master Data" form

Edited by: Vladimir Pochinko on Jan 22, 2009 11:45 AM

Edited by: Vladimir Pochinko on Jan 22, 2009 11:45 AM

Former Member
0 Kudos

Hi Vladimir Pochinko,

I f you dont want to use Addon(Coding) for adding the fields on Item Master, then there is an alternative for this as below:

Goto Tools -> User defined Fields Management -> A form will open -> Chose Master Data -> Items -> Items and then press the button Add(below) -> new form will open -> Now here you can create the new fields of Check Box.

Now Open the Item Master and press Shift_ctrl + U.A new form alongwith the Item Master will open. Here you can find your Check Box(Yes/No) fields. All Add/Update functionality will be handled by SAP B1 itself

Rgds,

Anuj P. Singh

Former Member
0 Kudos

Hi

I think you can't create check box by this method...

Former Member
0 Kudos

Pari si true, you cannot add checkbox to user defined values form.

If is enaough for you have for example combobox with 2 values (YES/NO), you may do it in way with user defined field (and set YES as default).

If you need the field have directly on system form or checkbox, you have to use coding.

Former Member
0 Kudos

anuj singh thanks for you answer, but it is not what I need

I need:

When User open "Item Master Data" for the creating goods the chek box "Stock Item" will be checked as "Yes"

And I thought that all system form have xml file where are described all UI object on this form

and I thought that I can edit xml (set default value for "Stock Item") file for the "Item Master Data" form

I try doing this whith Stored Procedure but I think It is inposable, because Stored Procedure catch event:

UPDATE

DELECT

ADD

(Not UI Event :-(( ))

If anyone know about how to edit System Form plese tell me how?

Maybe in SBO_Common database??

Former Member
0 Kudos

Vladimir,

there is no way how to modify system form through its own xml file to set default value - the way for you is when form become add mode, untick the checkbox - its code for few lines.

Former Member
0 Kudos

Hi Valdamir,

I am not aware of a way to modify a system form so it is constantly loaded in this way. You can not perform any modification on the SBO-COMMON and the stored procedure is not for this sort of application. I do not think it is possible to modify the system XML permanently, you have to modify the form in real time each time it is laoded.

I think this can only be done through an add-on.

Regards,

Niall

Former Member
0 Kudos

Niall O'Grady: Thank you for your answers, I had to solve this problem through the addon, another way, I did not find, but it seems that he is

Petr Verner :

>

> Vladimir,

> there is no way how to modify system form through its own xml file to set default value - the way for you is when form become add mode, untick the checkbox - its code for few lines.

when form become add mode - What this event? I catch the Menu Event ("Add" button on the top panel), but I know that User can be create Goods other way, not only "Add" button on the top panel (from other interface)

Maby you know how I catch event "when form become add mode", may form have a status - add mode, if you know pease tell me how, this would be the best option

Thanks!

Former Member
0 Kudos

you may catch it in menuevent, MenUId = 1282

Former Member
0 Kudos

Yes I do this, but User can create new goods other ways... sample in Sales Order when you choise the goods you can use button "New Item" ... maybe System Form have a status --->Add new item....

Former Member
0 Kudos

ok, there is neccesary do it in 2 steps.

1. into menuevent add

If pVal.MenuUID = "1282" Then
 changecheckbox()
        End If

2. into itemevent add

If pVal.FormTypeEx = "150" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD And pVal.BeforeAction = False And pVal.FormMode = 3 Then
changecheckbox()
            End If

I think that this is enough for your purpose.

Former Member
0 Kudos

thanks!

thanks!

thanks!

I forgot about this property!!!!!! (pVal.FormMode) <---- This is what I needed

Thank you once again!

Former Member
0 Kudos

Just a recommendation in the FormMode=3, don't use the number, use the enum offered by the ui api, because in a new release can change this value internally but if you use the enums, when you update the dll references will work ok, this happened to us before.

I belive it's something like BoModeMask, BoFormMode, don't remember exactly right now,

Gabriel

Answers (0)