on 06-20-2005 2:24 PM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.