Showing results for 
Search instead for 
Did you mean: 

For masters and tech's of B1 .... 2 Questions !!!

Former Member
0 Kudos

Hi all !!!

First, someone from SAP showed me a little time ago a trick for showing results directly in a query. (meaning showing the results in the query instead of [ocrd.cardcode]) etc etc when building and testing querys.... does that ring a bell to anyone ???

Secondly, is it possible with an add on or codes of somekind to disable the link between the 'ENTER' key and the button 'ADD' and/or 'UPDATE' ??? we have like 40+ people working with B1 at our office and theirs alot of item creation since we are in a fashion business. Fact of human habit we get lots of errors and time lost because of this 'ENTER' key closing the window with add or update. Would it be possible to have an add on that checks the status of the 'ENTER' key while in ADD mode or UPDATE mode ???

Thank you for your time !!!!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Alain,

You can do what you want to with the item event. You can catch the item event of thekey down and if it's the enter key set business one not to process further.

        If pVal.BeforeAction = True Then
            If pVal.EventType = SAPbouiCOM.BoEventTypes.et_KEY_DOWN Then
                If pVal.FormMode = SAPbouiCOM.BoFormMode.fm_ADD_MODE Or _
                   pVal.FormMode = SAPbouiCOM.BoFormMode.fm_UPDATE_MODE Then
                    If pVal.CharPressed = 13 Then
                        BubbleEvent = False
                    End If
                End If
            End If
        End If

Also note that this procedure will capture all key down events on all screens which might be a bit resource intensive.

[FM] avoid that please consider to use



Hope it helps,


Message was edited by: Frank Moebius

Answers (0)