Recording a BDC using transaction SHDB Enter transaction 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
Always use Pretty Printer and Extended Program Check before releasing the code.
Do not leave unused code in the program. Comment the code thoroughly. Align the comments and the Code. Follow the SAP Standards and SAP Best Practices guidelines. It’s a good practice to take a dump of the code on your local drive.