on 11-08-2012 4:00 PM
Hi Gurus,
I'm trying to format a date based on country. I'm passing in the country and language in the DOCPARAMS parameter. The dates that need formatting are being passed to the form in a structure. I have the field type on the form set as date/time on the Field tab under Object. Under the Binding tab I have the data format set as Date. Under Patterns, I've tried the date.default{} setting and also leaving it blank. Nothing I've done seems to make any difference. Has anyone been successful doing this and if so can you give me some guidance on what I may be doing wrong?
Thanks!
Julie
Julie,
I tried this way but wasn't successful. So i wrote a function module in which i took the sy-datum (for example as input). I splitted the dd mm and yyyy part out of it and stored in local variable. Then I took the language and passed it into t247 table and got the month names in whatever language i desired. Then i concatenated my dd mm (which i got from t247 table) and yyyy in the format which i wanted, (like dd mmm, yyyy). Then i passed this string to the exporting parameter of my function module which is also string type.
I made my interface of the form and then defined an importing parameter of type string ( to contain the date string from the function module).
Then i binded this string parameter in my form with the date text field or floating field. This way i was able to do it.
Let me know if you need more help on this.
Rgds,
Nitin.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.