on 11-23-2020 1:48 PM
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!
User | Count |
---|---|
106 | |
14 | |
10 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.