Professional Documents
Culture Documents
BDCwithtablecontrolforCustomerMaster
BDCwithtablecontrolforCustomerMaster
Scenario:Uploading the customer master through BDC technique
where multiple bank information of a particular customer needs to be
maintained in the screen table control.
[http://3.bp.blogspot.com/awrMoWgA
2Q/Ur8EKiPs5ZI/AAAAAAAAFUE/NvaAk4bUdAY/s1600/1.JPG]
[http://1.bp.blogspot.com/Pfds78sDcw/Ur8EPtZL7
I/AAAAAAAAFVk/LdQdUtppcbE/s1600/2.JPG]
Step3. Provide a Recording name and the transaction 'XD01' and click on continue
button.
http://freesapabap.blogspot.in/2013/12/bdcwithtablecontrol.html
1/31
1/8/2016
BDCwithtablecontrolforCustomerMaster
[http://2.bp.blogspot.com/
iniqrpLPZlM/Ur8ETtlIijI/AAAAAAAAFWw/vVYyNdrkxfg/s1600/3.JPG]
Step4. Provide the company code, sales org, distribution channel, division and
account group and hit ENTER key from keyboard.
[http://1.bp.blogspot.com/
ODr4eiKLdMo/Ur8EYdnn3MI/AAAAAAAAFYU/cyIPkevByNw/s1600/4.JPG]
http://freesapabap.blogspot.in/2013/12/bdcwithtablecontrol.html
2/31
1/8/2016
BDCwithtablecontrolforCustomerMaster
Step5. Provide title, country and language and hit ENTER key from keyboard.
[http://4.bp.blogspot.com/
s2oGNBOHc2A/Ur8EcllD5YI/AAAAAAAAFZo/3gFKQGBhqtU/s1600/5.JPG]
[http://2.bp.blogspot.com/
JL6kubp6wuU/Ur8EdAaH19I/AAAAAAAAFZs/Ar67OlRYlcM/s1600/6.JPG]
http://freesapabap.blogspot.in/2013/12/bdcwithtablecontrol.html
3/31
1/8/2016
BDCwithtablecontrolforCustomerMaster
[http://1.bp.blogspot.com/
NlXcMay0Xfk/Ur8EdGlC3MI/AAAAAAAAFZ0/XeHqz1iabrQ/s1600/7.JPG]
Step8. The screen appears where we have to provide multiple bank account
details as a table control.
[http://1.bp.blogspot.com/
mvbSq44CZeU/Ur8EdzXkHPI/AAAAAAAAFZ8/3o6uz0s3R6U/s1600/8.JPG]
http://freesapabap.blogspot.in/2013/12/bdcwithtablecontrol.html
4/31
1/8/2016
BDCwithtablecontrolforCustomerMaster
Step9. Provide the bank country, bank key and the bank account number and hit
ENTER key from keyboard.
[http://1.bp.blogspot.com/
RMnHwlo2yGY/Ur8EeOg4nsI/AAAAAAAAFaA/ak8jywGet8/s1600/9.JPG]
[http://1.bp.blogspot.com/
fW4O7TiV1FA/Ur8ELACx_yI/AAAAAAAAFUU/S9AAWdhhEj4/s1600/10.JPG]
http://freesapabap.blogspot.in/2013/12/bdcwithtablecontrol.html
5/31
1/8/2016
BDCwithtablecontrolforCustomerMaster
[http://3.bp.blogspot.com/
NpD2soSuWXY/Ur8ELM352RI/AAAAAAAAFUY/mJB9i5I3O2k/s1600/11.jpg]
Step12. The BANK key in the sap system can be cretaed in tcode FI01/FI02/FI03.
In teh recording we have used bank key 5001, 5002 and 5003. These bank keys
are defined in the system before creating the customer.
[http://3.bp.blogspot.com/2QbNunEbtvk/Ur8ENDDaj1I/AAAAAAAAFU0/jy1wjKhgZzc/s1600/12.jpg]
http://freesapabap.blogspot.in/2013/12/bdcwithtablecontrol.html
6/31
1/8/2016
BDCwithtablecontrolforCustomerMaster
Step13. Now go to tcode SE38 to create the BDC program for table control for the
customer master.
[http://1.bp.blogspot.com/9njFGqYbePI/Ur8ENOr
AOI/AAAAAAAAFUk/McA2ZM30bXM/s1600/13.JPG]
Step14. Provide a program name and click on create button and provide the below
code.
[http://4.bp.blogspot.com/
s81u2FDpfdA/Ur8ENYa7t2I/AAAAAAAAFUs/NyfLNuV4ZJo/s1600/14.JPG]
*&*
*& Report ZBDC_TABLE_CONTROL_CUST_MASTER
*&
*&*
*&
*&
*&*
REPORT zbdc_table_control_cust_master.
DATA : p_banks TYPE char15,
p_bankl TYPE char15,
p_bankn TYPE char15,
idx TYPE num2 .
TYPES : BEGIN OF ty_cust,
slno TYPE char2,
cust_id TYPE char2,
com_code TYPE bukrs,
sales_org TYPE vkorg,
dist_ch TYPE vtweg,
division TYPE spart,
http://freesapabap.blogspot.in/2013/12/bdcwithtablecontrol.html
7/31
1/8/2016
BDCwithtablecontrolforCustomerMaster
8/31
1/8/2016
BDCwithtablecontrolforCustomerMaster
9/31
1/8/2016
BDCwithtablecontrolforCustomerMaster
ls_custdivision = ls_excelvalue.
WHEN '0007'.
ls_custacct_gr = ls_excelvalue.
WHEN '0008'.
ls_custtitle = ls_excelvalue.
WHEN '0009'.
ls_custland = ls_excelvalue.
WHEN '0010'.
ls_custlang = ls_excelvalue.
ENDCASE.
CLEAR ls_excel.
AT END OF row.
APPEND ls_cust TO lt_cust.
CLEAR : ls_cust.
ENDAT.
ENDLOOP.
CLEAR : ls_excel.
LOOP AT lt_bank_ex INTO ls_excel.
CASE ls_excelcol.
WHEN '0001'.
ls_bankslno = ls_excelvalue.
WHEN '0002'.
ls_bankcust_id = ls_excelvalue.
WHEN '0003'.
ls_bankland = ls_excelvalue.
WHEN '0004'.
ls_bankbank_key = ls_excelvalue.
WHEN '0005'.
ls_bankacct = ls_excelvalue.
ENDCASE.
CLEAR ls_excel.
AT END OF row.
APPEND ls_bank TO lt_bank.
CLEAR ls_bank.
ENDAT.
ENDLOOP.
LOOP AT lt_cust INTO ls_cust.
PERFORM call_screen USING 'SAPMF02D' '0100' 'X'.
PERFORM : fill_screen USING 'BDC_CURSOR' 'RF02DKTOKD',
fill_screen USING 'BDC_OKCODE' '/00',
fill_screen USING 'RF02DBUKRS' ls_custcom_code,
fill_screen USING 'RF02DVKORG' ls_custsales_org,
fill_screen USING 'RF02DVTWEG' ls_custdist_ch,
fill_screen USING 'RF02DSPART' ls_custdivision,
fill_screen USING 'RF02DKTOKD' ls_custacct_gr.
PERFORM call_screen USING 'SAPMF02D' '0110' 'X'.
http://freesapabap.blogspot.in/2013/12/bdcwithtablecontrol.html
10/31
1/8/2016
BDCwithtablecontrolforCustomerMaster
11/31
1/8/2016
BDCwithtablecontrolforCustomerMaster
[http://3.bp.blogspot.com/
AufsjCU7rJU/Ur8ENzzbXzI/AAAAAAAAFU8/62PfH0NVuZk/s1600/15.JPG]
Step16. The excel file2 contains the customer bank details information.
http://freesapabap.blogspot.in/2013/12/bdcwithtablecontrol.html
12/31
1/8/2016
BDCwithtablecontrolforCustomerMaster
[http://2.bp.blogspot.com/
mJBxJgQtMec/Ur8EODrNz1I/AAAAAAAAFVI/OVJnyhNsblU/s1600/16.JPG]
Step17. Run the program and select the two excel files to upload.
[http://3.bp.blogspot.com/
hDM406dk4F0/Ur8EOuiYKXI/AAAAAAAAFVQ/E1723SMJFQI/s1600/17.JPG]
Step18. The XD01 screen is called. Hit the ENTER key from keyboard to continue.
http://freesapabap.blogspot.in/2013/12/bdcwithtablecontrol.html
13/31
1/8/2016
BDCwithtablecontrolforCustomerMaster
[http://2.bp.blogspot.com/
JTVPkwmfYs8/Ur8EO3cS5dI/AAAAAAAAFVU/F5aaaG6bxS0/s1600/18.JPG]
[http://1.bp.blogspot.com/
E3KFaaL76A0/Ur8EPTBSbjI/AAAAAAAAFVY/yLqkWZSsRd0/s1600/19.JPG]
http://freesapabap.blogspot.in/2013/12/bdcwithtablecontrol.html
14/31
1/8/2016
BDCwithtablecontrolforCustomerMaster
[http://4.bp.blogspot.com/
BiTp24ZTZJc/Ur8EQBkvyZI/AAAAAAAAFVs/0JjkSjJiq5M/s1600/20.JPG]
[http://3.bp.blogspot.com/
BlWOv80wxx0/Ur8EQUsOXSI/AAAAAAAAFV0/i7wN5z1c6Wk/s1600/21.JPG]
Step22. The customer bank information is filled in the table control. Hit the ENTER
key from keyboard to continue.
http://freesapabap.blogspot.in/2013/12/bdcwithtablecontrol.html
15/31
1/8/2016
BDCwithtablecontrolforCustomerMaster
[http://2.bp.blogspot.com/
ktT11ItJnVE/Ur8EQ6y2O6I/AAAAAAAAFV8/VQVUQ3HxTd0/s1600/22.JPG]
[http://3.bp.blogspot.com/tw
6L441Uac/Ur8ERLXDw8I/AAAAAAAAFWE/d206gTbnYVY/s1600/23.JPG]
http://freesapabap.blogspot.in/2013/12/bdcwithtablecontrol.html
16/31
1/8/2016
BDCwithtablecontrolforCustomerMaster
[http://4.bp.blogspot.com/
FmGw0Xv_i94/Ur8ERs0BbQI/AAAAAAAAFWQ/fUi9IP_5KPE/s1600/24.JPG]
[http://4.bp.blogspot.com/
mVqW3qAC30s/Ur8ER6smc2I/AAAAAAAAFWg/nc205XLSA4U/s1600/25.JPG]
http://freesapabap.blogspot.in/2013/12/bdcwithtablecontrol.html
17/31
1/8/2016
BDCwithtablecontrolforCustomerMaster
[http://4.bp.blogspot.com/6lFRRKY8fbM/Ur8ESIfHhQI/AAAAAAAAFWY/LxSE7HX_EDw/s1600/26.JPG]
[http://3.bp.blogspot.com/4tO5RQiyNnw/Ur8EShpZ3AI/AAAAAAAAFWc/JhCJdFBR6L8/s1600/27.JPG]
Step28. The customer bank information is filled in the table control. Hit the ENTER
key from keyboard to continue.
http://freesapabap.blogspot.in/2013/12/bdcwithtablecontrol.html
18/31
1/8/2016
BDCwithtablecontrolforCustomerMaster
[http://4.bp.blogspot.com/
RvwkxWjSBn0/Ur8ETBtKbPI/AAAAAAAAFW4/QQ82WHTh7Zg/s1600/28.JPG]
[http://4.bp.blogspot.com/
SQGpT3ba5JQ/Ur8ETa1Zv4I/AAAAAAAAFW0/FA_
HSMlRrs/s1600/29.JPG]
19/31
1/8/2016
BDCwithtablecontrolforCustomerMaster
[http://3.bp.blogspot.com/1QWQXUrrS74/Ur8EUgRqWGI/AAAAAAAAFXI/V9l01Q2av9E/s1600/30.JPG]
http://freesapabap.blogspot.in/2013/12/bdcwithtablecontrol.html
20/31
1/8/2016
BDCwithtablecontrolforCustomerMaster
[http://4.bp.blogspot.com/
XMaLuDn_eGw/Ur8EVLaZcuI/AAAAAAAAFXM/ETCy0xoE7vc/s1600/31.JPG]
[http://1.bp.blogspot.com/
HX4TNmHYkNs/Ur8EVebndoI/AAAAAAAAFXQ/zU2FYXjf2GU/s1600/32.JPG]
[http://4.bp.blogspot.com/
kciGr0HH9VU/Ur8EWAESomI/AAAAAAAAFXc/rZmga4ZXxBY/s1600/33.JPG]
http://freesapabap.blogspot.in/2013/12/bdcwithtablecontrol.html
21/31
1/8/2016
BDCwithtablecontrolforCustomerMaster
Step34. The customer bank information is filled in the table control. Hit the ENTER
key from keyboard to continue.
[http://2.bp.blogspot.com/9AhZfcH2Bkc/Ur8EWu0q1FI/AAAAAAAAFXk/NRjpGVeb07s/s1600/34.JPG]
[http://3.bp.blogspot.com/
http://freesapabap.blogspot.in/2013/12/bdcwithtablecontrol.html
22/31
1/8/2016
BDCwithtablecontrolforCustomerMaster
W8FBw1WwI78/Ur8EW_AedaI/AAAAAAAAFXs/b
zJOTl26yw/s1600/35.JPG]
[http://4.bp.blogspot.com/
TwZreWEMfuY/Ur8EXAflZFI/AAAAAAAAFYM/YIexkIesBQ/s1600/36.JPG]
http://freesapabap.blogspot.in/2013/12/bdcwithtablecontrol.html
23/31
1/8/2016
BDCwithtablecontrolforCustomerMaster
[http://1.bp.blogspot.com/
_f7wMAWo6Fc/Ur8EXabHmYI/AAAAAAAAFYA/2lTeyoKy
Tc/s1600/37.JPG]
[http://1.bp.blogspot.com/
Vy7MbHMLFM0/Ur8EX9RlrII/AAAAAAAAFX8/JdAvAfcFv0g/s1600/38.JPG]
http://freesapabap.blogspot.in/2013/12/bdcwithtablecontrol.html
24/31
1/8/2016
BDCwithtablecontrolforCustomerMaster
[http://1.bp.blogspot.com/8TXIW1e87yo/Ur8EYJ7Q3JI/AAAAAAAAFYI/sSvly8IsNgs/s1600/39.JPG]
Step40. The customer bank information is filled in the table control area. Hit the
ENTER key from keyboard to continue.
[http://4.bp.blogspot.com/
BZuM854FLe8/Ur8EY6Czl6I/AAAAAAAAFYc/O6YGzRz0HKc/s1600/40.JPG]
http://freesapabap.blogspot.in/2013/12/bdcwithtablecontrol.html
25/31
1/8/2016
BDCwithtablecontrolforCustomerMaster
[http://3.bp.blogspot.com/f3kVAZ
gL0w/Ur8EZtbEB3I/AAAAAAAAFYo/LmB8mh38VQA/s1600/41.JPG]
[http://1.bp.blogspot.com/7uUaq8zoC
M/Ur8EZ9DzUpI/AAAAAAAAFY0/ps1KXgC8qMk/s1600/42.JPG]
http://freesapabap.blogspot.in/2013/12/bdcwithtablecontrol.html
26/31
1/8/2016
BDCwithtablecontrolforCustomerMaster
[http://3.bp.blogspot.com/8I
o9YxamtU/Ur8EaFFV_YI/AAAAAAAAFYw/57Lq1SeQ2Y/s1600/43.JPG]
http://freesapabap.blogspot.in/2013/12/bdcwithtablecontrol.html
27/31
1/8/2016
BDCwithtablecontrolforCustomerMaster
[http://2.bp.blogspot.com/
vP8B_1M8ES0/Ur8EaSItPcI/AAAAAAAAFY8/8NeT91f0wFY/s1600/44.JPG]
[http://4.bp.blogspot.com/3_akjGvaYuE/Ur8Ea0CMGBI/AAAAAAAAFZE/RcVejGeTLZk/s1600/45.JPG]
Step46. The customer bank information is filled in the table control. Hit the ENTER
key from keyboard to continue.
http://freesapabap.blogspot.in/2013/12/bdcwithtablecontrol.html
28/31
1/8/2016
BDCwithtablecontrolforCustomerMaster
[http://4.bp.blogspot.com/
NrqtwonsVys/Ur8Ebc9yYhI/AAAAAAAAFZQ/nyMD3JIfvfs/s1600/46.JPG]
[http://1.bp.blogspot.com/
iwi3owGP2SM/Ur8EbsFSU1I/AAAAAAAAFZU/ierRA43UJMA/s1600/47.JPG]
http://freesapabap.blogspot.in/2013/12/bdcwithtablecontrol.html
29/31
1/8/2016
BDCwithtablecontrolforCustomerMaster
[http://3.bp.blogspot.com/
HRmf35fksu0/Ur8EcMADAOI/AAAAAAAAFZc/Rq7mTFyGyXE/s1600/48.JPG]
________________________________________________________
_______________________
Posted 28th December 2013 by SPrasad
View comments
http://freesapabap.blogspot.in/2013/12/bdcwithtablecontrol.html
30/31
1/8/2016
BDCwithtablecontrolforCustomerMaster
3 comments
Add a comment
Top comments
http://freesapabap.blogspot.in/2013/12/bdcwithtablecontrol.html
31/31