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

"Call_function_not_found"

Former Member
0 Likes
2,205

Hi Techies,

I have a short dump saying Function module "Z_SAMPLE_INTERFACE" .

Below is error description :-

_____________________________________________________

The function module "Z_SAMPLE_INTERFACE" is called,

but cannot be found in the library.

Error in the ABAP Application Program

The current ABAP program "SAPLBFFM" had to be terminated because it has

come across a statement that unfortunately cannot be executed.

______________________________________________________

FUNCTION OPEN_FI_PERFORM_00001420_E.

*"----


""Lokale Schnittstelle:

*" IMPORTING

*" VALUE(I_LIFNR) LIKE LFA1-LIFNR

*" VALUE(I_BUKRS) LIKE LFB1-BUKRS OPTIONAL

*" VALUE(I_AKTYP) LIKE T020-AKTYP OPTIONAL

*" VALUE(I_XVBUP) LIKE OFIWA-XVBUP DEFAULT 'X'

*"----


>>>>> CALL FUNCTION 'BF_FUNCTIONS_FIND' "error line is pointing here

EXPORTING

I_EVENT = '00001420'

TABLES

T_FMRFC = FMTAB

EXCEPTIONS

NOTHING_FOUND = 4

OTHERS = 8.

CHECK SY-SUBRC = 0.

LOOP AT FMTAB.

CHECK NOT FMTAB-FUNCT IS INITIAL.

IF FMTAB-RFCDS IS INITIAL.

*----


Open FI Interface with local destination -


CALL FUNCTION FMTAB-FUNCT

EXPORTING I_LIFNR = I_LIFNR

I_BUKRS = I_BUKRS

I_AKTYP = I_AKTYP

I_XVBUP = I_XVBUP.

ELSE.

______________________________________________________

This dump is getting generated while creating a new vendor and saving it in the final screen .

Even though this function module is a customized one i am confused why this dump is getting generated please help me to resolve it .

Helpful answers would be duly rewarded.

Thanks in advance !!,

1 ACCEPTED SOLUTION
Read only

alok_patra
Product and Topic Expert
Product and Topic Expert
0 Likes
1,785

HI,

Make sure that the customized function module is activated. you can check the same in TBE01 table.

thanks,

Alok

Hi Techies,

I have a short dump saying Function module "Z_SAMPLE_INTERFACE" .

Below is error description :-

_____________________________________________________

The function module "Z_SAMPLE_INTERFACE" is called,

but cannot be found in the library.

Error in the ABAP Application Program

The current ABAP program "SAPLBFFM" had to be terminated because it has

come across a statement that unfortunately cannot be executed.

______________________________________________________

FUNCTION OPEN_FI_PERFORM_00001420_E.

*"----


""Lokale Schnittstelle:

*" IMPORTING

*" VALUE(I_LIFNR) LIKE LFA1-LIFNR

*" VALUE(I_BUKRS) LIKE LFB1-BUKRS OPTIONAL

*" VALUE(I_AKTYP) LIKE T020-AKTYP OPTIONAL

*" VALUE(I_XVBUP) LIKE OFIWA-XVBUP DEFAULT 'X'

*"----


>>>>> CALL FUNCTION 'BF_FUNCTIONS_FIND' "error line is pointing here

EXPORTING

I_EVENT = '00001420'

TABLES

T_FMRFC = FMTAB

EXCEPTIONS

NOTHING_FOUND = 4

OTHERS = 8.

CHECK SY-SUBRC = 0.

LOOP AT FMTAB.

CHECK NOT FMTAB-FUNCT IS INITIAL.

IF FMTAB-RFCDS IS INITIAL.

*----


Open FI Interface with local destination -


CALL FUNCTION FMTAB-FUNCT

EXPORTING I_LIFNR = I_LIFNR

I_BUKRS = I_BUKRS

I_AKTYP = I_AKTYP

I_XVBUP = I_XVBUP.

ELSE.

______________________________________________________

This dump is getting generated while creating a new vendor and saving it in the final screen .

Even though this function module is a customized one i am confused why this dump is getting generated please help me to resolve it .

Helpful answers would be duly rewarded.

Thanks in advance !!,

8 REPLIES 8
Read only

alok_patra
Product and Topic Expert
Product and Topic Expert
0 Likes
1,786

HI,

Make sure that the customized function module is activated. you can check the same in TBE01 table.

thanks,

Alok

Read only

0 Likes
1,785

Yes ..Alok is right.

OPEN_FI 's are called BTE'.

Double click on the below code:

CALL FUNCTION FMTAB-FUNCT

You will get a pop-up enter the Function name as the customised Function module (Z_SAMPLE)

and see it should take u inside the code of the FM.

Read only

0 Likes
1,785

Hi Manjunath,

You are right below provided is the FM where dump is getting generated , as you said when i checked the FMTAB-FUNCT it gives me the name of the customized FM name as "Z_SAMPLE_INTERFACE" but when i tried to check this function module it tells this function module does not exist .

can u let me know what could be the possible cause of this issue.

"CALL FUNCTION FMTAB-FUNCT

EXPORTING I_LIFNR = I_LIFNR

I_BUKRS = I_BUKRS

I_AKTYP = I_AKTYP

I_XVBUP = I_XVBUP.

ELSE."

Thanks .

Read only

0 Likes
1,785

Hi Alok,

When checking the name of the FM " Z_SAMPLE_INTERFACE" in table TBE01 i could not find the name there is there anything like i should maintain the entry in the table for the program to work properly .

Thanks.

Read only

0 Likes
1,785

http://wiki.sdn.sap.com/wiki/display/ABAP/BTE-BusinessTransactionEvent

Check this link.

I think you cannot simply create any Function module like that.

Basic Steps in Configuring Business Transaction Events

􀂾 Make sure the application is active for Business Transaction Events.

􀂾 Identify the BTE

􀂾 Copy the sample interface function module into a "Zu201D or u201CYu201D function module.

􀂾 Write the ABAP code into the source code section of the new "Zu201D or u201CYu201D function module. You may choose to create a "Zu201D or u201CYu201D program to enter the code into and then insert the "Z" or u201CYu201D program into your function module source code.

􀂾 Save and activate the function module.

􀂾 Assign the function module to the event, country and application.

Read only

0 Likes
1,785

Are you using the BTE for :

00001420 VENDOR MASTER DATA: Save ?

Read only

0 Likes
1,785

Yes right iam using 00001420 .

Read only

0 Likes
1,785

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/207835fb-0a01-0010-34b4-fef1240ba...;

check this link..dwnload the PDF.it has all steps described how to create the FM and all.