2010 Feb 05 1:25 PM
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
2010 Feb 05 2:25 PM
2010 Feb 08 5:13 AM
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
2010 Feb 08 7:03 AM
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
2010 Aug 31 2:19 PM
Problem solved by creating a dynamic program and using GET statements and field groups in that.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |