Shared Top Border

Enterprise Resource
Planning Portal

 

Advertise | Founder BLOG

ERPGenie.COM ABAP Tips and Tricks Database

THE ultimate
ERP website

 

Forums | Vote for us |

Google    Other Search Options

Home arrow Sample Code arrow ABAP Reports arrow Reading database tables - logical database
Reading database tables - logical database PDF Print E-mail
User Rating: / 0
PoorBest 
Written by Anon.   
Thursday, 27 December 2007
Requirement:

Read a logical database (you must have data in those tables, now LFA1), fill up an internal table. Sort the data by a given field and then display the internal table.

Solution:
    report zldbread no standard page heading.
    tables: lfa1.
    data: begin of t occurs 0,
       lifnr like lfa1-lifnr,
       name1 like lfa1-name1,
    end of t.
start-of-selection.
  get lfa1.
  clear t.
  move-corresponding lfa1 to t.
  append t.
end-of-selection.
 
sort t by name1.
loop at t.
  write: / t-name1, t-lifnr.
endloop.

Related Items:

 
< Prev   Next >

Google Search

Google Ads

Shared Bottom Border

Contact Us | Polls | Add URL | Contribute | Privacy | Terms | Feedback

Discussion Forum | BLOG | Consultants: Post your resume | Companies: Advertise on ERPGenie.COM | Post Job
Financials Consultant | Consultant Review | Gallia Consulting | Supply Chain Project | SAP Financials Forum
GenieHoldings.COM, Inc. | Genie Press | WorkflowGenie | ESAGenie | ERPTopSites | ABAP Tips and Tricks | SAP Solutions Database

EDIGenie | Searching Survivor