One important (and cool) feature of SQL Cockpit is an ability to auto-generate ABAP reports directly from the SQL query entered in the cockpit. We illustrate below, one example of how this may be utilised As you can see from the code snippet and screenshot below, suppose we want to generate a report output that executes a relatively complex select query :
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
SELECT but000~partner, but000~type, but000~bpkind, but000~bu_group, but000~bpext, but000~bu_sort1, but000~bu_sort2, but000~source, but000~xdele, but000~xblck, but020~xdfadr, but020~adext, but020~guid, but020~move_addr, but020~date_from, but020~address_guid, but020~addr_valid_from, but020~addr_valid_to, but020~addr_move_date, adrc~addrnumber, adrc~nation, adrc~title, adrc~name1, adrc~name2, adrc~name3, adrc~name4, adrc~name_text, adrc~name_co, adrc~city1, adrc~city2, adrc~city_code, adrc~cityp_code FROM but000 INNER JOIN but020 ON but000~partner = but020~partner LEFT OUTER JOIN adrc ON but020~addrnumber = adrc~addrnumber WHERE but000~partner IN &PARTNER& AND but000~type = '1' AND but000~bpkind = '' and but020~addr_valid_to = '99991231235959' AND but020~nation = '' AND adrc~title = '' AND adrc~name1 = '' AND adrc~city1 = 'Wien' . |
If you want to generate SAP report that executes this query, it […]
Weiter lesen