WhatsApp Button




top of page

BDC in SAP ABAP Strategies For Beginners

Updated: May 31, 2022



Batch Data Communication(BDC)


SAP BDC stands for batch data communication and it is a technique using with legacy data or data loading in to SAP system which is not updated in the SAP systems. For example, company decides to adapt its systems and procedures to SAP, and installs SAP, it will have to upload a huge volume of data that are a part of its legacy systems or old systems into the SAP system. This technique is done through SAP BDC (Batch Data Communication).


Types of BDC method—>

  1. Call transaction - used when we want to update low amount of the data.

  2. Session Method - used when we want to update bulk amount of the data.


Steps to upload data in SAP system using BDC —>


Step 1 - Pass the notepad data to internal table.

Step 2 - We need to record the session using tcode “SHDB” to get the dummy BDC structure for FI01 screen.

Step 3 - After recording the session we need to write the BDC code to pass the internal table data to the internal table of BDC structure according to the recording.

Step 4 - Then data in the BDC internal table need to be updated in the database table using any BDC method via FI01 screen.



Notepad data to be added —>


Step 1 - Pass the notepad data to internal table.

Coding Screen —>



Way to check if data is successfully passed to the internal table

Step 1 - Place break point at Perform statement and execute the code



Step 2 - Click on DESKTOP 3 option. After that click on F5 Functionality and then on F6 Functionality.



Step 3 - After clicking on F6 Functionality a message box will appear asking for permission to access the file. Click on Allow radio button.



Step 4 - After allowing double click on the internal table and the internal table will appear in the right grid having information of how many records it has.



Step 5 - Double click on the internal table name in the right grid.



Step 6 - After double clicking you can see the notepad data is successfully transferred to the internal table




Step 2 - We need to record the session using tcode “SHDB” to get the dummy BDC structure for FI01 screen.


Step 1 - On “SHDB” code window click on New Recording button



Step 2 - After clicking on New Recording a new dialogue will appear. Fill the required buttons and click on Start Recording



Knowledge Cloud—>

BDC OKCODE — It is the final button we press or action we do after filling up the required fields.


Step 3 - Fill the required fields and click on ENTER (BDC OKCODE for this screen)



Step 4 - After clicking enter a second screen will appear.



Step 5 - Fill the fields as per the requirement and click on “SAVE”(BDC OKCODE for this screen)



Step 6 - After saving you will see the BDC Dummy structure.



Step 3 - After recording the session we need to write the BDC code to pass the internal table data to the internal table of BDC structure according to the recording.


Coding Screen —>




Step 4 - Then data in the BDC internal table need to be updated in the database table using any BDC method via FI01 screen.

Call transaction method — >

Syntax —

CALL TRANSACTION ‘TCODE’ USING BDC_ITAB MODE MODE_NAME UPDATE UPDATE_NAME MESSAGES INTO ITAB_BDC-MSGCOLL.


Coding Screen —> Only addition is in BDC_PROCESS subroutine.


After execution you will see records passing one by one.


Data after successfully passed in database table



Modes in Call Transaction —>

There are 3 types of Modes -

1. A - All screens - it is the default mode, we have to pass data one by one.

2. N - No screen - in this mode data is passed in the background.


3. E - Error Screen - it is used to show if there is any error in the execution.


Update in Call Transaction —>

There are 2 types of Update

  1. A - asynchronous - in this the processing of next job will not wait for the completion of the previous job.

  2. S - synchronous - in this the processing of next job will wait for the completion of previous job.


NOTE - Call transaction are always Asynchronous.


In Update we will not get any message if the code execution is done successfully or not. So we use a predefined structure BDCMSGCOLL and a predefined function module FORMAT_MESSAGE in order to select required message.


Coding Screen —



Output—>



Database Table—>



Session method — >

There are 3 Function Modules for bulk update of the data -

  1. BDC_OPEN_GROUP

  2. BDC_INSERT

  3. BDC_CLOSE_GROUP


Coding Screen —


After executing the program will run in session. To access session screen we have to go to transaction code “SM35”.


On SM35 screen select the session and then click on process. After clicking on process a new window will appear having multiple options.

Process/foreground means we have do the task manually.

Display only error means only the error in the execution will be shown

Background means it will be done automatically in the background


After clicking on the process radio button on the new window the data will get uploaded to the data base table. This green tick will tell that the execution is successful without any error.







ISHNOOR SINGH SETHI

320 Comments


nginhm.an.gm.an.g
21 hours ago

68win nhìn qua thì mình thấy nó giống mấy trang mình từng nghía lúc rảnh, nên ban đầu cũng hơi nghi ngờ kiểu “lại rối mắt thôi”. Mình lướt trên điện thoại vài phút lúc chờ việc, không đọc kỹ nội dung hay soi sâu gì, chỉ thử xem cách họ bày thông tin có dễ bắt nhịp không; may là các khối nội dung tách bạch, tiêu đề đặt gọn nên mắt mình quét một vòng là biết đang ở đoạn nào, không bị cảm giác chữ đè lên nhau. Mình cũng để ý cái menu nằm chỗ khá dễ nhìn, bấm qua lại mượt và không phải mò, thêm mấy bảng thông tin dạng cột nhìn sạch sẽ…

Like

BGD33 হ্যাঁ, ওইটাই বলছিলাম—আমি ঢুকেই ভাবছিলাম “দেখি তো, কী আছে”, তারপর দেখি সময়টা একটু বেশিই চলে গেল। সাইটটার জিনিসটা আসলে কনটেন্টের চেয়ে সাজানোর ধরন: হোমপেজে শিরোনামগুলো বড় আর পরিষ্কার, প্রতিটা অংশ আলাদা ব্লকে রাখা, তাই স্ক্রল করতে করতে চোখে আটকে যায় কোথায় কী বলা হচ্ছে—বারবার উপরে গিয়ে খুঁজতে হয় না, যেটা রাতে আধা ঘুমে থাকলে বেশ কাজে দেয়। আর নিরাপত্তা নিয়ে যে অংশটা আছে, সেখানে ২৫৬-বিট SSL এনক্রিপশন আর অটো ফায়ারওয়ালের কথা একদম সোজাসাপ্টা লিখেছে, “আমরা সিরিয়াস” টাইপ ফাঁকা কথাবার্তা না—পড়তে গিয়ে আমারও একটু ভরসা এসেছে, যদিও আমি এসব টেক টার্মে খুব পণ্ডিত না। সব মিলিয়ে, পাতার ভেতরের ইনফো-বক্সগুলোও পরপর গুছিয়ে বসানো, তাই পড়াটা অদ্ভুতভাবে সহজ লাগে ওই ব্লক-লেআউটেই।

Like

https://ego8.net/ lúc đầu mình cũng hơi ngờ ngợ, kiểu vào thử cho biết chứ không kỳ vọng gì nhiều; ai ngờ lướt một vòng lại thấy giao diện khá dễ chịu, bố cục để thoáng nên mắt đỡ phải “tập thể dục”, chữ nghĩa vừa đủ chứ không nhồi nhét, nhìn vài giây là hiểu mình đang ở mục nào; mình chỉ xem qua thôi nên không nói nội dung, nhưng cách họ chia thông tin theo từng khối gọn gàng làm mình kéo xuống khá mượt, không phải đảo lên đảo xuống tìm chỗ cần; cái menu đặt vị trí dễ thấy nên chuyển trang nhanh, dùng trên màn hình nhỏ cũng không bị lạc đường; nói chung kiểu…

Like

789win mình thấy bạn bè nhắc hoài nên cũng ghé thử cho biết, kiểu vào xem giao diện có dễ nhìn không thôi chứ chưa kịp mò sâu. Vừa mở lên cái là mình để ý ngay trang sắp xếp theo từng khối khá rõ ràng, nhìn lướt cũng không bị ngộp chữ hay rối mắt. Mình hay ngại mấy site nhét quá nhiều thứ vào một chỗ, nhưng ở đây bố cục chia cột gọn nên kéo xuống một chút là nắm được mấy thông tin chính mà không phải bấm qua lại liên tục. Cái mình thích nữa là menu đặt dễ thấy, chuyển mục qua lại cũng mượt, không phải mất công tìm nút điều hướng. Nói…

Like

S8 mình thấy mọi người nhắc nhiều quá nên cũng ghé thử cho biết, kiểu vào xem giao diện thôi chứ không đăng ký gì. Lướt một vòng thấy họ chia nội dung theo từng khối khá rõ, nhìn không bị rối mắt, kéo xuống vẫn giữ bố cục đều nên đọc nhanh cũng ổn. Có đoạn giới thiệu về giấy phép và phần bảo mật SSL 256-bit đặt khá dễ thấy trong mục thông tin thương hiệu, nên ai tò mò về độ “đàng hoàng” chắc sẽ để ý ngay. Mình thích nhất là cách họ làm tiêu đề to, khoảng trắng vừa đủ nên không bị ngợp chữ, cảm giác “sạch” và dễ theo dõi. Nói chung chỉ…

Like
bottom of page