2012 Mar 06 12:12 PM
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?
Hi,
Then try with conversions.
Regards,
Madhu.
2012 Mar 06 12:27 PM
Hi ,
Can you please tell me the FM you are using ??.
Thanks,
Pradeep.
2012 Mar 06 12:27 PM
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
2012 Mar 06 12:29 PM
Hi ,
You just enter ddmmyyy format that and run.
Regards,
Madhu.
2012 Mar 06 12:34 PM
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.
2012 Mar 06 12:36 PM
2012 Mar 06 12:40 PM
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.
2012 Mar 06 1:04 PM
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.
2012 Mar 06 12:33 PM
Hi,
Please check the date format in user profile.
Regards,
Gaurav.
2012 Mar 06 1:07 PM
Hi Wojciech,
Have you logged out & logged in again after changing the User profile ???
Many Thanks,
Jitendra
2012 Mar 06 1:17 PM
thanks for responses, problem is solved by note
Note 1580525 - Testing in SE37: Problem with initial parameter values
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |