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

problem in putput

Former Member
0 Likes
419

i am retriving data from TCURR table. there is one field GDATU when i display that date......its coming in another format......it displays like '80029898'......can anybody pls check out this

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
392

Hi,

The date is in the internal format of SAP ie YYYYMMDD

use some of the FM

like CONVERT_DATE_TO_EXTERNAL

to change it to DDMMYYYY or you can use the following also


write tcurr-gudat to lv_date using edit-mask dd/mm/yyyy.

Regards,

Himanshu Verma

2 REPLIES 2
Read only

Former Member
0 Likes
393

Hi,

The date is in the internal format of SAP ie YYYYMMDD

use some of the FM

like CONVERT_DATE_TO_EXTERNAL

to change it to DDMMYYYY or you can use the following also


write tcurr-gudat to lv_date using edit-mask dd/mm/yyyy.

Regards,

Himanshu Verma

Read only

prasanth_kasturi
Active Contributor
0 Likes
392

hi

GDATU is a char field of length 8 so you will not get the date fromat in o/p.

take a variable like sy-datum and move gdatu to that and display

data : date like sy-datum.

move itab-gdatu to date.

write : date.

regards

prasanth