BDCDATA structure is having following 5 fields.
Program
Dynpro
Dynbegin
Fnam
Fval.
There are 2 methods to upload the from legacy system to sap system.
Direct input method
Batch input recording
In each of these methods we are having internally 3 methods.
Call transaction method
Session Method
LSMW (Legacy System Migration Workbench)
Now we see the steps in recording BDC.
SHDB
Press New Recording
Giving recording name
Give T-code to be recorded
Press start recording
Execute the T-code until save
Save the tabular format generated
Back
Select the recording name
Press program button
Give program (System will generate the program with that name)
Select radio button transfer from recording
Enter
Give Title
Press source code
Give package and save
Enter (You can see the program generated)
Select the program from the line after perform open_group.
Till a line above transaction code and copy
Paste it between loop at endloop in the program which you have written for uploading the data from flat file to internal table.
Copy the from the include present in the recorded program and paste at the bottom of the program.
No comments:
Post a Comment