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

Two logical data base in Same program(ABAP-HR)

Former Member
0 Likes
538

Hi all,

I want to use two logical database in the same program. Can u please explain me what is the process.

Regards,

Munna.

2 REPLIES 2
Read only

Former Member
0 Likes
446

You can do that...

Use the function module LDB_PROCESS.

This allows you to use the logical database as a routine for reading data. You can call more than one logical database from the same program. You may also call the same logical database more than once from the same program.

When you call a logical database using the function module LDB_PROCESS, its selection screen is not displayed. Instead, you fill the selections using the interface parameters of the function module.

The logical database does not trigger any GET events in the calling program, but passes the data back to the caller in callback routines.

Calling a logical database using LDB_PROCESS thus decouples the actual data retrieval from the preceding selection screen processing and the subsequent data processing.

Hope this helps.

Vinodh Balakrishnan

Read only

Former Member
0 Likes
446

Hi,

You cannot use two LDBs in one program irrespective of any module. Use one LDB and write select statement for the rest of required tables.

Thanks,

Sriram Ponna.