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

function module AUFBAUEN_MDPSX_ANZEIGEN

Former Member
0 Likes
1,386

hello all, i hope somebody could help me with this problem.

we have this program which is Unicode-enabled in the development

and test system. During testing in the test system, the program

gets an abap dump because one of its parameters is not defined

in the system:

CALL FUNCTION 'AUFBAUEN_MDPSX_ANZEIGEN'

EXPORTING

ECM61M = CM61M <----


this one

ECM61W = CM61W

ECM61X = CM61X

EMT61D = MT61D

ET399D = T399D

IMPORTING

IMDKP = MDKP

IMDSTA = MDSTA

TABLES

MDPSX = MDPSX

EXCEPTIONS

ERROR = 1

OTHERS = 2.

the same program (not yet unicode-enabled) is then run in the

production but successfully gives an output. the definition of

the function module (SE37) in the test system and in the

production is that same, ECM61M is also not defined as of one of

the parameters of the function module.

how come in the test system, there's an abap dump, but not in the

production?

please help! thank you

6 REPLIES 6
Read only

former_member194669
Active Contributor
0 Likes
1,084

Hi,

Can you paste your dump here? ( first page)

aRs

Read only

0 Likes
1,084

hello aRs,

thank you for taking time to read my post. here's the first few paragraph of the dump

<b>Function parameter "ECM61M" is unknown.

What happened?

Error in ABAP application program.

The current ABAP program "ZEXPLODE_BOM" had to be terminated because one

of the statements could not be executed.

This is probably due to an error in the ABAP program.

Function module "AUFBAUEN_MDPSX_ANZEIGEN" was called with the parameter "ECM61M". This parameter is not defined. this is the dump in the test system.</b>

i have checked the parameters in of this function module both in test sytem and production system. both are the same. but if you run program in the ZEXPLODE_BOM production, i do not get an abap dump. what could be wrong?

also take note, the program ZEXPLODE_BOM in the test system is unicode enabled, but not in the production yet.

thanks again!

Read only

former_member194669
Active Contributor
0 Likes
1,084

Hi,

Just comment & check


CALL FUNCTION 'AUFBAUEN_MDPSX_ANZEIGEN'
EXPORTING
*ECM61M = CM61M     " just comment this line check
ECM61W = CM61W
ECM61X = CM61X
EMT61D = MT61D
ET399D = T399D
IMPORTING
IMDKP = MDKP
IMDSTA = MDSTA
TABLES
MDPSX = MDPSX
EXCEPTIONS
ERROR = 1
OTHERS = 2.

Read only

0 Likes
1,084

hello aRs,

yes, you are correct. but the problem here is that. why does it happen only in the test system, where even in the production that parameter is not existing either. The program proceeds with its execution without a dump. It is supposed to get a dump because that parameter does not exist in the function module.

thank you!

Read only

former_member194669
Active Contributor
0 Likes
1,084

Hi,

In development system compare the new version with old versions of your program, so that you can find who has last changed the code.

aRs

Read only

0 Likes
1,084

hi aRs,

this behaviour is so strange. all versions of the function module together with the program are aligned with one another from dev to production.

thanks again.