cancel
Showing results for 
Search instead for 
Did you mean: 

bdc

Former Member
0 Kudos

Hi ,

suppose bdc is given to transfer the data? which method u choose session or call tranction .? why?

2) how to schdule back ground jobs? wht precations we shd take.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

data transfer using BDC is always depends on volume of data..

suppose if you have 10000 records or less then you must go for call transaction..if you have large volume of data like 1lakh records then must go for session method.because..if volume of data is less then call transaction uses aynchronuous update so..requires less time to update and we can handle errors...if large volume of data then error handling is some problem so..go to session method.

for scheduling jobs you go to sm36 tcode or submit RSBDCSUB statement from your program..

Reward if useful.

Dara.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Better to use session method than other methods

Because of the following advantages

Asynchronous processing.

Synchronous Processing in database update.

Transfer data for more than one transaction.

Batch input processing log will be generated.

During processing, no transaction is started until the previous transaction has been written to the database.

Data consistency check with help of screen logic. Batch Input is a standard technique for transferring large sets of data into the SAP System. The transaction flow is transferred as if it were entered online. The advantage of this is that all relevant check for the transaction are executed, thereby ensuring that the data is consistent.

Find below steps for background jobs:

1. Goto Trans -> SM36

2. Define a job with the program and variant if any

3. Click on start condition in application tool bar

4. In the pop-up window, click on Date/Time

5. Below you can see a check box "Periodic Job"

6. Next click on Period Values

7. Select "Other Period"

8. Now give '15' for Minutes

9. Save the job

regards,

Satish

Former Member
0 Kudos

Thanks vibha,

generally we prefer session method for large amount of data. and for back ground job scheduling . and error log is created by default.still we prefer CALL TRANCTION method.

can u explain wht is an advantage of calltransaction method over session method?

Large amout of data means how many records it will consider.

Former Member
0 Kudos

Hi Satish,

The most important features of CALL TRANSACTION over SESSION method are :

Synchronous processing

Transfer of data from an individual transaction each time the statement CALL TRANSACTION USING is called

You can update the database both synchronously and asynchronously

The program specifies the update type

Separate LUW (logical units of work) for the transaction

The system executes a database commit immediately before and after the CALL TRANSACTION USING statement

I hope it helps.

Thanks,

Vibha

Please mark all the useful answers

Former Member
0 Kudos
  • Use the CALL TRANSACTION USING statement

Summary: With CALL TRANSACTION USING, the system processes the data more quickly than with batch input sessions. Unlike batch input sessions, CALL TRANSACTION USING does not automatically support interactive correction or logging functions.

Your program prepares the data and then calls the corresponding transaction that is then processed immediately.

The most important features of CALL TRANSACTION USING are:

Synchronous processing

Transfer of data from an individual transaction each time the statement CALL TRANSACTION USING is called

You can update the database both synchronously and asynchronously

The program specifies the update type

Separate LUW (logical units of work) for the transaction

The system executes a database commit immediately before and after the CALL TRANSACTION USING statement

No batch input processing log

*Create a session on the batch input queue.

Summary: Offers management of sessions, support for playing back and correcting sessions that contain errors, and detailed logging.

Your program prepares the data and stores it in a batch input session. A session is a collection of transaction data for one or more transactions. Batch input sessions are maintained by the system in the batch input queue. You can process batch input sessions in the background processing system.

Your program must open a session in the queue before transferring data to it, and must close it again afterwards. All of these operations are performed by making function module calls from the ABAP program.

The most important aspects of the session interface are:

Asynchronous processing

Transfers data for multiple transactions

Synchronous database update

During processing, no transaction is started until the previous transaction has been written to the database.

A batch input processing log is generated for each session

Sessions cannot be generated in parallel

The batch input program must not open a session until it has closed the preceding session.

Difference between Batch Input and CALL TRANSACTION

If the direct input cannot be used for your task, this makes creating a data transfer program easier since the underlying transactions ensure that the data consistency checks are executed.

In the case of an error during the data transfer (if data records are inconsistent, for example), you can restart the transfer at the point in the program where the error occurred.

Batch input methods

With the batch input method, an ABAP program reads the external data that is to be entered in the SAP system and stores the data in a “batch input session”. The session records the actions that are required to transfer data into the system using normal SAP transactions.

When the program has generated the session, you can run the session to execute the SAP transactions in it. You can explicitly start and monitor a session with the batch input management function (by choosing System ® Services ® Batch input), or have the session run in the background processing system.

CALL TRANSACTION methods

In the second method, your program uses the ABAP statement CALL TRANSACTION USING to run an SAP transaction. External data does not have to be deposited in a session for later processing. Instead, the entire batch input process takes place inline in your program.

Also have a look at below link.

BDC Data Transfer Methods

I hope it helps.

Background Job

Thanks,

Vibha

Please mark all the useful answers