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

LDB (Logical Database) results

Former Member
0 Likes
609

Dear All,

I have an requirement where I have get the selection screen fields list of logical database(LDB) in my custom program.

Also after getting the selection screen fields, whatever criteria is filled in those, once again i have to take those inputs and get the results by executing the LDB.

Is anyone can help me......

Regards

Munish Garg

Dear All,

I have an requirement where I have get the selection screen fields list of logical database(LDB) in my custom program.

Also after getting the selection screen fields, whatever criteria is filled in those, once again i have to take those inputs and get the results by executing the LDB.

Is anyone can help me......

Regards

Munish Garg

4 REPLIES 4
Read only

RaymondGiuseppi
Active Contributor
0 Likes
567

two options

- Link the database to your report attributes

- Call FM LDB_PROCESS from your report

Regards,

Raymond

Read only

0 Likes
567

Hello Raymond,

Thing is, i need to get report dynamically by not including LDB name in program attributes.

Is there any way out.....

Regards

Munish Garg

Read only

0 Likes
567

You will need to call LDB_PROCESS, but you will have to map the data from LDB to internal table (how do your report "knows" which nodes and which fields from those nodes are to be included in the internal table ?)

So many dynamic statements like CREATE DATA <dref> TYPE REF TO (LBDA-DDIC_TYPE) using the parameter <formname> = LBDA-LDBNODE in a generic FORM <formname> USING <nodename> LIKE LDBCB-LDBNODE and then many ASSIGN statements to map the desired fields to the returned internal table records. At each call of this generic FORM, map each and every "corresponding" fields, add the record to the internal table at the lower level node.

Regards,

Raymond

Read only

Former Member
0 Likes
567

Problem solved by creating a dynamic program and using GET statements and field groups in that.