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

SE37 and test function module

Former Member
0 Likes
3,827

I have an importing parameter in function module interface, type BEGDA (type DATUM), default value SY-DATUM.

When I execute test function module via SE37 and F8, the default value gets value "02....20.3" instead of 03.02.2012 as set up in SU01 for my user.

What can be wrong?

10 REPLIES 10
Read only

Former Member
0 Likes
2,040

Hi ,

Can you please tell me the FM you are using ??.

Thanks,

Pradeep.

Read only

Harsh_Bansal
Contributor
0 Likes
2,040

Hi,

Please check the user profile once again.

I checked in my system. User profile has DD.MM.YYYY

In SE37->F8, it shows 06.03.2012 only.

Regards,

Harsh Bansal

Read only

madhu_vadlamani
Active Contributor
0 Likes
2,040

Hi ,

You just enter ddmmyyy format that and run.

Regards,

Madhu.

Read only

0 Likes
2,040

it is a custom function module Z*. I created the same function module on another system and during test in F8 date is displayed correctly.

I cannot put there date in internal format YYYYMMDD because in test mode user has to put external date format defined in user settings.

Read only

0 Likes
2,040

Hi,

Then try with conversions.

Regards,

Madhu.

Read only

0 Likes
2,040

type DATUM has built in conversion.

It is a pure problem with SE37 and test mode, so if do not read with understanding the problem, please do not answer obvoius things.

Read only

0 Likes
2,040

At the risk of also incurring your scorn, let me add that I cannot make this fail, using exactly what you have in the original post. Obviously, something unusual is happening this client/instance, or in code that is manipulating the incoming date value.... my dd.mm.yyyy input defaulted to sy-datum shows 20120306 in begda duringe execution (in debug). Without being able to debug the mentioned FM at every step, it would be hard to pinpoint a specific problem.

Read only

Former Member
0 Likes
2,040

Hi,

Please check the date format in user profile.

Regards,

Gaurav.

Read only

jitendra_it
Active Contributor
0 Likes
2,040

Hi Wojciech,

Have you logged out & logged in again after changing the User profile ???

Many Thanks,

Jitendra

Read only

0 Likes
2,040

thanks for responses, problem is solved by note

Note 1580525 - Testing in SE37: Problem with initial parameter values