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

Getting results from LDB (Logical Database)

Former Member
0 Likes
854

Hi All,

I have a requirement where i need to pass LDB results to external application. It can be any LDB. Like in SE36 we put the LDB name and execute and final results are shown in ALV. I dont need it to display in ALV but from my custom program, need that output table which stores these results.

I tried using LDB_PROCESS but that need custom subroutine names to pass in that, i tried passing the same and results also came but thing is every logical database will have different tables in that, it'll be impossible to create those many subroutine to handle each and every table. So i need a generalized solution like se36 processes the data for any LDB.

Is anyone knows how can i achieve this?

Regards

Munish Garg

9041793217

Hi All,

I have a requirement where i need to pass LDB results to external application. It can be any LDB. Like in SE36 we put the LDB name and execute and final results are shown in ALV. I dont need it to display in ALV but from my custom program, need that output table which stores these results.

I tried using LDB_PROCESS but that need custom subroutine names to pass in that, i tried passing the same and results also came but thing is every logical database will have different tables in that, it'll be impossible to create those many subroutine to handle each and every table. So i need a generalized solution like se36 processes the data for any LDB.

Is anyone knows how can i achieve this?

Regards

Munish Garg

9041793217

5 REPLIES 5
Read only

Former Member
0 Likes
811

Hi,

To which application you want to pass the data ?

Do you want to export data executing a program in SAP ? or you want to access data from SAP when your (external) application runs ?.

Regards

Bikas

Read only

0 Likes
811

Hi Bikas,

It can be either way....we have an external application, if it can access the results directly through any RFC then it is the best otherwise i need to fetch data within SAP and then pass it on.

Problem is how to get the results of LDB?

Regards

Munish Garg

Read only

Former Member
0 Likes
811

Hello

Generally any LDB will have a event which triggers the data to be populated in the tables/memory. Now these data retrieval is written in a sub-routine "Perform PUT_<eventnamt>". So any LDB will have the sub-routine named "PUT_<eventname>" in its main program. May be you can create the sub-routine name dynamically using this method.

Regards

Ranganath

Read only

0 Likes
811

I can see the PUT_<tabname> is some cases but not all.....

Also it gives record one by one and also in sequence of tables in LDB.

Problem is to get consolidated output value table.......

Read only

Former Member
0 Likes
811

problem solved by creating a dynamic program and using GET statements and Field groups in that and later submit tht dynamic program in my original program.