Application Development and Automation 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: 
Read only

reg: BDC

Former Member
0 Likes
813

what are the steps to create BDC by call Transaction method?

what are the steps to create BDC by session method?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
790

hi,

check the material send to you.

7 REPLIES 7
Read only

Former Member
0 Likes
790

There is not much of difference in approach for session and call transaction methods.

1) Record the transaction for which you want to do a bdc, using the transaction SHDB.

2) generate the code using SHDB.

3) Make modifications to the generated program wherever necessary.

4) The generated program will give you an option to run it using call transaction or session(Radio-button).

also refer the following links:

Regards,

Ravi

Read only

Former Member
0 Likes
790
Read only

Former Member
0 Likes
790

Hi,

Gimme your email ID, will send you a good document containing sample code and steps.

Regs,

Venkat Ramanan N

Read only

0 Likes
790

hi mr vengat,

this is my id.

selvendranbtech@gmail.com

Read only

Former Member
0 Likes
790

Hi,

For a BDC upload you need to write a program which created BDC sessions.

Steps:

1. Work out the transaction you would use to create the data manually.

2. Use transaction SHDB to record the creation of one material master data.

Click the New recording button or the Menu - Recording - Create

3. Save the recording, and then go back a screen and go to the overview.

4. Select the recording and click on Edit - Create Program. Give the program a Z name, and select transfer from recording.

5. Edit the program. You will see that all the data you entered is hard-coded into the program. You need to make the following changes:

5.1 After the start-of-selection, Call ws_upload to upload the file (the excel file needs to be saved as TAB separated).

5.2 After the open-group, Loop on the uploaded data. For each line, perform validation checks on the data, then modify the perform bdc_field commands to use the file data.

5.3. After perform bdc_transaction, add the endloop.

Execute the program. It will have options to create a batch session or to process directly.

Also chk the link for detail description.

http://www.sap-img.com/bdc.htm

Reward points for helpful.

Regards,

Harini.S

Read only

Former Member
0 Likes
791

hi,

check the material send to you.