cancel
Showing results for 
Search instead for 
Did you mean: 

Open UDO form via Link Button

0 Kudos

How do I open a document in the formMode "OK" in the DocEntry of the reference field? I've tried several things, but I couldn't. At et_ITEM_PRESSED:

SAPbouiCOM.Item oLinkItem = (SAPbouiCOM.Item)oForm.Items.Item(pVal.ItemUID);
oLinkItem.LinkTo = "eReqCode"; //UDO DocEntry 
LinkedButton oLink = (LinkedButton)oLinkItem.Specific;
oLink.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_UserDefinedObject;
oLink.LinkedObjectType = "HAE_BGT04"; //UDO I need to open with the docentry data from the "eReqCode" field in OK mode.

But there was an error on the oLink.LinkedObjectType line. I tried even without this one and it still didn't open.

Thank you!

Accepted Solutions (0)

Answers (0)