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

Idoc message type which contains all data types & date format

former_member396896
Participant
0 Likes
859

Hello experts,

I have Two questions :

1.Need Idoc message type which has all sap data types (24 types).

2. I am getting output date in 31-05-1999, whereas am expecting 5/31/1999.

is there anything to be done at system level, since same Func Mod gives expected output in 4.7 verions, whereas in ecc 6.0 version it doesnt.

Thnx in advance

Hello experts,

I have Two questions :

1.Need Idoc message type which has all sap data types (24 types).

2. I am getting output date in 31-05-1999, whereas am expecting 5/31/1999.

is there anything to be done at system level, since same Func Mod gives expected output in 4.7 verions, whereas in ecc 6.0 version it doesnt.

Thnx in advance

2 REPLIES 2
Read only

Former Member
0 Likes
554

Hi,

For the date format you can handle from the outside of that FM.

i.e: after getting the date (ex: 31-05-1999) , take this into separte string.

and make them separetly varialble as day month and year.

and concatenate those into separte date variable as per you requiremnt.( in your case 5/31/1999 ).

Read only

Former Member
0 Likes
554

Hi Taj,

The date format usually depends upon the user settings in SAP. for this check your user settings... Go to menubar - > System - > user profile -> own data ->defaults tab -> change the date format in which you want.

Or else.......

There is a conversion exit to change the date in the format you wish to get.... use the Function Module FORMAT_DATE_4_OUTPUT and give the date and the format in which you want to print as input parameters.

Hope this helps.

Regards,

Ravikiran.