cancel
Showing results for 
Search instead for 
Did you mean: 

UDF not visible in SAP form

former_member203128
Participant
0 Kudos

Hello experts!

I want to know if its possible to generate a UDF (in OINV table) and mark it or set it like not visible in through User-Defined Fields (Ctrl + Shift + U) form in SAP UI

Actually I can do it directly in SAP in Tools -> Customization Tools -> Settings but i dont want to do it manually for all my UDFs

Thank you for your support

Alvaro Gonzlaez

Accepted Solutions (0)

Answers (1)

Answers (1)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Alvaro,

As far as I know you need to use Item.Visible =false.

It depends on which event you want to use ?

Like for Sales Invoice Form you can use it on FORM_LOAD Event.

if (pVal.FormType.ToString() == "-133" && pVal.EventType == BoEventTypes.FORM_LOAD)

{

     //Here use logic to make this item visible.

}

Hope it helps.

Thanks & Regards

Ankit Chauhan

former_member203128
Participant
0 Kudos

Hello Ankit Chauhan

Thanks for your reply, but I tried to put the restriction when I create the UDF through DI API, not in the UI

Regards

Alvaro González

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Alvaro,

Unfortunately, I haven't seen anything for the same.

Thanks & Regards

Ankit Chauhan