Vous êtes sur la page 1sur 18

Task 1: Recording

1. Give transaction SHDB ( Transaction Recorder ), this is used to record our transaction
2.
Press New Recording, Give Recording name, Give Transaction, And Press Start Recording



You will get the following screen, Give the selection screen inputs as below, finally
Save.






The following screen comes when you save, this shows table name and filed name
Which stores the data given in respected selection screen of transaction. Next Press
F3 to come back.


Task 2: Creating ABAP Report based on recording done
Now select your Recording and press Create program icon.




You will be asked to fill the following selection screens


















Using SE11 get the Length of the fields. It must be supplied in MS-Excel
Now we are going to Upload the following fields in
First Screen
Vendor No, Company Code, Account Group
Second Screen
Name, Search Parameter, Street, House No, City, Country Code, Region, PO Box
Language, Telephone
Final Screen
Recon Account, Cash Mgmt Group
Task 3: Writing ABAP report to do data transfer
Now Four Steps in ABAP Editor: BDC Step-by-Step SAP DEVELOPER NETWORK | sdn.sap.com
BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com 2007 SAP AG 11
1. Create an internal table for above fields in the report after Include bdcrecx1.
2. Next

3. Next call upload function after start-of-selection


Put Loop after perform open group



Put Loop after perform open group
Close loop using Endloop.


Now replace the constants in perform statement within loop by internal table name
With field name. Make the values used in recording in . Then Save, Activate





This is your data in MS-Excel. This order must be in the Internal table of ABAP report.







Now Give respected Length for each fields. By placing Cursor in each column, Right Click, Select
Column Width.






Since LIFNR are 16 give that width.
After that save the excel file. And save a copy as Formatted text space delimited



Give OK, Yes, Then Close Excel by giving No.
Now come to ABAP editor and run the report, you will get the screen.
Select Call transaction Radio Button, and run in a mode. Press F8



Now in next screen Give the .prn file you saved previously. ( .prn must be selected )
Then press Transfer.


You will get following screen, Just Check for correct order of data, if yes, Press Enter

You will get following screen, Just Check for correct order of data, if yes, Press Enter
Next Screen comes, Press Enter



The vendor created. And system shows log. If small errors you can select that from F4 help and run the
report.

FK03 -> Give Vendor no, Comp code. Enter. Select desired radio button and enter

Vous aimerez peut-être aussi