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 input method

Former Member
0 Likes
1,170

Hi Friends,

How to use direct input method? In real time scenarios, is the direct input method used? I know there are some standard programs for direct input method..how to use those programs? Are there any advantages in using direct input method in realtime projects other than session and call trans?

Is there any procedure to be done for direct input method..step by step...can anyone please tell me..

Points are rewarded..

Thanks,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,039

Hi Reddy,

Yes, in real time scenarios the Direct Input method is used.Direct Input method can be used in cases where we need to upload master data into SAP.

For example if you want to upload Material Master data you have to use Standard program RMDATIND.Advantage is that you can upload huge amount of data.

With direct input, data from the data transfer file undergoes the same checks as with the online transaction and is then transferred directly into the SAP System. The database is updated directly with the transferred data.

There are two types of direct input programs:

1.Direct input programs supported by transaction BMV0.

There are two ways to trigger direct input:

Start the program directly: Note that the system does not generate error logs and that it is not possible to restart the system if an error occurs. This is only appropriate for test purposes.

Direct input in the background (transaction BMV0): In this case, you can restart processing if the program terminates or logical errors occur (material missing, for example). The ability to restart the system ensures that data cannot be posted twice to the database, as the program can be reset to where it terminated. Using the trace, you can correct or post subsequently any errors that occurred.

Direct input also has the advantage that it places little load on the system.

If you are working with test data, start the direct input directly. For the final data transfer, SAP strongly recommends that you use Transaction BMVO.

2.Direct input programs that are not supported by transaction BMV0.

Theses programs always provide error handling.

Hope this helps.

Please reward if useful.

Thanks,

Srinivasa

6 REPLIES 6
Read only

Former Member
0 Likes
1,039

Chandana,

you can use DI when u r going upload large amount of data for single application.

Better example where direct input method will be used is... uploading the data for material master.....it includes lot of views so its very much difficult to capture all the views and record the tcode and map the data in such conditions its better to go with DI methods

advantages:

in session method or CT method while uploading the data u do the validation by fallowing the screen sequence and field sequence where as in DI validations can be done set of code so this make the process very fast so its advantageous to upload large amout of data.

you always use the standard sap provided program for this.

Here in DI method very important thing is 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 u have to desing the flat file and upload the data.

chandana check this below link also

more info here.... i think u know all this info

Direct Input:

A recent technique to input data safely. An alternative to batch input.

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.

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

I hope it helps.

In contrast to batch input, this technique does not create sessions, but stores the data directly. It does not simulate the online transaction. 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 be able to activate the restart mechanism, direct input programs must be executed in the background only. Direct input checks the data thoroughly and then updates the database directly.

I think this info would be useful to you

If you need any further info shoot me a test mail

~~Guduri

Read only

Former Member
0 Likes
1,040

Hi Reddy,

Yes, in real time scenarios the Direct Input method is used.Direct Input method can be used in cases where we need to upload master data into SAP.

For example if you want to upload Material Master data you have to use Standard program RMDATIND.Advantage is that you can upload huge amount of data.

With direct input, data from the data transfer file undergoes the same checks as with the online transaction and is then transferred directly into the SAP System. The database is updated directly with the transferred data.

There are two types of direct input programs:

1.Direct input programs supported by transaction BMV0.

There are two ways to trigger direct input:

Start the program directly: Note that the system does not generate error logs and that it is not possible to restart the system if an error occurs. This is only appropriate for test purposes.

Direct input in the background (transaction BMV0): In this case, you can restart processing if the program terminates or logical errors occur (material missing, for example). The ability to restart the system ensures that data cannot be posted twice to the database, as the program can be reset to where it terminated. Using the trace, you can correct or post subsequently any errors that occurred.

Direct input also has the advantage that it places little load on the system.

If you are working with test data, start the direct input directly. For the final data transfer, SAP strongly recommends that you use Transaction BMVO.

2.Direct input programs that are not supported by transaction BMV0.

Theses programs always provide error handling.

Hope this helps.

Please reward if useful.

Thanks,

Srinivasa

Read only

0 Likes
1,039

Hi,

If i want to migrate material master data in back ground through direct input method....first i need to go to BMVO and entering the program name RMDATIND..what are the data i need to give there..i need to procedure..i didnt understand clearly....can anyone please explain me...

Thanks & Regards,

Chandana

Read only

0 Likes
1,039

Chandana,

first of all you should know the flat file structure for that you should download one material data into one text file.

Based upon that downloaded file you have to desing your flat file because without that you willnot know the structure and position of the fields rite....

so go to se38 give the program name execute it enter one material number then give the flat file name download that data into the flat file

one you got that change your flat file according to that and upload it once again with the use of the same program

I think it would be helpful for you, if you need further info lemme know

if u find it useful mark the points

~~Guduri

Read only

0 Likes
1,039

Hi,

I think i dont need to download the flat file into text file...i can go to that particular transaction and find the field name, data type ...and so on.So that depends on that i can design my flat file. I need to surely download that file...or it is optional...? please let me know.

thanks,

Read only

0 Likes
1,039

chandana,

it depends actually in DI method its better to do because the program generated by the SAP. so you don't what is the structure of the fields and and sequence of the fields

so i can suggest you.. better to know the structure before you upload the data

~~Guduri