In case of the BDC, you have to know the format in which the date is stored in the file. Let us say that the date in your flat file is stored in the format DD/MM/YYYY.
data: w_flat_file_date(10) value '29/12/2004'.
data: w_temp_date type d,
w_screen_date(10) type c.
w_temp_date+0(4) = w_flat_file_date+6(4).
w_temp_date+4(2) = w_flat_file_date+3(2).
w_temp_date+6(2) = w_flat_file_date+0(2).
write w_temp_date to w_screen_date.
Now, w_screen_date contains the date in the format in which it is displayed on the screen.
You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
Add a comment