Skip to Content
avatar image
Former Member

Link to Form Batches u2013 Setup

Hi, All

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jun 21, 2010 at 10:58 AM

    help, post code example

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • avatar image
    Former Member
    Jun 21, 2010 at 04:34 PM

    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);

    }

    }

    }

    }

    Add comment
    10|10000 characters needed characters exceeded