cancel
Showing results for 
Search instead for 
Did you mean: 

How to add a UDF in the form

Former Member
0 Kudos

Hi Experts,

I am started using Dunning wizard .

where, in the Dunning wizard in Step 5 , i want the the Invoice title level UDF to display in the form.(kindly find the below pic for better understanding). the UDF is oinv.U_category.

How to do it ? is it possible ?

THanks in advance,

Regards,

Dwarak

Accepted Solutions (0)

Answers (5)

Answers (5)

kothandaraman_nagarajan
Active Contributor
0 Kudos

Hi,

Please close this thred if you got answer.

Thanks & Regards,

Nagarajan

former_member186095
Active Contributor
0 Kudos

Hi Dwarakanath,

It is impossible to add UDF in dunning wizard by using standard tools.

You must use SDK code to do it.

Rgds,

JM

Former Member
0 Kudos

It actually IS possible to add columns to wizards. All You need is a bit of UI API programming.

Please notice the "My Custom Column" column in the picture. It's there thanks to a short code passage of:

private void sapApp_ItemEvent(string FormUID, ref ItemEvent pVal, out bool BubbleEvent)         {             try             {

                if (!pVal.BeforeAction && pVal.EventType == BoEventTypes.et_FORM_LOAD)  {

                     Matrix mtr =(Matrix)UIAPIConnection.sapApp.Forms.Item(FormUID).Items.Item("67").Specific;                     Column c = mtr.Columns.Add("BCC_Col_2", BoFormItemTypes.it_EDIT);

                     c.Editable = true;

                     c.Description = "My Custom Column";

                     c.TitleObject.Caption = "My Custom Column";

                 }            

}             catch (Exception ex)             {         

       UIAPIConnection.sapApp.SetStatusBarMessage(ex.Message);  

          }            

BubbleEvent = true;         }

Giving it some meaning and populating with data is a whole different story. Nevertheless - there You go - custom column on a standard wizard form. Cheers.

Former Member
0 Kudos

Hi Bartoxz Janik,

Here, I have UDF in OPCH.U_PORef.

I want this UDF to list in the BP INternal reconcilation screen.

Could you help me for the UI API programming and how to execute it ?

Thanks in advance,

Dwarak

Former Member
0 Kudos

Hi Dwarak,

Not only this, actually all wizard will not accept UDF by system built in function.

You may use UI and DI to add UDF. That is the question on SDK forum.

Thanks,

Gordon

kothandaraman_nagarajan
Active Contributor
0 Kudos

Hi,

Not possible to display UDF in dunning wizard.

Thanks & Regards,

Nagarajan