cancel
Showing results for 
Search instead for 
Did you mean: 

Adding new GUI function to BP screen

Former Member
0 Kudos

Hi all,

Can anyone tell me the proper procedure to add a button to a BP screen. I manage to add a field using EEWB-Easy Enhancement Workbench and would like to add a button on the screen to navigate to a custom Program. I added a button on the screen layout to test it out but I keep getting the error 'Unknown function code XXX'.

Basically, did I add the button the correct way? Where is the code for the custom event handler? Do I have to do something to link the new button to the BP event?

Any documentation or help is much appreciated.

Accepted Solutions (0)

Answers (1)

Answers (1)

mauriciolauffer
Contributor
0 Kudos

You must create your GUI Status in transaction BUS9. After this, you must need create a FUNCTION MODULE like the example below:

FUNCTION z_xxx_bupa_event_fcode.

*"----------------------------------------------------------------------

*"*"Interface local:

*"  IMPORTING

*"     REFERENCE(I_FCODE) TYPE  TBZ4-FCODE

*"  EXPORTING

*"     REFERENCE(E_XHANDLE) TYPE  BOOLEAN

*"----------------------------------------------------------------------

*" E_XHANDLE default'X' = Fcode is handled in this unit

  e_xhandle = 'X'.

"your code here

ENDFUNCTION.

Than access the transaction BUS7. Select FCODE register and assingn your FUNCTION MODULE to it.