Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Convert Internal Date YYYYMMDD to string in external format

Hi,

This question has probably been asked thousands of times before but I did a quick search and couldn't find an answer to my specific question.

I'm writing the internal date to a string field (to be used in batch input of program RFBIBL00). I want to take user parameters into consideration, so if they have their default set to US date MMDDYYYY it will post like that or UK format DDMMYYYY.

At the moment I'm moving the date like this:

  wa_string-line+35(2) = s_podate+6(2).
  wa_string-line+37(2) = s_podate+4(2).
  wa_string-line+39(4) = s_podate(4).

which works for DDMMYYYY users but no one else.

Is there a function module that will convert the internal date to the correct user format but without / or . in the middle?

I need the date in MMDDYYYY not MM/DD/YYYY or MM.DD.YYYY.

Thanks,

Gill

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question