Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Unknown Function Code in BP Error

Former Member
0 Likes
2,437

Hello,

I have the some problem in Business Partner. I have added a push button on the custom screen(tab) in Business Partner and the button function code name is SAVE. When I click on this button, everything works fine but at last this message appears, Please help me to solve this problem. Thanks a lot in advance.

Message : "Unknown Function Code SAVE"

Regards,

Ravi

2 REPLIES 2
Read only

mauriciolauffer
Product and Topic Expert
Product and Topic Expert
0 Likes
1,229

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.

Read only

0 Likes
1,229

Thank you Mauricio Lauffer.

Solved my issue.