SAP Date format for BDC entry

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).

Related Articles

SAP ABAP BDC creation - Example code and information on call transaction and batch input session
SAP BDC ABAP report using Call Transaction to automate data input
ABAP SAP BDC Call Transaction report Source Code and documentation
ABAP Source Code for SAP BDC report using Call Transaction
Enhanced ABAP source code for SAP BDC Call Transaction program
SAP Direct database update within an ABAP report
Create SAP BDC transaction recording so you can automate data input
bdc session development
Generate ABAP program from SHDB SAP transaction recording made in any client
Updating SAP databases - Example ABAP code and information on database update techniques