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

How to defined which logical database to use in a function module?

Former Member
0 Likes
543

Hey,

I am trying to do logical database in a function module. I need to know where do i go to define which logical database to use? Becuase i get syntax error on my Get statement. The logical database i am trying to use is HR PNP .

Any useful help will be appreciated,

Thanks

1 ACCEPTED SOLUTION
Read only

naimesh_patel
Active Contributor
0 Likes
495

I think we can't assign logical database to FM or FG. Because there isn't any option to put the logical database in the FM or FG's attributes.

You must have to create a executable report to have the LDB in use.

Regards,

Naimesh Patel

3 REPLIES 3
Read only

Former Member
0 Likes
495

You can call the Logical database using Function Module - LDB_PROCESS. There is enough documentation available in the FM itself on how to directly use in ABAP Code.

Hope this helps.

Read only

0 Likes
495

I can use the function module suggested. But that FM does not work for PNP logical database. I read from a differen SDN thread that you will need to use submit report and return to use PNP logical database.

Thanks

Read only

naimesh_patel
Active Contributor
0 Likes
496

I think we can't assign logical database to FM or FG. Because there isn't any option to put the logical database in the FM or FG's attributes.

You must have to create a executable report to have the LDB in use.

Regards,

Naimesh Patel