Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 8

Wednesday, February 13, 2008 Recording a BDC using transaction SHDB Recording a BDC using transaction SHDB

Enter trasaction code SHDB as shown. The following illustration shows BDC recording to create a customer in the SAP system.

Press F5 or click on New Recording

Enter transaction code XD01 to Create Customer and Click on Start Recording

Enter the desired account group, in this case Sold to Party

In the trasaction XD01 enter the desired data

Hit enter to go to the next screen. Once all the desird data is eneterd click on save.

You will then see the following screen.

Select the recording as shown below. And click on Program.

Enter the program name. Select transfer from recording for this example. And hit Enter.

Enter the Program description. And click on save. Create a $tmp object or let the system generate the transport request number.

The code as shown below is generated.

Run the program by presing F8

SAP SM35
BDC RECORDING PROCEDURE
SAP SM35 BDC RECORDING
1. Go to SAP Tcode SM35 . 2. Press RECORDING 3. Enter the recording session name [always start with Z] use CREATE function.

4. Enter Tcode to be used in the session. Press ENTER.

5. Enter the required data in the corresponding screen in SAP & make change if necessary. Press SAVE.
[During this whole process, the BDC records the movements of the cursor and the data change made in these field , so do not repeat any cursor movements which can re-record the movement and go back to a field where the data has been changed or entered]

6. In Batch Input will appear Recording screen ,


listing the screens, data fields, etc recorded. 7. Press GET TRANSACTION. SAVE the recording. 8. Go back [F3] to the previous screen.

Choose the "recording done" Press "GENERATE PROGRAM".

Press OVERVIEW Recording: Overview will appear.

A popup appears and enter the Program name [start the name with Z always] Press "ENTER".

9. Enter the title of the program Enter the other attributes : Type - 1[Online program], Status - T[Test program] Application - * [Not application-specific]. SAVE the attributes of the program & create the object as a LOCAL OBJECT. 10. Press "SOURCE CODE" and the code generated by the program is displayed. 11. To check the program created, Change the data back to the original values as in the original record. Check the program for any syntax errors. Use the menu path - Program > Execute. Enter the name of the session & the authorization group for the session. Press "EXECUTE" [F8]. Use T/CodeSM35 to go back to the "BDC session overview". Choose the session and process in the background. (see SM35 BDC overview screenshot) Go back to the record to see the changes made by the current BDC session.

You might also like