cancel
Showing results for 
Search instead for 
Did you mean: 

Link to Form Batches u2013 Setup

Former Member
0 Kudos

Hi, All

Matrix Event KEYDOWN Open Form Batches u2013 Setup UI-API ?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

This Code: System Receipt PO

if (pVal.FormMode == 3)

{

if ((pVal.BeforeAction == true) && (pVal.ItemUID == "1"))

{

SAPbouiCOM.Matrix oMatrix=null;

oMatrix = ((SAPbouiCOM.Matrix)(oForm.Items.Item("38").Specific));

if (oMatrix.RowCount > 0)

{

if (B1_Application.Menus.Item(ClsConstID.B1_MODULE_SAVEDRAFT_MENU_ID).Enabled == true)

{

BubbleEvent = false;

// Save as Draft

B1_Application.ActivateMenuItem(ClsConstID.B1_MODULE_SAVEDRAFT_MENU_ID);

//I want to opening form batches u2013setup, and add batch number for draft batch

Help me post code ?

//

//

}

else

{

BubbleEvent = false;

B1_Application.StatusBar.SetText("Menu Save as Draft is disabled.", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error);

}

}

}

}

Former Member
0 Kudos

Hello

You cannot create bacthes on draft. You cannot open the bacth definition form from SDK the way you would like.

please follow up this thread: i have described there what to do with serial numbers. You can do the same with baches....

Not easy, but useful.

Regards

J

Former Member
0 Kudos

Also useful for you, to the same for bacthes.

regards

J

Former Member
0 Kudos

help, post code example

Former Member
0 Kudos

Hello

Basically the batches form opens when you enter a CTRL+TAB on the Quantity field when the item is batch managed in the matrix lines.

Regards

János