sapdev logo background
sapdev logo sapdev logo

SAP Date format for entry into BDC

Because a date field is stored and displayed in different formats within SAP the following code is required to convert the date into a format which can be input onto a screen field.

* Date field
  data: ld_date(8).

  ld_date(2)   = sy-datum+6(2).
  ld_date+2(2) = sy-datum+4(2).
  ld_date+4(4) = sy-datum(4).

comments powered by Disqus