阿宝
找工作中,求帮助,谢谢!!! QQ:810487238

To start creating a BDC just follow these steps below.

1. Execute TCODE SHDB. Click On “New Recording”.

06092010-shdb-01

2. Now just name the recording as ZR_QS21, the tcode name is QS21 to create Master inspection Characteristic, of course you can enter any other tcode that you want to record, after that click on the “Start Recording” button.

06092010-shdb-02

3. Now you will be entering the recording mode to record transaction Qs21, as you can see on the picture below, you will be taken into this specified tcode.

06092010-shdb-03

4. Now just create the MIC as usual, because this is not a tutorial on how to create an MIC, then I will skip the creation process. After you’ve done creating the MIC, you will see this screen below.

BDC is a collection of screens to process the transaction, as you can see there are several screens used to create the MIC. Just double click on the each screen name to see the screen layout.

06092010-shdb-04

5. Don’t forget to click on the “SAVE” button to save the BDC.

06092010-shdb-05

6. Now to use the BDC in ABAP, we need to transfer this BDC into an ABAP Program.

7. Execute tcode SHDB again, and locate the BDC we’ve just created. ZR_QS21 and click on the “Program” icon on the tool bar.

06092010-shdb-06

8. Now enter the ABAP program name for this BDC, and then choose “Transfer from recording” from the Field Contents block. Click OK or enter to continue.

06092010-shdb-07

9. Type in the program title name and click on the “Source Code” button and press enter.

06092010-shdb-08

10. Now you can see the BDC code has been successfully transferred into you ABAP program.

06092010-shdb-10

Usually you will need to modify the program by adding a code to get the flat file and then convert it into an internal table and then you pass the internal table data using this BDC program code that will save it into SAP tables.

posted on 2011-12-07 09:51  阿宝兴荣  阅读(485)  评论(0编辑  收藏  举报