Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10052

Re: Problem : Set Non editable to UDF in Standard SAP Form.

$
0
0

Hi Sakthi Vel,

 

Can you tell me on which system form you are adding this field. & how did you do that. ?

 

If you adding this field during runtime using SDK, then set the item property Enabled = true;

 

While  you add a field on runtime you write as follows:

 

if (pVal.FormType == 133)

                                {

                                    NewForm = this.SBO_Application.Forms.GetForm(pVal.FormType.ToString(), pVal.FormTypeCount);

                                    SAPbouiCOM.Button oButton;

                                    string Title = oForm.Title;

                                    SAPbouiCOM.Item oItem = (Item)NewForm.Items.Item("2");

                                    SAPbouiCOM.Item oItem1 = (Item)NewForm.Items.Add("CopyFrom", SAPbouiCOM.BoFormItemTypes.it_BUTTON);

                                    oItem1.Top = oItem.Top;

                                    oItem1.Left = oItem.Left+ 80;

                                    oItem1.Width = oItem.Width + 80;

                                    oItem1.Height = oItem.Height;

                                    oItem1.Enabled = false;

                                    oButton = (SAPbouiCOM.Button)oItem1.Specific;

                                    oButton.Caption = "Copy From Contracts";

                                  }

 

 

Hope it helpsss....

 

Thanks


Viewing all articles
Browse latest Browse all 10052

Trending Articles