on 2021 May 03 8:21 AM
Hi,
I have created a UDO and calling it on onclick of context menu on sales order's existing record. what I'm trying to do, When UDO forms gets open, I'm passing Current open record DocEntry(sales order) in a field of UDO form. It's working fine when UDO form is in ADD mode. but when I set Form mode in FIND mode, I'm not able to see value in UDO field. What is the correct way? Basically I want to pass sales order docentry, when UDO form is in Find mode and open record. Below is my code :
if(pVal.BeforeAction == true && pVal.MenuUID == "RC" )
{
int offset = oForm.DataSources.DBDataSources.Item(0).Offset;
Application.SBO_Application.Menus.Item("BKD1").Activate();
oForm3 = Application.SBO_Application.Forms.Item(Application.SBO_Application.Forms.ActiveForm.UDFFormUID); oForm3.Mode = SAPbouiCOM.BoFormMode.fm_FIND_MODE;
SAPbouiCOM.EditText oEdit = (SAPbouiCOM.EditText)oForm3.Items.Item("U_DOCENTRY").Specific;
oEdit.Value = DocEntry;
oForm3.Items.Item("1").Click(SAPbouiCOM.BoCellClickType.ct_Regular); }
Thanks in Advance
Request clarification before answering.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 22 | |
| 18 | |
| 13 | |
| 7 | |
| 6 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.