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

bdc

Former Member
0 Likes
611

Hi,

how to create own transaction code for recording.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
589

Hi Rakesh,

go To se93 and create transaction code.

Regards,

Sachin.

5 REPLIES 5
Read only

Former Member
0 Likes
589

Hi,

the tcode for recording is SHDB.

in this we will record the transactions for creating the bdc programs.

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.

<b>reward if helpful</b>

rgds,

bharat.

Read only

Former Member
0 Likes
589

Hi,

I am wondering as to why you would want to create own transaction code for recording. But you could goto SE93 and enter SHDB. Then click on display. Then open another session for SE93 and enter the ur transaction code and copy the contents from the previous session. Then you have ur own transaction code for recording.

Thanks..

Preetham S

Read only

Former Member
0 Likes
589

Hi,

You can create new tcode in <b>SE80</b>or <b>SE93</b>.

Regards,

Amit

Read only

Former Member
0 Likes
590

Hi Rakesh,

go To se93 and create transaction code.

Regards,

Sachin.

Read only

Former Member
0 Likes
589

Go to Tcode se93

and then use transcation SHDB

regards

Giridhar