Application Development 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: 

How to Update date in BDC

Former Member
0 Kudos

Hi Friends!

Can any one tell me how to update date in BDC.

Regards,

Imran.

1 ACCEPTED SOLUTION

ferry_lianto
Active Contributor
0 Kudos

Hi,

Welcome to SDN.

You need to convert date to character type field prior to use in BDC.


DATA : wa_date(10) TYPE c.

WRITE itab-date to wa_date.
PERFORM bdc_field USING 'p0581-BEGDA' wa_date.

Regards,

Ferry Lianto

3 REPLIES 3

Former Member
0 Kudos

Batch Data Communication or BDC is a batch interfacing technique that SAP developed. It is mainly used for uploading data into the SAP R/3 system. BDC works by simulating the user input from transactional screen via an ABAP program.

The data input data file will come in the form of a flat file which the user save as file type txt file or prn file from the Microsoft Excel program. An Abaper will create a program to read the text file and upload into the SAP system.

Normally, the tcode SHDB will be used to record the transaction code the user used. After, the simulation, the Abaper can generate a sample program and modify from there. It makes the programming easier and faster.

reward if it helps u

vijay pawar

Former Member
0 Kudos

Hi Syed,

For which T-code u have done the BDC recording.

Whatever date u want to change first figure out the appropriate date field

and also the kind of date format it can take,i.e., mmddyyyy or ddmmyyyy.

ferry_lianto
Active Contributor
0 Kudos

Hi,

Welcome to SDN.

You need to convert date to character type field prior to use in BDC.


DATA : wa_date(10) TYPE c.

WRITE itab-date to wa_date.
PERFORM bdc_field USING 'p0581-BEGDA' wa_date.

Regards,

Ferry Lianto