2011 Nov 11 6:07 AM
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 !!,
2011 Nov 11 6:29 AM
HI,
Make sure that the customized function module is activated. you can check the same in TBE01 table.
thanks,
Alok
HI,
Make sure that the customized function module is activated. you can check the same in TBE01 table.
thanks,
Alok
2011 Nov 11 6:29 AM
HI,
Make sure that the customized function module is activated. you can check the same in TBE01 table.
thanks,
Alok
2011 Nov 11 6:36 AM
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.
2011 Nov 11 7:22 AM
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 .
2011 Nov 11 7:25 AM
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.
2011 Nov 11 7:49 AM
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.
2011 Nov 11 7:55 AM
Are you using the BTE for :
00001420 VENDOR MASTER DATA: Save ?
2011 Nov 11 8:09 AM
2011 Nov 11 8:15 AM
check this link..dwnload the PDF.it has all steps described how to create the FM and all.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |