Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

direct method

Former Member
0 Likes
929

Hi friends

when and why do we use direct method for loading data? and is it better than batch input method? if so why? In what circumstances do we prefer direct method?

Thanks

1 ACCEPTED SOLUTION
6 REPLIES 6
Read only

Former Member
0 Likes
836

Adit,

just refer:

Amit.

Read only

Former Member
0 Likes
836

Hi,

Direct input method will be used when the number of records to be posted are very less and

Batch input method is used when there is huge amount of records.

For batch input method u need to create a session but for direct input session will not be created.

Both the methods use same business logic for posting the data.

Direct method means it will updates data directly to the database (fast process).

coming to Recording method (validation happens through screens---> it is slow process)

1) U have to know which Object, Method, Programe name u should use , and also u have to know what is the target structure(exactly in which structure the data values are reflecting ) that u have to assign u r source structure.

Note: if u have any zfields in the tcode(which u want to upload ) then in Direct input case u cant upload those fields, at that time u have search for alternative fields, if its not there, then there is noway to upload values in those particular zfields , uhave to go for Recording method.

so choose carefully which method u want, before starting the job.

Among the methods of data transfer through BDC, direct input method is the one that is used, especially in case of transferring large amount of data. In order to enhance the batch input procedure, the system offers you with the direct input technique.

There is a distinction between the batch input technique and this technique. Unlike batch input technique, this technique does not create sessions. Instead, it stores the data directly. Moreover, it does not process screens. The data has to be entered directly into the corresponding database tables. The system calls a number of function modules which execute necessary checks, if any required. In the case of errors, the direct input technique has a facility to restart the entire mechanism. However, if you want to restart the entire mechanism in case you faced an error, then direct input programs must be executed in the background only. One has to use program RBMVSHOW or Transaction BMV0 to maintain and start these programs.

do refer this link

Direct Input (DINP)

With direct input, the SAP function modules execute the consistency checks. However with batch input, these consistency checks are executed with help of the screens. This means that direct input has considerable performance advantages. But there are a few programs for direct input, you can use them if it accomplishes your goal. Direct Input programs work like that they update database tables directly. As you know that it is forbidden to update SAP database tables directly, since consistency and security should be considered. Exceptions are these direct input programs. So you are not able to write custom ABAP direct input programs. But of course you can write ABAP programs to update custom database tables (Z tables), if you are sure all about consistency.

So why SAP has created direct input programs? Because SAP wanted to enhance the batch input procedure, since batch input is slower. SAP offers the direct input technique, especially for transferring large amount of data. In contrast to batch input, this technique does not create sessions, but stores, updates, inserts data directly. To enter the data into the corresponding database tables directly, the system calls a number of function modules that execute any necessary checks. In case of errors, the direct input technique provides a restart mechanism. However, to able to activate the restart mechanism, direct input programs must be executed in the background only. To maintain and start these programs, use program RBMVSHOW or transaction BMV0.

Examples for direct input programs are:

RFBIBL00 - FI

RMDATIND - MM

RVAFSS00 - SD

RAALTD11 - AM

RKEVEXTO - CO-PA

also this one

Direct Input method is used to upload large amount of data for single application.

While uploading data for material master, it includes lot of views, it becomes difficult to capture all the views and record the transaction code and map the data. We can use Direct Method

Advantages

In Session or Call Transaction method while uploading the data we do the validation by following the screen sequence and field sequence where as in Direct Input method validations can be done set of code so this make the process very fast so its advantageous to upload large amount of data. We can also use standard SAP programs..

Direct Input method needs structure of flat file so to know the structure first of all you have to download the data for one record into the internal table with the use of the same program then with the use of that structure you have to design the flat file and upload the data.

Regrds,

KK

Read only

Former Member
Read only

Former Member
Read only

Former Member
0 Likes
836

Dear Friend,

Direct Input method is used when the amount of data is huge as it is the fastest way for uploading data. It is generally used for uploading say a huge data for MM01, VD01, Material BOM etc.. In this method we do not process screens but directly uploads it into the system. It will perform initial mandatory fields check before going up and if any error it will show before moving the data.

Some of the direct input programs are:

RFBIBL00 FI

RMDATIND MM

RVAFSS00 SD

RAALTD11 AM

RKEVEXT0 CO-PA

It can be easily used in LSMW.

Saurabh.