Application Development 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: 

Function module Z1 does not exist. Create Object?

Former Member
0 Kudos

Our previous consultant used to develop an ABAP4 program which contains a RFC call function to call from R3 to EBP system. We located this function in the program, but when double clicking the 1st line: CALL FUNCTION 'Z1', get the following msg:

"Function module Z1 does not exist. Create Object?" with Yes, No, Cancel buttons. What does it mean? It doesn't exist in the program. We searched the code for any Includes, but can't find any. Below is the whole function code in the program:

CALL FUNCTION 'Z1'

DESTINATION p_dest

EXPORTING

i_sc_no = itab_z1-bednr

i_eban_line_no = itab_z1-bnfpo

i_eban_banfn = itab_z1-banfn

IMPORTING

e_sc_line_item = sc_item_no

EXCEPTIONS

OTHERS = 1.

IF sy-subrc <> 0.

MESSAGE e999(zu) WITH text-031 p_dest.

ENDIF.

We are looking into a problem caused by this function in the program, but why when we double click the 1st line, the msg says this function doesn't exist, where is it defined for a custom function. We also use SE37 to try to display, but can't find it. We are looking to seeing your ABAP4 expert reply soon <b><REMOVED BY MODERATOR></b>

Thanks!

Title was edited by:

Alvaro Tejada Galindo

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Use transaction SE37 in your EBP system and view function module Z1.

4 REPLIES 4

Former Member
0 Kudos

SInce its a RFC FM the FM need NOT be in your system. The FM only needs to be in the TARGET system where it needs to be executed.

Cheers

VJ

0 Kudos

hi Vijayendra,

But this function is a custom function starting with Z as the 1st char. That means the destination parameter of any custom function can determine which system to be called?

Thanks!

Former Member
0 Kudos

HI,

If you use the RFC destiantion with the Function module then there is no need to create the function module, you can use any of the function module, because the function module will be triggers in the RFC destination not in the SAP, so there is no need to create the function module

Regards

Sudheer

Former Member
0 Kudos

Use transaction SE37 in your EBP system and view function module Z1.