pb with linked UDF in the form
beck
Hello to all,
I have one UDF linked to UDO
I copy UDF to form (order from) so it's impossible to activate the link with the yellow arrow.
Thks to all for your answer
Philippe
Anders Olsson
Hi Philippe,
At the moment opening a udo form is not implemented in customize. But I can offer you a quick workaround:
In the New Items form, set the Golden Arrow column to "Business Parter".
Create a new C# Optimizer rule that triggers on the LinkedButton:
FormType: In your case 133 (Invoice)
ItemUID: Use System Information to get the uid of the added LinkedButton (arrow). It should be something like NI_00007LB (probably a different number).
Event Type: ItemPressed
Check Before Event.
Code:
Form.OpenFormByKey("Your_UDO_FormType", TextEdit.GetFromUID(pVal.Form, "NI_00007").Value);
return false;
You need to replace NI_00007 with the uid of the UDF on the main form.
What happens is that when you click the arrow, SAP triggers the Before Event of ItemPressed. The UDO form opens.
By returning false the event is cancelled and SAP doesn't try to open the linked Business Partner.
Regards,
Anders
James De Berardis
Hi All,
I have tried to do this with a linked filed to a UDO on the Item Master. It is looking up a "SKU Measurements" table using the ItemCode as it's UID.
The issue is when I click the yellow arrow it opens another instance of the Item Master Data form. I have checked and rechecked the data and it is correct. It seems as though it is not recognising the BeforeEvent Trigger.
All the best,
James
0
Please sign in to leave a comment.
Comments
0 comments