cancel
Showing results for 
Search instead for 
Did you mean: 

Problem calling BAPI_INSPOPER_GETDETAIL within user exit EXIT_SAPLQEEM_001

leonardo_pavia
Participant
0 Kudos

Hi folks, i have a problem, i activated user exit EXIT_SAPLQEEM_001 to evaluate customer defined functions

from inspection characteristics in transaction qe51n (QM), some customer defined functions

need to access values saved previously, i found bapi BAPI_INSPOPER_GETDETAIL to do this task.

In transaction qe51n the valuation of inspection characteristics of an inspection lot work succesfully, thats mean, the customer defined functions works fine, it returns correct values, the problem is, in same transaction, when i trying to save this results, the following error is shown:

CALL_FUNCTION_NOT_FOUND

cx_SY_DYN_CALL_ILLEGAL_FUNC

Function Module " " not found.

--> CALL FUNCTION l_fbname

EXPORTING

QABWR = QABWR

DYNPROCALL = DYNPROCALL

IMPORTING

MBEWERTG = MERKMAL-MBEWERTG

DBEWERTG = MERKMAL-DBEWERTG

FEHLKLAS = MERKMAL-FEHLKLAS

FECODSELE = MERKMAL-FECODSELE

FEGRPSELE = MERKMAL-FEGRPSELE

E_FLG_NO_DIALOG = L_DUNKEL_ERROR_FLAG

TABLES

QASPTAB = QASPTAB

EXCEPTIONS

SYSTEM_ERROR = 1

USER_ERROR = 2

OTHER_ERROR = 3

USER_CANCEL = 4.

The problem is in the include LQEEMF21 of the program SAPLQEEM, i don't know what happening, the field l_fbname

is blank when debugging.

The following is the code of my include, to simple view, this code do not have so much sense, the line 'value = 5' and bapi export parameters are a dummy really, in real life the parameter 'value' is calculated with complex algorithms and the bapi call is done with dynamic values for parameters insplot,inspoper. This code here is for simplicity reasons, howewer the the problem persists even with this code.

If i do not call the bapi, everything works fine, results valuation and saving are done perfect. Is someting wrong with the bapi?

&----


*& Include ZXQEEU02 *

&----


*" IMPORTING

*" VALUE(I_QALS) LIKE QALS STRUCTURE QALS

*" VALUE(I_QAPO) LIKE QAPO STRUCTURE QAPO

*" VALUE(I_QAMKR) LIKE QAMKR STRUCTURE QAMKR

*" VALUE(I_QASPR) LIKE QASPR STRUCTURE QASPR

*" VALUE(I_QASER) LIKE QASER STRUCTURE QASER

*" EXPORTING

*" VALUE(VALUE) LIKE QAMKR-MITTELWERT

*" VALUE(E_UMFANGS_KZ)

*" TABLES

*" T_QAMKTAB STRUCTURE QAMKR

*Aca va el analizador de expresiones

value = 5.

CALL FUNCTION 'BAPI_INSPOPER_GETDETAIL'

EXPORTING

insplot = 890000000136

inspoper = '60'

read_char_results = 'X'

TABLES

char_results = it_char_results.

*----


Thank you for you cooperation, i hope you can help me,and ... sorry for my english language

Leonardo

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

In the dump, can you please tell exactly which program/routine/line does it encounter the error?

leonardo_pavia
Participant
0 Kudos

Hi, Srinivas this is the description of the dump:

The termination occurred in the ABAP program "SAPLQEEM" in "MERKMAL_BEWERTEN".

The main program was "SAPLQEEO ".

The termination occurred in line 1812 of the source code of the (Include)

program "LQEEMF21" of the source code of program "LQEEMF21"

(when calling the editor 18120).

Processing was terminated because the exception "CX_SY_DYN_CALL_ILLEGAL_FUNC"

occurred in the procedure "MERKMAL_BEWERTEN" "(FORM)"

but was not handled locally, not declared in the RAISING clause of the procedure.

The procedure is in the program "SAPLQEEM ". Its source code starts in line 1131

of the (Include) program "LQEEMF21 ".

Former Member
0 Kudos

Have you checked OSS for any corrections to the BAPI or some underlying calls? With this information, I could not tell much. The error is happening in the following call according to the dump


                CALL FUNCTION merkmal-fbname
                     EXPORTING
                          qabwr           = qabwr
                          dynprocall      = dynprocall
                     IMPORTING
                          mbewertg        = merkmal-mbewertg
                          dbewertg        = merkmal-dbewertg
                          fehlklas        = merkmal-fehlklas
                          fecodsele       = merkmal-fecodsele
                          fegrpsele       = merkmal-fegrpsele
                          e_flg_no_dialog = l_dunkel_error_flag
                     TABLES
                          qasptab         = qasptab
                     EXCEPTIONS
                          system_error    = 1
                          user_error      = 2
                          other_error     = 3
                          user_cancel     = 4.

Again, specifically, the error line points to the line

e_flg_no_dialog = l_dunkel_error_flag. But that doesn't tell anything.

Now, I tried, but could not find the l_fbname variable. Where is this?

Srinivas

leonardo_pavia
Participant
0 Kudos

Hi, my system is SAP R/3 Enterprise, the line 1802 of the include LQEEMF21 point to this line, thats the line of error:

--> CALL FUNCTION l_fbname

EXPORTING

QABWR = QABWR

DYNPROCALL = DYNPROCALL

IMPORTING

MBEWERTG = MERKMAL-MBEWERTG

DBEWERTG = MERKMAL-DBEWERTG

FEHLKLAS = MERKMAL-FEHLKLAS

FECODSELE = MERKMAL-FECODSELE

FEGRPSELE = MERKMAL-FEGRPSELE

E_FLG_NO_DIALOG = L_DUNKEL_ERROR_FLAG

TABLES

QASPTAB = QASPTAB

EXCEPTIONS

SYSTEM_ERROR = 1

USER_ERROR = 2

OTHER_ERROR = 3

USER_CANCEL = 4.

I have checked for OSS notes but i have not found solutions and notes for similar problems have been applied, im still thinking why the source code of your system is a little bit different to my code, i don't found the line 'CALL FUNCTION merkmal-fbname' in the include LQEEMF21 in my system, which version are you running?

Thank you...

Former Member
0 Kudos

ok that solves one problem, I am looking at 46C. Sorry.

Answers (0)